YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
openrewind
shaik-zeeshanf157a4cca2d3
diff --git a/.github/workflows/release-openrewind.yml b/.github/workflows/release-openrewind.ymlnew file mode 100644index 000000000..71345b453--- /dev/null+++ b/.github/workflows/release-openrewind.yml@@ -0,0 +1,594 @@+# # Run for macOS+# act -W .github/workflows/release-openrewind.yml --container-architecture linux/amd64 -j publish-tauri -P macos-latest=-self-hosted++name: Release OpenRewind++on:+ workflow_dispatch:+ inputs:+ commit_hash:+ description: "Commit hash to build from (optional)"+ required: false+ version:+ description: "Version to set in Cargo.toml (required if commit_hash is provided)"+ required: false+ needs_testing:+ description: "Whether this release needs community testing"+ type: boolean+ default: false+ push:+ branches: [main]++jobs:+ check_commit:+ runs-on: ubuntu-latest+ outputs:+ should_release: ${{ steps.check.outputs.should_release }}+ should_publish: ${{ steps.check.outputs.should_publish }}+ should_test: ${{ steps.check.outputs.should_test }}+ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 2+ - id: check+ run: |+ COMMIT_MSG=$(git log -1 --pretty=%B)+ if echo "$COMMIT_MSG" | grep -q "release-openrewind"; then+ echo "should_release=true" >> $GITHUB_OUTPUT+ else+ echo "should_release=false" >> $GITHUB_OUTPUT+ fi+ if echo "$COMMIT_MSG" | grep -q "release-openrewind-publish"; then+ echo "should_publish=true" >> $GITHUB_OUTPUT+ else+ echo "should_publish=false" >> $GITHUB_OUTPUT+ fi++ # Check for explicit testing or skip flags first+ if echo "$COMMIT_MSG" | grep -q "release-openrewind"; then+ echo "should_test=true" >> $GITHUB_OUTPUT+ elif echo "$COMMIT_MSG" | grep -q "release-openrewind-skip-test"; then+ echo "should_test=false" >> $GITHUB_OUTPUT+ # For regular release-openrewind (not publish), default to testing=true+ elif echo "$COMMIT_MSG" | grep -q "release-openrewind" && ! echo "$COMMIT_MSG" | grep -q "release-openrewind-publish"; then+ echo "should_test=true" >> $GITHUB_OUTPUT+ # For manual workflow runs, use the input parameter+ else+ echo "should_test=${{ github.event.inputs.needs_testing }}" >> $GITHUB_OUTPUT+ fi++ generate_changelog:+ needs: check_commit+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ runs-on: ubuntu-latest++ permissions:+ contents: write++ steps:+ - uses: actions/checkout@v4+ with:+ fetch-depth: 0++ - name: Get version from Cargo.toml if not provided+ id: get_version+ run: |+ if [ -z "${{ github.event.inputs.version }}" ]; then+ VERSION=$(grep '^version = ' openrewind/src-tauri/Cargo.toml | sed 's/version = "\(.*\)"/\1/')+ echo "VERSION=$VERSION" >> $GITHUB_ENV+ else+ echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV+ fi++ - name: Generate Changelog+ env:+ OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ CN_API_KEY: ${{ secrets.CN_API_KEY }}+ run: .github/scripts/generate_changelog_md.sh ${{ env.VERSION }} ${{ github.event.inputs.commit_hash }}++ - name: Commit and push changelog files+ if: env.CHANGELOG_GENERATED == 1+ run: |+ git config user.name "GitHub Actions Bot"+ git config user.email "github-actions[bot]@users.noreply.github.com"+ git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git+ git add .+ git commit -m "docs: add changelog for ${{ env.VERSION }}"+ git pull origin main+ git push origin main++ draft:+ needs: [check_commit, generate_changelog]+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ with:+ ref: ${{ github.event.inputs.commit_hash || github.ref }}++ - name: Update version in Cargo.toml+ if: github.event.inputs.commit_hash && github.event.inputs.version+ run: |+ if [[ "$OSTYPE" == "darwin"* ]]; then+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' openrewind/src-tauri/Cargo.toml+ else+ sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' openrewind/src-tauri/Cargo.toml+ fi++ - name: create draft release+ uses: crabnebula-dev/[email protected]+ with:+ command: release draft ${{ secrets.CN_OPENREWIND_APP_SLUG }} --framework tauri+ api-key: ${{ secrets.CN_API_KEY }}++ publish-tauri:+ needs: [check_commit, draft]+ if: github.event_name == 'workflow_dispatch' || needs.check_commit.outputs.should_release == 'true'+ permissions:+ contents: write+ strategy:+ fail-fast: false+ matrix:+ include:+ - platform: "macos-latest"+ args: "--target aarch64-apple-darwin"+ target: aarch64-apple-darwin+ tauri-args: "--target aarch64-apple-darwin"+ os_type: "macos"+ - platform: "macos-latest"+ args: "--target x86_64-apple-darwin"+ target: x86_64-apple-darwin+ tauri-args: "--target x86_64-apple-darwin"+ os_type: "macos"+ - platform: "windows-2019"+ args: "--target x86_64-pc-windows-msvc"+ pre-build-args: ""+ tauri-args: "--target x86_64-pc-windows-msvc"+ os_type: "windows"+ - platform: "ubuntu-22.04"+ args: "--target x86_64-unknown-linux-gnu"+ target: x86_64-unknown-linux-gnu+ tauri-args: ""+ os_type: "linux"++ runs-on: ${{ matrix.platform }}+ steps:+ - name: Enable Git long paths on Windows+ if: matrix.os_type == 'windows'+ shell: powershell+ run: |+ Write-Host "Enabling git core.longpaths..."+ git config --system core.longpaths true+ # Verify the setting+ $longpaths = git config --system --get core.longpaths+ Write-Host "core.longpaths is set to: $longpaths"+ if ($longpaths -ne "true") {+ throw "Failed to enable git long paths"+ }++ - uses: actions/checkout@v4+ with:+ ref: ${{ github.event.inputs.commit_hash || github.ref }}++ - name: Update version in Cargo.toml+ if: github.event.inputs.commit_hash && github.event.inputs.version && matrix.platform != 'macos-latest'+ shell: pwsh+ run: |+ $content = Get-Content openrewind/src-tauri/Cargo.toml+ $content = $content -replace '^version = ".*"', ('version = "' + '${{ github.event.inputs.version }}' + '"')+ $content | Set-Content openrewind/src-tauri/Cargo.toml -Force++ - name: Update version in Cargo.toml+ if: github.event.inputs.commit_hash && github.event.inputs.version && matrix.platform == 'macos-latest'+ shell: bash+ run: |+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' openrewind/src-tauri/Cargo.toml++ - name: Setup Bun+ uses: oven-sh/setup-bun@v2+ with:+ bun-version: 1.1.43++ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version: 20++ - name: Set up Rust+ if: matrix.os_type != 'windows'+ uses: dtolnay/rust-toolchain@stable+ with:+ toolchain: stable+ targets: ${{ matrix.target }}++ - name: Install Rust+ if: matrix.os_type == 'windows'+ run: |+ Invoke-WebRequest https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe+ .\rustup-init.exe -y++ - name: setup rust path+ if: matrix.os_type == 'windows'+ shell: powershell+ run: |+ $env:PATH = "$env:USERPROFILE\.cargo\bin;$env:PATH"+ echo "$env:USERPROFILE\.cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append+ rustc --version # verify rust is available++ - name: Rust Cache+ uses: Swatinem/rust-cache@v2+ with:+ # Specify custom cache key+ key: ${{ runner.os }}-rust-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}+ # Cache these paths+ cache-directories: |+ ~/.cargo/registry/index/+ ~/.cargo/registry/cache/+ ~/.cargo/git/db/+ target/${{ matrix.target }}+ openrewind/src-tauri/target+ # Shared cache across branches+ shared-key: "rust-cache-${{ matrix.target }}"+ # Save cache even on failed builds+ save-if: true++ - name: Cache Build Artifacts+ uses: actions/cache@v4+ with:+ path: |+ ~/.cargo/bin/+ ~/.cargo/.crates.toml+ ~/.cargo/.crates2.json+ target/${{ matrix.target }}/release+ openrewind/src-tauri/target/release+ key: ${{ runner.os }}-artifacts-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}+ restore-keys: |+ ${{ runner.os }}-artifacts-${{ matrix.target }}-++ - name: Cache Homebrew packages+ if: matrix.platform == 'macos-latest'+ uses: actions/cache@v4+ with:+ path: |+ ~/Library/Caches/Homebrew+ /usr/local/Cellar+ /usr/local/Homebrew+ key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/release-openrewind.yml') }}+ restore-keys: |+ ${{ runner.os }}-brew-++ - name: Cache Pre Build+ id: cache-pre-build+ uses: actions/cache@v4+ with:+ path: |+ openrewind/src-tauri/ffmpeg+ openrewind/src-tauri/tesseract-*+ openrewind/node_modules+ openrewind/src-tauri/target+ openrewind/.tauri+ openrewind/src-tauri/WixTools+ # Platform specific bins+ openrewind/src-tauri/bun-*+ openrewind/src-tauri/screenpipe-*+ key: ${{ matrix.platform }}-${{ matrix.target }}-pre-build-openrewind-${{ hashFiles('**/Cargo.lock', '**/bun.lockb') }}+ restore-keys: |+ ${{ matrix.platform }}-${{ matrix.target }}-pre-build-openrewind-++ - name: Install dependencies+ if: matrix.os_type == 'macos'+ shell: bash+ run: |+ brew install ffmpeg++ - name: Install dependencies+ if: matrix.os_type == 'linux'+ shell: bash+ run: |+ sudo apt-get update+ sudo apt-get install -y \+ g++ \+ ffmpeg \+ tesseract-ocr \+ cmake \+ clang \+ libavformat-dev \+ libavfilter-dev \+ libavdevice-dev \+ libssl-dev \+ libtesseract-dev \+ libxdo-dev \+ libsdl2-dev \+ libclang-dev \+ libxtst-dev \+ libx11-dev \+ libxext-dev \+ libxrandr-dev \+ libxinerama-dev \+ libxcursor-dev \+ libxi-dev \+ libgl1-mesa-dev \+ libasound2-dev \+ libpulse-dev \+ curl \+ pkg-config \+ libsqlite3-dev \+ libbz2-dev \+ zlib1g-dev \+ libonig-dev \+ libayatana-appindicator3-dev \+ libsamplerate-dev \+ libwebrtc-audio-processing-dev \+ libgtk-3-dev \+ librsvg2-dev \+ patchelf+ # download old versions because of EGL issues, see https://github.com/h3poteto/fedistar/issues/1717+ mkdir -p /tmp/ubuntu-packages+ cd /tmp/ubuntu-packages+ wget https://launchpadlibrarian.net/723972773/libwebkit2gtk-4.1-0_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/723972761/libwebkit2gtk-4.1-dev_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/723972770/libjavascriptcoregtk-4.1-0_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/723972746/libjavascriptcoregtk-4.1-dev_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/723972735/gir1.2-javascriptcoregtk-4.1_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/723972739/gir1.2-webkit2-4.1_2.44.0-0ubuntu0.22.04.1_amd64.deb+ wget https://launchpadlibrarian.net/606433947/libicu70_70.1-2ubuntu1_amd64.deb+ wget https://launchpadlibrarian.net/606433941/libicu-dev_70.1-2ubuntu1_amd64.deb+ wget https://launchpadlibrarian.net/606433945/icu-devtools_70.1-2ubuntu1_amd64.deb+ wget https://launchpadlibrarian.net/595623693/libjpeg8_8c-2ubuntu10_amd64.deb+ wget https://launchpadlibrarian.net/587202140/libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb+ wget https://launchpadlibrarian.net/592959859/xdg-desktop-portal-gtk_1.14.0-1build1_amd64.deb+ sudo apt-get install -y /tmp/ubuntu-packages/*.deb++ - name: Install dependencies+ working-directory: openrewind+ run: bun install++ - name: Install vcpkg+ if: matrix.os_type == 'windows'+ uses: lukka/run-vcpkg@v11+ with:+ vcpkgGitCommitId: "7adc2e4d49e8d0efc07a369079faa6bc3dbb90f3"++ - name: Set up MSVC+ if: matrix.os_type == 'windows'+ uses: ilammy/msvc-dev-cmd@v1++ - name: Install 7zip+ if: matrix.os_type == 'windows'+ shell: powershell+ run: |+ $7zipUrl = "https://7-zip.org/a/7z2301-x64.exe"+ $7zipInstaller = "7z-installer.exe"+ Invoke-WebRequest -Uri $7zipUrl -OutFile $7zipInstaller+ Start-Process -FilePath .\$7zipInstaller -Args "/S" -Wait+ Remove-Item $7zipInstaller+ echo "C:\Program Files\7-Zip" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append+ & "C:\Program Files\7-Zip\7z.exe" i++ - name: Cache LLVM+ if: matrix.os_type == 'windows'+ id: cache-llvm+ uses: actions/cache@v4+ with:+ path: |+ C:\Program Files\LLVM+ ${{ runner.temp }}\llvm+ key: llvm-10.0-windows-${{ hashFiles('.github/workflows/release-openrewind.yml') }}++ - name: Install LLVM and Clang+ if: matrix.os_type == 'windows' && steps.cache-llvm.outputs.cache-hit != 'true'+ shell: powershell+ run: |+ # Create LLVM directory with proper permissions+ $llvmPath = "C:\Program Files\LLVM"+ if (!(Test-Path $llvmPath)) {+ New-Item -ItemType Directory -Force -Path $llvmPath | Out-Null+ $acl = Get-Acl $llvmPath+ $rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Users","FullControl","Allow")+ $acl.SetAccessRule($rule)+ Set-Acl $llvmPath $acl+ }++ # Download and install LLVM+ $installerUrl = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/LLVM-10.0.0-win64.exe"+ $installerPath = Join-Path $env:TEMP "LLVM-10.0.0-win64.exe"++ Write-Host "Downloading LLVM installer..."+ Invoke-WebRequest -Uri $installerUrl -OutFile $installerPath++ Write-Host "Installing LLVM..."+ Start-Process -FilePath $installerPath -ArgumentList "/S","/D=$llvmPath" -Wait -NoNewWindow++ Remove-Item $installerPath -Force++ # Verify installation+ if (!(Test-Path "$llvmPath\bin\clang.exe")) {+ throw "LLVM installation failed - clang.exe not found"+ }+ Write-Host "LLVM installation completed successfully"++ - name: Install wget on Windows+ if: matrix.os_type == 'windows'+ shell: powershell+ env:+ SKIP_SCREENPIPE_SETUP: true+ run: |+ # Remove wget alias if it exists+ if (Test-Path Alias:wget) {+ Remove-Item Alias:wget -Force+ }++ # Create wget directory+ $wgetDir = "C:\wget"+ New-Item -ItemType Directory -Force -Path $wgetDir++ # Download wget executable+ $wgetUrl = "https://eternallybored.org/misc/wget/releases/wget-1.21.4-win64.zip"+ $wgetZip = "$wgetDir\wget.zip"++ # Use Invoke-WebRequest to download+ Invoke-WebRequest -Uri $wgetUrl -OutFile $wgetZip++ # Extract wget+ Expand-Archive -Path $wgetZip -DestinationPath $wgetDir -Force+ Remove-Item $wgetZip++ # Add to PATH for current session only+ $env:Path = "$wgetDir;$env:Path"++ # Verify installation+ & "$wgetDir\wget.exe" --version++ - name: Build+ uses: tauri-apps/[email protected]+ env:+ # for updater+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}+ # for release+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ # for macos signing+ APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}+ APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}+ APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}+ APPLE_ID: ${{ secrets.APPLE_ID }}+ APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}+ # https://tauri.app/v1/guides/distribution/sign-macos+ CI: true+ # Optimize for build speed on Windows+ CARGO_PROFILE_RELEASE_LTO: ${{ matrix.os_type == 'windows' && 'thin' || 'false' }}+ CARGO_PROFILE_RELEASE_OPT_LEVEL: ${{ matrix.os_type == 'windows' && '2' || '3' }}+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS: ${{ matrix.os_type == 'windows' && '16' || '16' }}+ # Enable incremental compilation for Windows+ CARGO_INCREMENTAL: ${{ matrix.os_type == 'windows' && 'true' || 'false' }}+ # Windows specific optimizations+ CARGO_PROFILE_RELEASE_STRIP: ${{ matrix.os_type == 'windows' && 'symbols' || 'none' }}+ CARGO_PROFILE_RELEASE_PANIC: ${{ matrix.os_type == 'windows' && 'abort' || 'unwind' }}+ CARGO_PROFILE_RELEASE_INCREMENTAL: ${{ matrix.os_type == 'windows' && 'false' || 'true' }}+ RUSTFLAGS: ${{ matrix.os_type == 'windows' && '-C target-feature=+crt-static -C link-arg=/LTCG' || '' }}+ VCPKG_STATIC_LINKAGE: "true"+ KNF_STATIC_CRT: ${{ matrix.os_type == 'windows' && '1' || '' }}+ with:+ args: ${{ matrix.tauri-args }}+ projectPath: "./openrewind"+ tauriScript: bunx tauri -vvv+ retryAttempts: 3++ - name: Download and Run CLI Manually (Windows)+ if: matrix.os_type == 'windows'+ shell: powershell+ env:+ CN_API_KEY: ${{ secrets.CN_API_KEY }}+ CN_VERBOSE: "2"+ USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"+ MAX_RETRIES: 5+ RETRY_DELAY: 30+ run: |+ # create temp directory for cli+ $cliDir = Join-Path $Env:GITHUB_WORKSPACE "cn-cli-temp"+ New-Item -ItemType Directory -Force -Path $cliDir++ # download cli+ $cliUrl = "https://cdn.crabnebula.app/download/crabnebula/cn-cli/latest/platform/windows-binary-x86_64"+ $cliExe = Join-Path $cliDir "cn.exe"+ Write-Host "downloading crabnebula cli..."+ Invoke-WebRequest -Uri $cliUrl -UserAgent $env:USER_AGENT -OutFile $cliExe++ # move to the directory we want to upload from+ cd openrewind/src-tauri++ # upload assets with retry logic+ $cliFullPath = Join-Path $cliDir "cn.exe"+ Write-Host "uploading assets from $(pwd) using $cliFullPath..."++ $attempt = 1+ $success = $false++ while (-not $success -and $attempt -le $env:MAX_RETRIES) {+ Write-Host "Attempt $attempt of $env:MAX_RETRIES"+ try {+ & $cliFullPath release upload ${{ secrets.CN_OPENREWIND_APP_SLUG }} --framework tauri -vv+ if ($LASTEXITCODE -eq 0) {+ $success = $true+ Write-Host "Upload successful!"+ } else {+ throw "CLI returned exit code $LASTEXITCODE"+ }+ } catch {+ Write-Host "Error during attempt $attempt`: $_"+ if ($attempt -lt $env:MAX_RETRIES) {+ Write-Host "Waiting $env:RETRY_DELAY seconds before retry..."+ Start-Sleep -Seconds $env:RETRY_DELAY+ }+ }+ $attempt+++ }++ if (-not $success) {+ Write-Host "Failed to upload after $env:MAX_RETRIES attempts"+ exit 1+ }++ - name: Upload Assets to CrabNebula Cloud (Non-Windows)+ if: matrix.os_type != 'windows'+ uses: crabnebula-dev/[email protected]+ env:+ CN_VERBOSE: "2"+ with:+ command: release upload ${{ secrets.CN_OPENREWIND_APP_SLUG }} --framework tauri -vv+ api-key: ${{ secrets.CN_API_KEY }}+ path: ./openrewind/src-tauri++ publish-release:+ needs: [check_commit, publish-tauri]+ if: needs.check_commit.outputs.should_publish == 'true' && needs.publish-tauri.result == 'success'+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ with:+ ref: ${{ github.event.inputs.commit_hash || github.ref }}++ - name: Get version from Cargo.toml+ id: get_version+ run: |+ VERSION=$(grep '^version = ' openrewind/src-tauri/Cargo.toml | sed 's/version = "\(.*\)"/\1/')+ echo "VERSION=$VERSION" >> $GITHUB_ENV++ - name: Publish Release on CrabNebula Cloud+ uses: crabnebula-dev/[email protected]+ with:+ command: release publish ${{ secrets.CN_OPENREWIND_APP_SLUG }} ${{ env.VERSION }}+ api-key: ${{ secrets.CN_API_KEY }}++ - name: Create testing notification+ if: needs.check_commit.outputs.should_test == 'true'+ uses: actions/github-script@v6+ with:+ github-token: ${{ secrets.GITHUB_TOKEN }}+ script: |+ // Get CrabNebula release URL from environment+ const releaseUrl = "https://web.crabnebula.cloud/mediar/openrewind/releases";++ // Create release discussion issue+ const message = `+ ## 🧪 testing needed for openrewind v${{ env.VERSION }}++ this release needs community testing. a testing bounty issue will be created shortly.++ - download the release: [crabnebula cloud](${ releaseUrl })+ - testing guidelines: [testing.md](https://github.com/mediar-ai/screenpipe/blob/main/TESTING.md)++ each tester who provides quality feedback will receive a $20 bounty through algora.+ `;++ // Create a new issue for testing discussion+ const issue = await github.rest.issues.create({+ owner: context.repo.owner,+ repo: context.repo.repo,+ title: `🧪 Testing Discussion: openrewind v${{ env.VERSION }}`,+ body: message,+ labels: ['testing', 'discussion', 'openrewind']+ });++ console.log(`Created testing discussion issue: ${issue.data.html_url}`);\ No newline at end of filediff --git a/Cargo.toml b/Cargo.tomlindex a9af8cd9d..ff14215e4 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -8,7 +8,7 @@ members = ["screenpipe-events","screenpipe-db",]-exclude = ["screenpipe-app-tauri/src-tauri"]+exclude = ["screenpipe-app-tauri/src-tauri","openrewind/src-tauri"]resolver = "2"[workspace.package]diff --git a/openrewind/.eslintrc.json b/openrewind/.eslintrc.jsonnew file mode 100644index 000000000..bffb357a7--- /dev/null+++ b/openrewind/.eslintrc.json@@ -0,0 +1,3 @@+{+ "extends": "next/core-web-vitals"+}diff --git a/openrewind/.gitignore b/openrewind/.gitignorenew file mode 100644index 000000000..112ba60c0--- /dev/null+++ b/openrewind/.gitignore@@ -0,0 +1,49 @@+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.++# dependencies+/node_modules+/.pnp+.pnp.js+.yarn/install-state.gz++pnpm-lock.yaml++# testing+/coverage++# next.js+/.next/+/out/++# production+/build++# misc+.DS_Store+*.pem++# debug+npm-debug.log*+yarn-debug.log*+yarn-error.log*++# local env files+.env*.local++# vercel+.vercel++# typescript+*.tsbuildinfo+next-env.d.ts+++ffmpeg*+ffprobe*+*src-tauri/screenpipe*+*src-tauri/tesseract*+*src-tauri/deno*+*src-tauri/ollama*+*src-tauri/bun*+*src-tauri/ollama*+diff --git a/openrewind/.mocharc.js b/openrewind/.mocharc.jsnew file mode 100644index 000000000..27e6ea8e4--- /dev/null+++ b/openrewind/.mocharc.js@@ -0,0 +1,11 @@+module.exports = {+ spec: [+ "./e2e/terminator-e2e/**/*.spec.js"+ ],+ timeout: 150000,+ require: [+ "./e2e/terminator-e2e/mocha.global.js"+ ],+ reporter: "spec",+};+diff --git a/openrewind/README.md b/openrewind/README.mdnew file mode 100644index 000000000..f26f1ddea--- /dev/null+++ b/openrewind/README.md@@ -0,0 +1,3 @@++refer to the [official documentation](https://docs.screenpi.pe/getting-started) for more information.+diff --git a/openrewind/app/favicon.ico b/openrewind/app/favicon.iconew file mode 100644index 000000000..718d6fea4Binary files /dev/null and b/openrewind/app/favicon.ico differdiff --git a/openrewind/app/global-error.jsx b/openrewind/app/global-error.jsxnew file mode 100644index 000000000..0db000345--- /dev/null+++ b/openrewind/app/global-error.jsx@@ -0,0 +1,14 @@+"use client";++import Error from "next/error";+import { useEffect } from "react";++export default function GlobalError({ error }) {+ return (+ <html>+ <body>+ <Error />+ </body>+ </html>+ );+}diff --git a/openrewind/app/globals.css b/openrewind/app/globals.cssnew file mode 100644index 000000000..8be40d03a--- /dev/null+++ b/openrewind/app/globals.css@@ -0,0 +1,157 @@+@tailwind base;+@tailwind components;+@tailwind utilities;++@layer base {+ :root {+ --background: 0 0% 100%;+ --foreground: 240 10% 3.9%;++ --card: 0 0% 100%;+ --card-foreground: 240 10% 3.9%;++ --popover: 0 0% 100%;+ --popover-foreground: 240 10% 3.9%;++ --primary: 240 5.9% 10%;+ --primary-foreground: 0 0% 98%;++ --secondary: 240 4.8% 95.9%;+ --secondary-foreground: 240 5.9% 10%;++ --muted: 240 4.8% 95.9%;+ --muted-foreground: 240 3.8% 46.1%;++ --accent: 240 4.8% 95.9%;+ --accent-foreground: 240 5.9% 10%;++ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 0 0% 98%;++ --border: 240 5.9% 90%;+ --input: 240 5.9% 90%;+ --ring: 240 10% 3.9%;++ --radius: 0.5rem;++ --color-1: 0 100% 63%;++ --color-2: 270 100% 63%;++ --color-3: 210 100% 63%;++ --color-4: 195 100% 63%;++ --color-5: 90 100% 63%;++ --sidebar-background: 0 0% 98%;++ --sidebar-foreground: 240 5.3% 26.1%;++ --sidebar-primary: 240 5.9% 10%;++ --sidebar-primary-foreground: 0 0% 98%;++ --sidebar-accent: 240 4.8% 95.9%;++ --sidebar-accent-foreground: 240 5.9% 10%;++ --sidebar-border: 220 13% 91%;++ --sidebar-ring: 217.2 91.2% 59.8%;+ }++ .dark {+ --background: 240 10% 3.9%;+ --foreground: 0 0% 98%;++ --card: 240 10% 3.9%;+ --card-foreground: 0 0% 98%;++ --popover: 240 10% 3.9%;+ --popover-foreground: 0 0% 98%;++ --primary: 0 0% 98%;+ --primary-foreground: 240 5.9% 10%;++ --secondary: 240 3.7% 15.9%;+ --secondary-foreground: 0 0% 98%;++ --muted: 240 3.7% 15.9%;+ --muted-foreground: 240 5% 64.9%;++ --accent: 240 3.7% 15.9%;+ --accent-foreground: 0 0% 98%;++ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 0 0% 98%;++ --border: 240 3.7% 15.9%;+ --input: 240 3.7% 15.9%;+ --ring: 240 4.9% 83.9%;+ --color-1: 0 100% 63%;+ --color-2: 270 100% 63%;+ --color-3: 210 100% 63%;+ --color-4: 195 100% 63%;+ --color-5: 90 100% 63%;+ --sidebar-background: 240 5.9% 10%;+ --sidebar-foreground: 240 4.8% 95.9%;+ --sidebar-primary: 224.3 76.3% 48%;+ --sidebar-primary-foreground: 0 0% 100%;+ --sidebar-accent: 240 3.7% 15.9%;+ --sidebar-accent-foreground: 240 4.8% 95.9%;+ --sidebar-border: 240 3.7% 15.9%;+ --sidebar-ring: 217.2 91.2% 59.8%;+ }+}++@layer base {+ * {+ @apply border-border;+ scrollbar-width: thin !important;+ }+ body {+ @apply bg-background text-foreground !pointer-events-auto !overscroll-none;+ }++ *,+ a,+ button {+ /* cursor: default; */+ user-select: none;+ }+ :not(input):not(textarea),+ :not(input):not(textarea)::after,+ :not(input):not(textarea)::before {+ -webkit-user-select: none; /* Safari */+ -moz-user-select: none; /* Firefox */+ -ms-user-select: none; /* Internet Explorer/Edge */+ user-select: none;+ /* cursor: default; */+ }+}++.pf-v6-c-text-input-group__text-input {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ position: relative;+ width: 100%;+ padding-block-end: 8px !important;+ padding-block-start: 8px !important;+ padding-bottom: 8px !important;+ padding-inline-end: 16px !important;+ padding-inline-start: 38px !important;+ padding-left: 38px !important;+ padding-right: 16px !important;+ padding-top: 8px !important;+}+.pf-v6-c-text-input-group__text-input::placeholder {+ padding-left: 20px !important;+}+.pf-v6-c-text-input-group__icon {+ inset-block-start: 18.5px !important;+ inset-inline-start: 16px !important;+ line-height: 21px !important;+ position: absolute !important;+}diff --git a/openrewind/app/layout.tsx b/openrewind/app/layout.tsxnew file mode 100644index 000000000..1dab4e9c7--- /dev/null+++ b/openrewind/app/layout.tsx@@ -0,0 +1,73 @@+"use client";+import { Inter } from "next/font/google";+import "./globals.css";+import { Providers } from "./providers";+import { Toaster } from "@/components/ui/toaster";+import { useEffect } from "react";++const inter = Inter({ subsets: ["latin"] });++// Debounced localStorage writer+const createDebouncer = (wait: number) => {+ let timeout: NodeJS.Timeout;+ return (fn: Function) => {+ clearTimeout(timeout);+ timeout = setTimeout(() => fn(), wait);+ };+};++export default function RootLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ useEffect(() => {+ if (typeof window === "undefined") return;++ const logs: string[] = [];+ const MAX_LOGS = 1000;+ const originalConsole = { ...console };+ const debouncedWrite = createDebouncer(1000);++ ["log", "error", "warn", "info"].forEach((level) => {+ (console[level as keyof Console] as any) = (...args: any[]) => {+ // Call original first for performance+ (originalConsole[level as keyof Console] as Function)(...args);++ // Add to memory buffer+ logs.push(+ `[${level.toUpperCase()}] ${args+ .map((arg) => (typeof arg === "object" ? JSON.stringify(arg) : arg))+ .join(" ")}`+ );++ // Trim buffer if needed+ if (logs.length > MAX_LOGS) {+ logs.splice(0, logs.length - MAX_LOGS);+ }++ // Debounced write to localStorage+ debouncedWrite(() => {+ try {+ localStorage.setItem("console_logs", logs.join("\n"));+ } catch (e) {+ // If localStorage is full, clear half the logs+ logs.splice(0, logs.length / 2);+ localStorage.setItem("console_logs", logs.join("\n"));+ }+ });+ };+ });+ }, []);++ return (+ <html lang="en" suppressHydrationWarning>+ <Providers>+ <body className={inter.className}>+ {children}+ <Toaster />+ </body>+ </Providers>+ </html>+ );+}diff --git a/openrewind/app/not-found.tsx b/openrewind/app/not-found.tsxnew file mode 100644index 000000000..2f2946b74--- /dev/null+++ b/openrewind/app/not-found.tsx@@ -0,0 +1,8 @@+export default function NotFound() {+ return (+ <>+ <h2>Not Found</h2>+ <p>Could not find requested resource</p>+ </>+ );+}diff --git a/openrewind/app/page.tsx b/openrewind/app/page.tsxnew file mode 100644index 000000000..ff8166f5d--- /dev/null+++ b/openrewind/app/page.tsx@@ -0,0 +1,187 @@+"use client";++import { getStore, useSettings } from "@/lib/hooks/use-settings";++import React, { useEffect, useState, useRef } from "react";+import NotificationHandler from "@/components/notification-handler";+import Header from "@/components/header";+import { useToast } from "@/components/ui/use-toast";+import Onboarding from "@/components/onboarding";+import { useOnboarding } from "@/lib/hooks/use-onboarding";+import { ChangelogDialog } from "@/components/changelog-dialog";+import { BreakingChangesInstructionsDialog } from "@/components/breaking-changes-instructions-dialog";+import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";+import { useStatusDialog } from "@/lib/hooks/use-status-dialog";+import { useSettingsDialog } from "@/lib/hooks/use-settings-dialog";++import { invoke } from "@tauri-apps/api/core";+import { listen } from "@tauri-apps/api/event";+import { useProfiles } from "@/lib/hooks/use-profiles";+import { relaunch } from "@tauri-apps/plugin-process";+import { PipeApi } from "@/lib/api";+import localforage from "localforage";+import { onOpenUrl } from "@tauri-apps/plugin-deep-link";+import { LoginDialog } from "../components/login-dialog";+import { ModelDownloadTracker } from "../components/model-download-tracker";+import Timeline from "@/components/rewind/timeline";++export default function Home() {+ const { settings, updateSettings, loadUser, reloadStore } = useSettings();+ const { setActiveProfile } = useProfiles();+ const { toast } = useToast();+ const { showOnboarding, setShowOnboarding } = useOnboarding();+ const { setShowChangelogDialog } = useChangelogDialog();+ const { open: openStatusDialog } = useStatusDialog();+ const { setIsOpen: setSettingsOpen } = useSettingsDialog();+ const isProcessingRef = useRef(false);++ useEffect(() => {+ if (settings.user?.token) {+ loadUser(settings.user.token);+ }+ }, [settings.user.token]);++ useEffect(() => {+ const getAudioDevices = async () => {+ const store = await getStore();+ const devices = (await store.get("audioDevices")) as string[];+ return devices;+ };++ const setupDeepLink = async () => {+ const unsubscribeDeepLink = await onOpenUrl(async (urls) => {+ console.log("received deep link urls:", urls);+ for (const url of urls) {+ const parsedUrl = new URL(url);++ // Handle API key auth+ if (url.includes("api_key=")) {+ const apiKey = parsedUrl.searchParams.get("api_key");+ if (apiKey) {+ updateSettings({ user: { token: apiKey } });+ toast({+ title: "logged in!",+ description: "you have been logged in",+ });+ }+ }++ if (url.includes("settings")) {+ setSettingsOpen(true);+ }++ if (url.includes("changelog")) {+ setShowChangelogDialog(true);+ }++ if (url.includes("onboarding")) {+ setShowOnboarding(true);+ }++ if (url.includes("status")) {+ openStatusDialog();+ }+ }+ });+ return unsubscribeDeepLink;+ };++ let deepLinkUnsubscribe: (() => void) | undefined;++ setupDeepLink().then((unsubscribe) => {+ deepLinkUnsubscribe = unsubscribe;+ });++ const unlisten = Promise.all([+ listen("shortcut-start-recording", async () => {+ await invoke("spawn_screenpipe");++ toast({+ title: "recording started",+ description: "screen recording has been initiated",+ });+ }),++ listen("shortcut-stop-recording", async () => {+ await invoke("stop_screenpipe");++ toast({+ title: "recording stopped",+ description: "screen recording has been stopped",+ });+ }),++ listen<string>("switch-profile", async (event) => {+ const profile = event.payload;+ setActiveProfile(profile);++ toast({+ title: "profile switched",+ description: `switched to ${profile} profile, restarting screenpipe now`,+ });++ await invoke("stop_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 1000));++ await invoke("spawn_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 1000));+ relaunch();+ })+ ]);++ return () => {+ if (deepLinkUnsubscribe) {+ deepLinkUnsubscribe();+ }+ unlisten.then((unsubscribes) => {+ unsubscribes.forEach((unsubscribe) => unsubscribe());+ });+ };+ }, []);++ useEffect(() => {+ const checkScreenPermissionRestart = async () => {+ const restartPending = await localforage.getItem(+ "screenPermissionRestartPending"+ );+ if (restartPending) {+ setShowOnboarding(true);+ }+ };++ checkScreenPermissionRestart();+ }, [setShowOnboarding]);++ useEffect(() => {+ const unlisten = listen("cli-login", async (event) => {+ console.log("received cli-login event:", event);+ await reloadStore();+ });++ return () => {+ unlisten.then((unlistenFn) => unlistenFn());+ };+ }, []);++ return (+ <div className="flex flex-col items-center flex-1 mx-auto relative">+ <LoginDialog />+ <ModelDownloadTracker />+ <NotificationHandler />+ {showOnboarding ? (+ <Onboarding />+ ) : (+ <>+ <ChangelogDialog />+ {/* <BreakingChangesInstructionsDialog /> */}+ <Header />+ <div className="w-full">+ <Timeline />+ </div>+ </>+ )}+ </div>+ );+}diff --git a/openrewind/app/providers.tsx b/openrewind/app/providers.tsxnew file mode 100644index 000000000..7153c1188--- /dev/null+++ b/openrewind/app/providers.tsx@@ -0,0 +1,38 @@+// app/providers.tsx+"use client";+import posthog from "posthog-js";+import { PostHogProvider } from "posthog-js/react";+import { useEffect } from "react";+import { ChangelogDialogProvider } from "@/lib/hooks/use-changelog-dialog";+import { forwardRef } from "react";+import { store as SettingsStore, useSettings } from "@/lib/hooks/use-settings";+import { profilesStore as ProfilesStore } from "@/lib/hooks/use-profiles";++export const Providers = forwardRef<+ HTMLDivElement,+ { children: React.ReactNode }+>(({ children }, ref) => {+ useEffect(() => {+ if (typeof window !== "undefined") {+ const isDebug = process.env.TAURI_ENV_DEBUG === "true";+ if (isDebug) return;+ posthog.init("phc_Bt8GoTBPgkCpDrbaIZzJIEYt0CrJjhBiuLaBck1clce", {+ api_host: "https://eu.i.posthog.com",+ person_profiles: "identified_only",+ capture_pageview: false,+ });+ }+ }, []);++ return (+ <SettingsStore.Provider>+ <ProfilesStore.Provider>+ <ChangelogDialogProvider>+ <PostHogProvider client={posthog}>{children}</PostHogProvider>+ </ChangelogDialogProvider>+ </ProfilesStore.Provider>+ </SettingsStore.Provider>+ );+});++Providers.displayName = "Providers";diff --git a/openrewind/bun.lockb b/openrewind/bun.lockbnew file mode 100755index 000000000..05138fa35Binary files /dev/null and b/openrewind/bun.lockb differdiff --git a/openrewind/components.json b/openrewind/components.jsonnew file mode 100644index 000000000..b0af43f32--- /dev/null+++ b/openrewind/components.json@@ -0,0 +1,16 @@+{+ "$schema": "https://ui.shadcn.com/schema.json",+ "style": "default",+ "rsc": true,+ "tsx": true,+ "tailwind": {+ "config": "tailwind.config.ts",+ "css": "app/globals.css",+ "baseColor": "gray",+ "cssVariables": true+ },+ "aliases": {+ "utils": "@/lib/utils",+ "components": "@/components"+ }+}\ No newline at end of filediff --git a/openrewind/components/breaking-changes-instructions-dialog.tsx b/openrewind/components/breaking-changes-instructions-dialog.tsxnew file mode 100644index 000000000..93284a954--- /dev/null+++ b/openrewind/components/breaking-changes-instructions-dialog.tsx@@ -0,0 +1,140 @@+import React, { useEffect, useState } from "react";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Button } from "@/components/ui/button";+import { Trash2, Loader2 } from "lucide-react";+import localforage from "localforage";+import { useToast } from "@/components/ui/use-toast";++export function BreakingChangesInstructionsDialog() {+ const { toast } = useToast();+ const [open, setOpen] = useState(false);+ const [hasShownDialog, setHasShownDialog] = useState(false);+ const [hasPipes, setHasPipes] = useState(false);+ const [isDeleting, setIsDeleting] = useState(false);++ useEffect(() => {+ const init = async () => {+ const shown = await localforage.getItem("has-shown-delete-pipes-dialog");+ setHasShownDialog(!!shown);++ try {+ const response = await fetch("http://localhost:3030/pipes/list");+ const data = await response.json();+ setHasPipes(data.data.length > 0);+ } catch (error) {+ console.error("failed to check pipes:", error);+ }+ };+ init();+ }, []);++ useEffect(() => {+ if (!hasShownDialog && hasPipes) {+ setOpen(true);+ localforage.setItem("has-shown-delete-pipes-dialog", true);+ }+ }, [hasShownDialog, hasPipes]);++ const handleResetAllPipes = async () => {+ setIsDeleting(true);+ try {+ const response = await fetch(`http://localhost:3030/pipes/purge`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ }),+ });+ if(!response.ok){+ toast({+ title: "failed to purge pipes",+ description: `error: ${(await response.json()).error}...`,+ variant: "destructive"+ });+ return;+ }+ toast({+ title: "all pipes deleted",+ description: "you can now reinstall the updated pipes from the store",+ });+ localforage.setItem("has-shown-delete-pipes-dialog", true);+ setOpen(false);+ } catch (error) {+ console.error("failed to reset pipes:", error);+ toast({+ title: "error deleting pipes",+ description: `error: ${(error as Error).message}...}`,+ variant: "destructive",+ });+ } finally {+ setIsDeleting(false);+ }+ };++ if (!hasPipes) return null;++ return (+ <Dialog open={open} onOpenChange={() => {}}>+ <DialogContent+ className="sm:max-w-[525px] [&>button]:hidden"+ onPointerDownOutside={(e) => e.preventDefault()}+ >+ <DialogHeader>+ <DialogTitle className="flex gap-2 items-center">+ <Trash2 className="h-5 w-5" />+ critical update: new pipe system available+ </DialogTitle>+ <DialogDescription className="space-y-4">+ <p>+ we've completely redesigned the pipe system from the ground+ up to make it more powerful and efficient. this is a breaking+ change that requires action from you.+ </p>+ <div className="bg-muted p-4 rounded-md space-y-2">+ <p className="font-medium">required actions:</p>+ <ol className="list-decimal list-inside space-y-1">+ <li>delete all your existing pipes using the button below</li>+ <li>+ reinstall the pipes you need from the updated collection+ </li>+ </ol>+ </div>+ <p className="text-sm text-muted-foreground">+ clicking 'delete all pipes' will remove all your+ existing pipes. don't worry, you can reinstall them from the+ store afterwards.+ </p>+ <p className="text-sm text-muted-foreground">+ face any issues? DM us on{" "}+ <a+ href="https://discord.gg/dU9EBuw7Uq"+ target="_blank"+ className="text-blue-500 hover:underline"+ >+ discord+ </a>+ .+ </p>+ </DialogDescription>+ </DialogHeader>+ <div className="flex justify-end gap-2">+ <Button onClick={handleResetAllPipes} disabled={isDeleting}>+ {isDeleting ? (+ <>+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ deleting...+ </>+ ) : (+ "delete all pipes"+ )}+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ );+}diff --git a/openrewind/components/changelog-dialog.tsx b/openrewind/components/changelog-dialog.tsxnew file mode 100644index 000000000..03b1206f0--- /dev/null+++ b/openrewind/components/changelog-dialog.tsx@@ -0,0 +1,81 @@+import React, { useEffect, useState } from "react";+import { Dialog, DialogContent } from "@/components/ui/dialog";+import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";+import { MemoizedReactMarkdown } from "./markdown";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { CodeBlock } from "./ui/codeblock";++export const ChangelogDialog: React.FC = () => {+ const [changelogContent, setChangelogContent] = useState<string>("");+ const { showChangelogDialog, setShowChangelogDialog } = useChangelogDialog();++ useEffect(() => {+ const fetchChangelog = async () => {+ const response = await fetch("/CHANGELOG.md");+ const text = await response.text();+ setChangelogContent(text);+ };++ fetchChangelog();+ }, []);++ const onClose = () => setShowChangelogDialog(false);++ return (+ <Dialog open={showChangelogDialog} onOpenChange={onClose}>+ <DialogContent className="w-11/12 max-w-6xl p-6 h-[80vh] overflow-auto">+ <div className="max-w-max prose prose-medium prose-slate w-full h-full">+ <h1>Changelog</h1>+ <MemoizedReactMarkdown+ // className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p({ children }) {+ return <p className="mb-2 last:mb-0">{children}</p>;+ },+ a({ node, href, children, ...props }) {+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ {...props}+ >+ {children}+ </a>+ );+ },+ code({ node, className, children, ...props }) {+ const content = String(children).replace(/\n$/, "");+ const match = /language-(\w+)/.exec(className || "");++ if (!match) {+ return (+ <code+ className="px-1 py-0.5 rounded-sm font-mono text-sm"+ {...props}+ >+ {content}+ </code>+ );+ }++ return (+ <CodeBlock+ key={Math.random()}+ language={(match && match[1]) || ""}+ value={content}+ {...props}+ />+ );+ },+ }}+ >+ {changelogContent}+ </MemoizedReactMarkdown>+ </div>+ </DialogContent>+ </Dialog>+ );+};diff --git a/openrewind/components/cli-command-dialog.tsx b/openrewind/components/cli-command-dialog.tsxnew file mode 100644index 000000000..56969d631--- /dev/null+++ b/openrewind/components/cli-command-dialog.tsx@@ -0,0 +1,225 @@+import React, { useState, useEffect } from "react";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "./ui/dialog";+import { CodeBlock } from "./ui/codeblock";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { useToast } from "@/components/ui/use-toast";+import { IconCode } from "./ui/icons";+import { Settings } from "@/lib/hooks/use-settings";+import { getCliPath } from "@/lib/utils";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "./ui/tabs";+import { platform } from "@tauri-apps/plugin-os";++interface CliCommandDialogProps {+ settings: Settings;+}++export function CliCommandDialog({ settings }: CliCommandDialogProps) {+ const [isOpen, setIsOpen] = useState(false);+ const { copyToClipboard } = useCopyToClipboard({ timeout: 2000 });+ const { toast } = useToast();+ const [isWindows, setIsWindows] = useState(false);++ useEffect(() => {+ const p = platform();+ setIsWindows(p === "windows");+ }, []);++ const generateCliCommand = (+ shell: "cmd" | "powershell" | "bash" = "bash"+ ) => {+ const cliPath = getCliPath();+ let envVars = [];+ let args = [];++ if (settings.useChineseMirror) {+ envVars.push(+ shell === "cmd"+ ? "SET HF_ENDPOINT=https://hf-mirror.com"+ : shell === "powershell"+ ? '$env:HF_ENDPOINT="https://hf-mirror.com"'+ : 'HF_ENDPOINT="https://hf-mirror.com"'+ );+ }++ // Add AI proxy env vars for screenpipe cloud+ if (+ settings.user.cloud_subscribed &&+ settings.realtimeAudioTranscriptionEngine === "screenpipe-cloud" &&+ settings.userId+ ) {+ if (shell === "cmd") {+ envVars.push(+ `SET DEEPGRAM_API_URL=https://ai-proxy.i-f9f.workers.dev/v1/listen`+ );+ envVars.push(+ `SET DEEPGRAM_WEBSOCKET_URL=wss://ai-proxy.i-f9f.workers.dev`+ );+ envVars.push(`SET CUSTOM_DEEPGRAM_API_TOKEN=${settings.userId}`);+ } else if (shell === "powershell") {+ envVars.push(+ `$env:DEEPGRAM_API_URL="https://ai-proxy.i-f9f.workers.dev/v1/listen"`+ );+ envVars.push(+ `$env:DEEPGRAM_WEBSOCKET_URL="wss://ai-proxy.i-f9f.workers.dev"`+ );+ envVars.push(`$env:CUSTOM_DEEPGRAM_API_TOKEN="${settings.userId}"`);+ } else {+ envVars.push(+ `DEEPGRAM_API_URL="https://ai-proxy.i-f9f.workers.dev/v1/listen"`+ );+ envVars.push(+ `DEEPGRAM_WEBSOCKET_URL="wss://ai-proxy.i-f9f.workers.dev"`+ );+ envVars.push(`CUSTOM_DEEPGRAM_API_TOKEN="${settings.userId}"`);+ }++ const quoteChar = shell === "cmd" ? "" : '"';+ args.push(+ `--deepgram-api-key ${quoteChar}${settings.userId}${quoteChar}`+ );+ }++ if (settings.audioTranscriptionEngine !== "default") {+ // TBD hard coded for now+ // if someone wants to use deepgram / screenpipe cloud in CLI mode they'll ask us+ args.push(`--audio-transcription-engine whisper-large-v3-turbo`);+ }+ if (settings.ocrEngine !== "default") {+ args.push(`--ocr-engine ${settings.ocrEngine}`);+ }+ if (+ settings.monitorIds.length > 0 &&+ settings.monitorIds[0] !== "default"+ ) {+ settings.monitorIds.forEach((id) => args.push(`--monitor-id ${id}`));+ }+ if (settings.languages.length > 0) {+ settings.languages.forEach((id) => args.push(`--language ${id}`));+ }+ if (+ settings.audioDevices.length > 0 &&+ settings.audioDevices[0] !== "default"+ ) {+ settings.audioDevices.forEach((device) =>+ args.push(`--audio-device "${device}"`)+ );+ }+ if (settings.usePiiRemoval) {+ args.push("--use-pii-removal");+ }++ if (settings.disableAudio) {+ args.push("--disable-audio");+ }+ settings.ignoredWindows.forEach((window) =>+ args.push(`--ignored-windows "${window}"`)+ );+ settings.includedWindows.forEach((window) =>+ args.push(`--included-windows "${window}"`)+ );+ if (settings.deepgramApiKey && settings.deepgramApiKey !== "default") {+ args.push(`--deepgram-api-key "${settings.deepgramApiKey}"`);+ }+ if (settings.fps !== 0.2) {+ args.push(`--fps ${settings.fps}`);+ }+ if (settings.vadSensitivity !== "high") {+ args.push(`--vad-sensitivity ${settings.vadSensitivity}`);+ }++ if (!settings.analyticsEnabled) {+ args.push("--disable-telemetry");+ }+ if (settings.audioChunkDuration !== 30) {+ args.push(`--audio-chunk-duration ${settings.audioChunkDuration}`);+ }++ if (settings.languages.length > 0) {+ settings.languages.forEach((id) => args.push(`--language ${id}`));+ }++ if (settings.enableFrameCache) {+ args.push("--enable-frame-cache");+ }++ if (settings.enableUiMonitoring) {+ args.push("--enable-ui-monitoring");+ }++ if (settings.enableRealtimeAudioTranscription) {+ args.push("--enable-realtime-audio-transcription");+ }++ const envVarsStr =+ envVars.length > 0+ ? `${envVars.join(+ shell === "cmd" ? " && " : shell === "powershell" ? "; " : " "+ )} `+ : "";+ const cmdPrefix = shell === "cmd" ? "&& " : "";+ return `${envVarsStr}${cmdPrefix}${cliPath} ${args.join(" ")}`;+ };++ const handleCopyCliCommand = () => {+ const command = generateCliCommand();+ copyToClipboard(command);+ toast({+ title: "CLI command copied",+ description: "The CLI command has been copied to your clipboard.",+ });+ };++ return (+ <>+ <Button variant="outline" size="icon" onClick={() => setIsOpen(true)}>+ <IconCode className="h-4 w-4" />+ </Button>+ <Dialog open={isOpen} onOpenChange={setIsOpen}>+ <DialogContent className="max-w-2xl">+ <DialogHeader>+ <DialogTitle>CLI command</DialogTitle>+ <DialogDescription>+ you can use this CLI command to start screenpipe with the current+ settings.+ </DialogDescription>+ </DialogHeader>+ <div className="overflow-x-auto">+ {isWindows ? (+ <Tabs defaultValue="cmd">+ <TabsList>+ <TabsTrigger value="cmd">cmd</TabsTrigger>+ <TabsTrigger value="powershell">powershell</TabsTrigger>+ </TabsList>+ <TabsContent value="cmd">+ <CodeBlock+ language="bash"+ value={generateCliCommand("cmd")}+ />+ </TabsContent>+ <TabsContent value="powershell">+ <CodeBlock+ language="powershell"+ value={generateCliCommand("powershell")}+ />+ </TabsContent>+ </Tabs>+ ) : (+ <CodeBlock language="bash" value={generateCliCommand("bash")} />+ )}+ </div>+ <DialogFooter>+ <Button onClick={handleCopyCliCommand}>Copy to Clipboard</Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ </>+ );+}diff --git a/openrewind/components/date-time-picker.tsx b/openrewind/components/date-time-picker.tsxnew file mode 100644index 000000000..1ef5766a7--- /dev/null+++ b/openrewind/components/date-time-picker.tsx@@ -0,0 +1,80 @@+import * as React from "react";+import { format } from "date-fns";+import { Calendar as CalendarIcon } from "lucide-react";++import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { Input } from "./ui/input";++export function DateTimePicker({+ date,+ setDate,+ className,+}: {+ date: Date;+ setDate: (date: Date) => void;+ className?: string;+}) {+ const [selectedDateTime, setSelectedDateTime] = React.useState<Date>(date);++ React.useEffect(() => {+ setSelectedDateTime(date);+ }, [date]);++ const handleDateSelect = (selectedDate: Date | undefined) => {+ if (selectedDate) {+ const newDateTime = new Date(selectedDateTime);+ newDateTime.setFullYear(selectedDate.getFullYear());+ newDateTime.setMonth(selectedDate.getMonth());+ newDateTime.setDate(selectedDate.getDate());+ setSelectedDateTime(newDateTime);+ setDate(newDateTime);+ }+ };++ const handleTimeChange = (event: React.ChangeEvent<HTMLInputElement>) => {+ const [hours, minutes] = event.target.value.split(":").map(Number);+ if (!isNaN(hours) && !isNaN(minutes)) {+ const newDateTime = new Date(selectedDateTime);+ newDateTime.setHours(hours);+ newDateTime.setMinutes(minutes);+ setSelectedDateTime(newDateTime);+ setDate(newDateTime);+ }+ };++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ variant={"outline"}+ className={cn("w-full justify-start text-left font-normal")}+ >+ <CalendarIcon className="mr-2 h-4 w-4 text-gray-400" size={18} />+ {format(date, "PPP HH:mm").toLowerCase()}+ </Button>+ </PopoverTrigger>+ <PopoverContent className={cn("w-auto p-0", className)}>+ <Calendar+ mode="single"+ selected={selectedDateTime}+ onSelect={handleDateSelect}+ initialFocus+ />+ <div className="p-3 border-t border-border">+ <Input+ type="time"+ onChange={handleTimeChange}+ value={format(selectedDateTime, "HH:mm")}+ />+ </div>+ </PopoverContent>+ </Popover>+ );+}diff --git a/openrewind/components/dev-mode-settings.tsx b/openrewind/components/dev-mode-settings.tsxnew file mode 100644index 000000000..912376b73--- /dev/null+++ b/openrewind/components/dev-mode-settings.tsx@@ -0,0 +1,277 @@+"use client";+import React, { useState } from "react";++import { CodeBlock } from "@/components/ui/codeblock";+import { platform } from "@tauri-apps/plugin-os";+import { Label } from "./ui/label";+import { Switch } from "./ui/switch";+import { useSettings } from "@/lib/hooks/use-settings";+import { invoke } from "@tauri-apps/api/core";+import { useToast } from "./ui/use-toast";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { Button } from "./ui/button";+import { Separator } from "./ui/separator";+import { Card, CardContent, CardFooter } from "./ui/card";++import { CliCommandDialog } from "./cli-command-dialog";++const getDebuggingCommands = (os: string | null, dataDir: string) => {+ let cliInstructions = "";++ if (os === "windows") {+ cliInstructions =+ "# 1. Open Command Prompt as admin (search for 'cmd' in the Start menu, right click, 'Run as admin')\n# 2. Navigate to: %LOCALAPPDATA%\\screenpipe\\\n# Type: cd %LOCALAPPDATA%\\screenpipe\n";+ } else if (os === "macos") {+ cliInstructions =+ "# 1. Open Terminal\n# 2. Navigate to: /Applications/screenpipe.app/Contents/MacOS/\n# Type: cd /Applications/screenpipe.app/Contents/MacOS/\n";+ } else if (os === "linux") {+ cliInstructions =+ "# 1. Open Terminal\n# 2. Navigate to: /usr/local/bin/\n# Type: cd /usr/local/bin/\n";+ } else {+ cliInstructions =+ "# OS not recognized. Please check the documentation for your specific operating system.\n";+ }++ const baseInstructions = `# First, view the Screenpipe CLI arguments:+ ${cliInstructions}+ # 3. Run: screenpipe -h+ # 4. Choose your preferred setup and start Screenpipe:+ # (Replace [YOUR_ARGS] with your chosen arguments)+ # Example: screenpipe --fps 1 `;++ const logPath =+ os === "windows"+ ? `${dataDir}\\screenpipe.${new Date().toISOString().split("T")[0]}.log`+ : `${dataDir}/screenpipe.${new Date().toISOString().split("T")[0]}.log`;++ const dbPath =+ os === "windows" ? `${dataDir}\\db.sqlite` : `${dataDir}/db.sqlite`;++ const baseCommand =+ baseInstructions ++ dataDir ++ (os === "windows"+ ? `\n\n# We highly recommend adding --ocr-engine windows-native to your command.\n# This will use a very experimental but powerful engine to extract text from your screen instead of the default one.\n# Example: screenpipe --data-dir ${dataDir} --ocr-engine windows-native\n`+ : "") ++ "\n\n# 5. If you've already started Screenpipe, try these debugging commands:\n";++ if (os === "windows") {+ return (+ baseCommand ++ `# Stream the log:+ type "${logPath}"++ # Scroll the logs:+ more "${logPath}"++ # View last 10 frames:+ sqlite3 "${dbPath}" "SELECT * FROM frames ORDER BY timestamp DESC LIMIT 10;"++ # View last 10 audio transcriptions:+ sqlite3 "${dbPath}" "SELECT * FROM audio_transcriptions ORDER BY timestamp DESC LIMIT 10;"`+ );+ } else if (os === "macos" || os === "linux") {+ return (+ baseCommand ++ `# Stream the log:+ tail -f "${logPath}"++ # Scroll the logs:+ less "${logPath}"++ # View last 10 frames:+ sqlite3 "${dbPath}" "SELECT * FROM frames ORDER BY timestamp DESC LIMIT 10;"++ # View last 10 audio transcriptions:+ sqlite3 "${dbPath}" "SELECT * FROM audio_transcriptions ORDER BY timestamp DESC LIMIT 10;"`+ );+ } else {+ return "OS not recognized. \n\nPlease check the documentation for your specific operating system.";+ }+};++export const DevModeSettings = ({ localDataDir }: { localDataDir: string }) => {+ const { settings, updateSettings } = useSettings();+ const handleDevModeToggle = async (checked: boolean) => {+ try {+ updateSettings({ devMode: checked });+ } catch (error) {+ console.error("failed to update dev mode:", error);+ toast({+ title: "error",+ description: "failed to save dev mode setting",+ variant: "destructive",+ });+ }+ };++ const [isLoading, setIsLoading] = useState(false);+ const { toast } = useToast();++ const handleStartScreenpipe = async () => {+ setIsLoading(true);+ const toastId = toast({+ title: "starting screenpipe",+ description: "please wait...",+ duration: Infinity,+ });+ try {+ await invoke("spawn_screenpipe");+ await new Promise((resolve) => setTimeout(resolve, 2000));+ toastId.update({+ id: toastId.id,+ title: "screenpipe started",+ description: "screenpipe is now running.",+ duration: 3000,+ });+ } catch (error) {+ console.error("failed to start screenpipe:", error);+ toastId.update({+ id: toastId.id,+ title: "error",+ description: "failed to start screenpipe.",+ variant: "destructive",+ duration: 3000,+ });+ } finally {+ toastId.dismiss();+ setIsLoading(false);+ }+ };++ const handleStopScreenpipe = async () => {+ setIsLoading(true);+ const toastId = toast({+ title: "stopping screenpipe",+ description: "please wait...",+ duration: Infinity,+ });+ try {+ await invoke("stop_screenpipe");+ await new Promise((resolve) => setTimeout(resolve, 2000));+ toastId.update({+ id: toastId.id,+ title: "screenpipe stopped",+ description: "screenpipe is now stopped.",+ duration: 3000,+ });+ } catch (error) {+ console.error("failed to stop screenpipe:", error);+ toastId.update({+ id: toastId.id,+ title: "error",+ description: "failed to stop screenpipe.",+ variant: "destructive",+ duration: 3000,+ });+ } finally {+ toastId.dismiss();+ setIsLoading(false);+ }+ };++ return (+ <>+ <div className="w-full my-4 flex justify-center">+ <div className="flex-col justify-around space-y-4 w-[40vw]">+ <Card className="p-8 relative">+ <CardContent>+ <div className="flex flex-col ">+ <div className="flex items-center justify-center">+ <div className="flex items-center justify-center ">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <div className="flex items-center space-x-2">+ <Label htmlFor="dev-mode">enable dev mode</Label>+ <Switch+ id="dev-mode"+ checked={settings.devMode}+ onCheckedChange={handleDevModeToggle}+ />+ </div>+ </TooltipTrigger>+ <TooltipContent>+ <p>+ on = use CLI for more control+ <br />+ in dev mode, backend won't+ <br />+ auto start when starting the app+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ <div className="absolute top-2 right-2">+ <CliCommandDialog settings={settings} />+ </div>+ </div>+ </div>+ </CardContent>+ </Card>++ <div className="relative">+ <Card className="p-8">+ <CardContent>+ <div className="flex items-center space-x-2">+ <div className="flex flex-col items-center w-full">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="outline"+ onClick={handleStopScreenpipe}+ disabled={isLoading}+ className="text-xs w-full"+ >+ stop+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>stop screenpipe backend</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ <div className="flex flex-col items-center w-full">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="outline"+ onClick={handleStartScreenpipe}+ disabled={isLoading}+ className="text-xs w-full"+ >+ start+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>start screenpipe recording</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </div>+ </CardContent>+ <CardFooter className="flex flex-col items-center">+ <p className="text-sm text-muted-foreground">+ manually start or stop screenpipe recording+ </p>+ <p className="text-xs text-muted-foreground">+ (auto started when dev mode is off)+ </p>+ </CardFooter>+ </Card>+ </div>+ </div>+ </div>+ </>+ );+};diff --git a/openrewind/components/empty-screen.tsx b/openrewind/components/empty-screen.tsxnew file mode 100644index 000000000..6f76a5376--- /dev/null+++ b/openrewind/components/empty-screen.tsx@@ -0,0 +1,39 @@+import React from "react";+import { Card, CardContent } from "@/components/ui/card";++interface EmptyScreenProps {+ onSuggestionClick: (suggestion: string) => void;+}++const suggestions = [+ "Summarize last 15 mins audio conversation with action items",+ "Write instructions to reproduce my engineering work from last 15 mins",+ "Look at my data from last 15 mins and tell me how i can become a better programmer",+ "Create a table of everything I did in the last 15 mins",+ "Create a bullet list of everything I did in the last 15 mins with timestamps and path to the video",+ "Show me a video of what i was doing at 8.11 am (take file_path and put it in an inline code block)",+];++export function EmptyScreen({ onSuggestionClick }: EmptyScreenProps) {+ return (+ <div className="flex flex-col items-center justify-center h-full space-y-4">+ <h3 className="text-lg font-semibold">Get started with Screenpipe</h3>+ <p className="text-sm text-gray-500">+ Click on a suggestion or type your own query+ </p>+ <div className="grid grid-cols-1 md:grid-cols-2 gap-4 w-full max-w-2xl">+ {suggestions.map((suggestion, index) => (+ <Card+ key={index}+ className="cursor-pointer hover:bg-gray-100 transition-colors"+ onClick={() => onSuggestionClick(suggestion)}+ >+ <CardContent className="p-4">+ <p className="text-sm">{suggestion}</p>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ );+}diff --git a/openrewind/components/feature-request-link.tsx b/openrewind/components/feature-request-link.tsxnew file mode 100644index 000000000..d30887d1c--- /dev/null+++ b/openrewind/components/feature-request-link.tsx@@ -0,0 +1,28 @@+import { PrettyLink } from "./pretty-link";++export const FeatureRequestLink: React.FC<{ className?: string }> = ({+ className,+}) => (+ <PrettyLink+ className={className}+ variant="outline"+ href="mailto:[email protected]?subject=Screenpipe%20Pipe%20Store%20Feature&body=yo%20louis%2C%0A%0Ai'd%20like%20to%20be%20featured%20in%20the%20Pipe%20Store.%20I've%20got%20an%20awesome%20product%20that%20use%20screenpipe%20and%20would%20get%20some%20more%20users%20by%20being%20listed%20here.%0A%0A%3Cmy%20product%20does%20x%2C%20y%2C%20z%3E%0A%3Cthis%20is%20my%20twitter%20tag%20or%20linkedin%3E%20-%3C%20will%20interact%20with%20your%20post%20for%20maximum%20cross%20marketing%0A%0Alet's%20chat%20about%20how%20we%20can%20collaborate%0A%0Alooking%20forward%20to%20connecting!%0A%0A%3Cps%20book%20call%20here%20https%3A%2F%2Fcal.com%2Flouis030195%2Fscreenpipe%3E"+ >+ <span className="mr-2">want to be featured here? reach out</span>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ >+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />+ <polyline points="15 3 21 3 21 9" />+ <line x1="10" y1="14" x2="21" y2="3" />+ </svg>+ </PrettyLink>+);diff --git a/openrewind/components/header.tsx b/openrewind/components/header.tsxnew file mode 100644index 000000000..5b73903de--- /dev/null+++ b/openrewind/components/header.tsx@@ -0,0 +1,223 @@+"use client";+import { Button } from "@/components/ui/button";+import { Settings } from "@/components/settings";+import HealthStatus from "@/components/screenpipe-status";++import React from "react";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuTrigger,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuGroup,+} from "@/components/ui/dropdown-menu";+import {+ MessageSquare,+ Heart,+ Bell,+ Play,+ Folder,+ Book,+ User,+ Settings2,+ Upload,+ Mail,+} from "lucide-react";+import { open } from "@tauri-apps/plugin-shell";+import {+ InboxMessageAction,+ InboxMessages,+ Message,+} from "@/components/inbox-messages";+import { useState, useEffect } from "react";+import { useOnboarding } from "@/lib/hooks/use-onboarding";+import { listen } from "@tauri-apps/api/event";+import localforage from "localforage";+import { useChangelogDialog } from "@/lib/hooks/use-changelog-dialog";+import { useSettingsDialog } from "@/lib/hooks/use-settings-dialog";+import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";+import { ShareLogsButton } from "./share-logs-button";++export default function Header() {+ const [showInbox, setShowInbox] = useState(false);+ const [messages, setMessages] = useState<Message[]>([]);++ useEffect(() => {+ const loadMessages = async () => {+ const savedMessages =+ await localforage.getItem<Message[]>("inboxMessages");+ if (savedMessages) {+ setMessages(savedMessages);+ }+ };++ loadMessages();++ const unlisten = listen<{+ title: string;+ body: string;+ actions?: InboxMessageAction[];+ }>("inbox-message-received", async (event) => {+ console.log("inbox-message-received", event);+ const newMessage: Message = {+ id: Date.now().toString(),+ title: event.payload.title,+ body: event.payload.body,+ date: new Date().toISOString(),+ read: false,+ actions: event.payload.actions,+ };+ setMessages((prevMessages) => {+ const updatedMessages = [newMessage, ...prevMessages];+ localforage.setItem("inboxMessages", updatedMessages);+ return updatedMessages;+ });+ });++ return () => {+ unlisten.then((unlistenFn) => unlistenFn());+ };+ }, []);++ const handleMessageRead = async (id: string) => {+ setMessages((prevMessages) => {+ const updatedMessages = prevMessages.map((msg) =>+ msg.id === id ? { ...msg, read: true } : msg+ );+ localforage.setItem("inboxMessages", updatedMessages);+ return updatedMessages;+ });+ };++ const handleMessageDelete = async (id: string) => {+ setMessages((prevMessages) => {+ const updatedMessages = prevMessages.filter((msg) => msg.id !== id);+ localforage.setItem("inboxMessages", updatedMessages);+ return updatedMessages;+ });+ };++ const handleClearAll = async () => {+ setMessages([]);+ await localforage.setItem("inboxMessages", []);+ };++ const { setShowOnboarding } = useOnboarding();+ const { setShowChangelogDialog } = useChangelogDialog();+ const { setIsOpen: setSettingsOpen } = useSettingsDialog();+ const [isFeedbackOpen, setIsFeedbackOpen] = useState(false);++ return (+ <div>+ <div className="relative z-[-1] flex flex-col items-center">+ <div className="relative flex flex-col items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px] gap-4">+ <div className="w-[180px] h-[50px]" />+ </div>+ </div>+ <div className="flex space-x-4 absolute top-4 right-4">+ <Popover open={isFeedbackOpen} onOpenChange={setIsFeedbackOpen}>+ <PopoverTrigger asChild>+ <Button variant="outline">+ <Mail className="h-3.5 w-3.5 mr-2" />+ feedback+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-100 rounded-2xl" >+ <ShareLogsButton showShareLink={false} onComplete={() => setIsFeedbackOpen(false)} />+ </PopoverContent>+ </Popover>+ <HealthStatus className="mt-3 cursor-pointer" />+ <Settings />++ {/* <Button+ variant="ghost"+ size="icon"+ onClick={() => setShowInbox(!showInbox)}+ className="cursor-pointer h-8 w-8 p-0"+ >+ <Bell className="h-4 w-4" />+ <span className="sr-only">notifications</span>+ </Button> */}+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="ghost"+ size="icon"+ className="cursor-pointer h-8 w-8 p-0"+ >+ <User className="h-4 w-4" />+ <span className="sr-only">user menu</span>+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent className="mr-4" align="end">+ <DropdownMenuLabel>account</DropdownMenuLabel>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ <DropdownMenuItem+ onSelect={(e) => {+ e.preventDefault();+ setSettingsOpen(true);+ }}+ className="cursor-pointer p-1.5"+ >+ <Settings2 className="mr-2 h-4 w-4" />+ <span>settings</span>+ </DropdownMenuItem>+ </DropdownMenuGroup>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() => open("https://docs.screenpi.pe")}+ >+ <Book className="mr-2 h-4 w-4" />+ <span>check docs</span>+ </DropdownMenuItem>+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() =>+ open(+ "https://twitter.com/intent/tweet?text=here's%20how%20i%20use%20@screen_pipe%20...%20%5Bscreenshot%5D%20an%20awesome%20tool%20for%20..."+ )+ }+ >+ <Heart className="mr-2 h-4 w-4" />+ <span>support us</span>+ </DropdownMenuItem>+ </DropdownMenuGroup>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() => setShowOnboarding(true)}+ >+ <Play className="mr-2 h-4 w-4" />+ <span>show onboarding</span>+ </DropdownMenuItem>+ <DropdownMenuItem+ className="cursor-pointer"+ onClick={() => setShowChangelogDialog(true)}+ >+ <Folder className="mr-2 h-4 w-4" />+ <span>show changelog</span>+ </DropdownMenuItem>+ </DropdownMenuGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ {showInbox && (+ <div className="absolute right-4 top-16 z-50 bg-white shadow-lg rounded-lg">+ <InboxMessages+ messages={messages}+ onMessageRead={handleMessageRead}+ onMessageDelete={handleMessageDelete}+ onClearAll={handleClearAll}+ onClose={() => setShowInbox(false)}+ />+ </div>+ )}+ </div>+ );+}diff --git a/openrewind/components/inbox-messages.tsx b/openrewind/components/inbox-messages.tsxnew file mode 100644index 000000000..5e316a706--- /dev/null+++ b/openrewind/components/inbox-messages.tsx@@ -0,0 +1,426 @@+import React, {+ useState,+ useRef,+ useEffect,+ useCallback,+ lazy,+ Suspense,+} from "react";+import { ScrollArea } from "@/components/ui/scroll-area";+import { Button } from "@/components/ui/button";+import { useVirtualizer } from "@tanstack/react-virtual";+import {+ X,+ ChevronDown,+ ChevronUp,+ Bot,+ Maximize2,+ CheckSquare,+} from "lucide-react";+import {+ Card,+ CardContent,+ CardFooter,+ CardHeader,+} from "@/components/ui/card";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogClose,+} from "@/components/ui/dialog";+import { MemoizedReactMarkdown } from "./markdown";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { format } from "date-fns";+import posthog from "posthog-js";++export interface InboxMessageAction {+ label: string;+ action: string;+ port: number;+}++export interface Message {+ id: string;+ title: string;+ body: string;+ date: string;+ read: boolean;+ actions?: InboxMessageAction[];+}++interface InboxMessagesProps {+ messages: Message[];+ onMessageRead: (id: string) => void;+ onMessageDelete: (id: string) => void;+ onClearAll: () => void;+ onClose: () => void;+}++const MessageCard = React.memo(+ ({+ message,+ onDelete,+ onExpand,+ expandedMessages,+ toggleMessageExpansion,+ handleAction,+ formatDate,+ }: any) => (+ <Card+ className={`mb-4 w-full ${+ message.read ? "bg-secondary/50" : "bg-background"+ }`}+ >+ <CardHeader className="flex flex-row items-center justify-between py-2">+ <div className="flex items-center space-x-2 flex-1 mr-2 max-w-[70%]">+ <Bot className="h-4 w-4 flex-shrink-0 text-muted-foreground" />+ <h3 className="text-sm font-semibold truncate" title={message.title}>+ {message.title}+ </h3>+ </div>+ <span className="text-xs text-muted-foreground whitespace-nowrap">+ {formatDate(message.date)}+ </span>+ </CardHeader>+ <CardContent className="py-2">+ <div className="w-full overflow-hidden">+ <Suspense fallback={<div>loading...</div>}>+ <MemoizedReactMarkdown+ className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0 w-[35vw] text-sm"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p: ({ children }) => (+ <p className="mb-2 last:mb-0">{children}</p>+ ),+ a: ({ href, children, ...props }) => {+ const isExternal =+ href?.startsWith("http") || href?.startsWith("https");+ return (+ <a+ href={href}+ target={isExternal ? "_blank" : undefined}+ rel={isExternal ? "noopener noreferrer" : undefined}+ className="break-all text-blue-500 hover:underline"+ {...props}+ >+ {children}+ </a>+ );+ },+ }}+ >+ {expandedMessages.has(message.id)+ ? message.body || ""+ : message.body?.length > 150+ ? `${message.body.slice(0, 150)}...`+ : message.body || ""}+ </MemoizedReactMarkdown>+ </Suspense>+ </div>+ {message.body && message.body.length > 150 && (+ <Button+ variant="ghost"+ size="sm"+ onClick={() => toggleMessageExpansion(message.id)}+ className="text-xs mt-2"+ >+ {expandedMessages.has(message.id) ? (+ <>+ <ChevronUp className="mr-1 h-4 w-4" />+ show less+ </>+ ) : (+ <>+ <ChevronDown className="mr-1 h-4 w-4" />+ show more+ </>+ )}+ </Button>+ )}+ </CardContent>+ <CardFooter className="flex justify-end space-x-2 py-2">+ {message.actions?.map((action: InboxMessageAction) => (+ <Button+ key={`${message.id}-${action.action}`}+ variant="outline"+ size="sm"+ onClick={() => handleAction(action.action, action.port)}+ className="text-xs"+ >+ {action.label}+ </Button>+ ))}+ <Button+ variant="ghost"+ size="sm"+ onClick={() => onDelete(message.id)}+ className="text-xs"+ >+ <X className="mr-1 h-4 w-4" />+ dismiss+ </Button>+ <Button+ variant="ghost"+ size="sm"+ onClick={() => onExpand(message)}+ className="text-xs"+ >+ <Maximize2 className="mr-1 h-4 w-4" />+ expand+ </Button>+ </CardFooter>+ </Card>+ )+);++MessageCard.displayName = "MessageCard";++export function InboxMessages({+ messages,+ onMessageRead,+ onMessageDelete,+ onClearAll,+ onClose,+}: InboxMessagesProps) {+ const [expandedMessages, setExpandedMessages] = useState<Set<string>>(+ new Set()+ );+ const [dialogMessage, setDialogMessage] = useState<Message | null>(null);+ const [dialogOpen, setDialogOpen] = useState(false);+ const inboxRef = useRef<HTMLDivElement>(null);+ const parentRef = useRef<HTMLDivElement>(null);++ const unreadMessages = messages.filter((msg) => !msg.read);++ const virtualizer = useVirtualizer({+ count: unreadMessages.length,+ getScrollElement: () => parentRef.current,+ estimateSize: () => 200,+ overscan: 5,+ });++ const handleMarkAllAsRead = useCallback(() => {+ messages.forEach((msg) => {+ if (!msg.read) {+ onMessageRead(msg.id);+ }+ });+ }, [messages, onMessageRead]);++ const toggleMessageExpansion = useCallback((id: string) => {+ setExpandedMessages((prev) => {+ const newSet = new Set(prev);+ if (newSet.has(id)) {+ newSet.delete(id);+ } else {+ newSet.add(id);+ }+ return newSet;+ });+ }, []);++ const formatDate = useCallback((dateString: string) => {+ const date = new Date(dateString);+ return format(date, "MMM d, yyyy 'at' h:mm a");+ }, []);++ const openDialog = useCallback(+ (message: Message) => {+ setDialogMessage(message);+ setDialogOpen(true);+ if (!message.read) {+ onMessageRead(message.id);+ }+ },+ [onMessageRead]+ );++ const closeDialog = useCallback(() => {+ setDialogOpen(false);+ }, []);++ const handleDeleteAndClose = useCallback(() => {+ if (dialogMessage) {+ onMessageDelete(dialogMessage.id);+ closeDialog();+ }+ }, [dialogMessage, onMessageDelete, closeDialog]);++ const handleAction = useCallback(async (actionId: string, port: number) => {+ try {+ const response = await fetch(`http://localhost:${port}/action`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ action: actionId }),+ });++ if (!response.ok) {+ throw new Error(`HTTP error! status: ${response.status}`);+ }+ } catch (error) {+ console.error("failed to send action callback:", error);+ }+ }, []);++ useEffect(() => {+ posthog.capture("inbox opened");++ function handleClickOutside(event: MouseEvent) {+ if (+ inboxRef.current &&+ !inboxRef.current.contains(event.target as Node)+ ) {+ if (!dialogOpen) {+ onClose();+ }+ }+ }++ document.addEventListener("mousedown", handleClickOutside);+ return () => {+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, [dialogOpen, onClose]);++ return (+ <div ref={inboxRef}>+ <ScrollArea className="w-full max-w-[46vw] overflow-y-auto max-h-[80vh]">+ <Card className="w-full">+ <CardHeader className="flex flex-row items-center justify-between">+ <h2 className="text-lg font-semibold">inbox messages</h2>+ {unreadMessages.length > 0 && (+ <div className="flex space-x-2">+ <Button+ variant="outline"+ size="sm"+ onClick={handleMarkAllAsRead}+ className="text-xs"+ >+ <CheckSquare className="mr-1 h-4 w-4" />+ mark all as read+ </Button>+ <Button+ variant="outline"+ size="sm"+ onClick={onClearAll}+ className="text-xs"+ >+ <X className="mr-1 h-4 w-4" />+ clear all+ </Button>+ </div>+ )}+ </CardHeader>+ <CardContent className="min-h-[200px] w-[45vw]" ref={parentRef}>+ {unreadMessages.length === 0 ? (+ <div className="flex h-full w-full items-center justify-center text-sm text-gray-500">+ no new messages+ </div>+ ) : (+ <div+ style={{+ height: `${virtualizer.getTotalSize()}px`,+ width: "100%",+ position: "relative",+ }}+ >+ {virtualizer.getVirtualItems().map((virtualRow) => {+ const message = unreadMessages[virtualRow.index];+ return (+ <div+ key={message.id}+ style={{+ position: "absolute",+ top: 0,+ left: 0,+ width: "100%",+ height: `${virtualRow.size}px`,+ transform: `translateY(${virtualRow.start}px)`,+ }}+ >+ <MessageCard+ message={message}+ onDelete={onMessageDelete}+ onExpand={openDialog}+ expandedMessages={expandedMessages}+ toggleMessageExpansion={toggleMessageExpansion}+ handleAction={handleAction}+ formatDate={formatDate}+ />+ </div>+ );+ })}+ </div>+ )}+ </CardContent>+ </Card>+ <Dialog+ open={dialogOpen}+ onOpenChange={(open) => {+ if (!open) {+ closeDialog();+ }+ }}+ >+ <DialogContent+ className="max-w-3xl max-h-[80vh] overflow-y-auto"+ onPointerDownOutside={(e) => e.preventDefault()}+ onInteractOutside={(e) => e.preventDefault()}+ >+ <DialogHeader>+ <DialogTitle>{dialogMessage?.title}</DialogTitle>+ </DialogHeader>+ <div className="mt-4">+ <Suspense fallback={<div>loading...</div>}>+ <MemoizedReactMarkdown+ className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p: ({ children }) => (+ <p className="mb-2 last:mb-0">{children}</p>+ ),+ a: ({ href, children, ...props }) => (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ className="break-all"+ {...props}+ >+ {children}+ </a>+ ),+ }}+ >+ {dialogMessage?.body || ""}+ </MemoizedReactMarkdown>+ </Suspense>+ </div>+ <div className="flex justify-end space-x-2 mt-4">+ {dialogMessage?.actions?.map((action) => (+ <Button+ key={`dialog-${dialogMessage.id}-${action.action}`}+ variant="outline"+ onClick={() => handleAction(action.action, action.port)}+ >+ {action.label}+ </Button>+ ))}+ <DialogClose asChild>+ <Button variant="outline" onClick={closeDialog}>+ close+ </Button>+ </DialogClose>+ <Button variant="default" onClick={handleDeleteAndClose}>+ dismiss+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ </ScrollArea>+ </div>+ );+}diff --git a/openrewind/components/log-file-button.tsx b/openrewind/components/log-file-button.tsxnew file mode 100644index 000000000..f41189d2a--- /dev/null+++ b/openrewind/components/log-file-button.tsx@@ -0,0 +1,281 @@+import { toast, useToast } from "./ui/use-toast";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { Button } from "./ui/button";+import { FileText, Copy, AppWindow, Loader, X, Upload } from "lucide-react";+import { readTextFile } from "@tauri-apps/plugin-fs";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { cn } from "@/lib/utils";+import { useSettings } from "@/lib/hooks/use-settings";+import {+ Dialog,+ DialogHeader,+ DialogTitle,+ DialogContent,+ DialogDescription,+} from "./ui/dialog";+import { useState, useEffect } from "react";+import { ScrollArea } from "./ui/scroll-area";+import { invoke } from "@tauri-apps/api/core";+import React from "react";+import { LogViewer, LogViewerSearch } from "@patternfly/react-log-viewer";+import { Toolbar, ToolbarContent, ToolbarItem } from "@patternfly/react-core";+import { open } from "@tauri-apps/plugin-shell";+import { getVersion } from "@tauri-apps/api/app";+import {+ version as osVersion,+ platform as osPlatform,+} from "@tauri-apps/plugin-os";+import { ShareLogsButton } from './share-logs-button'+import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";++const LogContent = ({+ content,+ filePath,+}: {+ content: string;+ filePath: string;+}) => {+ const handleOpenInDefaultApp = async () => {+ try {+ await open(filePath);+ } catch (error) {+ console.error("failed to open log file:", error);+ toast({+ title: "error",+ description: "failed to open log file",+ variant: "destructive",+ });+ }+ };++ return (+ <div className="relative">+ <LogViewer+ theme="dark"+ isTextWrapped={false}+ hasLineNumbers={true}+ data={content}+ height="58vh"+ toolbar={+ <Toolbar>+ <ToolbarContent className="p-2 relative w-full">+ <ToolbarItem>+ <LogViewerSearch+ placeholder="Search value"+ minSearchChars={3}+ />+ </ToolbarItem>+ <ToolbarItem className="p-2 absolute right-0 top-0">+ <Button+ variant="outline"+ size="sm"+ onClick={handleOpenInDefaultApp}+ >+ open in default app+ </Button>+ </ToolbarItem>+ </ToolbarContent>+ </Toolbar>+ }+ />+ </div>+ );+};+LogContent.displayName = "LogContent";++export const LogFileButton = ({+ className,+ isAppLog = false,+ size = "8",+}: {+ className?: string;+ isAppLog?: boolean;+ size?: "8" | "10" | "12";+}) => {+ const { toast } = useToast();+ const { copyToClipboard } = useCopyToClipboard({ timeout: 3000 });++ const [isOpen, setIsOpen] = useState(false);+ const [logPath, setLogPath] = useState("");+ const [logContent, setLogContent] = useState("");+ const [logFiles, setLogFiles] = useState<LogFile[]>([]);++ interface LogFile {+ name: string;+ path: string;+ modified_at: number;+ }+ const getLogFiles = async () => {+ try {+ const logFiles = await invoke("get_log_files");+ return logFiles as LogFile[];+ } catch (error) {+ console.error("failed to get log files:", error);+ return [];+ }+ };++ const loadLogContent = async (filePath: string) => {+ try {+ console.log("loadLogContent", filePath);++ const content = await readTextFile(filePath);+ setLogPath(filePath);+ setLogContent(content);+ } catch (error) {+ console.error("failed to read log file:", error);+ toast({+ title: "error",+ description: "failed to read log file",+ variant: "destructive",+ });+ }+ };++ const handleShowLog = async () => {+ const files = await getLogFiles();+ setLogFiles(files);++ // Find most recent non-app log or fall back to first file+ const appLog = files+ .filter((f) => !f.name.toLowerCase().includes("app"))+ .sort((a, b) => b.modified_at - a.modified_at)[0];++ if (files.length > 0) {+ await loadLogContent(appLog?.path || files[0].path);+ }+ setIsOpen(true);+ };++ return (+ <>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="outline"+ size="icon"+ className={cn(+ "h-8 w-8",+ size === "8" && "h-8 w-8",+ size === "10" && "h-10 w-10",+ size === "12" && "h-12 w-12"+ )}+ onClick={handleShowLog}+ >+ <FileText+ className={cn(+ "h-4 w-4",+ size === "8" && "h-4 w-4",+ size === "10" && "h-6 w-6",+ size === "12" && "h-8 w-8"+ )}+ />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>view {isAppLog ? "app " : ""}log files</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>++ <Dialog open={isOpen} onOpenChange={setIsOpen}>+ <DialogContent className="sm:max-w-[90vw] h-[80vh] overflow-hidden flex flex-col">+ <DialogHeader>+ <div className="flex flex-row justify-between items-start w-full">+ <div>+ <DialogTitle>log files</DialogTitle>+ <DialogDescription>+ <span>select a log file from the list</span>+ </DialogDescription>+ </div>+ <div className="flex mr-8">+ <Popover>+ <PopoverTrigger asChild>+ <Button>+ <Upload className="h-3.5 w-3.5 mr-2" />+ send logs+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-100 rounded-2xl">+ <ShareLogsButton />+ </PopoverContent>+ </Popover>+ </div>+ </div>+ </DialogHeader>++ {logFiles.length === 0 ? (+ <div className="flex-1 flex flex-col items-center justify-center">+ <FileText className="h-12 w-12 mb-4 text-muted-foreground opacity-50" />+ <p className="text-sm text-muted-foreground">+ no log files found yet, come back later+ </p>+ </div>+ ) : (+ <div className="grid grid-cols-[250px,1fr] gap-4 h-[calc(100%-80px)]">+ {/* Sidebar with log files list */}+ <div className="border rounded-md overflow-hidden">+ <ScrollArea className="h-full">+ <div className="p-2 space-y-1">+ {logFiles.map((file, i) => (+ <Button+ key={i}+ variant={+ logPath === file.modified_at.toString()+ ? "secondary"+ : "ghost"+ }+ className="w-full justify-start text-xs"+ onClick={() => loadLogContent(file.path)}+ >+ {file.name.includes("app") ? (+ <AppWindow className="h-3 w-3 mr-2" />+ ) : (+ <FileText className="h-3 w-3 mr-2" />+ )}+ <span className="truncate">{file.name}</span>+ </Button>+ ))}+ </div>+ </ScrollArea>+ </div>++ {/* Content area */}+ <div className="flex flex-col space-y-2 h-full">+ {logPath && (+ <>+ <div className="relative flex-1 border rounded-md">+ <LogContent content={logContent} filePath={logPath} />+ </div>+ <div className="flex items-center justify-between px-2 py-1 bg-secondary/50 rounded-md">+ <code+ className="text-sm font-mono truncate max-w-[70%]"+ title={logPath}+ >+ {logPath}+ </code>+ <Button+ variant="ghost"+ size="sm"+ onClick={() => copyToClipboard(logContent)}+ className="text-muted-foreground hover:text-primary"+ >+ <Copy className="h-3 w-3" />+ </Button>+ </div>+ </>+ )}+ </div>+ </div>+ )}+ </DialogContent>+ </Dialog>+ </>+ );+};diff --git a/openrewind/components/log-viewer-v2.tsx b/openrewind/components/log-viewer-v2.tsxnew file mode 100644index 000000000..2c4306d88--- /dev/null+++ b/openrewind/components/log-viewer-v2.tsx@@ -0,0 +1,86 @@+import React, { useEffect, useState, useRef } from "react";+import { listen } from "@tauri-apps/api/event";+import { cn } from "@/lib/utils";+import Convert from "ansi-to-html";+import localforage from "localforage";+import { Button } from "./ui/button"; // import Button component++interface LogViewerProps {+ className?: string;+}++const convert = new Convert({ newline: true });++const LogViewer: React.FC<LogViewerProps> = ({ className }) => {+ const [logs, setLogs] = useState<string[]>([]);+ const logContainerRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ const initLogs = async () => {+ // load logs from localforage+ const storedLogs = await localforage.getItem<string[]>("sidecar_logs");+ if (storedLogs) {+ setLogs(storedLogs);+ }+ };++ initLogs();++ const unlisten = listen<string>("sidecar_log", (event) => {+ setLogs((prevLogs) => {+ const newLogs = [...prevLogs, event.payload].slice(-100);+ localforage.setItem("sidecar_logs", newLogs);+ return newLogs;+ });+ });++ return () => {+ unlisten.then((f) => f());+ };+ }, []);++ // function to clear logs+ const clearLogs = async () => {+ await localforage.removeItem("sidecar_logs");+ setLogs([]);+ };++ useEffect(() => {+ if (logContainerRef.current) {+ logContainerRef.current.scrollTop = logContainerRef.current.scrollHeight;+ }+ }, [logs]);++ const htmlLogs = logs.map((log) => convert.toHtml(log));++ return (+ <div className="flex flex-col py-2">+ <Button+ onClick={clearLogs}+ className="mb-2 self-end"+ variant="outline"+ size="sm"+ >+ clear logs+ </Button>+ <div+ ref={logContainerRef}+ className={cn(+ "h-64 overflow-y-auto bg-black p-2 font-mono text-sm text-white",+ "whitespace-pre-wrap break-words",+ className+ )}+ >+ {htmlLogs.map((log, index) => (+ <div+ key={index}+ dangerouslySetInnerHTML={{ __html: log }}+ className="leading-5"+ />+ ))}+ </div>+ </div>+ );+};++export default LogViewer;diff --git a/openrewind/components/login-dialog.tsx b/openrewind/components/login-dialog.tsxnew file mode 100644index 000000000..080ccedf1--- /dev/null+++ b/openrewind/components/login-dialog.tsx@@ -0,0 +1,59 @@+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { ExternalLinkIcon } from "lucide-react";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { create } from "zustand";++export function LoginDialog() {+ const { isOpen, setIsOpen } = useLoginDialog();++ return (+ <Dialog open={isOpen} onOpenChange={setIsOpen}>+ <DialogContent>+ <DialogHeader>+ <DialogTitle>login required</DialogTitle>+ <DialogDescription>+ please login to continue. you will be redirected to screenpi.pe+ </DialogDescription>+ </DialogHeader>+ <div className="flex justify-end">+ <Button+ variant="default"+ onClick={() => {+ openUrl("https://screenpi.pe/login");+ setIsOpen(false);+ }}+ >+ login <ExternalLinkIcon className="w-4 h-4 ml-2" />+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ );+}++interface LoginDialogState {+ isOpen: boolean;+ setIsOpen: (open: boolean) => void;+ checkLogin: (user: any | null, showDialog?: boolean) => boolean;+}++export const useLoginDialog = create<LoginDialogState>((set) => ({+ isOpen: false,+ setIsOpen: (open) => set({ isOpen: open }),+ checkLogin: (user, showDialog = true) => {+ if (!user?.token) {+ if (showDialog) {+ set({ isOpen: true });+ }+ return false;+ }+ return true;+ },+}));diff --git a/openrewind/components/markdown-with-external-links.tsx b/openrewind/components/markdown-with-external-links.tsxnew file mode 100644index 000000000..67df7317d--- /dev/null+++ b/openrewind/components/markdown-with-external-links.tsx@@ -0,0 +1,29 @@+import React from "react";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { MemoizedReactMarkdown } from "@/components/markdown";++interface MarkdownWithExternalLinksProps {+ children: React.ReactNode;+ className?: string;+}++export const MarkdownWithExternalLinks: React.FC<+ MarkdownWithExternalLinksProps+> = ({ children, className }) => {+ return (+ <MemoizedReactMarkdown+ className={className}+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ a: ({ node, href, children, ...props }) => (+ <a href={href} target="_blank" rel="noopener noreferrer" {...props}>+ {children}+ </a>+ ),+ }}+ >+ {children!.toString()}+ </MemoizedReactMarkdown>+ );+};diff --git a/openrewind/components/markdown.tsx b/openrewind/components/markdown.tsxnew file mode 100644index 000000000..d4491467a--- /dev/null+++ b/openrewind/components/markdown.tsx@@ -0,0 +1,9 @@+import { FC, memo } from 'react'+import ReactMarkdown, { Options } from 'react-markdown'++export const MemoizedReactMarkdown: FC<Options> = memo(+ ReactMarkdown,+ (prevProps, nextProps) =>+ prevProps.children === nextProps.children &&+ prevProps.className === nextProps.className+)diff --git a/openrewind/components/model-download-tracker.tsx b/openrewind/components/model-download-tracker.tsxnew file mode 100644index 000000000..d7b6420f0--- /dev/null+++ b/openrewind/components/model-download-tracker.tsx@@ -0,0 +1,225 @@+"use client";++import { useToast } from "@/components/ui/use-toast";+import { listen } from "@tauri-apps/api/event";+import { Download } from "lucide-react";+import { useEffect, useState } from "react";+import { Progress } from "./ui/progress";++export function ModelDownloadTracker() {+ const { toast, dismiss } = useToast();+ const [activeDownloads, setActiveDownloads] = useState<+ Record<string, boolean>+ >({});+ const [toastRefs, setToastRefs] = useState<Record<string, any>>({});+ const [downloadProgress, setDownloadProgress] = useState<+ Record<string, number>+ >({});+ const [ffmpegInstalling, setFfmpegInstalling] = useState(false);+ const [ffmpegToastRef, setFfmpegToastRef] = useState<any>(null);++ // Update progress on a timer for active downloads+ useEffect(() => {+ if (Object.keys(activeDownloads).length === 0) return;++ const interval = setInterval(() => {+ Object.keys(activeDownloads).forEach((model) => {+ // Get current progress++ let progress = downloadProgress[model] || 5;++ // Only update if not at max+ if (progress < 95) {+ // Start faster, slow down as we progress+ const increment = progress < 50 ? 5 : 2;+ progress = Math.min(95, progress + increment);++ // Update progress state (outside of forEach)+ setDownloadProgress((prev) => ({+ ...prev,+ [model]: progress,+ }));++ // Update toast using its reference+ if (toastRefs[model]) {+ toastRefs[model].update({+ title: "downloading model",+ description: (+ <div className="flex flex-col gap-2">+ <div className="flex items-center gap-2">+ <Download className="h-4 w-4" />+ </div>+ <Progress value={downloadProgress[model]} className="h-1" />+ </div>+ ),+ duration: Infinity,+ });+ }+ }+ });+ }, 3000); // Update every 3 seconds++ return () => clearInterval(interval);+ }, [activeDownloads, toastRefs, downloadProgress]);++ useEffect(() => {+ // Patterns to look for in logs+ const downloadStartPatterns = [+ { regex: /downloading from (.*?)\/([^\/]+)/, group: 2 },+ { regex: /downloading (.*?) file/, group: 1 },+ { regex: /downloading ([^,]+)/, group: 1 },+ { regex: /downloading.*model.*?([\w-]+)/, group: 1 },+ { regex: /downloading model/, group: 1 },+ ];++ const downloadEndPatterns = [+ { regex: /Downloaded (.*?) to/, group: 1 },+ { regex: /successfully downloaded ([^,]+)/, group: 1 },+ { regex: /model ([\w-]+) downloaded/, group: 1 },+ { regex: /model ([\w-]+) downloaded/, group: 1 },+ { regex: /model.*downloaded.*?([\w-]+)/, group: 1 },+ { regex: /model downloaded/, group: 1 },+ ];++ // ffmpeg installation patterns+ const ffmpegStartPattern = /ffmpeg not found\. installing/i;+ const ffmpegEndPattern = /ffmpeg (installed|ready)/i;++ // Function to extract model name from log line+ const getModelName = (+ line: string,+ patterns: { regex: RegExp; group: number }[]+ ) => {+ for (const pattern of patterns) {+ const match = line.match(pattern.regex);+ if (match && match[pattern.group]) {+ return match[pattern.group].trim();+ }+ }+ return null;+ };++ const unlisten = listen<string>("sidecar_log", (event) => {+ const line = event.payload.toLowerCase();++ // Skip lines that don't look like download related+ if (+ !line.includes("download") &&+ !line.includes("model") &&+ !line.includes("cache") &&+ !line.includes("ffmpeg")+ ) {+ return;+ }++ // Check for ffmpeg installation+ if (ffmpegStartPattern.test(line) && !ffmpegInstalling) {+ console.log("Detected ffmpeg installation starting");++ const toastRef = toast({+ title: "installing ffmpeg",+ description: (+ <div className="flex flex-col gap-2">+ <div className="flex items-center gap-2">+ <Download className="h-4 w-4" />+ </div>+ <Progress value={20} className="h-1" />+ </div>+ ),+ duration: Infinity,+ });++ setFfmpegInstalling(true);+ setFfmpegToastRef(toastRef);+ }++ // Check for ffmpeg installation completion+ if (ffmpegEndPattern.test(line) && ffmpegInstalling) {+ console.log("Detected ffmpeg installation completed");++ // Close the "installing" toast+ if (ffmpegToastRef) {+ dismiss(ffmpegToastRef.id);+ }++ // Show completion toast+ toast({+ title: "ffmpeg installed",+ description: "ffmpeg is ready to use",+ duration: 3000,+ });++ setFfmpegInstalling(false);+ setFfmpegToastRef(null);+ }++ // Check for download start+ const modelStarting = getModelName(line, downloadStartPatterns);+ if (modelStarting && !activeDownloads[modelStarting]) {+ console.log(`Detected model download starting: ${modelStarting}`);++ // Show toast for download start with initial progress+ const toastRef = toast({+ title: "downloading model",+ description: (+ <div className="flex flex-col gap-2">+ <div className="flex items-center gap-2">+ <Download className="h-4 w-4" />+ </div>+ <Progress value={5} className="h-1" />+ </div>+ ),+ duration: Infinity, // Will be manually closed when download completes+ });++ // Store toast reference so we can update it later+ setToastRefs((prev) => ({ ...prev, [modelStarting]: toastRef }));+ setActiveDownloads((prev) => ({ ...prev, [modelStarting]: true }));+ setDownloadProgress((prev) => ({ ...prev, [modelStarting]: 5 }));+ }++ // Check for download completion+ const modelCompleted = getModelName(line, downloadEndPatterns);+ if (modelCompleted && activeDownloads[modelCompleted]) {+ console.log(`Detected model download completed: ${modelCompleted}`);++ // Close the "downloading" toast+ if (toastRefs[modelCompleted]) {+ dismiss(toastRefs[modelCompleted].id);+ }++ // Show completion toast+ toast({+ title: "model downloaded",+ description: `model is ready to use`,+ duration: 3000,+ });++ // Remove from active downloads+ setActiveDownloads((prev) => {+ const newState = { ...prev };+ delete newState[modelCompleted];+ return newState;+ });++ setToastRefs((prev) => {+ const newState = { ...prev };+ delete newState[modelCompleted];+ return newState;+ });++ setDownloadProgress((prev) => {+ const newState = { ...prev };+ delete newState[modelCompleted];+ return newState;+ });+ }+ });++ return () => {+ unlisten.then((unsubscribe) => unsubscribe());+ };+ }, [toast, dismiss, activeDownloads, toastRefs]);++ return null; // This component doesn't render anything+}diff --git a/openrewind/components/notification-handler.tsx b/openrewind/components/notification-handler.tsxnew file mode 100644index 000000000..77a59b029--- /dev/null+++ b/openrewind/components/notification-handler.tsx@@ -0,0 +1,55 @@+import React, { useEffect, useState } from "react";+import {+ isPermissionGranted,+ requestPermission,+ ScheduleEvery,+ sendNotification,+} from "@tauri-apps/plugin-notification";++import { listen } from "@tauri-apps/api/event";++type NotificationRequested = {+ title: string;+ body: string;+};++const NotificationHandler: React.FC = () => {+ useEffect(() => {+ const checkAndRequestPermission = async () => {+ let permission = await isPermissionGranted();++ if (!permission) {+ const result = await requestPermission();+ permission = result === "granted";+ }++ if (permission) {+ const welcomeShown = localStorage.getItem("welcomeNotificationShown");++ if (!welcomeShown) {+ sendNotification({+ title: "welcome to screenpipe",+ body: "thank you for using screenpipe! we're dedicated to help you get the most out of screenpipe.",+ });+ localStorage.setItem("welcomeNotificationShown", "true");+ }+ }++ listen<NotificationRequested>("notification-requested", (event) => {+ console.log(+ `notification requested ${event.payload.title} ${event.payload.body}`+ );+ sendNotification({+ title: event.payload.title,+ body: event.payload.body,+ });+ });+ };++ checkAndRequestPermission();+ }, []);++ return null; // This component doesn't render anything+};++export default NotificationHandler;diff --git a/openrewind/components/onboarding.tsx b/openrewind/components/onboarding.tsxnew file mode 100644index 000000000..82ca2096b--- /dev/null+++ b/openrewind/components/onboarding.tsx@@ -0,0 +1,374 @@+import localforage from "localforage";+import React, { useState, useEffect } from "react";+import { useToast } from "@/components/ui/use-toast";+import OnboardingPipes from "@/components/onboarding/pipes";+import { Dialog, DialogContent } from "@/components/ui/dialog";+import OnboardingStatus from "@/components/onboarding/status";+import OnboardingIntro from "@/components/onboarding/introduction";+import OnboardingAPISetup from "@/components/onboarding/api-setup";+import OnboardingPersonalize from "@/components/onboarding/personalize";+import OnboardingDevOrNonDev from "@/components/onboarding/dev-or-non-dev";+import OnboardingDevConfig from "@/components/onboarding/dev-configuration";+import OnboardingSelection from "@/components/onboarding/usecases-selection";+import OnboardingInstructions from "@/components/onboarding/explain-instructions";+import { useOnboarding } from "@/lib/hooks/use-onboarding";+import { useSettings } from "@/lib/hooks/use-settings";+import OnboardingLogin from "./onboarding/login";+import OnboardingPipeStore from "./onboarding/pipe-store";+import posthog from "posthog-js";++type SlideKey =+ | "intro"+ | "status"+ | "login"+ | "selection"+ | "personalize"+ | "apiSetup"+ | "devOrNonDev"+ | "devConfig"+ | "pipes"+ | "pipeStore"+ | "instructions";++const slideFlow: Record<+ SlideKey,+ {+ next: (+ selectedOptions?: string[],+ selectedPreference?: string | null,+ selectedPersonalization?: string | null+ ) => SlideKey | null;+ prev: (+ selectedOptions?: string[],+ selectedPreference?: string | null,+ selectedPersonalization?: string | null+ ) => SlideKey | null;+ }+> = {+ intro: {+ // introduction video of screenpipe+ next: () => "status",+ prev: () => null,+ },+ status: {+ // status of screenpipe (blockage or not)+ next: () => "login",+ prev: () => "intro",+ },+ login: {+ // login+ next: () => "apiSetup",+ prev: () => "status",+ },+ selection: {+ // selection (four options)+ next: (selectedOptions) => {+ if (!Array.isArray(selectedOptions) || selectedOptions.length === 0)+ return null;+ return "devOrNonDev";+ },+ prev: () => "status",+ },+ personalize: {+ // personalize (with ai or without ai)+ next: (selectedOptions, __, selectedPersonalization) => {+ if (selectedPersonalization === "withAI") return "apiSetup";+ if (+ selectedOptions?.includes("personalUse") &&+ selectedPersonalization === "withoutAI"+ )+ return "instructions";+ return "instructions";+ },+ prev: () => "selection",+ },+ apiSetup: {+ // api setup & validation+ next: () => "pipeStore",+ prev: () => "login",+ },+ pipeStore: {+ // pipe store+ next: () => null,+ prev: () => "apiSetup",+ },+ devOrNonDev: {+ // dev or no dev+ next: (selectedOptions, selectedPreference, selectedPersonalization) => {+ if (+ selectedOptions?.includes("personalUse") &&+ selectedPersonalization === "withoutAI" &&+ selectedPreference === "nonDevMode"+ )+ return "instructions";+ if (selectedPreference === "devMode") return "devConfig";+ return "personalize";+ },+ prev: () => "selection",+ },+ devConfig: {+ // dev configuration+ next: () => "pipes",+ prev: () => "devOrNonDev",+ },+ pipes: {+ // explain about pipes to dev+ next: () => "instructions",+ prev: () => "devConfig",+ },+ instructions: {+ // instructions for every type of user+ next: () => null,+ prev: (selectedOptions, selectedPreference, selectedPersonalization) => {+ if (selectedPreference === "devMode") return "pipes";+ if (selectedOptions?.includes("personalUse")) return "personalize";+ if (selectedOptions?.includes("professionalUse")) return "personalize";+ if (selectedOptions?.includes("developmentlUse")) return "personalize";+ if (selectedPersonalization === "withAI") return "apiSetup";+ return "devOrNonDev";+ },+ },+};++const trackOnboardingStep = (+ step: SlideKey | "completed",+ properties?: Record<string, any>+) => {+ posthog.capture("onboarding_step", {+ step,+ ...properties,+ });+};++const Onboarding: React.FC = () => {+ const { toast } = useToast();+ const [currentSlide, setCurrentSlide] = useState<SlideKey>("intro");+ const [selectedOptions, setSelectedOptions] = useState<string[]>([]); // use case selection (four options)+ const [selectedPersonalization, setSelectedPersonalization] = useState<+ string | null+ >(null); // with ai or without ai+ const [selectedPreference, setSelectedPreference] = useState<string | null>(+ null+ ); // dev or non dev+ const [error, setError] = useState<string | null>(null);+ const [isVisible, setIsVisible] = useState(false);+ const { showOnboarding, setShowOnboarding } = useOnboarding();++ useEffect(() => {+ setIsVisible(true);+ }, [currentSlide]);++ useEffect(() => {+ if (showOnboarding) {+ const hideCloseButton = () => {+ const closeButton = document.querySelector(".lucide-x");+ if (closeButton) {+ (closeButton as HTMLElement).classList.add("hidden");+ }+ };+ setTimeout(hideCloseButton, 100);+ }+ }, [showOnboarding]);++ useEffect(() => {+ if (error) {+ toast({+ title: "error",+ description: error,+ variant: "destructive",+ });+ }+ }, [error, toast]);++ const handleNextSlide = () => {+ const nextSlide = slideFlow[currentSlide].next(+ selectedOptions,+ selectedPreference,+ selectedPersonalization+ );++ trackOnboardingStep(currentSlide, {+ selectedOptions,+ selectedPreference,+ selectedPersonalization,+ direction: "next",+ });++ if (+ currentSlide === "selection" &&+ (!selectedOptions || selectedOptions.length === 0)+ ) {+ setError("please select at least one option before proceeding!");+ return;+ }+ if (currentSlide === "personalize" && !selectedPersonalization) {+ setError("please choose a personalization option!");+ return;+ }+ if (currentSlide === "devOrNonDev" && !selectedPreference) {+ setError("please choose a preference option!");+ return;+ }+ if (nextSlide) {+ setIsVisible(false);+ setTimeout(() => {+ setCurrentSlide(nextSlide);+ setError(null);+ }, 300);+ } else {+ setError("Please validate selection");+ }+ };++ const handlePrevSlide = () => {+ setIsVisible(false);++ trackOnboardingStep(currentSlide, {+ selectedOptions,+ selectedPreference,+ selectedPersonalization,+ direction: "back",+ });++ setTimeout(() => {+ const prevSlide = slideFlow[currentSlide].prev(+ selectedOptions,+ selectedPreference,+ selectedPersonalization+ );+ if (prevSlide) {+ setError(null);+ setCurrentSlide(prevSlide);+ }+ }, 300);+ };++ const handleOptionClick = (option: string) => {+ setSelectedOptions((prevOptions) =>+ prevOptions.includes(option)+ ? prevOptions.filter((opt) => opt !== option)+ : [...prevOptions, option]+ );+ setError(null);+ };++ const handleDialogClose = (open: boolean) => {+ if (!open && currentSlide) {+ setShowOnboarding(open);+ }+ };++ const handleEnd = async () => {+ trackOnboardingStep("completed", {+ finalOptions: selectedOptions,+ finalPreference: selectedPreference,+ finalPersonalization: selectedPersonalization,+ });++ setShowOnboarding(false);+ };++ return (+ <Dialog open={showOnboarding} onOpenChange={handleDialogClose}>+ <DialogContent className="max-w-4xl h-[640px] max-h-[100vh]">+ <div className="flex flex-col w-full h-full overflow-hidden">+ {currentSlide === "intro" && (+ <OnboardingIntro+ className={`transition-opacity duration-300+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleNextSlide}+ />+ )}+ {currentSlide === "status" && (+ <OnboardingStatus+ className={`transition-opacity duration-300+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ />+ )}+ {currentSlide === "login" && (+ <OnboardingLogin+ className={`transition-opacity duration-300+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleNextSlide}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ {currentSlide === "selection" && (+ <OnboardingSelection+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleOptionClick={handleOptionClick}+ selectedOptions={selectedOptions}+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ />+ )}+ {currentSlide === "personalize" && (+ <OnboardingPersonalize+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleOptionClick={setSelectedPersonalization}+ selectedPersonalization={selectedPersonalization}+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ />+ )}+ {currentSlide === "apiSetup" && (+ <OnboardingAPISetup+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleNextSlide}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ {currentSlide === "pipeStore" && (+ <OnboardingPipeStore+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleEnd}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ {currentSlide === "devOrNonDev" && (+ <OnboardingDevOrNonDev+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleOptionClick={setSelectedPreference}+ selectedPreference={selectedPreference}+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ />+ )}+ {currentSlide === "devConfig" && (+ <OnboardingDevConfig+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleNextSlide}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ {currentSlide === "pipes" && (+ <OnboardingPipes+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleNextSlide}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ {currentSlide === "instructions" && (+ <OnboardingInstructions+ className={`transition-opacity duration-300 ease-in-out+ ${isVisible ? "opacity-100 ease-out" : "opacity-0 ease-in"}`}+ handleNextSlide={handleEnd}+ handlePrevSlide={handlePrevSlide}+ />+ )}+ </div>+ </DialogContent>+ </Dialog>+ );+};++export default Onboarding;diff --git a/openrewind/components/onboarding/api-setup.tsx b/openrewind/components/onboarding/api-setup.tsxnew file mode 100644index 000000000..536a0b646--- /dev/null+++ b/openrewind/components/onboarding/api-setup.tsx@@ -0,0 +1,194 @@+import React, { useEffect, useRef } from "react";+import { useToast } from "@/components/ui/use-toast";+import { useSettings } from "@/lib/hooks/use-settings";+import { CardContent } from "@/components/ui/card";+import { ArrowUpRight } from "lucide-react";+import { DialogTitle } from "@/components/ui/dialog";+import { open } from "@tauri-apps/plugin-shell";++import OnboardingNavigation from "@/components/onboarding/navigation";+import { AIPresets } from "../settings/ai-presets";++interface OnboardingAPISetupProps {+ className?: string;+ handleNextSlide: () => void;+ handlePrevSlide: () => void;+}++const OnboardingAPISetup: React.FC<OnboardingAPISetupProps> = ({+ className,+ handleNextSlide,+ handlePrevSlide,+}) => {+ const { toast } = useToast();+ const { settings } = useSettings();+ const [isValidating, setIsValidating] = React.useState(false);+ const containerRef = useRef<HTMLDivElement>(null);++ // Add effect to scroll to top when component mounts+ useEffect(() => {+ if (containerRef.current) {+ containerRef.current.scrollTo({+ top: 0,+ behavior: "auto"+ });+ }+ }, []);++ // Check if at least one preset exists and has required fields+ const hasValidPreset = React.useMemo(() => {+ if (!settings.aiPresets || settings.aiPresets.length === 0) return false;++ // Find the default preset or the first one if no default is set+ const defaultPreset = settings.aiPresets.find(p => p.defaultPreset) || settings.aiPresets[0];++ if (!defaultPreset) return false;++ // Check if the preset has the required fields+ const { url, model, provider } = defaultPreset;+ const isApiKeyRequired =+ url !== "https://ai-proxy.i-f9f.workers.dev/v1" &&+ url !== "http://localhost:11434/v1";++ // Check if API key is required and present+ const hasRequiredApiKey = !isApiKeyRequired ||+ ((provider === "openai" || provider === "custom") &&+ "apiKey" in defaultPreset &&+ defaultPreset.apiKey?.trim() !== "");++ return url?.trim() !== "" &&+ model?.trim() !== "" &&+ hasRequiredApiKey;+ }, [settings.aiPresets]);++ const handleValidationMoveNextSlide = async () => {+ setIsValidating(true);++ try {+ // Find the default preset or the first one+ const defaultPreset = settings.aiPresets.find(p => p.defaultPreset) || settings.aiPresets[0];++ if (!defaultPreset) {+ toast({+ title: "No AI preset found",+ description: "Please create at least one AI preset",+ variant: "destructive",+ });+ setIsValidating(false);+ return false;+ }++ const { url, model, provider } = defaultPreset;++ // Get API key if available based on provider+ const apiKey = (provider === "openai" || provider === "custom") && "apiKey" in defaultPreset+ ? defaultPreset.apiKey+ : provider === "screenpipe-cloud"+ ? settings.user.token+ : "";++ const t = toast({+ title: "Validating AI provider",+ description: "Please wait...",+ duration: 10000,+ });++ const response = await fetch(`${url}/chat/completions`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${apiKey}`,+ },+ body: JSON.stringify({+ model: model,+ messages: [+ {+ role: "user",+ content: "You are a helpful assistant that tells short jokes.",+ },+ ],+ max_tokens: 5,+ }),+ });++ t.dismiss();++ if (!response.ok) {+ const errorData = await response.json();+ toast({+ title: "Error validating AI provider",+ description: errorData.error?.message || "Unknown error",+ variant: "destructive",+ });+ setIsValidating(false);+ return false;+ }++ toast({+ title: "AI provider validated successfully",+ description: "You're all set!",+ });++ setIsValidating(false);+ handleNextSlide();+ return true;+ } catch (error) {+ toast({+ title: "Error validating AI provider",+ description: error instanceof Error ? error.message : "Unknown error",+ variant: "destructive",+ });+ setIsValidating(false);+ return false;+ }+ };++ return (+ <div+ ref={containerRef}+ className={`${className} w-full flex flex-col items-center relative max-h-full overflow-y-auto`}>+ <div className="flex flex-col items-center justify-start w-full overflow-visible pt-4">+ <div className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ setup your ai settings+ </DialogTitle>+ </div>+ <div className="mt-4 h-full w-full">+ <CardContent className="flex flex-col items-center space-y-4 h-full">+ <AIPresets />+ <a+ onClick={() =>+ open("https://github.com/ollama/ollama?tab=readme-ov-file#ollama")+ }+ href="#"+ className="text-muted-foreground text-sm !text-center hover:underline"+ >+ don't have api key ? set up ollama locally+ <ArrowUpRight className="inline w-4 h-4 ml-1" />+ </a>+ </CardContent>+ </div>++ </div>+ <OnboardingNavigation+ className="pt-8"+ isLoading={isValidating}+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={+ hasValidPreset+ ? handleValidationMoveNextSlide+ : handleNextSlide+ }+ prevBtnText="previous"+ nextBtnText={hasValidPreset ? "setup" : "i'll setup later"}+ />+ </div>+ );+};++export default OnboardingAPISetup;diff --git a/openrewind/components/onboarding/dev-configuration.tsx b/openrewind/components/onboarding/dev-configuration.tsxnew file mode 100644index 000000000..d20530e93--- /dev/null+++ b/openrewind/components/onboarding/dev-configuration.tsx@@ -0,0 +1,160 @@+import React, { useEffect, useState } from "react";+import { ArrowUpRight } from "lucide-react";+import { open } from "@tauri-apps/plugin-shell";+import { platform } from "@tauri-apps/plugin-os";+import { CodeBlock } from "@/components/onboarding/single-codeblock";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";++interface OnboardingDevConfigProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++interface devInstructionsItemsTypes {+ label: string;+ description: string;+ command: string;+}++type devInstructionItems = Record<string, devInstructionsItemsTypes[]>;++const OnboardingDevConfig: React.FC<OnboardingDevConfigProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ const [instructions, setInstructions] = useState<devInstructionsItemsTypes[]>(+ []+ );++ const devInstructionsData: devInstructionItems = {+ windows: [+ {+ label: "to start using the screenpipe cli,",+ description:+ "to use the screenpipe cli, open your cmd with admin privileges and navigate to '%LOCALAPPDATA%\\screenpipe' or run this command to view all setup arguments",+ command:+ "cd %LOCALAPPDATA%\\screenpipe && ./screenpipe.exe -h # shows list of arguments",+ },+ {+ label: "starting screenpipe with custom arguments,",+ description:+ "after reviewing the cli arguments, choose your setup options and start screenpipe with your preference. replace arguments as needed. for example:",+ command:+ "screenpipe --ignored-windows settings # ignore the windows named settings",+ },+ ],+ macos: [+ {+ label: "to start using the screenpipe cli,",+ description:+ "to use the screenpipe cli, open your terminal and navigate to '/Applications/screenpipe.app/Contents/MacOS/' or run this command to view all setup arguments",+ command:+ "cd /Applications/screenpipe.app/Contents/MacOS/ && screenpipe -h # shows help",+ },+ {+ label: "starting screenpipe with custom arguments",+ description:+ "after reviewing the cli arguments, choose your setup options and start screenpipe with your preference. replace arguments as needed. for example:",+ command: "screenpipe --list-monitors # list monitors",+ },+ ],+ linux: [+ {+ label: "to start using the screenpipe cli,",+ description:+ "open your terminal and navigate to the installation directory (usually /usr/local/bin) or run this command, this will show all arguments to setup screenpipe as you prefer.",+ command:+ "cd /usr/local/bin/ && screenpipe -h # shows list of arguments",+ },+ {+ label: "starting screenpipe with custom arguments",+ description:+ "after reviewing the cli arguments, choose your setup options and start screenpipe with your preference. replace arguments as needed. for example:",+ command:+ "screenpipe --ignored-windows kitty # ignore the windows named kitty",+ },+ ],+ };++ useEffect(() => {+ const getOsType = () => {+ const os = platform();+ setInstructions(devInstructionsData[os] || []);+ };+ getOsType();+ }, []);++ return (+ <div className={`${className} w-full flex justify-center flex-col`}>+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ screenpipe in dev mode+ </DialogTitle>+ </DialogHeader>+ <div className="mt-8 w-full flex justify-around flex-col">+ <div className="mx-3">+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium prose text-[14px] mr-1">+ by using the cli,+ </span>+ you can manually configure and manage backend processes for advanced+ customization and debugging.+ </p>+ </div>+ {instructions.length > 0 && (+ <div className="mx-3 mt-1">+ <h1 className="font-medium text-md">+ run the screenpipe backend via cli:+ </h1>+ <ul className="mt-0">+ {instructions.map((instructions, index) => (+ <li key={index} className="list-disc mt-1">+ <p className="text-muted-foreground text-sm ml-4">+ <span className="font-medium text-nowrap text-[14px] mr-1 prose">+ {instructions.label}+ </span>+ {instructions.description}+ </p>+ <CodeBlock+ className="rounded-md mt-2"+ language="bash"+ value={instructions.command}+ />+ </li>+ ))}+ </ul>+ </div>+ )}+ <a+ onClick={() => open("https://docs.screenpi.pe/")}+ href="#"+ className="mt-4 text-muted-foreground text-sm mr-auto ml-auto !text-center hover:underline"+ >+ learn more about screenpipe args & api+ <ArrowUpRight className="inline w-4 h-4 ml-1 " />+ </a>+ </div>+ <p className="text-xs text-muted-foreground text-center mt-2">+ note: if you use dev mode, you will have to start and maintain the+ recording process yourself in the terminal+ </p>+ <OnboardingNavigation+ className="mt-6"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingDevConfig;diff --git a/openrewind/components/onboarding/dev-or-non-dev.tsx b/openrewind/components/onboarding/dev-or-non-dev.tsxnew file mode 100644index 000000000..a38c3756b--- /dev/null+++ b/openrewind/components/onboarding/dev-or-non-dev.tsx@@ -0,0 +1,145 @@+import React, { useState } from "react";+import { Info } from "lucide-react";+import { Wrench, UserRound } from "lucide-react";+import { useToast } from "@/components/ui/use-toast";+import { useSettings } from "@/lib/hooks/use-settings";+import { Card, CardContent } from "@/components/ui/card";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";+import { invoke } from "@tauri-apps/api/core";++interface OnboardingDevOrNonDevProps {+ className?: string;+ handleNextSlide: () => void;+ handlePrevSlide: () => void;+ handleOptionClick: (option: string) => void;+ selectedPreference?: string | null;+}++const DEV_OPTIONS = [+ {+ key: "nonDevMode",+ icon: UserRound,+ title: "standard mode",+ description:+ "screenpipe takes care of everything for you, making it easy and stress-free.",+ },+ {+ key: "devMode",+ icon: Wrench,+ title: "dev mode",+ description:+ "run the CLI on top of the UI, and customize screenpipe to fit your needs.",+ },+];++const CardItem: React.FC<{+ isSelected: boolean;+ onClick: () => void;+ option: (typeof DEV_OPTIONS)[number];+}> = ({ option, isSelected, onClick }) => {+ const { icon: Icon, title, description } = option;++ return (+ <div className="relative group h-64">+ <div+ className={`absolute inset-0 rounded-lg transition-transform duration-300 ease-out group-hover:scale-105`}+ />+ <Card+ className={`p-4 h-64 mt-[-5px] cursor-pointer bg-white dark:bg-gray-800 transition-transform duration-300 ease-out group-hover:scale-105+ ${isSelected ? "bg-accent" : ""}`}+ onClick={onClick}+ >+ <CardContent className="flex flex-col w-60 justify-start">+ <Icon className="w-12 h-12 mx-auto" />+ <h2 className="font-semibold text-xl text-center mt-1">{title}</h2>+ <span className="text-sm mt-0">{description}</span>+ </CardContent>+ </Card>+ </div>+ );+};++const OnboardingDevOrNonDev: React.FC<OnboardingDevOrNonDevProps> = ({+ className = "",+ selectedPreference = "",+ handleOptionClick,+ handleNextSlide,+ handlePrevSlide,+}) => {+ const { toast } = useToast();+ const { settings, updateSettings } = useSettings();+ const [localSettings, setLocalSettings] = useState(settings);++ const handleNextWithPreference = async (option: string) => {+ try {+ if (option === "devMode") {+ await updateSettings({ devMode: true });+ setLocalSettings({ ...localSettings, devMode: true });+ toast({+ title: "success",+ description: "dev mode enabled successfully",+ variant: "default",+ });+ } else if (option === "nonDevMode") {+ await updateSettings({ devMode: false });+ setLocalSettings({ ...localSettings, devMode: false });+ toast({+ title: "success",+ description: "screenpipe backend is in standard mode",+ variant: "default",+ });+ // TODO: should give better user feedback+ await invoke("spawn_screenpipe");+ }+ } catch (error: any) {+ toast({+ title: "error",+ description: error,+ variant: "destructive",+ });+ }+ };++ return (+ <div+ className={`${className} w-full flex justify-around flex-col relative`}+ >+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ how do you prefer to use screenpipe?+ </DialogTitle>+ </DialogHeader>+ <div className="flex w-full justify-around mt-12">+ {DEV_OPTIONS.map((option) => (+ <CardItem+ key={option.key}+ option={option}+ isSelected={selectedPreference === option.key}+ onClick={() => handleOptionClick(option.key)}+ />+ ))}+ </div>++ <OnboardingNavigation+ className="mt-9"+ nextBtnText="next"+ prevBtnText="previous"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={async () => {+ if (selectedPreference) {+ await handleNextWithPreference(selectedPreference);+ }+ handleNextSlide();+ }}+ />+ </div>+ );+};++export default OnboardingDevOrNonDev;diff --git a/openrewind/components/onboarding/explain-instructions.tsx b/openrewind/components/onboarding/explain-instructions.tsxnew file mode 100644index 000000000..827bb7f34--- /dev/null+++ b/openrewind/components/onboarding/explain-instructions.tsx@@ -0,0 +1,129 @@+import React from "react";+import { HelpCircle, Info } from "lucide-react";+import { open } from "@tauri-apps/plugin-shell";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";++interface OnboardingInstructionsProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingInstructions: React.FC<OnboardingInstructionsProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ return (+ <div className={`${className} w-full flex justify-center flex-col overflow-y-auto`}>+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ screenpipe tips+ </DialogTitle>+ </DialogHeader>+ <div className="flex justify-center">+ <div className="h-[1px] w-40 rounded-full bg-gradient-to-l from-slate-500/30 to-transparent"></div>+ <div className="h-[1px] w-40 rounded-full bg-gradient-to-r from-slate-500/30 to-transparent"></div>+ </div>+ <div className="mt-2 w-full flex justify-around flex-col ">+ <div className="mx-4 mb-2">+ <h2 className="font-semibold text-md">search functionality:</h2>+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ on screenpipe's main menu,+ </span>+ you'll find an advanced search interface to query your 24/7 screen & mic recordings. it+ lets you select specific results for ai summarization and chatting,+ providing valuable insights.+ <br />+ use cases:+ <ul>+ <li>- meeting or general conversation summaries</li>+ <li>- activity summaries (youtube, browsing, etc.)</li>+ <li>- education (lecture, tutorial, etc.)</li>+ <li>- etc.</li>+ </ul>+ </p>+ </div>+ <div className="flex justify-center">+ <div className="h-[1px] w-[80%] rounded-full bg-gradient-to-l from-slate-500/30 to-transparent"></div>+ <div className="h-[1px] w-[80%] rounded-full bg-gradient-to-r from-slate-500/30 to-transparent"></div>+ </div>+ <div className="mx-4 mb-2">+ <h2 className="font-medium text-md">status menu:</h2>+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ screenpipe status menu serves+ </span>+ as a health and process monitor and allows you to adjust advanced+ preferences for the recording processes+ </p>+ </div>+ <div className="flex justify-center">+ <div className="h-[1px] w-[80%] rounded-full bg-gradient-to-l from-slate-500/30 to-transparent"></div>+ <div className="h-[1px] w-[80%] rounded-full bg-gradient-to-r from-slate-500/30 to-transparent"></div>+ </div>+ <div className="mx-4 mb-2">+ <h2 className="font-medium text-md">settings menu:</h2>+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ the settings menu,+ </span>+ is where you can configure various options like recording+ settings and ai preferences+ </p>+ </div>+ <div className="flex justify-center">+ <div className="h-[1px] w-40 rounded-full bg-gradient-to-l from-slate-500/30 to-transparent"></div>+ <div className="h-[1px] w-40 rounded-full bg-gradient-to-r from-slate-500/30 to-transparent"></div>+ </div>+ <div className="mx-4">+ <h2 className="font-medium text-md">+ meetings tracking (experimental):+ </h2>+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ this features of screenpipe+ </span>+ tracks your meetings and generates+ summaries for you using ai+ </p>+ </div>+ <div className="mx-4">+ <h2 className="font-medium text-md">pipe store (experimental):</h2>+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ this features of screenpipe+ </span>+ extend your 24/7 data through plugins you can install in seconds,+ create, share and sell your own+ </p>+ </div>+ </div>++ <div className="h-[100px] my-16" />++ <OnboardingNavigation+ className="mt-8"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingInstructions;diff --git a/openrewind/components/onboarding/introduction.tsx b/openrewind/components/onboarding/introduction.tsxnew file mode 100644index 000000000..129dbf348--- /dev/null+++ b/openrewind/components/onboarding/introduction.tsx@@ -0,0 +1,64 @@+import React from "react";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import { Button } from "@/components/ui/button";+import { RainbowButton } from "../ui/rainbow-button";+import { ArrowRight } from "lucide-react";+import { useSettings } from "@/lib/hooks/use-settings";+import posthog from "posthog-js";+import { useOnboarding } from "@/lib/hooks/use-onboarding";++interface OnboardingIntroProps {+ className?: string;+ handleNextSlide: () => void;+}++const OnboardingIntro: React.FC<OnboardingIntroProps> = ({+ className = "",+ handleNextSlide,+}) => {+ const { setShowOnboarding } = useOnboarding();+ const handleSkip = () => {+ setShowOnboarding(false);+ posthog.capture("onboarding_skipped");+ };++ return (+ <div className={` flex justify-center items-center flex-col ${className}`}>+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ screenpipe+ </DialogTitle>+ </DialogHeader>+ <iframe+ width="600"+ height="338"+ className="mt-2 rounded-md"+ src="https://www.youtube.com/embed/2963sr3IPHY"+ title="screenpipe introduction"+ frameBorder="0"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ ></iframe>+ <div className="flex gap-4 mt-4">+ <Button+ variant="ghost"+ onClick={handleSkip}+ className="text-muted-foreground"+ >+ skip onboarding+ </Button>+ <RainbowButton onClick={handleNextSlide}>+ get started+ <ArrowRight className="w-4 h-4 ml-2" />+ </RainbowButton>+ </div>+ </div>+ );+};++export default OnboardingIntro;diff --git a/openrewind/components/onboarding/login.tsx b/openrewind/components/onboarding/login.tsxnew file mode 100644index 000000000..7190b13fa--- /dev/null+++ b/openrewind/components/onboarding/login.tsx@@ -0,0 +1,98 @@+import React from "react";+import { ExternalLinkIcon, UserCog } from "lucide-react";+import { open } from "@tauri-apps/plugin-shell";+import { Button } from "@/components/ui/button";+import { useSettings } from "@/lib/hooks/use-settings";+import { toast } from "@/components/ui/use-toast";+import OnboardingNavigation from "./navigation";++interface OnboardingLoginProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingLogin: React.FC<OnboardingLoginProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ const { settings, updateSettings } = useSettings();++ return (+ <div className="w-full h-full flex flex-col items-center justify-center space-y-6 py-4">+ <div className="w-full max-w-md space-y-6">+ <div className="text-center space-y-2 mb-8">+ <h1 className="text-3xl font-bold">login to screenpipe</h1>+ <p className="text-sm text-muted-foreground">+ connect your account to unlock all features+ </p>+ </div>++ <div className="p-6 border border-border/50 rounded-lg bg-background/50">+ <div className="space-y-4">+ {settings.user?.token ? (+ <p className="text-sm text-muted-foreground flex items-center justify-center gap-2">+ <span className="inline-flex h-2 w-2 rounded-full bg-green-500" />+ logged in as {settings.user.email}+ </p>+ ) : (+ <p className="text-sm text-muted-foreground flex items-center justify-center gap-2">+ <span className="inline-flex h-2 w-2 rounded-full bg-yellow-500" />+ not logged in - some features will be limited+ </p>+ )}++ <div className="flex flex-col gap-2">+ {settings.user?.token ? (+ <>+ <Button+ variant="outline"+ size="sm"+ onClick={() => open("https://accounts.screenpi.pe/user")}+ className="w-full hover:bg-secondary/80"+ >+ manage account <UserCog className="w-4 h-4 ml-2" />+ </Button>+ <Button+ variant="outline"+ size="sm"+ onClick={() => {+ updateSettings({ user: { token: undefined } });+ toast({+ title: "logged out",+ description: "you have been logged out",+ });+ }}+ className="w-full hover:bg-secondary/80"+ >+ logout <ExternalLinkIcon className="w-4 h-4 ml-2" />+ </Button>+ </>+ ) : (+ <Button+ variant="outline"+ size="sm"+ onClick={() => open("https://screenpi.pe/login")}+ className="w-full hover:bg-secondary/80"+ >+ login <ExternalLinkIcon className="w-4 h-4 ml-2" />+ </Button>+ )}+ </div>+ </div>+ </div>++ <OnboardingNavigation+ className="mt-6"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ </div>+ );+};++export default OnboardingLogin;diff --git a/openrewind/components/onboarding/navigation.tsx b/openrewind/components/onboarding/navigation.tsxnew file mode 100644index 000000000..dd1497593--- /dev/null+++ b/openrewind/components/onboarding/navigation.tsx@@ -0,0 +1,44 @@+import React from 'react';+import { Button } from '@/components/ui/button';+import { ArrowLeft, ArrowRight } from 'lucide-react'; // Importing icons++interface OnboardingNavigationProps {+ prevBtnText?: string,+ nextBtnText?: string,+ className?: string,+ isLoading?: boolean;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingNavigation: React.FC<OnboardingNavigationProps> = ({+ nextBtnText = "",+ prevBtnText = "",+ className = "",+ isLoading,+ handlePrevSlide,+ handleNextSlide,+}) => {+ return (+ <div className={`flex justify-between items-center mx-auto ${className} w-full p-4 bg-transparent max-w-screen-lg`}>+ <Button+ className="flex items-center w-fit min-w-32 disabled:!cursor-not-allowed disabled:!pointer-events-auto"+ variant={"outline"}+ onClick={handlePrevSlide}+ disabled={isLoading}+ >+ <ArrowLeft className="mr-2" /> {/* Icon with margin */}+ {prevBtnText}+ </Button>+ <Button+ className="flex items-center w-fit min-w-32 disabled:!cursor-not-allowed disabled:!pointer-events-auto"+ onClick={handleNextSlide}+ disabled={isLoading}+ >+ {nextBtnText}+ <ArrowRight className="ml-2" /> {/* Icon with margin */}+ </Button>+ </div>+ );+}+export default OnboardingNavigation;diff --git a/openrewind/components/onboarding/personalize.tsx b/openrewind/components/onboarding/personalize.tsxnew file mode 100644index 000000000..38604d8c6--- /dev/null+++ b/openrewind/components/onboarding/personalize.tsx@@ -0,0 +1,114 @@+import React from "react";+import { Card, CardContent } from "@/components/ui/card";+import { TextSearch, BotMessageSquare } from "lucide-react";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";++interface OnboardingPersonalizeProps {+ handleOptionClick: (option: string) => void;+ handleNextSlide: () => void;+ handlePrevSlide: () => void;+ selectedPersonalization?: string | null;+ className?: string;+}++const PERSONALIZATION_OPTIONS = [+ {+ key: "withoutAI",+ icon: TextSearch,+ title: "conventional search",+ description:+ "use advanced search capabilities on top of your 24/7 recordings or the pipe store",+ note: "no api key needed.",+ },+ {+ key: "withAI",+ icon: BotMessageSquare,+ title: "ai-enhanced Search",+ description:+ "use ai capabilities to summarize your recordings, extract insights, or use meeting summaries.",+ note: "api key required.",+ },+];++const CardItem: React.FC<{+ option: (typeof PERSONALIZATION_OPTIONS)[number];+ isSelected: boolean;+ onClick: () => void;+}> = ({ option, isSelected, onClick }) => {+ const { icon: Icon, title, description, note } = option;++ return (+ <div className="relative group h-[270px]">+ <div+ className={`absolute h-full !mt-[-5px] inset-0 rounded-lg transition-all duration-300 ease-out group-hover:before:opacity-100 group-hover:before:scale-100+ before:absolute before:inset-0 before:rounded-lg before:border-2 before:border-black dark:before:border-white before:opacity-0 before:scale-95 before:transition-all+ before:duration-300 before:ease-out ${+ isSelected ? "before:!border-none" : ""+ }`}+ />+ <Card+ className={`p-4 h-full !mt-[-5px] cursor-pointer bg-white dark:bg-gray-800 hover:bg-accent transition-all relative z-[1] duration-300 ease-out group-hover:scale-[0.98]+ ${+ isSelected+ ? "bg-accent transition-transform relative border-2 border-black dark:border-white"+ : ""+ }`}+ onClick={onClick}+ >+ <CardContent className="flex flex-col w-[250px] justify-center">+ <Icon className="w-16 h-16 mx-auto" />+ <h2 className="font-semibold text-xl text-center mt-1">{title}</h2>+ <span className="prose prose-sm mt-1">{description}</span>+ <span className="text-muted-foreground text-center prose-sm mt-4">+ {note}+ </span>+ </CardContent>+ </Card>+ </div>+ );+};++const OnboardingPersonalize: React.FC<OnboardingPersonalizeProps> = ({+ className = "",+ selectedPersonalization = "",+ handleOptionClick,+ handleNextSlide,+ handlePrevSlide,+}) => {+ return (+ <div+ className={`${className} w-full flex justify-center flex-col relative`}+ >+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ do you want to use AI or just plain search?+ </DialogTitle>+ </DialogHeader>+ <div className="flex w-full justify-around mt-6">+ {PERSONALIZATION_OPTIONS.map((option) => (+ <CardItem+ key={option.key}+ option={option}+ isSelected={selectedPersonalization === option.key}+ onClick={() => handleOptionClick(option.key)}+ />+ ))}+ </div>+ <OnboardingNavigation+ className="mt-9"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingPersonalize;diff --git a/openrewind/components/onboarding/pipe-store.tsx b/openrewind/components/onboarding/pipe-store.tsxnew file mode 100644index 000000000..60126fc06--- /dev/null+++ b/openrewind/components/onboarding/pipe-store.tsx@@ -0,0 +1,202 @@+import React from "react";+import { Button } from "@/components/ui/button";+import { Search, Loader2 } from "lucide-react";+import OnboardingNavigation from "./navigation";+import { toast } from "@/components/ui/use-toast";+import { invoke } from "@tauri-apps/api/core";+import posthog from "posthog-js";+import { PipeApi } from "@/lib/api/store";+import { useSettings } from "@/lib/hooks/use-settings";++interface OnboardingPipeStoreProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingPipeStore: React.FC<OnboardingPipeStoreProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ const [isLoading, setIsLoading] = React.useState(false);+ const [status, setStatus] = React.useState<string>("");+ const { settings } = useSettings();+ const handleOpenSearchPipe = async () => {+ setIsLoading(true);+ try {+ posthog.capture("open_search_pipe_from_onboarding");++ // Create initial toast+ const t = toast({+ title: "opening search pipe",+ description: "please wait...",+ duration: 5000,+ });++ // Check if screenpipe is running, if not spawn it+ try {+ await fetch("http://localhost:3030/health");+ } catch (error) {+ // Screenpipe not running, try to spawn it+ await invoke("stop_screenpipe");+ await new Promise((resolve) => setTimeout(resolve, 1_000));+ await invoke("spawn_screenpipe");+ await new Promise((resolve) => setTimeout(resolve, 5_000));+ }++ // First check if pipe is installed by listing pipes+ const listResponse = await fetch("http://localhost:3030/pipes/list");+ const listData = await listResponse.json();+ const searchPipe = listData.data.find(+ (p: any) => p.config?.id === "search"+ );++ // If not installed, download it first+ if (!searchPipe) {+ setStatus("downloading search pipe... (~10s)");+ const pipeApi = await PipeApi.create(settings.user?.token!);+ const storePlugins = await pipeApi.listStorePlugins();+ const downloadData = await pipeApi.downloadPipe(+ storePlugins.find((p) => p.name === "search")?.id!+ );++ await fetch("http://localhost:3030/pipes/download-private", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ pipe_name: "search",+ pipe_id: "search",+ url: downloadData.download_url,+ }),+ });++ // Wait for download to complete+ await new Promise((resolve) => setTimeout(resolve, 2000));+ }++ // Enable the search pipe+ setStatus("enabling search pipe... (~10s)");+ await fetch("http://localhost:3030/pipes/enable", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ pipe_id: "search" }),+ });++ // Wait for pipe to initialize+ setStatus("initializing search pipe... (~10s)");+ await new Promise((resolve) => setTimeout(resolve, 2000));++ // Get updated pipe info to find the port+ const response = await fetch("http://localhost:3030/pipes/list");+ const data = await response.json();+ const updatedSearchPipe = data.data.find(+ (p: any) => p.config?.id === "search"+ );++ if (!updatedSearchPipe?.config?.port) {+ throw new Error("search pipe not found or port not configured");+ }++ // Check if pipe is actually running+ try {+ await fetch(`http://localhost:${updatedSearchPipe.config.port}`, {+ mode: "no-cors",+ });+ } catch (error) {+ throw new Error("search pipe failed to start");+ }++ // Open the pipe window+ await invoke("open_pipe_window", {+ port: updatedSearchPipe.config.port,+ title: "search",+ });++ t.update({+ id: t.id,+ title: "search pipe ready",+ description: "you can now search through your recordings",+ duration: 2000,+ });+ } catch (error) {+ console.error("failed to open search pipe:", error);+ toast({+ title: "error opening search pipe",+ description: "please try again or check the logs",+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ setStatus("");+ }+ };++ return (+ <div+ className={`${className} w-full h-screen flex flex-col px-6 overflow-y-auto`}+ >+ <div className="flex-1 flex flex-col items-center">+ <div className="flex flex-col items-center mb-8">+ <img className="w-24 h-24" src="/128x128.png" alt="screenpipe-logo" />+ <h1 className="text-2xl font-bold mt-4">welcome to the pipe store</h1>+ </div>++ <div className="space-y-8 max-w-2xl mx-auto w-full">+ {/* Store preview image */}+ <img+ src="/pipe-store-preview.png"+ alt="pipe store interface"+ className="w-full rounded-lg border shadow-sm"+ />++ <div className="space-y-4 text-center">+ <p className="text-muted-foreground my-2">+ screenpipe records your screen and audio 24/7 and makes it easy+ for AI to search through your recordings. developers can create+ powerful apps on top of screenpipe. let's start with+ "search" to explore your recordings. once in the search+ pipe, you can use the "search" button to search through+ your recordings and ask a summary to AI.+ </p>++ <div className="flex flex-col items-center">+ <Button+ size="lg"+ className="gap-2 my-8"+ onClick={handleOpenSearchPipe}+ disabled={isLoading}+ >+ {isLoading ? (+ <Loader2 className="w-4 h-4 animate-spin" />+ ) : (+ <Search className="w-4 h-4" />+ )}+ {isLoading ? "opening search..." : "open search pipe"}+ </Button>+ {status && (+ <p className="text-sm text-muted-foreground mt-1">{status}</p>+ )}+ </div>+ </div>+ </div>+ </div>++ <div className="my-8" />++ <OnboardingNavigation+ className="py-6"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="end"+ />+ </div>+ );+};++export default OnboardingPipeStore;diff --git a/openrewind/components/onboarding/pipes.tsx b/openrewind/components/onboarding/pipes.tsxnew file mode 100644index 000000000..729a548b3--- /dev/null+++ b/openrewind/components/onboarding/pipes.tsx@@ -0,0 +1,71 @@+import React from "react";+import { CodeBlock } from "@/components/onboarding/single-codeblock";+import { ArrowUpRight } from "lucide-react";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";+import { open } from "@tauri-apps/plugin-shell";++interface OnboardingPipesProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingPipes: React.FC<OnboardingPipesProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ return (+ <div className={`${className} w-full flex justify-center flex-col`}>+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ screenpipe tips+ </DialogTitle>+ </DialogHeader>+ <div className="mt-32 w-full flex justify-around flex-col text-center">+ <div className="mx-3">+ <p className="text-muted-foreground text-[14px]">+ <span className="font-medium text-nowrap text-[14px] prose mr-1">+ screenpipe is built to be fully extensible,+ </span>+ allowing you to enhance its capabilities with custom pipes,+ versatile plugins that streamline workflow automation for analyzing,+ managing your captured data.+ </p>+ <p className="mt-4 text-muted-foreground text-[14px]">+ we offer bounties for pipes or make it easy for you to monetize it+ through Stripe & our pipe store!+ </p>+ </div>++ <a+ onClick={() =>+ open(+ "https://docs.screenpi.pe/plugins"+ )+ }+ href="#"+ className="mt-4 text-muted-foreground text-sm mr-auto ml-auto !text-center hover:underline"+ >+ checkout our docs for creating your own pipe!+ <ArrowUpRight className="inline w-4 h-4 ml-1 " />+ </a>+ </div>+ <OnboardingNavigation+ className="mt-8"+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNextSlide}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingPipes;diff --git a/openrewind/components/onboarding/single-codeblock.tsx b/openrewind/components/onboarding/single-codeblock.tsxnew file mode 100644index 000000000..d61b4b657--- /dev/null+++ b/openrewind/components/onboarding/single-codeblock.tsx@@ -0,0 +1,101 @@+"use client";++import { FC, memo } from "react";+import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";+import { coldarkDark } from "react-syntax-highlighter/dist/cjs/styles/prism";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { IconCheck, IconCopy} from "@/components/ui/icons";+import { Button } from "@/components/ui/button";++interface Props {+ className?: string;+ language: string;+ value: string;+}++interface languageMap {+ [key: string]: string | undefined;+}++export const programmingLanguages: languageMap = {+ javascript: ".js",+ python: ".py",+ java: ".java",+ c: ".c",+ cpp: ".cpp",+ "c++": ".cpp",+ "c#": ".cs",+ ruby: ".rb",+ php: ".php",+ swift: ".swift",+ "objective-c": ".m",+ kotlin: ".kt",+ typescript: ".ts",+ go: ".go",+ perl: ".pl",+ rust: ".rs",+ scala: ".scala",+ haskell: ".hs",+ lua: ".lua",+ shell: ".sh",+ sql: ".sql",+ html: ".html",+ css: ".css",+};++export const generateRandomString = (length: number, lowercase = false) => {+ const chars = "ABCDEFGHJKLMNPQRSTUVWXY3456789";+ let result = "";+ for (let i = 0; i < length; i++) {+ result += chars.charAt(Math.floor(Math.random() * chars.length));+ }+ return lowercase ? result.toLowerCase() : result;+};++const CodeBlock: FC<Props> = memo(({ className, language, value }) => {+ const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 });++ const onCopy = () => {+ if (isCopied) return;+ copyToClipboard(value);+ };++ return (+ <div className={` relative w-full font-sans codeblock backdrop-blur-sm bg-zinc-950 ${className}`}>+ <SyntaxHighlighter+ language={language}+ style={coldarkDark}+ PreTag="div"+ customStyle={{+ margin: 0,+ width: "100%",+ background: "transparent",+ padding: "10px 8px",+ }}+ codeTagProps={{+ style: {+ fontSize: "0.85rem",+ fontFamily: "var(--font-mono)",+ },+ }}+ >+ {value}+ </SyntaxHighlighter>+ <div className="absolute rounded-md z-[100] items-center right-0 top-[2px] text-zinc-100 bg-zinc-950">+ <Button+ title="Copy"+ variant="ghost"+ size="icon"+ className="text-xs hover:text-zinc-200/80 hover:bg-zinc-950"+ onClick={onCopy}+ >+ {isCopied ? <IconCheck /> : <IconCopy />}+ <span className="sr-only">Copy code</span>+ </Button>+ </div>+ </div>+ );+});+CodeBlock.displayName = "CodeBlock";++export { CodeBlock };diff --git a/openrewind/components/onboarding/status.tsx b/openrewind/components/onboarding/status.tsxnew file mode 100644index 000000000..f0fb46dc7--- /dev/null+++ b/openrewind/components/onboarding/status.tsx@@ -0,0 +1,439 @@+import React, { useState, useEffect, useRef } from "react";+import { Check, HelpCircle, Video, ChevronDown } from "lucide-react";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import OnboardingNavigation from "@/components/onboarding/navigation";+import { Button } from "../ui/button";+import { Switch } from "../ui/switch";+import {+ TooltipProvider,+ Tooltip,+ TooltipTrigger,+ TooltipContent,+} from "../ui/tooltip";+import { useSettings } from "@/lib/hooks/use-settings";+import { Label } from "../ui/label";+import { LogFileButton } from "../log-file-button";+import { Separator } from "../ui/separator";+import { invoke } from "@tauri-apps/api/core";+import posthog from "posthog-js";+import { toast } from "@/components/ui/use-toast";+import { PermissionButtons } from "../status/permission-buttons";+import { usePlatform } from "@/lib/hooks/use-platform";+import { pipe } from "@screenpipe/browser";+import { VisionEvent } from "@screenpipe/browser";+import Image from "next/image";++interface OnboardingStatusProps {+ className?: string;+ handlePrevSlide: () => void;+ handleNextSlide: () => void;+}++const OnboardingStatus: React.FC<OnboardingStatusProps> = ({+ className = "",+ handlePrevSlide,+ handleNextSlide,+}) => {+ const [status, setStatus] = useState<string | null>(null);+ const [isLoading, setIsLoading] = useState(false);+ const [useChineseMirror, setUseChineseMirror] = useState(false);+ const { updateSettings } = useSettings();+ const { isMac: isMacOS } = usePlatform();+ const [stats, setStats] = useState<{+ screenshots: number;+ audioSeconds: number;+ } | null>(null);+ const [visionEvent, setVisionEvent] = useState<VisionEvent | null>(null);+ const [showScrollButton, setShowScrollButton] = useState(false);+ const containerRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ const fetchStats = async () => {+ try {+ const screenshotsResponse = await fetch(+ "http://localhost:3030/raw_sql",+ {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ query: `SELECT COUNT(*) as count FROM frames`,+ }),+ }+ );+ const screenshotsResult = await screenshotsResponse.json();++ const audioResponse = await fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ query: `+ SELECT+ ROUND(SUM((end_time - start_time)), 2) as total_seconds+ FROM audio_transcriptions+ WHERE start_time IS NOT NULL+ AND end_time IS NOT NULL+ `,+ }),+ });+ const audioResult = await audioResponse.json();++ setStats({+ screenshots: screenshotsResult[0].count,+ audioSeconds: audioResult[0].total_seconds || 0,+ });+ } catch (error) {+ console.error("failed to fetch stats:", error);+ }+ };++ // initial fetch+ fetchStats();++ // set up interval for periodic updates+ const interval = setInterval(fetchStats, 1000); // refresh every second++ // cleanup interval on unmount+ return () => clearInterval(interval);+ }, []);++ // Add effect for streaming screenshots when recording starts+ useEffect(() => {+ let isActive = false;++ const streamVision = async () => {+ if (status !== "ok" || isActive) return;++ isActive = true;+ try {+ console.log("starting vision stream");+ for await (const event of pipe.streamVision(true)) {+ setVisionEvent(event.data);+ console.log("vision event received");++ // Scroll to bottom when new vision event is received+ setTimeout(() => {+ if (containerRef.current) {+ // Only auto-scroll if already near the bottom+ const { scrollTop, scrollHeight, clientHeight } =+ containerRef.current;+ const isNearBottom =+ scrollHeight - scrollTop - clientHeight < 150;++ if (isNearBottom) {+ containerRef.current.scrollTo({+ top: containerRef.current.scrollHeight,+ behavior: "smooth",+ });+ } else if (!showScrollButton) {+ setShowScrollButton(true);+ }+ }+ }, 100);+ }+ } catch (error) {+ console.error("vision stream error:", error);+ } finally {+ isActive = false;+ }+ };++ streamVision();++ return () => {+ pipe.disconnect();+ };+ }, [status, showScrollButton]);++ // Add effect to scroll to bottom when status changes to "ok"+ useEffect(() => {+ if (status === "ok" && containerRef.current) {+ setTimeout(() => {+ if (containerRef.current) {+ containerRef.current.scrollTo({+ top: containerRef.current.scrollHeight,+ behavior: "smooth",+ });+ }+ }, 500); // Give time for the UI to render+ }+ }, [status]);++ // Add scroll event listener to show/hide scroll button+ useEffect(() => {+ const container = containerRef.current;+ if (!container) return;++ const handleScroll = () => {+ const { scrollTop, scrollHeight, clientHeight } = container;+ // Show button if not at bottom (with some threshold)+ const isAtBottom = scrollHeight - scrollTop - clientHeight < 50;+ setShowScrollButton(!isAtBottom);+ };++ container.addEventListener("scroll", handleScroll);+ return () => container.removeEventListener("scroll", handleScroll);+ }, []);++ const scrollToBottom = () => {+ if (containerRef.current) {+ containerRef.current.scrollTo({+ top: containerRef.current.scrollHeight,+ behavior: "smooth",+ });+ }+ };++ const handleStartScreenpipe = async () => {+ posthog.capture("screenpipe_setup_start");+ setIsLoading(true);+ const toastId = toast({+ title: "starting screenpipe",+ description:+ "please wait as we download AI models and start recording\nplease check logs if this is taking longer than expected (30s)",+ duration: Infinity,+ });+ try {+ await invoke("stop_screenpipe");+ await new Promise((resolve) => setTimeout(resolve, 1_000));++ await invoke("spawn_screenpipe", {+ overrideArgs: ["--enable-realtime-vision"],+ });+ await new Promise((resolve) => setTimeout(resolve, 5_000));+ toastId.update({+ id: toastId.id,+ title: "screenpipe started",+ description: "screenpipe is now running.",+ duration: 3000,+ });+ setStatus("ok");+ } catch (error) {+ console.error("failed to start screenpipe:", error);+ toastId.update({+ id: toastId.id,+ title: "error",+ description: "failed to start screenpipe.",+ variant: "destructive",+ duration: 3000,+ });+ } finally {+ toastId.dismiss();+ setIsLoading(false);+ }+ };++ const handleNext = () => {+ setStatus(null);+ handleNextSlide();+ };++ const handlePrev = () => {+ setStatus(null);+ handlePrevSlide();+ };++ const handleChineseMirrorToggle = async (checked: boolean) => {+ setUseChineseMirror(checked);+ updateSettings({ useChineseMirror: checked });+ };++ return (+ <div+ ref={containerRef}+ className={`${className} w-full flex flex-col items-center relative max-h-full`}+ >+ <div className="flex flex-col items-center justify-start w-full overflow-y-auto py-4">+ <div className="w-32 h-32 flex items-center justify-center">+ <img className="w-32 h-32" src="/128x128.png" alt="screenpipe-logo" />+ </div>+ <DialogTitle className="text-center text-2xl">+ setting up screenpipe+ </DialogTitle>+ <p className="text-sm text-muted-foreground pt-2">+ 100% local-first • your data never leaves your device+ </p>++ {isMacOS && (+ <div className="mt-6 pt-4 border-t w-full flex flex-col items-center">+ <h4 className="text-sm font-medium mb-3">check permissions</h4>+ <div className="space-y-2">+ <PermissionButtons type="screen" />+ <PermissionButtons type="audio" />+ <PermissionButtons type="accessibility" />+ </div>+ </div>+ )}++ <Separator className="w-full my-2" />++ <div className="flex items-center space-x-2 mt-4">+ <Switch+ id="chinese-mirror-toggle"+ checked={useChineseMirror}+ onCheckedChange={handleChineseMirrorToggle}+ />+ <Label+ htmlFor="chinese-mirror-toggle"+ className="flex items-center space-x-2"+ >+ <span>i am currently in mainland china</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ enable this option to use a chinese cloud for+ <br />+ downloading AI models+ <br />+ which are blocked in mainland china.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ </div>+ <div className="w-full flex flex-col items-center justify-center gap-2 my-1">+ {status === null ? (+ <Button+ onClick={handleStartScreenpipe}+ disabled={isLoading}+ className="mt-4"+ >+ {isLoading ? (+ <svg+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5"+ viewBox="0 0 24 24"+ strokeLinecap="round"+ strokeLinejoin="round"+ xmlns="http://www.w3.org/2000/svg"+ className="size-5 animate-spin stroke-zinc-400 mr-2"+ >+ <path d="M12 3v3m6.366-.366-2.12 2.12M21 12h-3m.366 6.366-2.12-2.12M12 21v-3m-6.366.366 2.12-2.12M3 12h3m-.366-6.366 2.12 2.12"></path>+ </svg>+ ) : (+ <Video className="h-4 w-4 mr-2" />+ )}+ {isLoading ? "starting..." : "start recording"}+ </Button>+ ) : status === "ok" ? (+ <div className="flex flex-col items-center mt-4">+ <Check className="size-5 stroke-zinc-400" />+ <p className="text-sm text-zinc-600 mt-2 text-center">+ screenpipe setup complete. <br />+ AI models downloaded.+ </p>+ </div>+ ) : (+ <p className="text-center mt-4">{status}</p>+ )}++ <LogFileButton />+ </div>++ {/* Screenshot stream display */}+ {status === "ok" && (+ <div+ className="w-full mt-4 p-4 space-y-3 rounded-lg border bg-card text-card-foreground shadow-sm"+ id="screenshot-preview"+ >+ <div className="flex items-center justify-between">+ <h3 className="text-sm font-medium">live preview</h3>+ <span className="text-xs text-muted-foreground">+ {visionEvent ? "streaming..." : "waiting for stream..."}+ </span>+ </div>++ {visionEvent?.image ? (+ <div className="space-y-3">+ <div className="relative w-full h-[250px] overflow-hidden rounded-md">+ <Image+ src={`data:image/jpeg;base64,${visionEvent.image}`}+ alt="screen capture"+ fill+ style={{ objectFit: "contain" }}+ className="rounded-md"+ priority+ />+ </div>+ <div className="grid grid-cols-2 gap-2 text-xs text-muted-foreground">+ <div>+ <span className="font-medium">app:</span>{" "}+ {visionEvent.app_name || "unknown"}+ </div>+ <div>+ <span className="font-medium">window:</span>{" "}+ {visionEvent.window_name || "unknown"}+ </div>+ <div>+ <span className="font-medium">time:</span>{" "}+ {new Date(visionEvent.timestamp).toLocaleTimeString()}+ </div>+ {visionEvent.browser_url && (+ <div className="col-span-2 truncate">+ <span className="font-medium">url:</span>{" "}+ {visionEvent.browser_url}+ </div>+ )}+ </div>+ </div>+ ) : (+ <div className="animate-pulse bg-gray-200 rounded-md w-full h-[250px]" />+ )}+ </div>+ )}++ {/* Stats display */}+ {stats && (+ <div className="w-full p-4 space-y-3 rounded-lg border bg-card text-card-foreground shadow-sm">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Video className="h-4 w-4 text-muted-foreground" />+ <span className="text-sm text-muted-foreground">screenshots</span>+ </div>+ <span className="font-mono text-sm">+ {stats.screenshots.toLocaleString()}+ </span>+ </div>+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Video className="h-4 w-4 text-muted-foreground" />+ <span className="text-sm text-muted-foreground">audio</span>+ </div>+ <span className="font-mono text-sm">+ {Math.round(stats.audioSeconds / 60)}m+ </span>+ </div>+ </div>+ )}++ {/* Scroll to bottom button */}+ {showScrollButton && status === "ok" && visionEvent && (+ <button+ onClick={scrollToBottom}+ className="fixed bottom-16 right-4 bg-primary text-primary-foreground rounded-full p-2 shadow-md hover:bg-primary/90 transition-opacity z-20"+ aria-label="Scroll to bottom"+ >+ <ChevronDown className="h-4 w-4" />+ </button>+ )}+ </div>+ <OnboardingNavigation+ handlePrevSlide={handlePrev}+ handleNextSlide={handleNext}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingStatus;diff --git a/openrewind/components/onboarding/usecases-selection.tsx b/openrewind/components/onboarding/usecases-selection.tsxnew file mode 100644index 000000000..fd9c611d8--- /dev/null+++ b/openrewind/components/onboarding/usecases-selection.tsx@@ -0,0 +1,130 @@+import React from "react";+import { DialogHeader, DialogTitle } from "@/components/ui/dialog";+import {+ UserRound,+ CircleCheck,+ BriefcaseBusiness,+ Wrench,+ SlidersHorizontal,+} from "lucide-react";+import OnboardingNavigation from "@/components/onboarding/navigation";+import posthog from "posthog-js";++interface OnboardingSelectionProps {+ className?: string;+ selectedOptions: string[] | null;+ handleOptionClick: (option: string) => void;+ handleNextSlide: () => void;+ handlePrevSlide: () => void;+}++const OPTIONS = [+ {+ key: "personalUse",+ icon: UserRound,+ label: "personal use",+ description:+ "personal knowledge management, productivity, custom dev, etc.",+ },+ {+ key: "professionalUse",+ icon: BriefcaseBusiness,+ label: "professional use",+ description:+ "out of the box productivity, meeting summaries, automation, etc.",+ },+ {+ key: "developmentlUse",+ icon: Wrench,+ label: "development purpose",+ description:+ "integrate in your business product, build on top, resell, etc.",+ },+ {+ key: "otherUse",+ icon: SlidersHorizontal,+ label: "other",+ description: "", // TODO editable+ },+];++const SelectionItem: React.FC<{+ option: (typeof OPTIONS)[number];+ isSelected: boolean | undefined;+ onClick: () => void;+}> = ({ option, isSelected, onClick }) => {+ const { icon: Icon, label, description } = option;+ return (+ <div+ className={`w-[90%] flex items-center border prose prose-sm rounded-lg m-[10px] px-4 py-[10px] hover:bg-accent cursor-pointer+ ${+ isSelected+ ? "bg-primary text-primary-foreground transition duration-300 hover:bg-primary/90"+ : ""+ }`}+ onClick={onClick}+ >+ <span className="float-left">+ <Icon className="inline h-4 w-4 mr-2" />+ {label}{" "}+ {description && <span className="text-[12px]">({description})</span>}+ </span>+ {isSelected && <CircleCheck className="inline h-4 w-4 ml-auto" />}+ </div>+ );+};++const OnboardingSelection: React.FC<OnboardingSelectionProps> = ({+ className,+ selectedOptions,+ handleOptionClick,+ handleNextSlide,+ handlePrevSlide,+}) => {+ const handleNext = () => {+ // Track selected options in Posthog+ posthog.capture("onboarding_usecases_selected", {+ selected_options: selectedOptions,+ });++ // Call the original handleNextSlide function+ handleNextSlide();+ };++ return (+ <div className={`${className} flex flex-col h-full`}>+ <DialogHeader className="flex flex-col px-2 justify-center items-center">+ <img+ className="w-24 h-24 justify-center"+ src="/128x128.png"+ alt="screenpipe-logo"+ />+ <DialogTitle className="text-center text-2xl">+ what are you planning to use the screenpipe for?+ </DialogTitle>+ </DialogHeader>++ <div className="flex relative mt-8 justify-center items-center flex-col">+ <span className="text-[15px] w-full text-center text-muted-foreground mb-2">+ you can select multiple options:+ </span>+ {OPTIONS.map((option) => (+ <SelectionItem+ key={option.key}+ option={option}+ isSelected={selectedOptions?.includes(option.key)}+ onClick={() => handleOptionClick(option.key)}+ />+ ))}+ </div>+ <OnboardingNavigation+ handlePrevSlide={handlePrevSlide}+ handleNextSlide={handleNext}+ prevBtnText="previous"+ nextBtnText="next"+ />+ </div>+ );+};++export default OnboardingSelection;diff --git a/openrewind/components/pipe-config-form.tsx b/openrewind/components/pipe-config-form.tsxnew file mode 100644index 000000000..d3870e6cc--- /dev/null+++ b/openrewind/components/pipe-config-form.tsx@@ -0,0 +1,517 @@+import React, { useState, useEffect } from "react";+import { Input } from "./ui/input";+import { Button } from "./ui/button";+import { Label } from "./ui/label";+import { Checkbox } from "./ui/checkbox";+import { invoke } from "@tauri-apps/api/core";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { Layers, Layout, RefreshCw } from "lucide-react";+import { toast } from "./ui/use-toast";+import { InstalledPipe, PipeWithStatus } from "./pipe-store/types";+import { SqlAutocompleteInput } from "./sql-autocomplete-input";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "./ui/select";+import { HelpCircle } from "lucide-react";+import { MemoizedReactMarkdown } from "./markdown";+import { CodeBlock } from "./ui/codeblock";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { open } from "@tauri-apps/plugin-dialog";+import { FolderOpen } from "lucide-react";++type PipeConfigFormProps = {+ pipe: PipeWithStatus;+ onConfigSave: (config: Record<string, any>) => void;+};++type FieldConfig = {+ name: string;+ type: string;+ default: any;+ description: string;+ value: any;+};++export const PipeConfigForm: React.FC<PipeConfigFormProps> = ({+ pipe,+ onConfigSave,+}) => {+ const [config, setConfig] = useState(pipe.installed_config);++ useEffect(() => {+ setConfig(pipe.installed_config);+ }, [pipe]);++ const handleInputChange = (name: string, value: any) => {+ if (!config) return;+ setConfig((prevConfig) => {+ if (!prevConfig) return prevConfig;+ return {+ ...prevConfig,+ fields: prevConfig.fields?.map((field: FieldConfig) =>+ field.name === name ? { ...field, value } : field+ ),+ };+ });+ };++ const renderConfigInput = (field: FieldConfig) => {+ const value = field?.value ?? field?.default;++ const resetToDefault = () => {+ handleInputChange(field.name, field.default);+ };++ switch (field.type) {+ case "boolean":+ return (+ <div className="flex items-center space-x-2">+ <Checkbox+ id={field.name}+ checked={value}+ onCheckedChange={(checked) =>+ handleInputChange(field.name, checked)+ }+ />+ <Label htmlFor={field.name}>{field.name}</Label>+ </div>+ );+ case "number":+ return (+ <div className="flex items-center space-x-2">+ <Input+ id={field.name}+ type="number"+ value={value}+ onChange={(e) =>+ handleInputChange(field.name, parseFloat(e.target.value) || 0)+ }+ onWheel={(e) => e.preventDefault()} // prevent scrolling down breaking stuff+ step="any"+ autoCorrect="off"+ spellCheck="false"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ case "time":+ return (+ <div className="flex items-center space-x-2">+ <Input+ id={field.name}+ type="time"+ value={value}+ onChange={(e) => handleInputChange(field.name, e.target.value)}+ autoCorrect="off"+ spellCheck="false"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ case "window":+ return (+ <div className="flex items-center space-x-2 w-full">+ <SqlAutocompleteInput+ className="w-full"+ id={field.name}+ placeholder={`Enter ${field.name}`}+ value={value}+ onChange={(newValue) => handleInputChange(field.name, newValue)}+ type="window"+ icon={<Layout className="h-4 w-4" />}+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ case "app":+ return (+ <div className="flex items-center space-x-2 w-full">+ <SqlAutocompleteInput+ className="w-full"+ id={field.name}+ placeholder={`Enter ${field.name}`}+ value={value}+ onChange={(newValue) => handleInputChange(field.name, newValue)}+ type="app"+ icon={<Layout className="h-4 w-4" />}+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ case "contentType":+ return (+ <div className="space-y-2">+ <div className="flex items-center space-x-2">+ <Select+ value={value}+ onValueChange={(newValue) =>+ handleInputChange(field.name, newValue)+ }+ >+ <SelectTrigger id={field.name} className="relative w-full">+ <Layers+ className="absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400"+ size={18}+ />+ <SelectValue placeholder="content type" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="all">+ <span className="pl-6">all</span>+ </SelectItem>+ <SelectItem value="ocr">+ <span className="pl-6">ocr</span>+ </SelectItem>+ <SelectItem value="audio">+ <span className="pl-6">audio</span>+ </SelectItem>+ </SelectContent>+ </Select>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ </div>+ );+ case "path":+ return (+ <div className="flex items-center space-x-2">+ <Input+ id={field.name}+ type="text"+ value={value}+ onChange={(e) => handleInputChange(field.name, e.target.value)}+ autoCorrect="off"+ spellCheck="false"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={async () => {+ try {+ const selectedPath = await open({+ directory: true,+ multiple: false,+ });+ if (selectedPath) {+ handleInputChange(field.name, selectedPath);+ }+ } catch (error) {+ console.error("failed to select path:", error);+ }+ }}+ className="h-8 w-8"+ >+ <FolderOpen className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Select folder</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ default:+ return (+ <div className="flex items-center space-x-2">+ <Input+ id={field.name}+ type="text"+ value={value}+ onChange={(e) => handleInputChange(field.name, e.target.value)}+ autoCorrect="off"+ spellCheck="false"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={resetToDefault}+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ );+ }+ };++ return (+ <div className="space-y-6">+ <h3 className="text-lg font-semibold">pipe configuration</h3>++ <div className="space-y-2">+ <Label htmlFor="port" className="font-medium">+ port (number)+ </Label>+ <div className="flex items-center space-x-2">+ <Input+ id="port"+ type="number"+ value={config?.port ?? ""}+ onChange={(e) =>+ setConfig((prev) =>+ prev+ ? {+ ...prev,+ port: parseInt(e.target.value) || 3000,+ }+ : prev+ )+ }+ onWheel={(e) => e.preventDefault()}+ step="1"+ min="1"+ max="65535"+ autoCorrect="off"+ spellCheck="false"+ />+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="icon"+ variant="ghost"+ onClick={() =>+ setConfig((prev) => (prev ? { ...prev, port: 3000 } : prev))+ }+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>Reset to default (3000)</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ <MemoizedReactMarkdown+ className="prose prose-sm break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0 w-full"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p({ children }) {+ return <p className="mb-2 last:mb-0">{children}</p>;+ },+ a({ node, href, children, ...props }) {+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ {...props}+ >+ {children}+ </a>+ );+ },+ code({ node, className, children, ...props }) {+ const content = String(children).replace(/\n$/, "");+ const match = /language-(\w+)/.exec(className || "");++ if (!match) {+ return (+ <code+ className="px-1 py-0.5 rounded-sm font-mono text-sm"+ {...props}+ >+ {content}+ </code>+ );+ }++ return (+ <CodeBlock+ key={Math.random()}+ language={(match && match[1]) || ""}+ value={content}+ {...props}+ />+ );+ },+ }}+ >+ Port number for this pipe. If the selected port is already in use when+ starting the pipe, a random available port will be automatically+ assigned.+ </MemoizedReactMarkdown>+ </div>++ {config?.fields?.map((field: FieldConfig) => (+ <div key={field.name} className="space-y-2">+ <Label htmlFor={field.name} className="font-medium">+ {field.name} ({field.type})+ </Label>+ {renderConfigInput(field)}+ <MemoizedReactMarkdown+ className="prose prose-sm break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0 w-full"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p({ children }) {+ return <p className="mb-2 last:mb-0">{children}</p>;+ },+ a({ node, href, children, ...props }) {+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ {...props}+ >+ {children}+ </a>+ );+ },+ code({ node, className, children, ...props }) {+ const content = String(children).replace(/\n$/, "");+ const match = /language-(\w+)/.exec(className || "");++ if (!match) {+ return (+ <code+ className="px-1 py-0.5 rounded-sm font-mono text-sm"+ {...props}+ >+ {content}+ </code>+ );+ }++ return (+ <CodeBlock+ key={Math.random()}+ language={(match && match[1]) || ""}+ value={content}+ {...props}+ />+ );+ },+ }}+ >+ {field.description}+ </MemoizedReactMarkdown>+ </div>+ ))}+ <Button type="submit" onClick={() => onConfigSave(config || {})}>+ save configuration+ </Button>+ </div>+ );+};diff --git a/openrewind/components/pipe-logger.tsx b/openrewind/components/pipe-logger.tsxnew file mode 100644index 000000000..eaf71a4ab--- /dev/null+++ b/openrewind/components/pipe-logger.tsx@@ -0,0 +1,68 @@+import React, { useState, useEffect, useRef } from "react";+import { listen } from "@tauri-apps/api/event";+import { CodeBlock } from "@/components/ui/codeblock";+import { Button } from "@/components/ui/button";+import { ChevronDown, ChevronUp } from "lucide-react";++interface LogEntry {+ pipe_id: string;+ level: string;+ message: string;+ timestamp: string;+}++interface PipeLoggerProps {+ pipeId: string;+}++const PipeLogger: React.FC<PipeLoggerProps> = ({ pipeId }) => {+ const [logs, setLogs] = useState<string[]>([]);+ const [isExpanded, setIsExpanded] = useState(false);+ const logEndRef = useRef<HTMLDivElement>(null);++ useEffect(() => {+ const unlisten = listen<LogEntry>("log-message", (event) => {+ if (event.payload.pipe_id === pipeId) {+ setLogs((prevLogs) => [+ ...prevLogs,+ `[${event.payload.level}] ${event.payload.message}`,+ ]);+ }+ });++ return () => {+ unlisten.then((f) => f());+ };+ }, [pipeId]);++ useEffect(() => {+ if (isExpanded) {+ logEndRef.current?.scrollIntoView({ behavior: "smooth" });+ }+ }, [logs, isExpanded]);++ const toggleExpand = () => {+ setIsExpanded(!isExpanded);+ };++ return (+ <div className="mt-4 border rounded-md">+ <Button+ onClick={toggleExpand}+ variant="ghost"+ className="w-full flex justify-between items-center p-2"+ >+ <span>Pipe Logs</span>+ {isExpanded ? <ChevronUp size={16} /> : <ChevronDown size={16} />}+ </Button>+ {isExpanded && (+ <div className="p-2">+ <CodeBlock language="log" value={logs.join("\n")} />+ <div ref={logEndRef} />+ </div>+ )}+ </div>+ );+};++export default PipeLogger;diff --git a/openrewind/components/pipe-store-markdown.tsx b/openrewind/components/pipe-store-markdown.tsxnew file mode 100644index 000000000..4b02e8ad4--- /dev/null+++ b/openrewind/components/pipe-store-markdown.tsx@@ -0,0 +1,169 @@+import { MemoizedReactMarkdown } from "@/components/markdown";+import { CodeBlock } from "@/components/ui/codeblock";+import { useState } from "react";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { Button } from "@/components/ui/button";+import { Copy, Check } from "lucide-react";+import { convertHtmlToMarkdown } from "@/lib/utils";++interface MarkdownProps {+ content: string;+ className?: string;+ variant?: "default" | "compact";+}++export function PipeStoreMarkdown({+ content,+ className,+ variant = "default",+}: MarkdownProps) {+ const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 });+ const processedContent = convertHtmlToMarkdown(content);++ return (+ <div className={`prose prose-sm dark:prose-invert max-w-none ${className}`}>+ <MemoizedReactMarkdown+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p({ children }) {+ return <span className="mb-2 last:mb-0">{children}</span>;+ },+ code({ node, className, children, ...props }) {+ const content = String(children).replace(/\n$/, "");+ const match = /language-(\w+)/.exec(className || "");++ return match ? (+ <CodeBlock+ key={Math.random()}+ language={(match && match[1]) || ""}+ value={content}+ {...props}+ />+ ) : (+ <code+ className="relative group py-0.5 px-1 rounded-sm font-mono text-sm text-grey-900 inline-block"+ {...props}+ >+ {content}+ <Button+ size="icon"+ variant="ghost"+ className="absolute -right-3 -top-3 opacity-0 group-hover:opacity-100 transition-opacity h-6 w-6"+ onClick={() => copyToClipboard(content)}+ >+ {isCopied ? (+ <Check className="h-3 w-3" />+ ) : (+ <Copy className="h-3 w-3" />+ )}+ </Button>+ </code>+ );+ },+ a({ href, children }) {+ const isDirectVideo =+ href?.match(/\.(mp4|webm|ogg)$/) ||+ href?.includes("user-attachments/assets");+ const youtubeMatch = href?.match(+ /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtu\.be)\/(?:watch\?v=)?(.+)/+ );++ if (isDirectVideo || youtubeMatch) {+ return (+ <span className="block">+ {isDirectVideo ? (+ <RetryableVideo+ src={href}+ maxRetries={3}+ retryDelay={1000}+ />+ ) : (+ <iframe+ width="100%"+ height="315"+ src={`https://www.youtube.com/embed/${youtubeMatch![1]}`}+ frameBorder="0"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"+ allowFullScreen+ className="max-w-full"+ style={{ maxHeight: "400px" }}+ />+ )}+ </span>+ );+ }++ return (+ <a href={href} target="_blank" rel="noopener noreferrer">+ {children}+ </a>+ );+ },+ img({ node, ...props }) {+ return (+ <img+ {...props}+ className="max-w-full h-auto rounded-lg"+ style={{ maxHeight: "600px" }}+ />+ );+ },+ }}+ >+ {processedContent.replace(/Â/g, "")}+ </MemoizedReactMarkdown>+ </div>+ );+}++const RetryableVideo = ({+ src,+ maxRetries = 3,+ retryDelay = 1000,+}: {+ src?: string;+ maxRetries?: number;+ retryDelay?: number;+}) => {+ const [retries, setRetries] = useState(0);+ const [key, setKey] = useState(0);+ const [isLoading, setIsLoading] = useState(true);++ const handleError = (e: any) => {+ console.error("video loading error:", e);+ if (retries < maxRetries) {+ setTimeout(() => {+ setRetries(retries + 1);+ setKey(key + 1);+ }, retryDelay);+ }+ };++ return (+ <div className="relative">+ {isLoading && (+ <div className="absolute inset-0 animate-pulse bg-zinc-800 rounded-md" />+ )}+ <video+ key={key}+ src={src}+ controls+ className="max-w-full h-auto"+ style={{ maxHeight: "400px" }}+ onError={handleError}+ onLoadStart={() => {+ console.log("video load started:", src);+ setIsLoading(true);+ }}+ onLoadedData={() => {+ console.log("video data loaded:", src);+ setIsLoading(false);+ }}+ >+ your browser does not support the video tag.+ </video>+ </div>+ );+};diff --git a/openrewind/components/pipe-store/add-pipe-form.tsx b/openrewind/components/pipe-store/add-pipe-form.tsxnew file mode 100644index 000000000..c15672c34--- /dev/null+++ b/openrewind/components/pipe-store/add-pipe-form.tsx@@ -0,0 +1,71 @@+import React, { useState } from "react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Plus, FolderOpen, Puzzle } from "lucide-react";+import { open } from "@tauri-apps/plugin-dialog";+import { PublishDialog } from "../publish-dialog";+import { PipeStorePlugin } from "@/lib/api/store";++interface AddPipeFormProps {+ onAddPipe: (url: string) => Promise<any>;+ onLoadFromLocalFolder: (setNewRepoUrl: (url: string) => void) => Promise<any>;+ isHealthy: boolean;+}++export const AddPipeForm: React.FC<AddPipeFormProps> = ({+ onAddPipe,+ onLoadFromLocalFolder,+ isHealthy,+}) => {+ const [newRepoUrl, setNewRepoUrl] = useState("");++ return (+ <div className="border rounded-lg p-4 space-y-3 md:w-[50%] w-full mx-auto">+ <div className="flex gap-2">+ <div className="flex-1 relative">+ <Input+ type="url"+ placeholder={+ !isHealthy+ ? "screenpipe not running..."+ : "enter github url or local path"+ }+ value={newRepoUrl}+ onChange={(e) => setNewRepoUrl(e.target.value)}+ autoCorrect="off"+ autoComplete="off"+ disabled={!isHealthy}+ />+ </div>+ <Button+ onClick={() => onAddPipe(newRepoUrl)}+ disabled={!newRepoUrl || !isHealthy}+ size="icon"+ className="h-10 w-10"+ >+ <Plus className="h-4 w-4" />+ </Button>+ <Button+ onClick={() => onLoadFromLocalFolder(setNewRepoUrl)}+ variant="outline"+ size="icon"+ className="h-10 w-10"+ disabled={!isHealthy}+ >+ <FolderOpen className="h-4 w-4" />+ </Button>+ </div>+ <div className="text-sm text-muted-foreground">+ <a+ href="https://docs.screenpi.pe/plugins"+ target="_blank"+ rel="noopener noreferrer"+ className="hover:underline flex items-center gap-1"+ >+ <Puzzle className="h-3 w-3" />+ learn how to create your own pipe+ </a>+ </div>+ </div>+ );+};diff --git a/openrewind/components/pipe-store/pipe-card.tsx b/openrewind/components/pipe-store/pipe-card.tsxnew file mode 100644index 000000000..c28ee38f2--- /dev/null+++ b/openrewind/components/pipe-store/pipe-card.tsx@@ -0,0 +1,425 @@+import React, { useCallback, useEffect, useState } from "react";+import { Button } from "@/components/ui/button";+import {+ Download,+ Puzzle,+ UserIcon,+ Loader2,+ Power,+ ArrowUpCircle,+ AlertCircle,+} from "lucide-react";+import { PipeStoreMarkdown } from "@/components/pipe-store-markdown";+import { BuildStatus, PipeWithStatus } from "./types";+import { invoke } from "@tauri-apps/api/core";+import { toast } from "@/components/ui/use-toast";+import { motion } from "framer-motion";+import posthog from "posthog-js";+import { useSettings } from "@/lib/hooks/use-settings";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";++interface PipeCardProps {+ pipe: PipeWithStatus;+ onInstall: (pipe: PipeWithStatus, onComplete: () => void) => Promise<any>;+ onPurchase: (pipe: PipeWithStatus, onComplete: () => void) => Promise<any>;+ onClick: (pipe: PipeWithStatus) => void;+ isLoadingPurchase?: boolean;+ isLoadingInstall?: boolean;+ onToggle: (pipe: PipeWithStatus, onComplete: () => void) => Promise<any>;+ setPipe: (pipe: PipeWithStatus) => void;+}++export function getBuildStatus(status: BuildStatus | undefined): string {+ return typeof status === "object" ? status.status : status || "";+}++function getBuildStepMessage(buildStatus: BuildStatus | undefined): string {+ if (typeof buildStatus !== "object") return "building...";++ const { step, status } = buildStatus;+ if (status === "not_started") {+ return "waiting to start...";+ }++ switch (step) {+ case "downloading":+ return "downloading files...";+ case "extracting":+ return "extracting files...";+ case "installing":+ return "installing dependencies...";+ case "completed":+ return "completed installation";+ case "building":+ return "building application...";+ default:+ return step || "processing...";+ }+}++function stripMarkdown(text: string): string {+ if (!text) return "";+ return text+ .replace(/<\/?[^>]+(>|$)/g, "") // Remove HTML tags+ .replace(/\*\*(.*?)\*\*|__(.*?)__/g, "$1$2") // Bold+ .replace(/\*(.*?)\*|_(.*?)_/g, "$1$2") // Italic+ .replace(/\[([^\]]+)\]\(([^)]+)\)/g, "$1") // Links+ .replace(/!\[([^\]]+)\]\(([^)]+)\)/g, "$1") // Images+ .replace(/#{1,6}\s+/g, "") // Headers+ .replace(/`{1,3}(.*?)`{1,3}/gs, "$1") // Code blocks+ .replace(/^\s*>[>\s]*/gm, "") // Blockquotes+ .replace(/^\s*[-*+]\s+/gm, "") // Unordered lists+ .replace(/^\s*\d+\.\s+/gm, "") // Ordered lists+ .replace(/~~(.*?)~~/g, "$1"); // Strikethrough+}++export const PipeCard: React.FC<PipeCardProps> = ({+ pipe,+ onInstall,+ onClick,+ onPurchase,+ setPipe,+ isLoadingPurchase,+ isLoadingInstall,+ onToggle,+}) => {+ const [isLoading, setIsLoading] = useState(false);+ const { settings } = useSettings();++ const handleOpenWindow = async (e: React.MouseEvent) => {+ e.stopPropagation();+ try {+ if (pipe.installed_config?.port) {+ await invoke("open_pipe_window", {+ port: pipe.installed_config.port,+ title: pipe.name,+ });+ }+ } catch (err) {+ console.error("failed to open pipe window:", err);+ toast({+ title: "error opening pipe window",+ description: "please try again or check the logs",+ variant: "destructive",+ });+ }+ };++ useEffect(() => {+ const pollBuildStatus = async () => {+ const id = pipe.is_local ? pipe.id : pipe.name;+ try {+ const response = await fetch(+ `http://localhost:3030/pipes/build-status/${id}`+ );++ if (!response.ok) {+ throw new Error(`HTTP error! status: ${response.status}`);+ }++ const data = await response.json();+ console.log(data, pipe.installed_config?.buildStatus);+ if (+ data.buildStatus?.length > 0 &&+ JSON.stringify(data.buildStatus) !==+ JSON.stringify(pipe.installed_config?.buildStatus)+ ) {+ setPipe({+ ...pipe,+ installed_config: {+ ...pipe.installed_config,+ is_nextjs: pipe.installed_config?.is_nextjs ?? false,+ source: pipe.installed_config?.source ?? "",+ buildStatus: data.buildStatus as BuildStatus,+ },+ });+ }+ } catch (error) {+ console.error("Error polling build status:", error);+ setPipe({+ ...pipe,+ installed_config: {+ ...pipe.installed_config,+ is_nextjs: pipe.installed_config?.is_nextjs ?? false,+ source: pipe.installed_config?.source ?? "",+ buildStatus: {+ status: "error",+ step: "failed",+ error:+ error instanceof Error+ ? error.message+ : "Unknown error occurred",+ } as BuildStatus,+ },+ });+ }+ };++ let buildStatusInterval: NodeJS.Timeout | null = null;+ const buildStatus = pipe.installed_config?.buildStatus;++ const isUpdating =+ buildStatus === "updating" ||+ (typeof buildStatus === "object" && buildStatus.status === "updating");++ if (isUpdating) {+ return;+ }++ const isInProgress =+ buildStatus === "in_progress" ||+ (typeof buildStatus === "object" && buildStatus.status === "in_progress");++ if (isInProgress) {+ buildStatusInterval = setInterval(pollBuildStatus, 3000);+ }++ return () => {+ if (buildStatusInterval) {+ clearInterval(buildStatusInterval);+ }+ };+ }, [pipe.installed_config?.buildStatus]);++ const renderInstallationStatus = useCallback(() => {+ const buildStatus = pipe.installed_config?.buildStatus;+ const status = getBuildStatus(buildStatus);++ if (status === "updating") {+ return (+ <Button+ size="sm"+ variant="outline"+ disabled+ className="hover:bg-muted font-medium relative hover:!bg-muted no-card-hover"+ >+ <Loader2 className="h-3.5 w-3.5 mr-2 animate-spin" />+ <div className="flex flex-col items-start">+ <span>updating...</span>+ </div>+ </Button>+ );+ }++ if (status === "not_started" || status === "in_progress") {+ return (+ <Button+ size="sm"+ variant="outline"+ disabled+ className="hover:bg-muted font-medium relative hover:!bg-muted no-card-hover"+ >+ <Loader2 className="h-3.5 w-3.5 mr-2 animate-spin" />+ <div className="flex flex-col items-start">+ <span>{getBuildStepMessage(buildStatus)}</span>+ </div>+ </Button>+ );+ }++ if (status === "error") {+ return (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ size="sm"+ variant="destructive"+ onClick={(e) => {+ e.stopPropagation();+ setIsLoading(true);+ onToggle(pipe, () => setIsLoading(false));+ }}+ className="font-medium no-card-hover"+ disabled={isLoading}+ >+ <AlertCircle className="h-3.5 w-3.5 mr-2" />+ retry+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ {typeof buildStatus === "object" && buildStatus.error+ ? buildStatus.error+ : "Installation failed"}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );+ }++ if (!pipe.is_enabled && buildStatus === "success") {+ return (+ <Button+ size="sm"+ variant="outline"+ onClick={(e) => {+ e.stopPropagation();+ setIsLoading(true);+ onToggle(pipe, () => setIsLoading(false));+ }}+ className="hover:bg-muted font-medium relative hover:!bg-muted no-card-hover"+ disabled={isLoading}+ >+ <Power className="h-3.5 w-3.5 mr-2" />+ enable+ </Button>+ );+ }++ return (+ <Button+ size="sm"+ variant="outline"+ onClick={handleOpenWindow}+ className="hover:bg-muted font-medium relative no-card-hover"+ >+ <Puzzle className="h-3.5 w-3.5 mr-2" />+ open+ </Button>+ );+ }, [pipe.installed_config?.buildStatus]);++ return (+ <motion.div+ className="group border rounded-xl p-5 hover:bg-muted/40 has-[.no-card-hover:hover]:hover:bg-transparent transition-all duration-200 cursor-pointer backdrop-blur-sm relative"+ onClick={() => onClick(pipe)}+ initial={{ opacity: 0, scale: 0.95 }}+ animate={{ opacity: 1, scale: 1 }}+ whileHover={{+ boxShadow: "0 0 10px rgba(255,255,255,0.1)",+ transition: { duration: 0.2 },+ }}+ >+ <div className="flex flex-col h-full justify-between space-y-4">+ <div className="flex items-start justify-between gap-4">+ <div className="flex items-center gap-3">+ <div className="flex-1 min-w-0">+ <h3 className="font-semibold text-lg tracking-tight">+ {pipe.name}+ </h3>+ <div className="text-sm text-muted-foreground">+ <PipeStoreMarkdown+ content={+ (pipe.description+ ? stripMarkdown(pipe.description).substring(0, 90)+ : "") + "..."+ }+ variant="compact"+ />+ </div>+ </div>+ </div>+ <div className="flex items-center gap-2 isolate">+ {pipe.is_installed ? (+ renderInstallationStatus()+ ) : (+ <Button+ size="sm"+ variant={pipe.is_paid ? "default" : "outline"}+ onClick={(e) => {+ e.stopPropagation();+ if (pipe.is_paid && !pipe.has_purchased) {+ setIsLoading(true);+ onPurchase(pipe, () => setIsLoading(false));+ posthog.capture("pipe_purchase", {+ pipe_id: pipe.id,+ email: settings.user?.email,+ });+ } else {+ setIsLoading(true);+ onInstall(pipe, () => setIsLoading(false));+ posthog.capture("pipe_install", {+ pipe_id: pipe.id,+ email: settings.user?.email,+ });+ }+ }}+ className="font-medium no-card-hover"+ disabled={isLoadingPurchase}+ >+ {isLoadingPurchase ? (+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ ) : pipe.is_paid && !pipe.has_purchased ? (+ `$${pipe.price}`+ ) : (+ <>+ <Download className="h-3.5 w-3.5 mr-2" />+ get+ </>+ )}+ </Button>+ )}+ </div>+ </div>+ {pipe.developer_accounts.developer_name && (+ <div className="flex items-center gap-3 text-xs text-muted-foreground mt-auto">+ <div className="flex items-center gap-1">+ <div className="size-6 rounded-full bg-muted flex items-center justify-center">+ <UserIcon className="size-3" />+ </div>+ {pipe.developer_accounts.developer_name}+ </div>+ {pipe.plugin_analytics.downloads_count != null && (+ <span className="flex items-center gap-1">+ <Download className="h-3 w-3" />+ {pipe.plugin_analytics.downloads_count}+ </span>+ )}+ {pipe.source_code && (+ <motion.a+ href={pipe.source_code}+ target="_blank"+ rel="noopener noreferrer"+ onClick={(e) => e.stopPropagation()}+ className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-muted hover:bg-accent hover:text-accent-foreground transition-all duration-200 no-card-hover relative overflow-hidden"+ whileHover={{+ scale: 1.05,+ transition: {+ type: "spring",+ stiffness: 400,+ damping: 10,+ },+ }}+ whileTap={{ scale: 0.95 }}+ >+ <motion.div+ className="absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent"+ initial={{ x: "-100%" }}+ whileHover={{+ x: "100%",+ transition: {+ duration: 0.6,+ ease: "easeInOut",+ },+ }}+ />+ <Download className="h-3 w-3" />+ <span className="relative z-10 font-mono">source</span>+ </motion.a>+ )}+ {pipe.is_local && (+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-muted font-mono text-xs">+ local+ </span>+ )}+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/5 font-mono text-xs">+ {pipe.installed_config?.version && "v"}+ {pipe.installed_config?.version}+ </span>+ {pipe.has_update && (+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white/10 font-mono text-xs animate-pulse">+ <ArrowUpCircle className="h-3 w-3" />+ update+ </span>+ )}+ </div>+ )}+ </div>+ </motion.div>+ );+};diff --git a/openrewind/components/pipe-store/pipe-details.tsx b/openrewind/components/pipe-store/pipe-details.tsxnew file mode 100644index 000000000..4caf77c06--- /dev/null+++ b/openrewind/components/pipe-store/pipe-details.tsx@@ -0,0 +1,331 @@+import React, { useState } from "react";+import { Button } from "@/components/ui/button";+import {+ ExternalLink,+ Power,+ Puzzle,+ RefreshCw,+ Trash2,+ X,+ Download,+ Loader2,+} from "lucide-react";+import { PipeStoreMarkdown } from "@/components/pipe-store-markdown";+import { PipeWithStatus } from "./types";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "../ui/tooltip";+import { LogFileButton } from "../log-file-button";+import { toast } from "../ui/use-toast";+import { invoke } from "@tauri-apps/api/core";+import { PipeConfigForm } from "../pipe-config-form";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { Badge } from "../ui/badge";+import { getBuildStatus } from "./pipe-card";++interface PipeDetailsProps {+ pipe: PipeWithStatus;+ onClose: () => void;+ onToggle: (pipe: PipeWithStatus, onComplete: () => void) => void;+ onConfigSave: (config: Record<string, any>, onComplete: () => void) => void;+ onUpdate: (pipe: PipeWithStatus, onComplete: () => void) => void;+ onDelete: (pipe: PipeWithStatus, onComplete: () => void) => void;+ onRefreshFromDisk: (pipe: PipeWithStatus, onComplete: () => void) => void;+ onInstall: (pipe: PipeWithStatus, onComplete: () => void) => void;+ onPurchase: (pipe: PipeWithStatus, onComplete: () => void) => void;+ isLoadingPurchase?: boolean;+ isLoadingInstall?: boolean;+}++const buildStatusNotAllows = ["in_progress", "not_started"];++const isValidSource = (source?: string): boolean => {+ if (!source) return false;++ // github url pattern+ const githubPattern = /^https?:\/\/(?:www\.)?github\.com\/.+\/.+/i;++ // filesystem path patterns (unix and windows)+ const unixPattern = /^(?:\/|~\/)/;+ const windowsPattern = /^[a-zA-Z]:\\|^\\\\/;++ return (+ githubPattern.test(source) ||+ unixPattern.test(source) ||+ windowsPattern.test(source)+ );+};++export const PipeDetails: React.FC<PipeDetailsProps> = ({+ pipe,+ onClose,+ onToggle,+ onConfigSave,+ onUpdate,+ onDelete,+ onRefreshFromDisk,+ onInstall,+ onPurchase,+ isLoadingPurchase,+ isLoadingInstall,+}) => {+ const [isLoading, setIsLoading] = useState(false);+ return (+ <div className="fixed inset-0 bg-background transform transition-transform duration-200 ease-in-out flex flex-col">+ <div className="flex items-center justify-between p-4 border-b bg-muted/30 flex-shrink-0">+ <div className="flex items-center gap-3">+ <Button+ variant="ghost"+ size="sm"+ onClick={onClose}+ className="hover:bg-muted"+ >+ <X className="h-4 w-4" />+ </Button>+ <h2 className="text-lg font-medium">{pipe.name}</h2>+ <Badge variant={"outline"} className="font-mono text-xs">+ by {pipe.developer_accounts.developer_name}+ </Badge>+ {pipe.has_update && (+ <Badge+ variant="default"+ className="bg-gray-800 text-xs animate-pulse"+ >+ update available+ </Badge>+ )}+ </div>+ </div>++ <div className="flex-1 flex overflow-hidden">+ {pipe.is_installed && (+ <div className="w-[320px] border-r bg-muted/10 flex-shrink-0 overflow-y-auto">+ <div className="p-4 space-y-4">+ <div className="flex gap-2">+ <div className="flex flex-col gap-1">+ <div className="flex items-center gap-2">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={() => {+ setIsLoading(true);+ onToggle(pipe, () => setIsLoading(false));+ }}+ variant={+ pipe.installed_config?.enabled+ ? "default"+ : "outline"+ }+ size="icon"+ className="h-8 w-8"+ >+ <Power className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>+ {pipe.installed_config?.enabled+ ? "disable"+ : "enable"}{" "}+ pipe+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>++ <LogFileButton className="text-xs" />++ {pipe.installed_config?.source &&+ isValidSource(pipe.installed_config.source) ? (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={() =>+ onRefreshFromDisk(pipe, () =>+ setIsLoading(false)+ )+ }+ variant="outline"+ size="icon"+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>refresh the code from your local disk</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ ) : (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={() => {+ onUpdate(pipe, () => setIsLoading(false));+ }}+ variant="outline"+ size="icon"+ className="h-8 w-8"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ {pipe.has_update ? (+ <p>update available! click to update pipe</p>+ ) : (+ <p>check for updates</p>+ )}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ )}++ <div className="flex items-center gap-2">+ {/* Only show delete button for non-core pipes */}+ {!pipe.is_core_pipe && (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={() => {+ onDelete(pipe, () => setIsLoading(false));+ }}+ variant="outline"+ size="icon"+ className="h-8 w-8"+ >+ <Trash2 className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>delete pipe</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ )}+ </div>+ </div>+ </div>+ </div>++ {pipe.installed_config?.enabled && (+ <div className="space-y-3 pt-4 border-t">+ <PipeConfigForm+ pipe={pipe}+ onConfigSave={(config) => {+ onConfigSave(config, () => setIsLoading(false));+ }}+ />+ </div>+ )}+ </div>+ </div>+ )}++ <main className="flex-1 overflow-y-auto">+ <div className="max-w-3xl mx-auto p-8 ">+ {!pipe.is_installed && (+ <div className="mb-6">+ <Button+ size="sm"+ variant={pipe.is_paid ? "default" : "outline"}+ onClick={() => {+ if (pipe.is_paid && !pipe.has_purchased) {+ setIsLoading(true);+ onPurchase(pipe, () => setIsLoading(false));+ } else {+ setIsLoading(true);+ onInstall(pipe, () => setIsLoading(false));+ }+ }}+ className="font-medium"+ disabled={isLoadingPurchase || isLoadingInstall}+ >+ {isLoadingPurchase ? (+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ ) : isLoadingInstall ? (+ <>+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ installing...+ </>+ ) : pipe.is_paid && !pipe.has_purchased ? (+ `$${pipe.price}`+ ) : (+ <>+ <Download className="h-3.5 w-3.5 mr-2" />+ get+ </>+ )}+ </Button>+ </div>+ )}++ {pipe.installed_config?.enabled &&+ !buildStatusNotAllows.includes(+ getBuildStatus(pipe.installed_config.buildStatus) ?? ""+ ) &&+ pipe.installed_config?.port && (+ <div>+ <div className="flex justify-between items-center mb-4">+ <div className="flex gap-2">+ <Button+ variant="outline"+ onClick={() =>+ openUrl(+ `http://localhost:${pipe.installed_config?.port}`+ )+ }+ disabled={!pipe.installed_config?.enabled}+ >+ <ExternalLink className="mr-2 h-3.5 w-3.5" />+ open in browser+ </Button>+ <Button+ variant="default"+ onClick={async () => {+ try {+ await invoke("open_pipe_window", {+ port: pipe.installed_config!.port,+ title: pipe.name,+ });+ } catch (err) {+ console.error("failed to open pipe window:", err);+ toast({+ title: "error opening pipe window",+ description: "please try again or check the logs",+ variant: "destructive",+ });+ }+ }}+ disabled={!pipe.installed_config.enabled}+ >+ <Puzzle className="mr-2 h-3.5 w-3.5" />+ open as app+ </Button>+ </div>+ </div>+ </div>+ )}++ {pipe.description && (+ <div>+ <h3 className="text-lg font-medium mb-4">about this pipe</h3>+ <div className="prose prose-sm dark:prose-invert max-w-none">+ <PipeStoreMarkdown content={pipe.description} />+ </div>+ </div>+ )}+ </div>+ </main>+ </div>+ </div>+ );+};diff --git a/openrewind/components/pipe-store/types.ts b/openrewind/components/pipe-store/types.tsnew file mode 100644index 000000000..265ab8fda--- /dev/null+++ b/openrewind/components/pipe-store/types.ts@@ -0,0 +1,53 @@+import { PipeStorePlugin } from "@/lib/api/store";++export type BuildStatus =+ | string+ | {+ status: "in_progress" | "error" | "success" | "not_started" | "updating";+ step: string;+ progress?: number;+ error?: string;+ };++export interface InstalledConfig {+ port?: number;+ enabled?: boolean;+ version?: string;+ buildStatus?: BuildStatus;+ is_nextjs?: boolean;+ source?: string;+}++export interface InstalledPipe {+ config: InstalledConfig & {+ id?: string;+ enabled?: boolean;+ is_nextjs: boolean;+ port?: number;+ source: string;+ crons?: {+ path: string;+ schedule: string;+ }[];+ fields?: Record<string, any>;+ version?: string;+ };+ desc: string;+ id: string;+}++export interface PipeWithStatus extends PipeStorePlugin {+ is_installed: boolean;+ is_enabled: boolean;+ installed_config?: InstalledPipe["config"];+ has_purchased: boolean;+ is_core_pipe: boolean;+ is_installing?: boolean;+ has_update?: boolean;+ is_local?: boolean;+}++export interface BrokenPipe {+ id: string;+ lastAttempt: number;+}diff --git a/openrewind/components/pretty-link.tsx b/openrewind/components/pretty-link.tsxnew file mode 100644index 000000000..7ccba21ed--- /dev/null+++ b/openrewind/components/pretty-link.tsx@@ -0,0 +1,33 @@+import { cn } from "@/lib/utils";++export function PrettyLink({+ href,+ children,+ variant = "filled",+ className,+}: {+ href: string;+ children: React.ReactNode;+ variant?: "filled" | "outline";+ className?: string;+}) {+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ className={cn(+ className,+ "inline-flex items-center rounded-md px-4 py-2",+ "text-sm font-medium shadow-sm",+ "focus:outline-none focus:ring-2",+ "focus:ring-gray-500 focus:ring-offset-2 transition-colors duration-200",+ variant === "filled"+ ? "bg-gray-600 text-white hover:bg-gray-700"+ : "bg-transparent text-gray-600 border border-gray-600 hover:bg-gray-100"+ )}+ >+ {children}+ </a>+ );+}diff --git a/openrewind/components/publish-dialog.tsx b/openrewind/components/publish-dialog.tsxnew file mode 100644index 000000000..cee1ab862--- /dev/null+++ b/openrewind/components/publish-dialog.tsx@@ -0,0 +1,226 @@+import React, { useState } from "react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";+import { Textarea } from "@/components/ui/textarea";+import { Plus, Upload, ExternalLink } from "lucide-react";+import { toast } from "./ui/use-toast";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { PipeWithStatus } from "./pipe-store/types";++interface PublishDialogProps {+ app: PipeWithStatus | null;+}++export const PublishDialog: React.FC<PublishDialogProps> = ({ app }) => {+ const [open, setOpen] = useState(false);+ const [name, setName] = useState(app?.id || "");+ const [description, setDescription] = useState("");+ const [githubUrl, setGithubUrl] = useState("");+ const [price, setPrice] = useState("0");+ const [isSubmitting, setIsSubmitting] = useState(false);+ const [githubUsername, setGithubUsername] = useState("");+ const [issueUrl, setIssueUrl] = useState<string | null>(null);++ const handleSubmit = async () => {+ try {+ setIsSubmitting(true);++ const host = "https://screenpi.pe";+ // const host = "http://localhost:3001";++ const response = await fetch(`${host}/api/publish`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ name,+ description,+ githubUrl,+ price: parseFloat(price),+ githubUsername,+ }),+ });++ const data = await response.json();+ if (!response.ok) throw new Error("failed to publish");++ setIssueUrl(data.issueUrl);+ toast({+ title: "submission received",+ description: "we'll review your app and add it to the store soon",+ });+ } catch (error) {+ console.error("failed to publish:", error);+ toast({+ title: "error publishing app",+ description: "please try again later",+ variant: "destructive",+ });+ } finally {+ setIsSubmitting(false);+ }+ };++ return (+ <>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ onClick={() => setOpen(true)}+ variant="outline"+ size="icon"+ className="h-10 w-10"+ >+ <Upload className="h-4 w-4" />+ </Button>+ </TooltipTrigger>+ <TooltipContent>+ <p>publish to store</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>++ <Dialog open={open} onOpenChange={setOpen}>+ <DialogContent className="sm:max-w-[425px]">+ <DialogHeader>+ <DialogTitle>publish to store</DialogTitle>+ <DialogDescription>+ submit your app to the screenpipe community store+ </DialogDescription>+ </DialogHeader>++ {issueUrl ? (+ <div className="py-6 space-y-4">+ <div className="text-center space-y-2">+ <div className="text-lg font-medium">+ submission successful!+ </div>+ <p className="text-sm text-muted-foreground">+ your app has been submitted for review+ </p>+ </div>+ <Button className="w-full" onClick={() => openUrl(issueUrl)}>+ <ExternalLink className="mr-2 h-4 w-4" />+ view submission status+ </Button>+ <Button+ variant="outline"+ className="w-full"+ onClick={() => {+ setOpen(false);+ setIssueUrl(null);+ // Reset other form fields+ setName("");+ setDescription("");+ setGithubUrl("");+ setGithubUsername("");+ }}+ >+ close+ </Button>+ </div>+ ) : (+ <>+ <div className="grid gap-4 py-4">+ <div className="grid gap-2">+ <Label htmlFor="name">name</Label>+ <Input+ id="name"+ value={name}+ onChange={(e) => setName(e.target.value)}+ placeholder="my-awesome-app"+ autoCorrect="off"+ autoComplete="off"+ />+ </div>+ <div className="grid gap-2">+ <Label htmlFor="description">description</Label>+ <Textarea+ id="description"+ value={description}+ onChange={(e) => setDescription(e.target.value)}+ placeholder="what does your app do?"+ />+ </div>+ <div className="grid gap-2">+ <Label htmlFor="github">github repository url</Label>+ <div className="flex gap-2">+ <Input+ id="github"+ value={githubUrl}+ onChange={(e) => setGithubUrl(e.target.value)}+ placeholder="https://github.com/username/repo"+ autoCorrect="off"+ autoComplete="off"+ />+ <Button+ variant="outline"+ onClick={() => openUrl("https://github.com/new")}+ size="icon"+ >+ <Plus className="h-4 w-4" />+ </Button>+ </div>+ </div>+ <div className="grid gap-2">+ <Label htmlFor="price">price (soon)</Label>+ <Input+ id="price"+ type="number"+ value={price}+ onChange={(e) => setPrice(e.target.value)}+ disabled+ min="0"+ step="0.01"+ />+ </div>+ <div className="grid gap-2">+ <Label htmlFor="github-username">github username</Label>+ <Input+ id="github-username"+ value={githubUsername}+ onChange={(e) => setGithubUsername(e.target.value)}+ placeholder="your github username"+ autoCorrect="off"+ autoComplete="off"+ />+ </div>+ </div>+ <DialogFooter>+ <Button+ onClick={handleSubmit}+ disabled={+ !name ||+ !description ||+ !githubUrl ||+ !githubUsername ||+ isSubmitting+ }+ >+ {isSubmitting ? "submitting..." : "submit for review"}+ </Button>+ </DialogFooter>+ </>+ )}+ </DialogContent>+ </Dialog>+ </>+ );+};diff --git a/openrewind/components/rewind/ai-presets-selector.tsx b/openrewind/components/rewind/ai-presets-selector.tsxnew file mode 100644index 000000000..8d99ea325--- /dev/null+++ b/openrewind/components/rewind/ai-presets-selector.tsx@@ -0,0 +1,1318 @@+import { useSettings } from "@/lib/hooks/use-settings";+import { useMemo, useState, useEffect } from "react";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "./ui/command";+import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover";+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "./ui/dialog";+import { Button } from "./ui/button";+import {+ Check,+ ChevronsUpDown,+ Plus,+ Copy,+ Edit2,+ Star,+ Trash2,+ Terminal,+ Loader2,+ HelpCircle,+ Eye,+ EyeOff,+ Settings,+} from "lucide-react";+import { cn } from "@/lib/utils";+import { toast } from "sonner";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { Input } from "./ui/input";+import { Label } from "./ui/label";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "./ui/select";+import { Textarea } from "./ui/textarea";+import { Slider } from "./ui/slider";++export const Icons = {+ openai: (props: any) => (+ <svg+ fill="currentColor"+ viewBox="0 0 24 24"+ role="img"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.0264 1.1706a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4929 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0264 1.1706a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.8956zm16.0788 3.7951-5.8144-3.3543 2.0264-1.1706a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.4068-.6813zm2.0834-3.0089-.142-.0852-4.7782-2.7913a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1658a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654 2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" />+ </svg>+ ),+ settings: Settings,+ terminal: Terminal,+ spinner: Loader2,+};++interface BaseAIPreset {+ id: string;+ maxContextChars: number;+ url: string;+ model: string;+ defaultPreset: boolean;+ prompt: string;+}++type AIPreset = BaseAIPreset &+ (+ | {+ provider: "openai";+ apiKey: string;+ }+ | {+ provider: "native-ollama";+ }+ | {+ provider: "screenpipe-cloud";+ }+ | {+ provider: "custom";+ apiKey?: string;+ }+ );++interface BaseRecommendedPreset {+ id: string;+ maxContextChars: number;+ model: string;+ prompt: string;+}++type RecommendedPreset = BaseRecommendedPreset &+ (+ | {+ provider: "openai";+ }+ | {+ provider: "native-ollama";+ }+ | {+ provider: "screenpipe-cloud";+ }+ );++interface AIProviderConfigProps {+ onSubmit: (data: AIProviderData) => void;+ defaultPreset?: {+ provider: "openai" | "native-ollama" | "custom" | "screenpipe-cloud";+ apiKey?: string;+ baseUrl?: string;+ modelName?: string;+ maxContextChars?: number;+ prompt?: string;+ id?: string;+ };+}++interface AIProviderData {+ provider: "openai" | "native-ollama" | "custom" | "screenpipe-cloud";+ apiKey?: string;+ baseUrl?: string;+ modelName?: string;+ maxContextChars?: number;+ prompt?: string;+ id?: string;+}++interface OpenAIModel {+ id: string;+ created?: number;+ owned_by?: string;+}++export const DEFAULT_PROMPT = `Rules:+- You can analyze/view/show/access videos to the user by putting .mp4 files in a code block (we'll render it) like this: \`/users/video.mp4\`, use the exact, absolute, file path from file_path property+- Do not try to embed video in links (e.g. [](.mp4) or https://.mp4) instead put the file_path in a code block using backticks+- Do not put video in multiline code block it will not render the video (e.g. \`\`\`bash\n.mp4\`\`\` IS WRONG) instead using inline code block with single backtick+- Always answer my question/intent, do not make up things+`;++export function AIProviderConfig({+ onSubmit,+ defaultPreset,+}: AIProviderConfigProps) {+ const [selectedProvider, setSelectedProvider] = useState<+ AIProviderData["provider"]+ >(defaultPreset?.provider || "openai");+ const { settings } = useSettings();+ const [isLoading, setIsLoading] = useState(false);+ const [openaiModels, setOpenAIModels] = useState<OpenAIModel[]>([]);+ const [isLoadingModels, setIsLoadingModels] = useState(false);+ const [idError, setIdError] = useState<string | null>(null);+ const [showApiKey, setShowApiKey] = useState(false);+ const [formData, setFormData] = useState<AIProviderData>({+ provider: defaultPreset?.provider || "openai",+ apiKey: defaultPreset?.apiKey || "",+ baseUrl: defaultPreset?.baseUrl || "",+ modelName: defaultPreset?.modelName || "",+ maxContextChars: defaultPreset?.maxContextChars || 512000,+ prompt: defaultPreset?.prompt || DEFAULT_PROMPT,+ id: defaultPreset?.id || "",+ });++ const validateId = (id: string | undefined): boolean => {+ if (!id?.trim()) {+ setIdError("name is required");+ return false;+ }++ // Check if ID ends with 'copy' (case insensitive)+ if (id.trim().toLowerCase().endsWith("copy")) {+ setIdError("name cannot end with 'copy'");+ return false;+ }++ // Check for duplicate IDs, excluding the current preset being edited+ const isDuplicate = settings?.aiPresets?.some(+ (preset) =>+ preset.id.toLowerCase() === id.toLowerCase() &&+ preset.id !== defaultPreset?.id,+ );++ if (isDuplicate) {+ setIdError("name already exists");+ return false;+ }++ setIdError(null);+ return true;+ };++ const handleIdChange = (value: string) => {+ setFormData((prev) => ({ ...prev, id: value }));+ validateId(value);+ };++ const fetchOpenAIModels = async (baseUrl: string, apiKey: string) => {+ setIsLoadingModels(true);+ try {+ const response = await fetch(`${baseUrl}/models`, {+ headers: {+ Authorization: `Bearer ${apiKey}`,+ "Content-Type": "application/json",+ },+ });++ if (!response.ok) {+ throw new Error("failed to fetch models");+ }++ const data = await response.json();+ setOpenAIModels(data.data || []);+ } catch (error) {+ console.error("error fetching models:", error);+ setOpenAIModels([]);+ } finally {+ setIsLoadingModels(false);+ }+ };++ const fetchOllamaModels = async (baseUrl: string) => {+ setIsLoadingModels(true);+ try {+ const response = await fetch(`${baseUrl}/models`);++ if (!response.ok) {+ throw new Error("failed to fetch ollama models");+ }++ const data = (await response.json()) as {+ data: OpenAIModel[];+ };+ setOpenAIModels(data.data || []);+ } catch (error) {+ console.error("error fetching ollama models:", error);+ setOpenAIModels([]);+ } finally {+ setIsLoadingModels(false);+ }+ };++ useEffect(() => {+ setOpenAIModels([]);+ if (selectedProvider === "openai" && formData.apiKey) {+ setOpenAIModels([+ { id: "gpt-4" },+ {+ id: "gpt-3.5-turbo",+ },+ ]);+ } else if (selectedProvider === "native-ollama") {+ const baseUrl = "http://localhost:11434/v1";+ fetchOllamaModels(baseUrl);+ } else if (selectedProvider === "screenpipe-cloud") {+ fetchOpenAIModels(+ "https://ai-proxy.i-f9f.workers.dev/v1",+ settings?.user?.token ?? "",+ );+ } else if (+ selectedProvider === "custom" &&+ formData.baseUrl &&+ formData.apiKey+ ) {+ fetchOpenAIModels(formData.baseUrl, formData.apiKey);+ }+ }, [selectedProvider, formData.apiKey, formData.baseUrl]);++ const handleSubmit = async (e: React.FormEvent) => {+ e.preventDefault();++ if (!validateId(formData.id)) {+ return;+ }++ setIsLoading(true);+ try {+ onSubmit({+ ...formData,+ id: formData.id?.trim() || "",+ });+ } finally {+ setIsLoading(false);+ }+ };++ return (+ <div className="w-full space-y-6 rounded-lg bg-card p-6">+ <div>+ <h2 className="text-lg font-semibold">+ {defaultPreset?.id ? "edit ai provider" : "ai provider"}+ </h2>+ <p className="text-sm text-muted-foreground">+ {defaultPreset?.id+ ? "modify your ai provider settings"+ : "configure your ai provider settings"}+ </p>+ </div>++ <form onSubmit={handleSubmit} className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="name" className="flex items-center gap-2">+ name+ {idError && (+ <span className="text-xs text-destructive font-normal">+ {idError}+ </span>+ )}+ </Label>+ <Input+ id="name"+ type="text"+ placeholder="enter preset name"+ value={formData.id || undefined}+ onChange={(e) => handleIdChange(e.target.value)}+ className={cn(+ "font-mono",+ idError && "border-destructive focus-visible:ring-destructive",+ )}+ autoComplete="off"+ autoCorrect="off"+ autoCapitalize="off"+ disabled={+ Boolean(defaultPreset?.id) &&+ !defaultPreset?.id?.endsWith("-copy")+ }+ />+ </div>++ <div className="grid grid-cols-4 gap-4">+ <Button+ type="button"+ variant={selectedProvider === "openai" ? "default" : "outline"}+ className="flex h-24 flex-col items-center justify-center gap-2"+ onClick={() => {+ setSelectedProvider("openai");+ setFormData({ ...formData, provider: "openai" });+ }}+ >+ <Icons.openai className="h-8 w-8" />+ <span>openai</span>+ </Button>++ <Button+ type="button"+ variant={+ selectedProvider === "native-ollama" ? "default" : "outline"+ }+ className="flex h-24 flex-col items-center justify-center gap-2"+ onClick={() => {+ setSelectedProvider("native-ollama");+ setFormData({+ ...formData,+ provider: "native-ollama",+ baseUrl: "http://localhost:11434/v1",+ });+ }}+ >+ <Icons.terminal className="h-8 w-8" />+ <span>ollama</span>+ </Button>++ <Button+ type="button"+ disabled={!settings?.user?.token}+ variant={+ selectedProvider === "screenpipe-cloud" ? "default" : "outline"+ }+ className="flex h-24 flex-col items-center justify-center gap-2"+ onClick={() => {+ setSelectedProvider("screenpipe-cloud");+ setFormData({+ ...formData,+ provider: "screenpipe-cloud",+ baseUrl: "https://ai-proxy.i-f9f.workers.dev/v1",+ });+ }}+ >+ <Icons.terminal className="h-8 w-8" />+ <span>screenpipe</span>+ {!settings?.user?.token && (+ <span className="text-xs text-destructive font-normal">+ login to screenpipe to use this provider+ </span>+ )}+ </Button>++ <Button+ type="button"+ variant={selectedProvider === "custom" ? "default" : "outline"}+ className="flex h-24 flex-col items-center justify-center gap-2"+ onClick={() => {+ setSelectedProvider("custom");+ setFormData({+ ...formData,+ provider: "custom",+ baseUrl: "http://localhost:11434/v1",+ });+ }}+ >+ <Icons.settings className="h-8 w-8" />+ <span>custom</span>+ </Button>+ </div>++ {selectedProvider === "openai" && (+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="apiKey">api key</Label>+ <div className="relative">+ <Input+ id="apiKey"+ type={showApiKey ? "text" : "password"}+ placeholder="sk-..."+ value={formData.apiKey || ""}+ onChange={(e) =>+ setFormData({ ...formData, apiKey: e.target.value })+ }+ className="pr-10"+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ <div className="space-y-2">+ <Label htmlFor="model">model</Label>+ <Select+ value={formData.modelName}+ onValueChange={(value) =>+ setFormData({ ...formData, modelName: value })+ }+ >+ <SelectTrigger>+ <SelectValue+ placeholder={+ isLoadingModels ? "loading models..." : "select model"+ }+ />+ </SelectTrigger>+ <SelectContent>+ {openaiModels.length > 0 ? (+ openaiModels.map((model) => (+ <SelectItem key={model.id} value={model.id}>+ {model.id}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="no-models" disabled>+ {isLoadingModels ? "loading..." : "no models found"}+ </SelectItem>+ )}+ </SelectContent>+ </Select>+ </div>+ </div>+ )}++ {selectedProvider === "native-ollama" && (+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="baseUrl">base url</Label>+ <Input+ id="baseUrl"+ type="text"+ placeholder="http://localhost:11434"+ value={formData.baseUrl || ""}+ onChange={(e) =>+ setFormData({ ...formData, baseUrl: e.target.value })+ }+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="model">model</Label>+ <Select+ value={formData.modelName}+ onValueChange={(value) =>+ setFormData({ ...formData, modelName: value })+ }+ >+ <SelectTrigger>+ <SelectValue+ placeholder={+ isLoadingModels ? "loading models..." : "select model"+ }+ />+ </SelectTrigger>+ <SelectContent>+ {openaiModels.length > 0 ? (+ openaiModels.map((model) => (+ <SelectItem key={model.id} value={model.id}>+ {model.id}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="no-models" disabled>+ {isLoadingModels ? "loading..." : "no models found"}+ </SelectItem>+ )}+ </SelectContent>+ </Select>+ </div>+ </div>+ )}++ {selectedProvider === "screenpipe-cloud" && (+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="model">model</Label>+ <Select+ value={formData.modelName}+ onValueChange={(value) =>+ setFormData({ ...formData, modelName: value })+ }+ >+ <SelectTrigger>+ <SelectValue+ placeholder={+ isLoadingModels ? "loading models..." : "select model"+ }+ />+ </SelectTrigger>+ <SelectContent>+ {openaiModels.length > 0 ? (+ openaiModels.map((model) => (+ <SelectItem key={model.id} value={model.id}>+ {model.id}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="no-models" disabled>+ {isLoadingModels ? "loading..." : "no models found"}+ </SelectItem>+ )}+ </SelectContent>+ </Select>+ </div>+ </div>+ )}++ {selectedProvider === "custom" && (+ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="baseUrl">base url</Label>+ <Input+ id="baseUrl"+ type="text"+ placeholder="https://api.example.com/v1"+ value={formData.baseUrl || ""}+ onChange={(e) =>+ setFormData({ ...formData, baseUrl: e.target.value })+ }+ />+ </div>+ <div className="space-y-2">+ <Label htmlFor="apiKey">api key</Label>+ <div className="relative">+ <Input+ id="apiKey"+ type={showApiKey ? "text" : "password"}+ placeholder="your-api-key"+ value={formData.apiKey || ""}+ onChange={(e) =>+ setFormData({ ...formData, apiKey: e.target.value })+ }+ className="pr-10"+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ <div className="space-y-2">+ <Label htmlFor="model">model</Label>+ <Select+ value={formData.modelName}+ onValueChange={(value) =>+ setFormData({ ...formData, modelName: value })+ }+ >+ <SelectTrigger>+ <SelectValue+ placeholder={+ isLoadingModels ? "loading models..." : "select model"+ }+ />+ </SelectTrigger>+ <SelectContent>+ {openaiModels.length > 0 ? (+ openaiModels.map((model) => (+ <SelectItem key={model.id} value={model.id}>+ {model.id}+ </SelectItem>+ ))+ ) : (+ <SelectItem value="no-models" disabled>+ {isLoadingModels ? "loading..." : "no models found"}+ </SelectItem>+ )}+ </SelectContent>+ </Select>+ </div>+ </div>+ )}++ <div className="space-y-4">+ <div className="space-y-2">+ <Label htmlFor="maxContextChars" className="flex items-center">+ max context{" "}+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <HelpCircle className="ml-2 h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ maximum number of characters (think 4 characters per+ token) to send to the ai model. <br />+ usually, openai models support up to 200k tokens, which is+ roughly 1m characters.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex items-center gap-4">+ <Slider+ id="maxContextChars"+ min={10000}+ max={1000000}+ step={10000}+ value={[formData.maxContextChars || 512000]}+ onValueChange={([value]) =>+ setFormData({ ...formData, maxContextChars: value })+ }+ className="flex-grow"+ />+ <span className="min-w-[60px] text-right">+ {((formData.maxContextChars || 512000) / 1000).toFixed(0)}k+ </span>+ </div>+ </div>++ <div className="space-y-2">+ <Label htmlFor="prompt">prompt</Label>+ <Textarea+ id="prompt"+ value={formData.prompt || DEFAULT_PROMPT}+ onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>+ setFormData({ ...formData, prompt: e.target.value })+ }+ placeholder="enter your custom prompt here"+ className="min-h-[100px]"+ />+ </div>+ </div>++ <Button+ type="submit"+ className="w-full"+ disabled={+ isLoading ||+ Boolean(!formData.id?.length && !formData.modelName?.length)+ }+ >+ {isLoading ? (+ <Icons.spinner className="mr-2 h-4 w-4 animate-spin" />+ ) : null}+ {defaultPreset ? "save changes" : "continue"}+ </Button>+ </form>+ </div>+ );+}++interface AIPresetDialogProps {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ onSave: (preset: Partial<AIPreset>) => void;+ preset?: AIPreset;+}++interface AIPresetsSelectorProps {+ recommendedPresets?: RecommendedPreset[];+ shortcutKey?: string;+}++export const AIPresetDialog = ({+ open,+ onOpenChange,+ onSave,+ preset,+}: AIPresetDialogProps) => {+ const handleProviderSubmit = (providerData: any) => {+ const newPreset: Partial<AIPreset> = {+ ...preset,+ provider: providerData.provider,+ url: providerData.baseUrl,+ model: providerData.modelName,+ id: providerData.id,+ maxContextChars: providerData.maxContextChars,+ prompt: providerData.prompt,+ };++ // Only add apiKey if provider is openai or custom+ if (+ providerData.provider === "openai" ||+ providerData.provider === "custom"+ ) {+ (newPreset as any).apiKey = providerData.apiKey;+ }++ onSave(newPreset);+ };++ const defaultPreset = preset+ ? {+ id: preset.id,+ provider: preset.provider,+ baseUrl: preset.url,+ modelName: preset.model,+ ...("apiKey" in preset ? { apiKey: preset.apiKey } : {}),+ }+ : undefined;++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="w-3/4 max-w-screen-2xl">+ <DialogHeader className="sr-only">+ <DialogTitle>+ {preset ? "Edit Preset" : "Create New Preset"}+ </DialogTitle>+ <DialogDescription>+ {preset+ ? "Modify your AI preset settings here. Click save when you're done."+ : "Configure your AI preset settings here. Click continue when you're done."}+ </DialogDescription>+ </DialogHeader>+ <AIProviderConfig+ onSubmit={handleProviderSubmit}+ defaultPreset={defaultPreset}+ />+ </DialogContent>+ </Dialog>+ );+};++export const AIPresetsSelector = ({+ recommendedPresets,+ shortcutKey = "/",+}: AIPresetsSelectorProps) => {+ const { settings, updateSettings } = useSettings();+ const [open, setOpen] = useState(false);+ const [dialogOpen, setDialogOpen] = useState(false);+ const [selectedPresetToEdit, setSelectedPresetToEdit] = useState<+ AIPreset | undefined+ >();++ const aiPresets = (settings?.aiPresets || []) as AIPreset[];++ const selectedPreset = useMemo(() => {+ // Use the first preset or default preset+ const defaultPreset = settings?.aiPresets?.find(preset => preset.defaultPreset);+ return defaultPreset?.id || settings?.aiPresets?.[0]?.id;+ }, [settings?.aiPresets]);++ useEffect(() => {+ const handleKeyDown = (e: KeyboardEvent) => {+ // Check for Cmd/Ctrl + /+ if ((e.metaKey || e.ctrlKey) && e.key === shortcutKey) {+ e.preventDefault();+ if (!aiPresets.length) return;++ const currentIndex = selectedPreset+ ? aiPresets.findIndex((p) => p.id === selectedPreset)+ : -1;+ const nextIndex = (currentIndex + 1) % aiPresets.length;+ const nextPreset = aiPresets[nextIndex];++ // Set the next preset as default+ const updatedPresets = aiPresets.map((p) => ({+ ...p,+ defaultPreset: p.id === nextPreset.id,+ }));++ updateSettings({+ aiPresets: updatedPresets,+ aiModel: nextPreset.model,+ aiProviderType: nextPreset.provider,+ customPrompt: nextPreset.prompt,+ aiMaxContextChars: nextPreset.maxContextChars,+ aiUrl: nextPreset.url,+ ...("apiKey" in nextPreset && {+ openaiApiKey: nextPreset.apiKey,+ }),+ });++ toast.success("Preset changed", {+ description: `Switched to ${nextPreset.id} (${nextPreset.model})`,+ });+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [aiPresets, selectedPreset, updateSettings, shortcutKey]);++ const handleSavePreset = (preset: Partial<AIPreset>) => {+ if (!preset.id) {+ toast.error("Please enter a name for this preset", {+ description: "Name is required",+ });+ return;+ }++ if (!settings?.aiPresets) {+ toast.error("Error", {+ description: "Settings not initialized",+ });+ return;+ }++ // If we're editing an existing preset+ if (selectedPresetToEdit) {+ // If this is a copy operation, treat it as a new preset+ if (+ preset.id !== selectedPresetToEdit.id ||+ preset.id.endsWith("-copy")+ ) {+ // Check for duplicate ID+ const existingPreset = settings.aiPresets.find(+ (pre) => pre.id === preset.id,+ );++ if (existingPreset) {+ toast.error("Name already exists", {+ description: "Please choose a different name",+ });+ return;+ }++ // Add as new preset+ updateSettings({+ aiPresets: [+ ...settings.aiPresets,+ {+ ...preset,+ defaultPreset: false,+ } as AIPreset,+ ],+ });++ toast.success("Preset copied", {+ description: "New preset has been created from copy",+ });+ } else {+ // Normal edit operation+ const updatedPresets = settings.aiPresets.map((p) =>+ p.id === selectedPresetToEdit.id+ ? ({ ...preset, defaultPreset: p.defaultPreset } as AIPreset)+ : p,+ );++ // If editing the default preset, update the global settings as well+ const isEditingDefaultPreset = selectedPresetToEdit.defaultPreset;+ if (isEditingDefaultPreset) {+ updateSettings({+ aiPresets: updatedPresets,+ aiModel: preset.model,+ aiProviderType: preset.provider,+ customPrompt: preset.prompt,+ aiMaxContextChars: preset.maxContextChars,+ aiUrl: preset.url,+ ...("apiKey" in preset && {+ openaiApiKey: preset.apiKey,+ }),+ });+ } else {+ updateSettings({+ aiPresets: updatedPresets,+ });+ }++ toast.success("Preset updated", {+ description: "Your changes have been saved",+ });+ }+ } else {+ // Check for duplicate ID only when creating new preset+ const existingPreset = settings.aiPresets.find(+ (pre) => pre.id === preset.id,+ );++ if (existingPreset) {+ toast.error("Name already exists", {+ description: "Please choose a different name",+ });+ return;+ }++ // Handle first preset creation+ if (settings.aiPresets.length === 0) {+ const newPreset = {+ ...preset,+ defaultPreset: true,+ } as AIPreset;++ updateSettings({+ aiPresets: [newPreset],+ aiModel: newPreset.model,+ aiProviderType: newPreset.provider,+ customPrompt: newPreset.prompt,+ aiMaxContextChars: newPreset.maxContextChars,+ aiUrl: newPreset.url,+ ...("apiKey" in newPreset && {+ openaiApiKey: newPreset.apiKey,+ }),+ });+ } else {+ // Adding a new preset+ updateSettings({+ aiPresets: [+ ...settings.aiPresets,+ {+ ...preset,+ defaultPreset: false,+ } as AIPreset,+ ],+ });+ }++ toast.success("Preset created", {+ description: "New preset has been added",+ });+ }++ setDialogOpen(false);+ setSelectedPresetToEdit(undefined);+ };++ const handleDuplicatePreset = (preset: AIPreset) => {+ setSelectedPresetToEdit({+ ...preset,+ id: `${preset.id}-copy`,+ defaultPreset: false,+ });+ setDialogOpen(true);+ };++ const handleEditPreset = (preset: AIPreset) => {+ setSelectedPresetToEdit(preset);+ setDialogOpen(true);+ };++ const handleSetDefaultPreset = (preset: AIPreset) => {+ if (!settings?.aiPresets) return;+ if (preset.defaultPreset) return;++ const updatedPresets = settings.aiPresets.map((p) => ({+ ...p,+ defaultPreset: p.id === preset.id,+ }));++ updateSettings({+ aiPresets: updatedPresets,+ aiModel: preset.model,+ aiProviderType: preset.provider,+ customPrompt: preset.prompt,+ aiMaxContextChars: preset.maxContextChars,+ aiUrl: preset.url,+ ...("apiKey" in preset && {+ openaiApiKey: preset.apiKey,+ }),+ });++ toast.success("Default preset updated", {+ description: `${preset.id} is now the default preset`,+ });+ };++ const handleRemovePreset = (preset: AIPreset) => {+ if (!settings?.aiPresets) return;+ if (preset.defaultPreset) {+ toast.error("Cannot delete default preset", {+ description: "Please set another preset as default first",+ });+ return;+ }++ const updatedPresets = settings.aiPresets.filter((p) => p.id !== preset.id);+ updateSettings({+ aiPresets: updatedPresets,+ });++ toast.success("Preset removed", {+ description: `${preset.id} has been removed`,+ });+ };++ return (+ <>+ <div className="flex w-full items-center gap-2">+ <Popover open={open} onOpenChange={setOpen}>+ <TooltipProvider>+ <Tooltip>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ aria-expanded={open}+ className="w-full justify-between"+ >+ {selectedPreset ? (+ <div className="flex w-full items-center justify-between gap-2 overflow-hidden">+ <span className="font-medium min-w-[80px] max-w-[30%] truncate text-left">+ {+ aiPresets.find(+ (preset) => preset.id === selectedPreset,+ )?.id+ }+ </span>+ <div className="flex items-center gap-2 text-xs text-muted-foreground overflow-hidden">+ <span className="rounded bg-muted px-1.5 py-0.5 whitespace-nowrap">+ {+ aiPresets.find(+ (preset) => preset.id === selectedPreset,+ )?.provider+ }+ </span>+ <span className="hidden sm:block truncate max-w-[30%]">+ {+ aiPresets.find(+ (preset) => preset.id === selectedPreset,+ )?.model+ }+ </span>+ <span className="whitespace-nowrap">+ {(+ (aiPresets.find(+ (preset) => preset.id === selectedPreset,+ )?.maxContextChars || 0) / 1000+ ).toFixed(0)}+ k+ </span>+ </div>+ </div>+ ) : (+ "select ai preset..."+ )}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <TooltipContent>+ <p className="flex items-center gap-2">+ <span>Press</span>+ <kbd className="px-1.5 py-0.5 text-xs font-semibold bg-muted rounded">+ ⌘/+ </kbd>+ <span>to cycle presets</span>+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <PopoverContent className="min-w-[500px] w-[--radix-popover-trigger-width] p-0">+ <Command>+ <CommandInput placeholder="search presets..." />+ <CommandList>+ <CommandEmpty>no presets found.</CommandEmpty>+ {recommendedPresets && recommendedPresets.length > 0 && (+ <CommandGroup heading="Recommended Presets">+ {recommendedPresets.map((preset) => (+ <CommandItem+ key={`${preset.id}-recommended`}+ value={`${preset.id}-recommened`}+ className="flex py-2"+ >+ <div className="flex w-full items-center justify-between gap-2 overflow-hidden">+ <div className="flex items-center gap-2 min-w-0 flex-shrink">+ <Check+ className={cn(+ "h-4 w-4 shrink-0",+ selectedPreset === preset.id+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ <span className="font-medium truncate max-w-[30%]">+ {preset.id}+ </span>+ <span className="rounded bg-primary/10 text-primary px-1.5 py-0.5 text-xs font-medium shrink-0">+ recommended+ </span>+ </div>+ <div className="flex items-center justify-end gap-2 text-xs text-muted-foreground shrink-0">+ <div className="flex items-center gap-2">+ <span className="rounded bg-muted px-1.5 py-0.5 whitespace-nowrap">+ {preset.provider}+ </span>+ <span className="hidden sm:block truncate max-w-[30%]">+ {preset.model}+ </span>+ </div>+ <span className="whitespace-nowrap">+ {(preset.maxContextChars / 1000).toFixed(0)}k+ </span>+ <div className="flex items-center gap-1">+ <Button+ variant="ghost"+ size="icon"+ className="h-6 w-6 shrink-0"+ onClick={(e) => {+ e.stopPropagation();+ // Create a full preset from the recommended preset with -copy suffix+ const fullPreset = {+ ...preset,+ id: `${preset.id}`,+ url:+ preset.provider === "openai"+ ? "https://api.openai.com/v1"+ : preset.provider === "screenpipe-cloud"+ ? "https://ai-proxy.i-f9f.workers.dev/v1"+ : preset.provider === "native-ollama"+ ? "http://localhost:11434/v1"+ : "",+ defaultPreset: false,+ } as AIPreset;+ setSelectedPresetToEdit(fullPreset);+ setDialogOpen(true);+ }}+ >+ <Copy className="h-3 w-3" />+ </Button>+ </div>+ </div>+ </div>+ </CommandItem>+ ))}+ </CommandGroup>+ )}+ <CommandGroup>+ {aiPresets.map((preset) => (+ <CommandItem+ key={preset.id}+ value={preset.id}+ onSelect={(currentValue) => {+ // Set the selected preset as default+ const selectedPresetObj = aiPresets.find(p => p.id === currentValue);+ if (selectedPresetObj && selectedPresetObj.id !== selectedPreset) {+ const updatedPresets = aiPresets.map((p) => ({+ ...p,+ defaultPreset: p.id === currentValue,+ }));++ updateSettings({+ aiPresets: updatedPresets,+ aiModel: selectedPresetObj.model,+ aiProviderType: selectedPresetObj.provider,+ customPrompt: selectedPresetObj.prompt,+ aiMaxContextChars: selectedPresetObj.maxContextChars,+ aiUrl: selectedPresetObj.url,+ ...("apiKey" in selectedPresetObj && {+ openaiApiKey: selectedPresetObj.apiKey,+ }),+ });++ toast.success("Preset selected", {+ description: `${selectedPresetObj.id} is now active`,+ });+ }+ setOpen(false);+ }}+ className="flex py-2"+ >+ <div className="flex w-full items-center justify-between gap-2 overflow-hidden">+ <div className="flex items-center gap-2 min-w-0">+ <Check+ className={cn(+ "h-4 w-4 shrink-0",+ selectedPreset === preset.id+ ? "opacity-100"+ : "opacity-0",+ )}+ />+ <span className="font-medium truncate max-w-[120px]">+ {preset.id}+ </span>+ {preset.defaultPreset && (+ <span className="rounded bg-muted px-1.5 py-0.5 text-xs font-medium shrink-0">+ default+ </span>+ )}+ </div>+ <div className="flex items-center justify-end gap-2 text-xs text-muted-foreground shrink-0">+ <div className="flex items-center gap-2">+ <span className="rounded bg-muted px-1.5 py-0.5 whitespace-nowrap">+ {preset.provider}+ </span>+ <span className="truncate max-w-[120px]">+ {preset.model}+ </span>+ </div>+ <span className="whitespace-nowrap">+ {(preset.maxContextChars / 1000).toFixed(0)}k+ </span>+ <div className="flex items-center gap-1">+ <Button+ variant="ghost"+ size="icon"+ className="h-6 w-6 shrink-0"+ onClick={(e) => {+ e.stopPropagation();+ handleEditPreset(preset);+ }}+ >+ <Edit2 className="h-3 w-3" />+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-6 w-6 shrink-0"+ onClick={(e) => {+ e.stopPropagation();+ handleDuplicatePreset(preset);+ }}+ >+ <Copy className="h-3 w-3" />+ </Button>+ {!preset.defaultPreset && (+ <>+ <Button+ variant="ghost"+ size="icon"+ className="h-6 w-6 shrink-0"+ onClick={(e) => {+ e.stopPropagation();+ handleSetDefaultPreset(preset);+ }}+ >+ <Star className="h-3 w-3" />+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-6 w-6 shrink-0"+ onClick={(e) => {+ e.stopPropagation();+ handleRemovePreset(preset);+ }}+ >+ <Trash2 className="h-3 w-3" />+ </Button>+ </>+ )}+ </div>+ </div>+ </div>+ </CommandItem>+ ))}+ </CommandGroup>+ <CommandGroup>+ <CommandItem+ onSelect={() => {+ setOpen(false);+ setSelectedPresetToEdit(undefined);+ setDialogOpen(true);+ }}+ >+ <Plus className="mr-2 h-4 w-4" />+ create new preset+ </CommandItem>+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ </div>+ <AIPresetDialog+ open={dialogOpen}+ onOpenChange={setDialogOpen}+ onSave={handleSavePreset}+ preset={selectedPresetToEdit}+ />+ </>+ );+};diff --git a/openrewind/components/rewind/chat-message-actions.tsx b/openrewind/components/rewind/chat-message-actions.tsxnew file mode 100644index 000000000..da312d152--- /dev/null+++ b/openrewind/components/rewind/chat-message-actions.tsx@@ -0,0 +1,40 @@+"use client";++// import { type Message } from "ai";++import { Button } from "@/components/ui/button";+import { IconCheck, IconCopy } from "@/components/ui/icons";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { cn } from "@/lib/utils";++interface ChatMessageActionsProps extends React.ComponentProps<"div"> {+ message: any;+}++export function ChatMessageActions({+ message,+ className,+ ...props+}: ChatMessageActionsProps) {+ const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 });++ const onCopy = () => {+ if (isCopied) return;+ copyToClipboard(message.content);+ };++ return (+ <div+ className={cn(+ "flex items-center justify-end transition-opacity group-hover:opacity-100 md:absolute md:-right-10 md:-top-2 md:opacity-0",+ className+ )}+ {...props}+ >+ <Button variant="ghost" size="icon" onClick={onCopy}>+ {isCopied ? <IconCheck /> : <IconCopy />}+ <span className="sr-only">Copy message</span>+ </Button>+ </div>+ );+}diff --git a/openrewind/components/rewind/chat-message.tsx b/openrewind/components/rewind/chat-message.tsxnew file mode 100644index 000000000..6c6beffff--- /dev/null+++ b/openrewind/components/rewind/chat-message.tsx@@ -0,0 +1,213 @@+import { Message } from "ai";+import remarkGfm from "remark-gfm";+import remarkMath from "remark-math";+import { useState, useEffect, useRef } from "react";++import { cn } from "@/lib/utils";+import { CodeBlock } from "@/components/ui/codeblock";+import { MemoizedReactMarkdown } from "@/components/markdown";+import {+ IconOpenAI,+ IconUser,+ IconClaude,+ IconGemini,+} from "@/components/rewind/ui/icons";+import { ChatMessageActions } from "@/components/rewind/chat-message-actions";+import { useSettings } from "@/lib/hooks/use-settings";+import { VideoComponent } from "./video";+import { ChevronDown } from "lucide-react";++export interface ChatMessageProps {+ message: Message;+}++export function ChatMessage({ message, ...props }: ChatMessageProps) {+ const { settings } = useSettings();+ const [isThinking, setIsThinking] = useState(false);+ const [thinkingContent, setThinkingContent] = useState<string[]>([]);+ const [thinkingTime, setThinkingTime] = useState(0);+ const [isExpanded, setIsExpanded] = useState(false);+ const timerRef = useRef<NodeJS.Timeout | null>(null);++ useEffect(() => {+ if (!message?.content) return;++ const openTag = /<think>/g.test(message.content);+ const closeTag = /<\/think>/g.test(message.content);++ const matches = message.content.match(/<think>([\s\S]*?)(?:<\/think>|$)/g);+ if (matches) {+ const contents = matches.map((match) =>+ match.replace(/<think>|<\/think>/g, "").trim(),+ );+ setThinkingContent(contents);+ }++ if (openTag && !closeTag) {+ setIsThinking(true);+ } else if (openTag && closeTag) {+ setIsThinking(true);+ clearTimeout(timerRef.current ?? undefined);+ } else {+ setIsThinking(false);+ setThinkingContent([]);+ setThinkingTime(0);+ }+ }, [message.content]);++ useEffect(() => {+ if (isThinking) {+ timerRef.current = setInterval(() => {+ setThinkingTime((prev) => prev + 1);+ }, 1000);+ }+ return () => {+ clearInterval(timerRef.current ?? undefined);+ };+ }, [isThinking]);++ const processThinkContent = (content: string) => {+ return content.replace(/<think>[\s\S]*?(<\/think>|$)/g, "").trim();+ };++ const hasMP4File = (content: string) =>+ content.trim().toLowerCase().includes(".mp4");++ if (!message?.content?.trim()) {+ return null;+ }++ const activePreset = settings.aiPresets.find((p) => p.defaultPreset);++ return (+ <div+ className={cn("group relative mb-4 flex items-start w-full")}+ {...props}+ >+ <div+ className={cn(+ "flex size-8 shrink-0 select-none items-center justify-center rounded-md border shadow",+ message.role === "user"+ ? "bg-background"+ : "bg-primary text-primary-foreground",+ )}+ >+ {message.role === "user" ? (+ <IconUser />+ ) : activePreset?.model.includes("gpt") ? (+ <IconOpenAI />+ ) : activePreset?.model?.includes("claude") ? (+ <IconClaude />+ ) : activePreset?.model?.includes("gemini") ? (+ <IconGemini />+ ) : (+ <>🦙</>+ )}+ </div>+ <div className="flex-1 px-1 ml-4 space-y-2 overflow-hidden w-[96em]">+ {isThinking && thinkingContent.length > 0 && (+ <div+ className={cn(+ "my-2 rounded-lg border transition-all duration-300",+ "bg-muted/50 border-muted-foreground/20 text-muted-foreground",+ )}+ >+ <button+ onClick={() => setIsExpanded(!isExpanded)}+ className="w-full p-3 flex items-center gap-2 hover:bg-muted/70 transition-colors"+ >+ <span className="animate-pulse">💭</span>+ <span className="text-sm text-muted-foreground flex-1 text-left">+ {isThinking+ ? `Thinking... (${thinkingTime}s)`+ : `Thought for ${thinkingTime}s`}+ </span>+ <span+ className={cn(+ "transform transition-transform duration-200",+ isExpanded ? "rotate-180" : "",+ )}+ >+ <ChevronDown />+ </span>+ </button>+ <div+ className={cn(+ "transition-all duration-300 overflow-hidden",+ isExpanded ? "opacity-100" : "max-h-0 opacity-0",+ )}+ >+ <div className="p-3 pt-0">+ <div className="pl-4 border-l-2 border-muted-foreground/20">+ {thinkingContent.map((content, index) => (+ <p key={index} className="mb-2 last:mb-0">+ {content}+ </p>+ ))}+ </div>+ </div>+ </div>+ </div>+ )}+ <MemoizedReactMarkdown+ className="prose break-words dark:prose-invert prose-p:leading-relaxed prose-pre:p-0 w-full"+ remarkPlugins={[remarkGfm, remarkMath]}+ components={{+ p({ children }) {+ return <p className="mb-2 last:mb-0">{children}</p>;+ },+ a({ node, href, children, ...props }) {+ const isMP4Link = href?.toLowerCase().includes(".mp4");++ if (isMP4Link && href) {+ return <VideoComponent filePath={href} />;+ }+ return (+ <a+ href={href}+ target="_blank"+ rel="noopener noreferrer"+ {...props}+ >+ {children}+ </a>+ );+ },+ code({ node, className, children, ...props }) {+ const content = String(children).replace(/\n$/, "");+ const match = /language-(\w+)/.exec(className || "");++ const isMP4File = hasMP4File(content);++ if (isMP4File || !match) {+ if (isMP4File) {+ return <VideoComponent filePath={content.trim()} />;+ }+ return (+ <code+ className="px-1 py-0.5 rounded-sm font-mono text-sm"+ {...props}+ >+ {content}+ </code>+ );+ }++ return (+ <CodeBlock+ key={Math.random()}+ language={(match && match[1]) || ""}+ value={content}+ {...props}+ />+ );+ },+ }}+ >+ {processThinkContent(message.content)}+ </MemoizedReactMarkdown>+ <ChatMessageActions message={message} />+ </div>+ </div>+ );+}diff --git a/openrewind/components/rewind/context-usage-indicator.tsx b/openrewind/components/rewind/context-usage-indicator.tsxnew file mode 100644index 000000000..daa188abd--- /dev/null+++ b/openrewind/components/rewind/context-usage-indicator.tsx@@ -0,0 +1,46 @@+import React from "react";+import { motion } from "framer-motion";+import { AlertTriangle } from "lucide-react";++interface ContextUsageIndicatorProps {+ currentSize: number;+ maxSize: number;+}++export function ContextUsageIndicator({+ currentSize,+ maxSize,+}: ContextUsageIndicatorProps) {+ const percentage = Math.min((currentSize / maxSize) * 100, 100);+ const circumference = 2 * Math.PI * 14;++ return (+ <div className="w-8 h-8 relative">+ <svg width="32" height="32" viewBox="0 0 32 32">+ <circle+ cx="16"+ cy="16"+ r="14"+ fill="none"+ stroke="#e2e8f0"+ strokeWidth="2"+ />+ <motion.circle+ cx="16"+ cy="16"+ r="14"+ fill="none"+ stroke="black"+ strokeWidth="2"+ strokeDasharray={circumference}+ initial={{ strokeDashoffset: circumference }}+ animate={{ strokeDashoffset: circumference - (percentage / 100) * circumference }}+ transition={{ duration: 0.5 }}+ />+ </svg>+ {percentage > 90 && (+ <AlertTriangle className="w-5 h-5 absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-red-500" />+ )}+ </div>+ );+}diff --git a/openrewind/components/rewind/current-frame-search.tsx b/openrewind/components/rewind/current-frame-search.tsxnew file mode 100644index 000000000..2991630dc--- /dev/null+++ b/openrewind/components/rewind/current-frame-search.tsx@@ -0,0 +1,41 @@+import { MainImage } from "./image-card";+import { cn } from "@/lib/utils";+import { useKeywordSearchStore } from "@/lib/hooks/use-keyword-search-store";++function isValidURL(url: string) {+ try {+ new URL(url);+ return true;+ } catch (error) {+ return false;+ }+}++export const CurrentFrame = () => {+ const { currentResultIndex, searchResults } = useKeywordSearchStore();++ const currentFrame = searchResults[currentResultIndex];++ return (+ <div+ className={cn(+ "grid md:gap-4 gap-y-4 w-4/5 mx-auto min-h-[40%] max-h-[50%] max-w-[55vw] overflow-hidden",+ )}+ >+ <div className={cn("relative group w-full")}>+ <MainImage />+ {currentFrame?.url && isValidURL(currentFrame.url) && (+ <a+ className={cn(+ "absolute text-xs rounded bottom-4 right-4 bg-muted p-1 font-mono opacity-80 group-hover:opacity-100 transition-all duration-200",+ )}+ target="_blank"+ href={currentFrame.url}+ >+ Open URL+ </a>+ )}+ </div>+ </div>+ );+};diff --git a/openrewind/components/rewind/current-frame-timeline.tsx b/openrewind/components/rewind/current-frame-timeline.tsxnew file mode 100644index 000000000..71a704e52--- /dev/null+++ b/openrewind/components/rewind/current-frame-timeline.tsx@@ -0,0 +1,48 @@+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { FC, useState } from "react";++interface CurrentFrameTimelineProps {+ currentFrame: StreamTimeSeriesResponse;+}++export const SkeletonLoader: FC = () => {+ return (+ <div className="absolute inset-0 w-4/5 h-[75vh] mx-auto mt-20 border rounded-xl p-2 bg-gray-100 overflow-hidden">+ <div+ className="w-full h-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-100 animate-shimmer"+ style={{+ backgroundSize: "200% 100%",+ animation: "shimmer 1.5s infinite linear",+ }}+ />+ </div>+ );+};++export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({+ currentFrame,+}) => {+ const [isLoading, setIsLoading] = useState(true);+ const [hasError, setHasError] = useState(false);++ return (+ <>+ {(isLoading || hasError) && <SkeletonLoader />}+ <img+ src={`http://localhost:3030/frames/${currentFrame.devices[0].frame_id}`}+ className={`absolute inset-0 w-4/5 h-auto max-h-[75vh] object-contain mx-auto border rounded-xl p-2 mt-20 transition-opacity duration-300 ${+ isLoading || hasError ? "opacity-0" : "opacity-100"+ }`}+ alt="Current frame"+ onLoad={() => {+ setIsLoading(false);+ setHasError(false);+ }}+ onError={() => {+ setIsLoading(false);+ setHasError(true);+ }}+ />+ </>+ );+};diff --git a/openrewind/components/rewind/custom-dialog-content.tsx b/openrewind/components/rewind/custom-dialog-content.tsxnew file mode 100644index 000000000..842baa5b4--- /dev/null+++ b/openrewind/components/rewind/custom-dialog-content.tsx@@ -0,0 +1,31 @@+import * as React from "react";+import * as DialogPrimitive from "@radix-ui/react-dialog";+import { cn } from "@/lib/utils";+import { DialogOverlay, DialogPortal } from "./ui/dialog";++export const CustomDialogContent = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {+ customClose?: React.ReactNode;+ }+>(({ className, children, customClose, ...props }, ref) => (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ ref={ref}+ className={cn(+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ className,+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close+ asChild+ className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"+ >+ {customClose}+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+));diff --git a/openrewind/components/rewind/date-range-picker.tsx b/openrewind/components/rewind/date-range-picker.tsxnew file mode 100644index 000000000..7056c6b36--- /dev/null+++ b/openrewind/components/rewind/date-range-picker.tsx@@ -0,0 +1,77 @@+"use client";++import * as React from "react";+import { format } from "date-fns";+import { CalendarIcon } from "lucide-react";+import { SelectRangeEventHandler } from "react-day-picker";++import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import {+ Popover,+ PopoverContentInDialog as PopoverContent,+ PopoverTrigger,+} from "@/components/rewind/ui/popover";++export function DatePickerWithRange({+ className,+ start_time,+ end_time,+ disabled,+ setDateRange,+}: React.HTMLAttributes<HTMLDivElement> & {+ start_time: Date | null;+ end_time: Date | null;+ setDateRange: SelectRangeEventHandler;+ disabled?: boolean | undefined;+}) {+ return (+ <div className={cn("grid gap-2 w-full h-full", className)}>+ <Popover>+ <PopoverTrigger asChild>+ <Button+ id="date"+ disabled={disabled}+ variant={"outline"}+ className={cn(+ "w-full h-full justify-start text-left font-normal",+ !start_time && "text-muted-foreground",+ )}+ >+ <CalendarIcon />+ {start_time ? (+ end_time ? (+ <>+ {format(start_time, "LLL dd, y")} -{" "}+ {format(end_time, "LLL dd, y")}+ </>+ ) : (+ format(start_time, "LLL dd, y")+ )+ ) : (+ <span>Filter by Date</span>+ )}+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-auto p-0" align="start">+ <Calendar+ initialFocus+ mode="range"+ defaultMonth={start_time ?? undefined}+ selected={{+ from: start_time ?? undefined,+ to: end_time ?? undefined,+ }}+ onSelect={setDateRange}+ numberOfMonths={2}+ disabled={{+ after: new Date(),+ }}+ toMonth={new Date()}+ />+ </PopoverContent>+ </Popover>+ </div>+ );+}diff --git a/openrewind/components/rewind/date-time-picker.tsx b/openrewind/components/rewind/date-time-picker.tsxnew file mode 100644index 000000000..1ef5766a7--- /dev/null+++ b/openrewind/components/rewind/date-time-picker.tsx@@ -0,0 +1,80 @@+import * as React from "react";+import { format } from "date-fns";+import { Calendar as CalendarIcon } from "lucide-react";++import { cn } from "@/lib/utils";+import { Button } from "@/components/ui/button";+import { Calendar } from "@/components/ui/calendar";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import { Input } from "./ui/input";++export function DateTimePicker({+ date,+ setDate,+ className,+}: {+ date: Date;+ setDate: (date: Date) => void;+ className?: string;+}) {+ const [selectedDateTime, setSelectedDateTime] = React.useState<Date>(date);++ React.useEffect(() => {+ setSelectedDateTime(date);+ }, [date]);++ const handleDateSelect = (selectedDate: Date | undefined) => {+ if (selectedDate) {+ const newDateTime = new Date(selectedDateTime);+ newDateTime.setFullYear(selectedDate.getFullYear());+ newDateTime.setMonth(selectedDate.getMonth());+ newDateTime.setDate(selectedDate.getDate());+ setSelectedDateTime(newDateTime);+ setDate(newDateTime);+ }+ };++ const handleTimeChange = (event: React.ChangeEvent<HTMLInputElement>) => {+ const [hours, minutes] = event.target.value.split(":").map(Number);+ if (!isNaN(hours) && !isNaN(minutes)) {+ const newDateTime = new Date(selectedDateTime);+ newDateTime.setHours(hours);+ newDateTime.setMinutes(minutes);+ setSelectedDateTime(newDateTime);+ setDate(newDateTime);+ }+ };++ return (+ <Popover>+ <PopoverTrigger asChild>+ <Button+ variant={"outline"}+ className={cn("w-full justify-start text-left font-normal")}+ >+ <CalendarIcon className="mr-2 h-4 w-4 text-gray-400" size={18} />+ {format(date, "PPP HH:mm").toLowerCase()}+ </Button>+ </PopoverTrigger>+ <PopoverContent className={cn("w-auto p-0", className)}>+ <Calendar+ mode="single"+ selected={selectedDateTime}+ onSelect={handleDateSelect}+ initialFocus+ />+ <div className="p-3 border-t border-border">+ <Input+ type="time"+ onChange={handleTimeChange}+ value={format(selectedDateTime, "HH:mm")}+ />+ </div>+ </PopoverContent>+ </Popover>+ );+}diff --git a/openrewind/components/rewind/example-search-cards.tsx b/openrewind/components/rewind/example-search-cards.tsxnew file mode 100644index 000000000..588be3870--- /dev/null+++ b/openrewind/components/rewind/example-search-cards.tsx@@ -0,0 +1,127 @@+import React from "react";+import { Card, CardContent } from "@/components/ui/card";+import { Search, Mail, Clock, AlertCircle } from "lucide-react";+import { Badge } from "./ui/badge";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { useHealthCheck } from "@/lib/hooks/use-health-check";++export interface ExampleSearch {+ title: string;+ windowName?: string;+ appName?: string;+ limit: number;+ minLength: number;+ contentType: string;+ startDate: Date;+}++interface ExampleSearchCardsProps {+ onSelect: (example: ExampleSearch) => void;+}++const exampleSearches: ExampleSearch[] = [+ {+ title: "summarize last hour meeting",+ contentType: "audio",+ limit: 120,+ minLength: 10,+ startDate: new Date(Date.now() - 60 * 60 * 1000), // 1 hour ago+ },+ {+ title: "summarize my mails",+ contentType: "ocr",+ windowName: "gmail",+ limit: 25,+ minLength: 50,+ startDate: new Date(new Date().setHours(0, 0, 0, 0)), // since midnight local time+ },+ {+ title: "time spent last hour",+ contentType: "ocr",+ limit: 25,+ minLength: 50,+ startDate: new Date(Date.now() - 60 * 60 * 1000), // 1 hour ago+ },+];++export function ExampleSearchCards({ onSelect }: ExampleSearchCardsProps) {+ const { health } = useHealthCheck();+ const getIcon = (title: string) => {+ switch (title) {+ case "summarize last hour meeting":+ return <Search className="mr-2 h-4 w-4" />;+ case "summarize my mails":+ return <Mail className="mr-2 h-4 w-4" />;+ case "time spent last hour":+ return <Clock className="mr-2 h-4 w-4" />;+ default:+ return <Search className="mr-2 h-4 w-4" />; // default icon+ }+ };++ const isHealthError = health?.status === "error";++ return (+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">+ {exampleSearches.map((example, index) => (+ <TooltipProvider key={index}>+ <Tooltip>+ <TooltipTrigger asChild>+ <div+ className={`relative group h-[150px] ${+ isHealthError ? "opacity-50 cursor-not-allowed" : ""+ }`}+ >+ <div className="absolute inset-0 rounded-lg transition-all duration-300 ease-out group-hover:before:opacity-100 group-hover:before:scale-100 before:absolute before:inset-0 before:rounded-lg before:border-2 before:border-black dark:before:border-white before:opacity-0 before:scale-95 group-hover:before:opacity-100 group-hover:before:scale-100 before:transition-all before:duration-300 before:ease-out" />+ <Card+ className={`cursor-pointer relative bg-white dark:bg-gray-800 z-10 h-full transition-transform duration-300 ease-out ${+ isHealthError ? "" : "group-hover:scale-[0.98]"+ }`}+ onClick={() => !isHealthError && onSelect(example)}+ >+ <CardContent className="p-3 flex flex-col h-full">+ <div className="flex items-center mb-1">+ {getIcon(example.title)}+ <h3 className="text-sm font-semibold">{example.title}</h3>+ </div>+ <div className="flex flex-wrap gap-2 mt-2">+ {example.contentType && (+ <Badge>{example.contentType}</Badge>+ )}+ {example.windowName && (+ <Badge>window: {example.windowName}</Badge>+ )}+ {example.appName && <Badge>app: {example.appName}</Badge>}+ {example.limit && <Badge>limit: {example.limit}</Badge>}+ {example.minLength && (+ <Badge>min: {example.minLength}</Badge>+ )}+ {example.startDate && (+ <Badge>+ start: {example.startDate.toLocaleString()}+ </Badge>+ )}+ </div>+ </CardContent>+ </Card>+ </div>+ </TooltipTrigger>+ {isHealthError && (+ <TooltipContent>+ <div className="flex items-center">+ <AlertCircle className="mr-2 h-4 w-4 text-red-500" />+ <p>screenpipe is not running. examples are disabled.</p>+ </div>+ </TooltipContent>+ )}+ </Tooltip>+ </TooltipProvider>+ ))}+ </div>+ );+}diff --git a/openrewind/components/rewind/export-button.tsx b/openrewind/components/rewind/export-button.tsxnew file mode 100644index 000000000..38cb6663f--- /dev/null+++ b/openrewind/components/rewind/export-button.tsx@@ -0,0 +1,241 @@+import { useState } from "react";+import { Button } from "./ui/button";+import { Loader2, Video } from "lucide-react";+import { useTimelineSelection } from "@/lib/hooks/use-timeline-selection";+import { toast } from "./ui/use-toast";+import { useSettings } from "@/lib/hooks/use-settings";+import { parseInt } from "lodash";++export function ExportButton() {+ const [isExporting, setIsExporting] = useState(false);+ const [progress, setProgress] = useState(0);+ const { selectionRange } = useTimelineSelection();+ const { settings } = useSettings();++ const handleExport = async () => {+ if (!selectionRange?.frameIds.length) {+ toast({+ title: "No frames selected",+ description: "Please select frames to export",+ variant: "destructive",+ });+ return;+ }+ setIsExporting(true);+ setProgress(0);+ try {+ let isClosingManually = false;+ let ws: WebSocket | null = null;++ const sortedFrameIds = selectionRange.frameIds.sort(+ (a, b) => parseInt(a) - parseInt(b),+ );++ // Helper function to safely close the WebSocket+ const closeWebSocket = () => {+ if (+ ws &&+ (ws.readyState === WebSocket.OPEN ||+ ws.readyState === WebSocket.CONNECTING)+ ) {+ isClosingManually = true;+ try {+ ws.close();+ } catch (e) {+ console.error("Error closing WebSocket:", e);+ }+ }+ ws = null;+ };++ // Create WebSocket connection+ ws = new WebSocket(+ `ws://localhost:3030/frames/export?frame_ids=${sortedFrameIds.join(",")}&fps=${settings.fps ?? 0.5}`,+ );++ // Set a timeout to handle connection issues+ const connectionTimeout = setTimeout(() => {+ if (ws && ws.readyState !== WebSocket.OPEN) {+ toast({+ title: "Connection timeout",+ description: "Failed to connect to the server. Please try again.",+ variant: "destructive",+ });+ closeWebSocket();+ setIsExporting(false);+ setProgress(0);+ }+ }, 10000); // 10 seconds timeout++ ws.onopen = () => {+ clearTimeout(connectionTimeout);+ console.log("WebSocket connection established");+ };++ ws.onmessage = async (event) => {+ try {+ const data = JSON.parse(event.data);+ switch (data.status) {+ case "extracting":+ setProgress(data.progress * 100);+ break;+ case "encoding":+ setProgress(50 + data.progress * 50);+ break;+ case "completed":+ if (data.video_data) {+ closeWebSocket();+ const filename = `screenpipe_export_${new Date()+ .toISOString()+ .replace(/[:.]/g, "-")}.mp4`;++ try {+ if ("__TAURI__" in window) {+ const tauri = window.__TAURI__ as any;+ const { save } = tauri.dialog;+ const { writeFile } = tauri.fs;+ const filePath = await save({+ filters: [+ {+ name: "Video",+ extensions: ["mp4"],+ },+ ],+ defaultPath: filename,+ });+ if (filePath) {+ await writeFile(+ filePath,+ new Uint8Array(data.video_data),+ );+ toast({+ title: "Video exported",+ description:+ "Your video has been exported successfully",+ });+ }+ } else {+ // For browser (including Safari), handle the download differently+ const blob = new Blob([new Uint8Array(data.video_data)], {+ type: "video/mp4",+ });++ // Use a more Safari-friendly approach+ const url = window.URL.createObjectURL(blob);++ const a = document.createElement("a");+ a.href = url;+ a.download = filename;+ document.body.appendChild(a);+ a.click();+ window.URL.revokeObjectURL(url);+ a.remove();++ toast({+ title: "Video exported",+ description: "Your video has been exported successfully",+ });+ }+ } catch (downloadError) {+ console.error("Download error:", downloadError);+ toast({+ title: "Download failed",+ description:+ "Failed to download the video. Please try again.",+ variant: "destructive",+ });+ }+ }+ setIsExporting(false);+ setProgress(0);+ break;+ case "error":+ toast({+ title: "Export failed",+ description: data.error || "Failed to export video",+ variant: "destructive",+ });+ setIsExporting(false);+ setProgress(0);+ closeWebSocket();+ break;+ }+ } catch (parseError) {+ console.error("Error parsing message:", parseError);+ toast({+ title: "Export failed",+ description: "Failed to process server response",+ variant: "destructive",+ });+ setIsExporting(false);+ setProgress(0);+ closeWebSocket();+ }+ };++ ws.onclose = (event) => {+ clearTimeout(connectionTimeout);+ console.log("WebSocket closed:", event);++ if (isExporting && !isClosingManually) {+ toast({+ title: "Connection closed",+ description: "The server connection was closed unexpectedly",+ variant: "destructive",+ });+ setIsExporting(false);+ setProgress(0);+ }+ };++ ws.onerror = (event) => {+ clearTimeout(connectionTimeout);+ // Only handle as a true error if we're not manually closing+ if (isClosingManually) {+ console.log(+ "WebSocket error during manual closure - this is expected",+ );+ return;+ }++ console.error("WebSocket error:", event);+ toast({+ title: "Export failed",+ description: "Connection error. Please try again.",+ variant: "destructive",+ });+ setIsExporting(false);+ setProgress(0);+ closeWebSocket();+ };+ } catch (error) {+ console.error("Export setup error:", error);+ toast({+ title: "Export failed",+ description: "Failed to export video. Please try again.",+ variant: "destructive",+ });+ setIsExporting(false);+ setProgress(0);+ }+ };++ return (+ <Button+ variant="outline"+ onClick={handleExport}+ className="h-auto px-3 py-1 bg-background hover:bg-accent border text-foreground text-xs rounded flex items-center gap-2 transition-colors"+ disabled={isExporting || !selectionRange?.frameIds.length}+ >+ {isExporting ? (+ <div className="flex items-center">+ <Loader2 className="h-4 w-4 animate-spin mr-2" />+ {progress > 0 && `${Math.round(progress)}%`}+ </div>+ ) : (+ <Video className="h-4 w-4 mr-2" />+ )}+ Export Video+ </Button>+ );+}diff --git a/openrewind/components/rewind/image-card.tsx b/openrewind/components/rewind/image-card.tsxnew file mode 100644index 000000000..8bf7d1043--- /dev/null+++ b/openrewind/components/rewind/image-card.tsx@@ -0,0 +1,301 @@+import { format } from "date-fns";+import { useEffect, useRef, useMemo, useState, RefObject } from "react";+import { SearchMatch } from "@/lib/hooks/use-keyword-search-store";+import { useKeywordSearchStore } from "@/lib/hooks/use-keyword-search-store";+import { cn } from "@/lib/utils";+import { throttle } from "lodash";+import { Loader2 } from "lucide-react";+import { useKeywordParams } from "@/lib/hooks/use-keyword-params";++export const SkeletonCard = () => (+ <div className="flex flex-col shrink-0 w-56 h-full relative overflow-hidden rounded-lg bg-white shadow-sm">+ <div className="aspect-video bg-neutral-200 animate-pulse" />+ <div className="p-3 space-y-2" style={{ direction: "ltr" }}>+ <div className="h-4 bg-neutral-200 rounded animate-pulse" />+ <div className="h-3 bg-neutral-200 rounded animate-pulse w-3/4" />+ <div className="h-3 bg-neutral-200 rounded animate-pulse w-1/2" />+ </div>+ </div>+);++export const ImageGrid = ({+ searchResult,+ pageRef,+}: {+ searchResult: SearchMatch[];+ pageRef: RefObject<HTMLDivElement | null>;+}) => {+ const containerRef = useRef<HTMLDivElement>(null);+ const { setCurrentResultIndex, currentResultIndex, searchKeywords } =+ useKeywordSearchStore();+ const [{ start_time, end_time, query, apps }] = useKeywordParams();+ const { searchResults, isSearching } = useKeywordSearchStore();++ const checkScrollAndFetch = useMemo(+ () =>+ throttle(() => {+ const container = containerRef.current;+ if (!container) return;+ if (searchResults.length === 0) return;++ const scrollPosition = Math.abs(container.scrollLeft);+ const scrollWidth = container.scrollWidth;+ const clientWidth = container.clientWidth;++ const scrollPercentage = scrollPosition / (scrollWidth - clientWidth);++ if (scrollPercentage > 0.6) {+ searchKeywords(query ?? "", {+ offset: searchResult.length,+ limit: 20,+ ...(start_time && { start_time }),+ ...(end_time && { end_time }),+ ...(apps?.length && { app_names: apps }),+ });+ }+ }, 400),+ [searchResult.length, searchKeywords, query, start_time, end_time, apps],+ );++ useEffect(() => {+ const container = containerRef.current;+ if (container) {+ container.addEventListener("scroll", checkScrollAndFetch);+ }++ return () => {+ if (container) {+ container.removeEventListener("scroll", checkScrollAndFetch);+ }+ };+ }, [checkScrollAndFetch]);++ const handleScroll = useMemo(+ () =>+ throttle(+ (e: WheelEvent) => {+ const isWithinAiPanel =+ e.target instanceof Node &&+ document.getElementById("ai-response")?.contains(e.target);++ if (isWithinAiPanel) return;++ e.preventDefault();+ e.stopPropagation();++ const scrollIntensity = Math.abs(e.deltaY);+ const direction = -Math.sign(e.deltaY);+ const limitIndexChange = 5;++ const indexChange =+ direction *+ Math.min(+ limitIndexChange,+ Math.ceil(Math.pow(scrollIntensity / 50, 1.5)),+ );++ requestAnimationFrame(() => {+ const newIndex = Math.min(+ Math.max(0, Math.floor(currentResultIndex + indexChange)),+ searchResult.length - 1,+ );+ setCurrentResultIndex(newIndex);+ });+ },+ 16,+ { leading: true, trailing: false },+ ),+ [searchResult.length, currentResultIndex, setCurrentResultIndex],+ );++ useEffect(() => {+ const preventScroll = (e: WheelEvent) => {+ e.preventDefault();+ };++ document.addEventListener("wheel", preventScroll, { passive: false });+ return () => document.removeEventListener("wheel", preventScroll);+ }, []);++ useEffect(() => {+ const container = containerRef.current;+ if (container && pageRef.current) {+ pageRef.current.addEventListener("wheel", handleScroll, {+ passive: false,+ });+ }++ return () => {+ if (container && pageRef.current) {+ pageRef.current.removeEventListener("wheel", handleScroll);+ }+ };+ }, [handleScroll]);++ useEffect(() => {+ const container = containerRef.current;+ if (!container || !searchResult[currentResultIndex]) return;++ const currentTimestamp = searchResult[currentResultIndex].timestamp;+ const currentElement = container.querySelector(+ `[data-timestamp="${currentTimestamp}"]`,+ );++ if (!currentElement) return;++ requestAnimationFrame(() => {+ const containerWidth = container.clientWidth;+ const elementWidth = (currentElement as HTMLElement).offsetWidth;+ const elementOffsetRight =+ container.scrollWidth -+ ((currentElement as HTMLElement).offsetLeft + elementWidth);++ const centerPosition =+ elementOffsetRight - (containerWidth - elementWidth) / 2;++ container.scrollTo({+ left: container.scrollWidth - containerWidth - centerPosition,+ behavior: "smooth",+ });+ });+ }, [currentResultIndex, searchResult]);++ return (+ <div className="relative w-full h-full">+ <div+ ref={containerRef}+ className="sticky inset-0 w-full overflow-x-auto overflow-y-hidden select-none scrollbar-hide"+ style={{ direction: "rtl" }}+ >+ <div className="inline-flex min-w-full px-[50vw]">+ <div className="flex flex-row gap-4 p-8" style={{ direction: "rtl" }}>+ {searchResult.map((result, index) => (+ <div+ key={result.frame_id}+ data-timestamp={result.timestamp}+ className={cn(+ "group flex flex-col shrink-0 w-56 h-full relative overflow-hidden rounded-lg bg-white shadow-sm transition-all duration-300 hover:shadow-md snap-center cursor-pointer",+ currentResultIndex === index && "ring-2 ring-blue-500",+ )}+ onClick={() => setCurrentResultIndex(index)}+ style={{ direction: "ltr" }}+ >+ <div className="aspect-video overflow-hidden flex-1 relative">+ <div className="absolute inset-0 flex items-center justify-center bg-neutral-100">+ <Loader2 className="h-5 w-5 animate-spin text-gray-400" />+ </div>+ <img+ src={`http://localhost:3030/frames/${result.frame_id}`}+ alt={`${result.app_name} - ${result.window_name}`}+ className="h-full w-full object-cover transition-transform duration-300 relative group-hover:scale-105"+ loading="lazy"+ draggable={false}+ onLoad={(e) => {+ (e.target as HTMLImageElement).style.opacity = "1";+ }}+ style={{ opacity: 0 }}+ />+ </div>+ <div className="p-3 space-y-1">+ <p className="text-sm font-medium text-neutral-900 truncate">+ {result.app_name}+ </p>+ <p className="text-xs text-neutral-500 truncate">+ {result.window_name}+ </p>+ <p className="text-xs text-neutral-400">+ {format(new Date(result.timestamp), "PPp")}+ </p>+ </div>+ </div>+ ))}+ </div>+ </div>+ </div>+ </div>+ );+};++interface TextBounds {+ left: number;+ top: number;+ width: number;+ height: number;+}++interface TextPosition {+ text: string;+ confidence: number;+ bounds: TextBounds;+}++export const MainImage = () => {+ const { searchResults, currentResultIndex } = useKeywordSearchStore();+ const imageRef = useRef<HTMLImageElement>(null);+ const containerRef = useRef<HTMLDivElement>(null);+ const [imageRect, setImageRect] = useState<DOMRect | null>(null);++ const currentFrame = searchResults[currentResultIndex];++ useEffect(() => {+ const updateImageRect = () => {+ if (imageRef.current) {+ const rect = imageRef.current.getBoundingClientRect();+ setImageRect(rect);+ }+ };++ updateImageRect();+ const resizeObserver = new ResizeObserver(updateImageRect);+ if (containerRef.current) {+ resizeObserver.observe(containerRef.current);+ }++ window.addEventListener("resize", updateImageRect);+ return () => {+ window.removeEventListener("resize", updateImageRect);+ resizeObserver.disconnect();+ };+ }, [currentFrame]);++ if (!currentFrame) {+ return (+ <div className="relative col-span-3 aspect-video w-full h-full overflow-hidden rounded-lg bg-neutral-100">+ <div className="animate-pulse absolute inset-0 bg-neutral-200" />+ <div className="h-full w-full object-cover opacity-0 transition-opacity duration-300" />+ </div>+ );+ }++ return (+ <div+ ref={containerRef}+ className="relative aspect-auto w-full h-full overflow-hidden rounded-lg bg-neutral-100"+ >+ <div className="absolute inset-0 flex items-center justify-center">+ <Loader2 className="h-8 w-8 animate-spin text-gray-400" />+ </div>+ <div className="relative">+ <img+ ref={imageRef}+ src={`http://localhost:3030/frames/${currentFrame.frame_id}`}+ alt={`${currentFrame.app_name} - ${currentFrame.window_name}`}+ className="h-full w-full object-contain max-h-[75vh]"+ draggable={false}+ onLoad={(e) => {+ (e.target as HTMLImageElement).style.opacity = "1";+ }}+ style={{ opacity: 0 }}+ />+ {imageRect && (+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ width: imageRect.width,+ }}+ />+ )}+ </div>+ </div>+ );+};diff --git a/openrewind/components/rewind/markdown.tsx b/openrewind/components/rewind/markdown.tsxnew file mode 100644index 000000000..d4491467a--- /dev/null+++ b/openrewind/components/rewind/markdown.tsx@@ -0,0 +1,9 @@+import { FC, memo } from 'react'+import ReactMarkdown, { Options } from 'react-markdown'++export const MemoizedReactMarkdown: FC<Options> = memo(+ ReactMarkdown,+ (prevProps, nextProps) =>+ prevProps.children === nextProps.children &&+ prevProps.className === nextProps.className+)diff --git a/openrewind/components/rewind/scroll-container.tsx b/openrewind/components/rewind/scroll-container.tsxnew file mode 100644index 000000000..39a2e6271--- /dev/null+++ b/openrewind/components/rewind/scroll-container.tsx@@ -0,0 +1,54 @@+import React, { forwardRef, useEffect } from "react";+import { cn } from "@/lib/utils";++interface CustomScrollContainerProps+ extends React.HTMLAttributes<HTMLDivElement> {+ children: React.ReactNode;+ className?: string;+ onCustomScroll?: (scrollLeft: number) => void;+}++export const CustomScrollContainer = forwardRef<+ HTMLDivElement,+ CustomScrollContainerProps+>(({ children, className, onCustomScroll, ...props }, ref) => {+ useEffect(() => {+ const container = ref as React.RefObject<HTMLDivElement>;+ if (!container.current) return;++ const handleWheel = (e: WheelEvent) => {+ e.preventDefault();+ if (!container.current) return;++ const scrollAmount = e.deltaY;+ const newScrollLeft = container.current.scrollLeft + scrollAmount;++ container.current.scrollTo({+ left: newScrollLeft,+ behavior: "smooth",+ });++ onCustomScroll?.(newScrollLeft);+ };++ container.current.addEventListener("wheel", handleWheel, {+ passive: false,+ });++ return () => {+ container.current?.removeEventListener("wheel", handleWheel);+ };+ }, [ref, onCustomScroll]);++ return (+ <div+ ref={ref}+ className={cn("snap-x snap-mandatory scroll-smooth", className)}+ {...props}+ >+ {children}+ </div>+ );+});++CustomScrollContainer.displayName = "CustomScrollContainer";diff --git a/openrewind/components/rewind/search-bar.tsx b/openrewind/components/rewind/search-bar.tsxnew file mode 100644index 000000000..b59371e71--- /dev/null+++ b/openrewind/components/rewind/search-bar.tsx@@ -0,0 +1,28 @@+import { Search } from "lucide-react";+import { Input } from "./ui/input";++export const SearchBar = ({+ search,+ onSearchChange,+ disabled,+}: {+ search: string | null;+ onSearchChange: (value: string) => void;+ disabled?: boolean;+}) => {+ return (+ <div className="relative w-full">+ <Input+ type="input"+ placeholder="Search..."+ className="pl-10 h-full bg-white/80 backdrop-blur-sm border border-neutral-200 rounded-lg shadow-sm transition-all duration-200 focus:shadow-md"+ value={search || ""}+ onChange={(e) => {+ onSearchChange(e.target.value);+ }}+ disabled={disabled}+ />+ <Search className="absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400 w-5 h-5" />+ </div>+ );+};diff --git a/openrewind/components/rewind/search-command.tsx b/openrewind/components/rewind/search-command.tsxnew file mode 100644index 000000000..c086c6b34--- /dev/null+++ b/openrewind/components/rewind/search-command.tsx@@ -0,0 +1,188 @@+"use client";++import * as React from "react";++import { useState } from "react";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "./ui/tooltip";+import { MultiSelectCombobox } from "./ui/multi-select-combobox";+import { useSqlAutocomplete } from "@/lib/hooks/use-sql-autocomplete";+import { Dialog, DialogTitle } from "./ui/dialog";+import { Input } from "./ui/input";+import { DatePickerWithRange } from "./date-range-picker";+import { queryParser, QueryParser, querySerializer } from "@/lib/utils";+import { CustomDialogContent } from "./custom-dialog-content";+import { ArrowRight, XIcon } from "lucide-react";+import { useQueryStates } from "nuqs";+import { CommandShortcut } from "./ui/command";++export function SearchCommand() {+ const [open, setOpen] = React.useState(false);++ const [state] = useQueryStates(queryParser);+ const [options, setOptions] = useState<QueryParser>(+ !state+ ? {+ query: null,+ start_time: null,+ end_time: null,+ apps: [],+ }+ : state,+ );++ React.useEffect(() => {+ const down = (e: KeyboardEvent) => {+ if (e.key === "k" && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ setOpen((open) => !open);+ }+ };+ document.addEventListener("keydown", down);+ return () => document.removeEventListener("keydown", down);+ }, []);++ const handleKeyDown = (e: React.KeyboardEvent) => {+ if (e.key === "Enter") {+ e.preventDefault();+ window.location.href = `/search${querySerializer(options)}`;+ }+ };++ return (+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTitle className="sr-only">Search Command</DialogTitle>+ <CustomDialogContent+ className="p-2 max-w-screen-sm"+ customClose={+ options.query ? (+ <a href={`/search${querySerializer(options)}`}>+ <ArrowRight className="w-4 h-4" />+ </a>+ ) : (+ <XIcon className="w-4 h-4" />+ )+ }+ >+ <Input+ value={options?.query || ""}+ className="focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 ring-0 outline-none border-0"+ placeholder="Search..."+ onChange={(e) => {+ setOptions((prev) => ({ ...prev, query: e.target.value }));+ }}+ onKeyDown={handleKeyDown}+ />+ <div className="flex w-full gap-10">+ <div className="w-1/2">+ <AppSelect+ apps={options.apps || []}+ setApps={(values) => {+ setOptions((prev) => ({ ...prev, apps: values }));+ }}+ />+ </div>+ <div className="w-1/2">+ <DatePickerWithRange+ start_time={options.start_time}+ end_time={options.end_time}+ setDateRange={(range) => {+ setOptions((prev) => ({+ ...prev,+ start_time: range?.from ?? null,+ end_time: range?.to ?? null,+ }));+ }}+ />+ </div>+ </div>+ </CustomDialogContent>+ </Dialog>+ );+}++interface AppSelectProps {+ apps: string[];+ setApps: (values: string[]) => void;+}++export function AppSelect({ apps, setApps }: AppSelectProps) {+ const { items, isLoading } = useSqlAutocomplete("app");++ const appItems = React.useMemo(() => {+ return items.map((app) => ({+ value: app.name,+ count: app.count,+ label: app.name,+ }));+ }, [items]);++ const renderTech = (option: (typeof appItems)[number]) => (+ <div className="flex items-center gap-2">+ <span className="text-xl">+ <img+ src={`http://localhost:11435/app-icon?name=${option.value}`}+ className="w-6 h-6"+ alt={option.value}+ loading="lazy"+ decoding="async"+ />+ </span>+ <div className="flex flex-col">+ <span>{option.label}</span>+ </div>+ </div>+ );++ const renderSelected = (value: string[]) => (+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger className="h-full">+ <div className="flex gap-1 h-full">+ {value.map((id) => {+ const tech = appItems.find((t) => t.value === id)!;++ if (!tech) return;+ return (+ <span key={id}>+ {+ <img+ src={`http://localhost:11435/app-icon?name=${tech.label}`}+ className="w-6 h-6"+ alt={tech.label}+ loading="lazy"+ decoding="async"+ />+ }+ </span>+ );+ })}+ </div>+ </TooltipTrigger>+ <TooltipContent>+ {value.map((id) => {+ const tech = appItems.find((t) => t.value === id)!;+ if (!tech) return;+ return <div key={id}>{tech.label}</div>;+ })}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ );++ return (+ <MultiSelectCombobox+ label="Applications"+ options={appItems}+ value={apps}+ onChange={setApps}+ renderItem={renderTech}+ renderSelectedItem={renderSelected}+ isLoading={isLoading}+ />+ );+}diff --git a/openrewind/components/rewind/settings-provider.tsx b/openrewind/components/rewind/settings-provider.tsxnew file mode 100644index 000000000..0456c477d--- /dev/null+++ b/openrewind/components/rewind/settings-provider.tsx@@ -0,0 +1,67 @@+"use client";++import {+ getScreenpipeAppSettings,+ updateScreenpipeAppSettings,+} from "@/lib/actions/get-screenpipe-app-settings";+import { Settings } from "@screenpipe/js";+import { createContext, ReactNode, useEffect, useState } from "react";++export const SettingsContext = createContext<{+ settings: Partial<Settings> | null;+ loading: boolean;+ updateSettings: (value: Partial<Settings>) => Promise<boolean>;+} | null>(null);++export const SettingsProvider = ({ children }: { children: ReactNode }) => {+ const [settings, setSettings] = useState<Partial<Settings> | null>(null);+ const [loading, setLoading] = useState(true);++ useEffect(() => {+ loadSettings();+ console.log("fetched");+ }, []);++ const loadSettings = async () => {+ try {+ // Load screenpipe app settings+ const screenpipeSettings = await getScreenpipeAppSettings();++ // Merge everything together+ setSettings({+ ...screenpipeSettings,+ });+ } catch (error) {+ console.error("failed to load settings:", error);+ } finally {+ setLoading(false);+ }+ };++ const updateSettings = async (screenpipeAppSettings: Partial<Settings>) => {+ try {+ // Update screenpipe settings if provided+ if (screenpipeAppSettings) {+ await updateScreenpipeAppSettings({+ ...settings,+ ...screenpipeAppSettings,+ });+ }++ // Update state with everything+ setSettings({+ ...screenpipeAppSettings,+ });+ return true;+ } catch (error) {+ console.error("failed to update settings:", error);+ return false;+ }+ };++ return (+ <SettingsContext.Provider value={{ settings, loading, updateSettings }}>+ {children}+ </SettingsContext.Provider>+ );+};diff --git a/openrewind/components/rewind/spinner.tsx b/openrewind/components/rewind/spinner.tsxnew file mode 100644index 000000000..68e47ccbd--- /dev/null+++ b/openrewind/components/rewind/spinner.tsx@@ -0,0 +1,16 @@+"use client";++export const spinner = (+ <svg+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5"+ viewBox="0 0 24 24"+ strokeLinecap="round"+ strokeLinejoin="round"+ xmlns="http://www.w3.org/2000/svg"+ className="size-5 animate-spin stroke-zinc-400"+ >+ <path d="M12 3v3m6.366-.366-2.12 2.12M21 12h-3m.366 6.366-2.12-2.12M12 21v-3m-6.366.366 2.12-2.12M3 12h3m-.366-6.366 2.12 2.12"></path>+ </svg>+);diff --git a/openrewind/components/rewind/timeline.tsx b/openrewind/components/rewind/timeline.tsxnew file mode 100644index 000000000..81ef33735--- /dev/null+++ b/openrewind/components/rewind/timeline.tsx@@ -0,0 +1,448 @@+"use client";+import { useEffect, useState, useRef, useMemo, useCallback } from "react";+import { Loader2, RotateCcw, AlertCircle } from "lucide-react";+import { AudioTranscript } from "@/components/rewind/timeline/audio-transcript";+import { AIPanel } from "@/components/rewind/timeline/ai-panel";+import { TimelineProvider } from "@/lib/hooks/use-timeline-selection";+import { throttle } from "lodash";+import { AGENTS } from "@/components/rewind/timeline/agents";+import { TimelineControls } from "@/components/rewind/timeline/timeline-controls";+import { addDays, isAfter, isSameDay, subDays } from "date-fns";+import { getStartDate } from "@/lib/actions/get-start-date";+import { useTimelineData } from "@/lib/hooks/use-timeline-data";+import { useCurrentFrame } from "@/lib/hooks/use-current-frame";+import { TimelineSlider } from "@/components/rewind/timeline/timeline";+import { useTimelineStore } from "@/lib/hooks/use-timeline-store";+import { hasFramesForDate } from "@/lib/actions/has-frames-date";+import { CommandShortcut } from "@/components/ui/command";+import { CurrentFrameTimeline } from "@/components/rewind/current-frame-timeline";++export interface StreamTimeSeriesResponse {+ timestamp: string;+ devices: DeviceFrameResponse[];+}++export interface DeviceFrameResponse {+ device_id: string;+ frame_id: string;+ frame: string; // base64 encoded image+ metadata: DeviceMetadata;+ audio: AudioData[];+}++export interface DeviceMetadata {+ file_path: string;+ app_name: string;+ window_name: string;+ ocr_text: string;+ timestamp: string;+}++export interface AudioData {+ device_name: string;+ is_input: boolean;+ transcription: string;+ audio_file_path: string;+ duration_secs: number;+ start_offset: number;+}++export interface TimeRange {+ start: Date;+ end: Date;+}++// Add this easing function at the top level+const easeOutCubic = (x: number): number => {+ return 1 - Math.pow(1 - x, 3);+};++export default function Timeline() {+ const [currentIndex, setCurrentIndex] = useState(0);+ const [isAiPanelExpanded, setIsAiPanelExpanded] = useState(false);+ const containerRef = useRef<HTMLDivElement | null>(null);+ const [aiPanelPosition, setAiPanelPosition] = useState({ x: 0, y: 0 });+ // const [searchResults, setSearchResults] = useState<number[]>([]);+ const [startAndEndDates, setStartAndEndDates] = useState<TimeRange>({+ start: new Date(new Date().setHours(0, 0, 0, 0)),+ end: new Date(),+ });++ const { currentFrame, setCurrentFrame } = useCurrentFrame((index) => {+ setCurrentIndex(index);+ });++ const { currentDate, setCurrentDate, fetchTimeRange, hasDateBeenFetched } =+ useTimelineStore();++ const { frames, isLoading, error, message, fetchNextDayData } =+ useTimelineData(currentDate, (frame) => {+ setCurrentFrame(frame);+ });++ useEffect(() => {+ const getStartDateAndSet = async () => {+ const data = await getStartDate();+ if (!("error" in data)) {+ setStartAndEndDates((prev) => ({+ ...prev,+ start: data,+ }));+ }+ };++ getStartDateAndSet();+ }, []);++ useEffect(() => {+ setAiPanelPosition({+ x: window.innerWidth - 400,+ y: window.innerHeight / 4,+ });+ }, []);++ useEffect(() => {+ const startTime = new Date(currentDate);+ startTime.setHours(0, 0, 0, 0);++ const endTime = new Date(currentDate);+ if (endTime.getDate() === new Date().getDate()) {+ endTime.setMinutes(endTime.getMinutes() - 5);+ } else {+ endTime.setHours(23, 59, 59, 999);+ }+ fetchTimeRange(startTime, endTime);+ }, [currentDate]);++ useEffect(() => {+ if (currentFrame) {+ const frameDate = new Date(currentFrame.timestamp);+ if (!isSameDay(frameDate, currentDate)) {+ setCurrentDate(frameDate);+ }+ }+ }, [currentFrame, currentDate]);++ const handleScroll = useMemo(+ () =>+ throttle(+ (e: WheelEvent) => {+ // Move these checks outside the throttle to improve performance+ const isWithinAiPanel =+ e.target instanceof Node &&+ document.querySelector(".ai-panel")?.contains(e.target);+ const isWithinAudioPanel =+ e.target instanceof Node &&+ document+ .querySelector(".audio-transcript-panel")+ ?.contains(e.target);+ const isWithinTimelineDialog =+ e.target instanceof Node &&+ document.querySelector('[role="dialog"]')?.contains(e.target);++ if (isWithinAiPanel || isWithinAudioPanel || isWithinTimelineDialog) {+ return;+ }++ e.preventDefault();+ e.stopPropagation();++ // Calculate scroll intensity based on absolute delta+ const scrollIntensity = Math.abs(e.deltaY);+ const direction = -Math.sign(e.deltaY);++ // Change this if you want limit the index change+ const limitIndexChange = Infinity;++ // Adjust index change based on scroll intensity+ const indexChange =+ direction *+ Math.min(+ limitIndexChange,+ Math.ceil(Math.pow(scrollIntensity / 50, 1.5)),+ );++ requestAnimationFrame(() => {+ setCurrentIndex((prevIndex) => {+ const newIndex = Math.min(+ Math.max(0, Math.floor(prevIndex + indexChange)),+ frames.length - 1,+ );++ if (newIndex !== prevIndex && frames[newIndex]) {+ setCurrentFrame(frames[newIndex]);+ }++ return newIndex;+ });+ });+ },+ 16,+ { leading: true, trailing: false },+ ),+ [frames], // Only depend on frames length changes+ );++ useEffect(() => {+ const preventScroll = (e: WheelEvent) => {+ const isWithinAiPanel = document+ .querySelector(".ai-panel")+ ?.contains(e.target as Node);+ const isWithinAudioPanel = document+ .querySelector(".audio-transcript-panel")+ ?.contains(e.target as Node);+ const isWithinTimelineDialog = document+ .querySelector('[role="dialog"]')+ ?.contains(e.target as Node);++ if (!isWithinAiPanel && !isWithinAudioPanel && !isWithinTimelineDialog) {+ e.preventDefault();+ }+ };++ document.addEventListener("wheel", preventScroll, { passive: false });+ return () => document.removeEventListener("wheel", preventScroll);+ }, []);++ const handleRefresh = () => {+ window.location.reload();+ };++ useEffect(() => {+ const container = containerRef.current;+ if (container) {+ container.addEventListener("wheel", handleScroll, { passive: false });+ }++ return () => {+ if (container) {+ container.removeEventListener("wheel", handleScroll);+ }+ };+ }, [handleScroll]);++ const jumpToTime = (targetDate: Date) => {+ // Find the closest frame to the target date+ if (frames.length === 0) return;++ const targetTime = targetDate.getTime();+ let closestIndex = 0;+ let closestDiff = Infinity;++ frames.forEach((frame, index) => {+ const frameTime = new Date(frame.timestamp).getTime();+ const diff = Math.abs(frameTime - targetTime);+ if (diff < closestDiff) {+ closestDiff = diff;+ closestIndex = index;+ }+ });++ // Update cursor position+ setCurrentIndex(closestIndex);+ if (frames[closestIndex]) {+ setCurrentFrame(frames[closestIndex]);+ // setCurrentDate(new Date(frames[closestIndex].timestamp));+ }+ };++ const handleDateChange = async (newDate: Date) => {+ const checkFramesForDate = await hasFramesForDate(newDate);++ if (!checkFramesForDate) {+ let subDate;+ if (isAfter(currentDate, newDate)) {+ subDate = subDays(newDate, 1);+ } else {+ subDate = addDays(newDate, 1);+ }++ return await handleDateChange(subDate);+ }++ if (!hasDateBeenFetched(newDate)) {+ setCurrentFrame(null);+ const frameTimeStamp = new Date(newDate);+ console.log(+ frameTimeStamp.getDate() === new Date(currentDate).getDate(),+ startAndEndDates.start.getDate(),+ newDate.getDate(),+ );+ if (isSameDay(frameTimeStamp, new Date(currentDate))) {+ return;+ }++ if (isAfter(startAndEndDates.start, newDate)) {+ return;+ }++ setCurrentDate(newDate);+ } else {+ jumpToTime(newDate);+ }+ };++ const handleJumpToday = () => {+ window.location.reload();+ };++ const animateToIndex = (targetIndex: number, duration: number = 1000) => {+ const startIndex = currentIndex;+ const startTime = performance.now();++ const animate = (currentTime: number) => {+ const elapsed = currentTime - startTime;+ const progress = Math.min(elapsed / duration, 1);++ // Apply easing+ const easedProgress = easeOutCubic(progress);++ // Calculate the current position+ const newIndex = Math.round(+ startIndex + (targetIndex - startIndex) * easedProgress,+ );++ // Update the frame+ setCurrentIndex(newIndex);+ if (frames[newIndex]) {+ setCurrentFrame(frames[newIndex]);+ }++ // Continue animation if not complete+ if (progress < 1) {+ requestAnimationFrame(animate);+ }+ };++ requestAnimationFrame(animate);+ };++ return (+ <TimelineProvider>+ <div+ ref={containerRef}+ className="inset-0 flex flex-col bg-background text-foreground relative"+ style={{+ height: "100vh",+ overscrollBehavior: "none",+ WebkitUserSelect: "none",+ userSelect: "none",+ MozUserSelect: "none",+ msUserSelect: "none",+ }}+ >+ <div className="absolute top-4 left-1/2 -translate-x-1/2 z-50">+ <div className="flex items-center gap-4">+ <TimelineControls+ currentDate={currentDate}+ startAndEndDates={startAndEndDates}+ onDateChange={handleDateChange}+ onJumpToday={handleJumpToday}+ className="shadow-lg"+ />+ {/* <TimelineSearch2+ frames={frames}+ onResultSelect={animateToIndex}+ onSearchResults={setSearchResults}+ /> */}+ <div>+ <CommandShortcut>⌘K</CommandShortcut>{" "}+ <span className="text-xs text-muted-foreground">to search</span>+ </div>+ </div>+ </div>++ <div className="flex-1 relative min-h-0">+ {isLoading && (+ <div className="absolute inset-0 flex items-center justify-center backdrop-blur-sm">+ <div className="bg-background/95 p-6 border rounded-xl shadow-lg text-center space-y-3 max-w-md mx-4">+ <h3 className="font-medium">Loading Timeline</h3>+ <p className="text-sm text-muted-foreground">+ Fetching your recorded frames...+ </p>+ <Loader2 className="h-5 w-5 animate-spin mx-auto mt-2" />+ </div>+ </div>+ )}++ {!error && message && (+ <div className="absolute inset-0 flex items-center justify-center backdrop-blur-sm">+ <div className="bg-background/95 p-6 border rounded-xl shadow-lg text-center space-y-3 max-w-md mx-4">+ <h3 className="font-medium">Processing</h3>+ <p className="text-sm text-muted-foreground">{message}</p>+ <Loader2 className="h-5 w-5 animate-spin mx-auto mt-2" />+ </div>+ </div>+ )}++ {error && (+ <div className="absolute inset-0 flex items-center justify-center backdrop-blur-sm">+ <div className="bg-destructive/5 p-6 border-destructive/20 border rounded-xl text-center space-y-4 max-w-md mx-4">+ <div className="flex flex-col items-center gap-2">+ <AlertCircle className="h-6 w-6 text-destructive" />+ <h3 className="font-medium text-destructive">+ Connection Error+ </h3>+ </div>+ <p className="text-sm text-muted-foreground">+ Unable to reach your screenpipe data. Please verify that the+ screenpipe turned on.+ </p>+ <button+ onClick={handleRefresh}+ className="flex items-center gap-2 px-4 py-2 bg-background hover:bg-muted transition-colors rounded-lg border border-input mx-auto"+ >+ <RotateCcw className="h-4 w-4" />+ <span>Reload Timeline</span>+ </button>+ </div>+ </div>+ )}+ {currentFrame && <CurrentFrameTimeline currentFrame={currentFrame} />}+ {currentFrame && (+ <AudioTranscript+ frames={frames}+ currentIndex={currentIndex}+ groupingWindowMs={30000} // 30 seconds window+ />+ )}+ </div>++ <TimelineSlider+ frames={frames}+ currentIndex={currentIndex}+ onFrameChange={(index) => {+ setCurrentIndex(index);+ if (frames[index]) {+ setCurrentFrame(frames[index]);+ }+ }}+ fetchNextDayData={fetchNextDayData}+ currentDate={currentDate}+ startAndEndDates={startAndEndDates}+ />++ <AIPanel+ position={aiPanelPosition}+ onPositionChange={setAiPanelPosition}+ onClose={() => {+ setIsAiPanelExpanded(false);+ }}+ frames={frames}+ agents={AGENTS}+ isExpanded={isAiPanelExpanded}+ onExpandedChange={setIsAiPanelExpanded}+ />++ <div className="fixed left-12 top-1/2 -translate-y-1/2 text-xs text-muted-foreground">+ <div className="flex flex-col items-center gap-1">+ <span>▲</span>+ <span>scroll</span>+ <span>▼</span>+ </div>+ </div>+ </div>+ </TimelineProvider>+ );+}+diff --git a/openrewind/components/rewind/timeline/agents.tsx b/openrewind/components/rewind/timeline/agents.tsxnew file mode 100644index 000000000..406572d2c--- /dev/null+++ b/openrewind/components/rewind/timeline/agents.tsx@@ -0,0 +1,322 @@+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import OpenAI from "openai";+import { ChatCompletionMessageParam } from "openai/resources/index.mjs";++export interface Agent {+ id: string;+ name: string;+ description: string;+ analyze: (+ frames: StreamTimeSeriesResponse[],+ openai: OpenAI,+ options: {+ model: string;+ onProgress: (chunk: string) => void;+ signal?: AbortSignal;+ },+ userQuery: string+ ) => Promise<void>;+}++async function streamCompletion(+ openai: OpenAI,+ messages: ChatCompletionMessageParam[],+ userQuery: string,+ options: {+ model: string;+ onProgress: (chunk: string) => void;+ signal?: AbortSignal;+ }+) {+ const messagesWithQuery = [+ ...messages,+ {+ role: "user" as const,+ content: `User question: "${userQuery}"\nPlease analyze the data in context of this question.`,+ },+ ];++ const stream = await openai.chat.completions.create(+ {+ model: options.model,+ messages: messagesWithQuery,+ stream: true,+ },+ {+ signal: options.signal,+ }+ );++ let fullResponse = "";+ for await (const chunk of stream) {+ const content = chunk.choices[0]?.delta?.content || "";+ fullResponse += content;+ options.onProgress(fullResponse);+ }+}++export async function analyzeChunk(+ chunk: any[],+ openai: OpenAI,+ model: string,+ signal?: AbortSignal+): Promise<string> {+ const response = await openai.chat.completions.create(+ {+ model,+ messages: [+ {+ role: "user" as const,+ content:+ "summarize this chunk of activity in 2-3 sentences, focus on key events and patterns",+ },+ {+ role: "user",+ content: JSON.stringify(chunk),+ },+ ],+ },+ {+ signal,+ }+ );+ return response.choices[0]?.message?.content || "";+}++export const AGENTS: Agent[] = [+ {+ id: "recursive-summarizer",+ name: "recursive summarizer",+ description:+ "good at processing long time ranges but quality decreases with shorter time ranges",+ analyze: async (+ frames,+ openai,+ { model, onProgress = () => {}, signal },+ userQuery+ ) => {+ console.log("userQuery", userQuery);+ console.log("frames", frames);+ if (!frames.length) {+ onProgress("no frames to analyze\n\n");+ return;+ }++ onProgress("analyzing chunks...\n\n");++ const chunkSize = 5 * 60 * 1000;+ const chunks: any[] = [];+ let currentChunk: any[] = [];++ frames.forEach((frame) => {+ const frameTime = new Date(frame.timestamp);+ if (+ currentChunk.length === 0 ||+ frameTime.getTime() - new Date(currentChunk[0].timestamp).getTime() <+ chunkSize+ ) {+ currentChunk.push({+ timestamp: frame.timestamp,+ apps: frame.devices.map((d) => d.metadata.app_name),+ windows: frame.devices.map((d) => d.metadata.window_name),+ text: frame.devices.map((d) => d.metadata.ocr_text).filter(Boolean),+ audio: frame.devices.flatMap((d) => d.audio),+ });+ } else {+ chunks.push(currentChunk);+ currentChunk = [frame];+ }+ });++ if (currentChunk.length > 0) {+ chunks.push(currentChunk);+ }++ const chunkSummaries = await Promise.all(+ chunks.map(async (chunk, index) => {+ const summary = await analyzeChunk(chunk, openai, model, signal);+ onProgress(`chunk ${index + 1}/${chunks.length}: ${summary}\n`);+ return {+ time: new Date(chunk[0].timestamp).toLocaleTimeString(),+ summary,+ };+ })+ );++ onProgress("\ncreating final summary...\n\n");++ await streamCompletion(+ openai,+ [+ {+ role: "user",+ content: `create a hierarchical summary with these sections:+ ### overview+ (one paragraph summary of entire time range, focusing on answering the user's question)++ ### timeline+ (list of chunk summaries with timestamps)++ ### patterns+ (key patterns or insights across chunks)`,+ },+ {+ role: "user",+ content: JSON.stringify({+ timeRange: {+ start: new Date(+ frames[frames.length - 1].timestamp+ ).toLocaleTimeString(),+ end: new Date(frames[0].timestamp).toLocaleTimeString(),+ },+ chunkSummaries,+ }),+ },+ ],+ userQuery,+ { model, onProgress, signal }+ );+ },+ },+ {+ id: "context-master",+ name: "context master",+ description: "analyzes everything: apps, windows, text & audio",+ analyze: async (+ frames,+ openai,+ { model, onProgress, signal },+ userQuery+ ) => {+ const contextData = frames.map((frame) => ({+ timestamp: frame.timestamp,+ devices: frame.devices.map((device) => ({+ device_id: device.device_id,+ metadata: device.metadata,+ audio: device.audio,+ })),+ }));++ await streamCompletion(+ openai,+ [+ {+ role: "user",+ content:+ "analyze all context including apps, windows, text & audio. provide insights about user activity patterns",+ },+ {+ role: "user",+ content: JSON.stringify(contextData),+ },+ ],+ userQuery,+ { model, onProgress, signal }+ );+ },+ },+ {+ id: "window-tracker",+ name: "window tracker",+ description: "focuses on app & window usage data",+ analyze: async (+ frames,+ openai,+ { model, onProgress, signal },+ userQuery+ ) => {+ const windowData = frames.map((frame) => ({+ timestamp: frame.timestamp,+ windows: frame.devices.map((device) => ({+ app: device.metadata.app_name,+ window: device.metadata.window_name,+ })),+ }));++ await streamCompletion(+ openai,+ [+ {+ role: "user",+ content:+ "analyze app and window usage patterns, focus on work habits and application transitions",+ },+ {+ role: "user",+ content: JSON.stringify(windowData),+ },+ ],+ userQuery,+ { model, onProgress, signal }+ );+ },+ },+ {+ id: "text-scanner",+ name: "text scanner",+ description: "analyzes visible text (OCR)",+ analyze: async (+ frames,+ openai,+ { model, onProgress, signal },+ userQuery+ ) => {+ const textData = frames.map((frame) => ({+ timestamp: frame.timestamp,+ text: frame.devices+ .map((device) => device.metadata.ocr_text)+ .filter(Boolean),+ }));++ await streamCompletion(+ openai,+ [+ {+ role: "user",+ content:+ "analyze OCR text content, identify key topics and information being viewed",+ },+ {+ role: "user",+ content: JSON.stringify(textData),+ },+ ],+ userQuery,+ { model, onProgress, signal }+ );+ },+ },+ {+ id: "voice-analyzer",+ name: "voice analyzer",+ description: "focuses on audio transcriptions",+ analyze: async (+ frames,+ openai,+ { model, onProgress, signal },+ userQuery+ ) => {+ const audioData = frames.map((frame) => ({+ timestamp: frame.timestamp,+ audio: frame.devices.flatMap((device) => device.audio),+ }));++ await streamCompletion(+ openai,+ [+ {+ role: "user",+ content:+ "analyze audio transcriptions, identify key conversations and spoken content",+ },+ {+ role: "user",+ content: JSON.stringify(audioData),+ },+ ],+ userQuery,+ { model, onProgress, signal }+ );+ },+ },+];diff --git a/openrewind/components/rewind/timeline/ai-panel.tsx b/openrewind/components/rewind/timeline/ai-panel.tsxnew file mode 100644index 000000000..0905e760c--- /dev/null+++ b/openrewind/components/rewind/timeline/ai-panel.tsx@@ -0,0 +1,520 @@+import { useRef, useState, useEffect } from "react";+import { Message, generateId } from "ai";+import { OpenAI } from "openai";+import { ChatMessage } from "@/components/rewind/chat-message";+import { useToast } from "@/components/ui/use-toast";+import { Input } from "@/components/ui/input";+import { Button } from "@/components/ui/button";+import { Loader2, Send, Square, X, GripHorizontal, Bot, Terminal } from "lucide-react";+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { useTimelineSelection } from "@/lib/hooks/use-timeline-selection";+import { Agent } from "./agents";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { AIPreset, useSettings } from "@/lib/hooks/use-settings";+import { ExportButton } from "../export-button";+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select";+import Image from "next/image";+import { AIPresetsSelector } from "../ai-presets-selector";++const providerIcons = {+ openai: <Image src="/images/openai.png" alt="OpenAI" width={16} height={16} />,+ "screenpipe-cloud": <Image src="/images/screenpipe.png" alt="Screenpipe Cloud" width={16} height={16} />,+ "native-ollama": <Image src="/images/ollama.png" alt="Ollama" width={16} height={16} />,+ custom: <Image src="/images/custom.png" alt="Custom" width={16} height={16} />,+};++const getPresetProviderIcon = (provider: AIPreset["provider"]) => {+ return providerIcons[provider];+};++interface AIPanelProps {+ position: { x: number; y: number };+ onPositionChange: (pos: { x: number; y: number }) => void;+ onClose: () => void;+ frames: StreamTimeSeriesResponse[];+ agents: Agent[];+ isExpanded: boolean;+ onExpandedChange: (expanded: boolean) => void;+}++export function AIPanel({+ position,+ onPositionChange,+ onClose,+ frames,+ agents,+ isExpanded,+ onExpandedChange,+}: AIPanelProps) {+ const { settings } = useSettings();+ const [chatMessages, setChatMessages] = useState<Array<Message>>([]);+ const [isAiLoading, setIsAiLoading] = useState(false);+ const [isStreaming, setIsStreaming] = useState(false);+ const [aiInput, setAiInput] = useState("");+ const [selectedAgent, setSelectedAgent] = useState<Agent>(agents[0]);+ const [isDraggingPanel, setIsDraggingPanel] = useState(false);+ const [dragOffset, setDragOffset] = useState({ x: 0, y: 0 });+ const [chatWindowSize, setChatWindowSize] = useState({+ width: 400,+ height: 500,+ });+ const [osType, setOsType] = useState<string>("");++ const inputRef = useRef<HTMLInputElement>(null);+ const aiPanelRef = useRef<HTMLDivElement>(null);+ const resizerRef = useRef<HTMLDivElement | null>(null);+ const { toast } = useToast();+ const { selectionRange, setSelectionRange } = useTimelineSelection();+ const isAvailable = settings.aiPresets && settings.aiPresets.length > 0;+ const error = !isAvailable ? "No AI presets configured" : "";+ const [activePreset, setActivePreset] = useState<AIPreset | null>(null);++ // Add abort controller ref+ const abortControllerRef = useRef<AbortController | null>(null);++ useEffect(() => {+ const detectOS = () => {+ // Try using modern API first+ if ("userAgentData" in navigator) {+ // @ts-ignore - userAgentData is not yet in all TypeScript definitions+ return navigator.userAgentData.platform;+ }+ // Fallback to user agent string parsing+ const userAgent = window.navigator.userAgent.toLowerCase();+ if (userAgent.includes("mac")) return "macos";+ if (userAgent.includes("win")) return "windows";+ if (userAgent.includes("linux")) return "linux";+ return "unknown";+ };++ const activePreset = settings.aiPresets.find((p) => p.defaultPreset);+ setActivePreset(activePreset || null);++ setOsType(detectOS());+ }, []);++ const handlePanelMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {+ e.preventDefault();+ setIsDraggingPanel(true);+ setDragOffset({+ x: e.clientX - position.x,+ y: e.clientY - position.y,+ });+ };++ useEffect(() => {+ const handleGlobalMouseMove = (e: MouseEvent) => {+ if (isDraggingPanel) {+ e.preventDefault();+ const newX = e.clientX - dragOffset.x;+ const newY = e.clientY - dragOffset.y;++ const maxX = window.innerWidth - chatWindowSize.width;+ const maxY = window.innerHeight - chatWindowSize.height;++ onPositionChange({+ x: Math.max(0, Math.min(maxX, newX)),+ y: Math.max(0, Math.min(maxY, newY)),+ });+ }+ };++ const handleGlobalMouseUp = () => {+ setIsDraggingPanel(false);+ };++ if (isDraggingPanel) {+ document.addEventListener("mousemove", handleGlobalMouseMove);+ document.addEventListener("mouseup", handleGlobalMouseUp);+ }++ return () => {+ document.removeEventListener("mousemove", handleGlobalMouseMove);+ document.removeEventListener("mouseup", handleGlobalMouseUp);+ };+ }, [+ isDraggingPanel,+ dragOffset,+ chatWindowSize.width,+ chatWindowSize.height,+ onPositionChange,+ ]);++ // Add keyboard shortcut handler+ useEffect(() => {+ const handleKeyDown = (e: KeyboardEvent) => {+ if (+ (e.metaKey || e.ctrlKey) &&+ e.key.toLowerCase() === "l" &&+ !isExpanded+ ) {+ e.preventDefault();+ onExpandedChange(true);+ setTimeout(() => {+ inputRef.current?.focus();+ }, 100);+ }+ };++ window.addEventListener("keydown", handleKeyDown);+ return () => window.removeEventListener("keydown", handleKeyDown);+ }, [isExpanded, onExpandedChange]);++ const handleMouseDown = (e: React.MouseEvent) => {+ e.preventDefault();+ const startX = e.clientX;+ const startY = e.clientY;+ const startWidth = chatWindowSize.width;+ const startHeight = chatWindowSize.height;++ const handleMouseMove = (moveEvent: MouseEvent) => {+ const newWidth = Math.max(200, startWidth + moveEvent.clientX - startX);+ const newHeight = Math.max(200, startHeight + moveEvent.clientY - startY);+ setChatWindowSize({ width: newWidth, height: newHeight });+ };++ const handleMouseUp = () => {+ document.removeEventListener("mousemove", handleMouseMove);+ document.removeEventListener("mouseup", handleMouseUp);+ };++ document.addEventListener("mousemove", handleMouseMove);+ document.addEventListener("mouseup", handleMouseUp);+ };++ const handleAgentChange = (agentId: string) => {+ const newAgent = agents.find((a) => a.id === agentId) || agents[0];++ setSelectedAgent(newAgent);+ };++ const handleClose = () => {+ // Abort any ongoing request+ if (abortControllerRef.current) {+ abortControllerRef.current.abort();+ abortControllerRef.current = null;+ }+ setIsAiLoading(false);+ setIsStreaming(false);+ setChatMessages([]);+ setAiInput("");+ onClose();+ setSelectionRange(null);+ };++ const handleStopStreaming = () => {+ if (abortControllerRef.current) {+ abortControllerRef.current.abort();+ abortControllerRef.current = null;+ setIsStreaming(false);+ setIsAiLoading(false);+ }+ };++ const handleAiSubmit = async (e: React.FormEvent) => {+ e.preventDefault();+ if (!selectionRange || !aiInput.trim()) return;++ // Create new abort controller for this request+ abortControllerRef.current = new AbortController();++ const userMessage = {+ id: generateId(),+ role: "user" as const,+ content: aiInput,+ };+ setChatMessages((prev) => [...prev, userMessage]);+ setAiInput("");+ setIsAiLoading(true);+ setIsStreaming(true);++ try {+ const relevantFrames = frames.reduce((acc, frame) => {+ const frameTime = new Date(frame.timestamp).getTime();+ const startTime = new Date(selectionRange.start).getTime();+ const endTime = new Date(selectionRange.end).getTime();+ const isInRange = frameTime >= startTime && frameTime <= endTime;++ if (!isInRange) return acc;++ // Get minute timestamp (rounded down to nearest minute)+ const minuteTimestamp = Math.floor(frameTime / 60000) * 60000;++ // Get unique apps in this frame+ const frameApps = new Set(+ frame.devices.map((device) => device.metadata.app_name),+ );++ // Check if we already have this app in this minute+ const existingFrameForMinute = acc.find((existing) => {+ const existingTime = new Date(existing.timestamp).getTime();+ const existingMinute = Math.floor(existingTime / 60000) * 60000;++ if (existingMinute !== minuteTimestamp) return false;++ // Check if apps are the same+ const existingApps = new Set(+ existing.devices.map((device) => device.metadata.app_name),+ );+ return (+ Array.from(frameApps).every((app) => existingApps.has(app)) &&+ Array.from(existingApps).every((app) => frameApps.has(app))+ );+ });++ // If we have multiple apps or haven't seen this app/minute combo, add the frame+ if (frameApps.size > 1 || !existingFrameForMinute) {+ acc.push(frame);+ }++ return acc;+ }, [] as StreamTimeSeriesResponse[]);++ // Sort frames by timestamp+ relevantFrames.sort(+ (a, b) =>+ new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime(),+ );++ const openai = new OpenAI({+ apiKey:+ activePreset?.provider === "openai"+ ? activePreset.apiKey+ : activePreset?.provider === "custom"+ ? activePreset.apiKey+ : "",+ baseURL: activePreset?.url,+ dangerouslyAllowBrowser: true,+ });++ let currentResponse = "";+ setChatMessages((prev) => [+ ...prev,+ { id: generateId(), role: "assistant", content: "" },+ ]);++ await selectedAgent.analyze(+ relevantFrames,+ openai,+ {+ model: activePreset?.model || "",+ onProgress: (chunk) => {+ currentResponse = chunk;+ setChatMessages((prev) => [+ ...prev.slice(0, -1),+ { id: generateId(), role: "assistant", content: currentResponse },+ ]);+ },+ signal: abortControllerRef.current.signal,+ },+ aiInput,+ );+ } catch (error) {+ // Only show error if not aborted+ if (!(error instanceof Error && error.name === "AbortError")) {+ console.error("Error generating AI response:", error);+ toast({+ title: "error",+ description: "failed to generate AI response. please try again.",+ variant: "destructive",+ });+ }+ } finally {+ setIsAiLoading(false);+ setIsStreaming(false);+ abortControllerRef.current = null;+ }+ };++ if (!selectionRange) return null;++ return (+ <div+ ref={aiPanelRef}+ className="ai-panel bg-background border border-muted-foreground rounded-lg shadow-lg transition-all duration-300 ease-in-out z-10"+ style={{+ position: "fixed",+ left: position.x,+ top: position.y,+ width: chatWindowSize.width,+ height: isExpanded ? chatWindowSize.height : "auto",+ cursor: isDraggingPanel ? "grabbing" : "default",+ }}+ >+ <div+ className="select-none cursor-grab active:cursor-grabbing"+ onMouseDown={handlePanelMouseDown}+ >+ <div className="p-4 border-b border-muted-foreground flex justify-between items-center group">+ <div className="flex items-center gap-2 flex-1">+ <GripHorizontal className="w-4 h-4 text-muted-foreground group-hover:text-foreground" />+ <div className="text-muted-foreground text-xs">+ {new Date(selectionRange.start).toLocaleString([], {+ month: "short",+ day: "numeric",+ hour: "2-digit",+ minute: "2-digit",+ second: "2-digit",+ })}+ {" - "}+ {new Date(selectionRange.end).toLocaleString([], {+ month: "short",+ day: "numeric",+ hour: "2-digit",+ minute: "2-digit",+ second: "2-digit",+ })}+ </div>+ </div>+ <button+ onClick={handleClose}+ className="text-muted-foreground hover:text-foreground transition-colors ml-2"+ >+ <X className="h-4 w-4" />+ </button>+ </div>++ {!isExpanded && (+ <div className="p-4 space-y-2">+ <button+ className="px-3 py-1 bg-background hover:bg-accent border text-foreground text-xs rounded flex items-center gap-2 transition-colors"+ onClick={(e) => {+ e.stopPropagation();+ onExpandedChange(true);+ setTimeout(() => {+ inputRef.current?.focus();+ }, 100);+ }}+ >+ <span>ask ai</span>+ <span className="text-muted-foreground text-[10px]">+ {osType === "macos" ? "⌘L" : "Ctrl+L"}+ </span>+ </button>+ <ExportButton />+ </div>+ )}+ </div>++ {isExpanded && (+ <div className="flex flex-col h-[calc(100%-52px)]">+ <div+ className="flex-1 overflow-y-auto p-4 space-y-4 min-h-0 hover:cursor-auto text-foreground font-mono text-sm leading-relaxed "+ style={{+ WebkitUserSelect: "text",+ userSelect: "text",+ MozUserSelect: "text",+ msUserSelect: "text",+ overscrollBehavior: "contain",+ overflowY: "scroll",+ height: "100%",+ maxWidth: "100%",+ boxSizing: "border-box",+ }}+ >+ {chatMessages.map((msg, index) => (+ <ChatMessage key={index} message={msg} />+ ))}+ {isAiLoading && (+ <div className="flex justify-center">+ <Loader2 className="h-6 w-6 animate-spin text-foreground" />+ </div>+ )}+ </div>++ <form+ onSubmit={handleAiSubmit}+ className="p-3 border-t border-muted-foreground"+ >+ <div className="flex flex-col gap-2">+ <div>+ <AIPresetsSelector />+ </div>+ <div className="flex items-center gap-2">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <Bot className="h-4 w-4 text-muted-foreground" />+ </TooltipTrigger>+ <TooltipContent>+ <p className="text-xs">+ using {activePreset?.model}+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <select+ value={selectedAgent.id}+ onChange={(e) => handleAgentChange(e.target.value)}+ className="w-full bg-background border border-muted-foreground text-foreground rounded px-2 py-1 text-xs"+ >+ {agents.map((agent) => (+ <option+ key={agent.id}+ value={agent.id}+ className="bg-background text-foreground"+ >+ {agent.name} - {agent.description}+ </option>+ ))}+ </select>+ </div>++ <div className="flex gap-2">+ <TooltipProvider>+ <Tooltip open={!isAvailable}>+ <TooltipTrigger asChild>+ <div className="flex-1">+ <Input+ ref={inputRef}+ type="text"+ value={aiInput}+ onChange={(e) => setAiInput(e.target.value)}+ placeholder="ask about this time range..."+ className="flex-1 bg-background border border-muted-foreground text-foreground placeholder-muted-foreground"+ disabled={isAiLoading || !isAvailable}+ />+ </div>+ </TooltipTrigger>+ <TooltipContent side="top">+ <p className="text-sm text-destructive">{error}</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <Button+ type="submit"+ variant="outline"+ className="hover:bg-accent transition-colors"+ disabled={!isAvailable}+ onClick={isStreaming ? handleStopStreaming : handleAiSubmit}+ >+ {isStreaming ? (+ <Square className="h-4 w-4" />+ ) : (+ <Send className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ </form>+ </div>+ )}++ <div+ ref={resizerRef}+ onMouseDown={handleMouseDown}+ className="absolute right-0 bottom-0 w-4 h-4 cursor-se-resize bg-transparent"+ style={{+ borderTopLeftRadius: "4px",+ borderBottomRightRadius: "4px",+ cursor: "se-resize",+ }}+ />+ </div>+ );+}diff --git a/openrewind/components/rewind/timeline/audio-transcript.tsx b/openrewind/components/rewind/timeline/audio-transcript.tsxnew file mode 100644index 000000000..badd53cbf--- /dev/null+++ b/openrewind/components/rewind/timeline/audio-transcript.tsx@@ -0,0 +1,304 @@+import { useState, useRef, useMemo, useCallback } from "react";+import { AudioData, StreamTimeSeriesResponse, TimeRange } from "@/components/rewind/timeline";+import { Button } from "@/components/ui/button";+import { Card } from "@/components/ui/card";+import { Play, Pause, Volume2, GripHorizontal, X } from "lucide-react";+import { VideoComponent } from "@/components/rewind/video";++interface AudioGroup {+ deviceName: string;+ isInput: boolean;+ audioItems: AudioData[];+ startTime: Date;+ endTime: Date;+}++interface AudioTranscriptProps {+ frames: StreamTimeSeriesResponse[];+ currentIndex: number;+ groupingWindowMs?: number; // how many ms to group audio files together+ onClose?: () => void;+}++function formatDurationHuman(durationInSeconds: number): string {+ const hours = Math.floor(durationInSeconds / 3600);+ const minutes = Math.floor((durationInSeconds % 3600) / 60);+ const seconds = Math.floor(durationInSeconds % 60);++ const parts = [];+ if (hours > 0) parts.push(`${hours}h`);+ if (minutes > 0) parts.push(`${minutes}m`);+ if (seconds > 0) parts.push(`${seconds}s`);++ return parts.join(" ");+}++function calculateTimeRange(+ startTime: Date,+ durationInSeconds: number,+): TimeRange {+ const endTime = new Date(startTime.getTime() + durationInSeconds * 1000);++ return {+ start: startTime,+ end: endTime,+ };+}++function formatTimeRange(range: TimeRange): string {+ const formatOptions: Intl.DateTimeFormatOptions = {+ hour: "2-digit",+ minute: "2-digit",+ second: "2-digit",+ // fractionalSecondDigits: 3,+ };++ return `${range.start.toLocaleTimeString([], formatOptions)} - ${range.end.toLocaleTimeString([], formatOptions)}`;+}++export function AudioTranscript({+ frames,+ currentIndex,+ groupingWindowMs = 30000,+ onClose,+}: AudioTranscriptProps) {+ const [playing, setPlaying] = useState<string | null>(null);+ const [position, setPosition] = useState(() => ({+ x: window.innerWidth - 320,+ y: 100,+ }));+ const [isDragging, setIsDragging] = useState(false);+ const [dragOffset, setDragOffset] = useState({ x: 0, y: 0 });+ const [windowSize, setWindowSize] = useState({ width: 300, height: 500 });+ const resizerRef = useRef<HTMLDivElement | null>(null);+ const panelRef = useRef<HTMLDivElement | null>(null);++ // 2. Memoize the audio grouping logic+ const audioGroups = useMemo(() => {+ if (!frames.length) return [];++ const currentFrame = frames[currentIndex];+ const currentTime = new Date(currentFrame?.timestamp);+ const windowStart = new Date(currentTime.getTime() - groupingWindowMs);+ const windowEnd = new Date(currentTime.getTime() + groupingWindowMs);++ // Get frames within our time window+ const nearbyFrames = frames.filter((frame) => {+ const frameTime = new Date(frame.timestamp);+ return frameTime >= windowStart && frameTime <= windowEnd;+ });++ // Check if any nearby frames have audio+ const hasNearbyAudio = nearbyFrames.some((frame) =>+ frame.devices.some((device) => device.audio.length > 0),+ );++ // Group audio by device+ const groups = new Map<string, AudioGroup>();++ nearbyFrames.forEach((frame) => {+ frame.devices.forEach((device) => {+ device.audio.forEach((audio) => {+ const key = `${audio.device_name}-${audio.is_input}`;++ if (!groups.has(key)) {+ groups.set(key, {+ deviceName: audio.device_name,+ isInput: audio.is_input,+ audioItems: [],+ startTime: new Date(frame.timestamp),+ endTime: new Date(frame.timestamp),+ });+ }++ const group = groups.get(key)!;+ group.audioItems.push(audio);++ // Update time range+ const frameTime = new Date(frame.timestamp);+ if (frameTime < group.startTime) group.startTime = frameTime;+ if (frameTime > group.endTime) group.endTime = frameTime;+ });+ });+ });++ return Array.from(groups.values());+ }, [frames, currentIndex, groupingWindowMs]);++ // 3. Memoize visibility based on audio groups+ const isVisible = useMemo(() => {+ return audioGroups.length > 0;+ }, [audioGroups]);++ // 4. Memoize handlers+ const handlePanelMouseMove = useCallback(+ (e: React.MouseEvent) => {+ if (isDragging) {+ setPosition({+ x: e.clientX - dragOffset.x,+ y: e.clientY - dragOffset.y,+ });+ }+ },+ [isDragging, dragOffset],+ );++ const handlePlay = useCallback((audioPath: string) => {+ setPlaying((current) => (current === audioPath ? null : audioPath));+ }, []);++ const handlePanelMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {+ setIsDragging(true);+ setDragOffset({+ x: e.clientX - position.x,+ y: e.clientY - position.y,+ });+ };++ const handlePanelMouseUp = () => {+ if (isDragging) {+ setIsDragging(false);+ }+ };++ const handleResizeMouseDown = (e: React.MouseEvent) => {+ e.preventDefault();+ const startX = e.clientX;+ const startY = e.clientY;+ const startWidth = windowSize.width;+ const startHeight = windowSize.height;++ const handleMouseMove = (moveEvent: MouseEvent) => {+ const newWidth = Math.max(200, startWidth + moveEvent.clientX - startX);+ const newHeight = Math.max(200, startHeight + moveEvent.clientY - startY);+ setWindowSize({ width: newWidth, height: newHeight });+ };++ const handleMouseUp = () => {+ document.removeEventListener("mousemove", handleMouseMove);+ document.removeEventListener("mouseup", handleMouseUp);+ };++ document.addEventListener("mousemove", handleMouseMove);+ document.addEventListener("mouseup", handleMouseUp);+ };++ const handleClose = (e: React.MouseEvent) => {+ e.stopPropagation();+ onClose?.();+ };++ return isVisible ? (+ <div+ ref={panelRef}+ style={{+ position: "fixed",+ left: position.x,+ top: position.y,+ width: windowSize.width,+ height: windowSize.height,+ cursor: isDragging ? "grabbing" : "default",+ }}+ className="audio-transcript-panel bg-background/80 backdrop-blur border border-muted-foreground rounded-lg shadow-lg z-[100] overflow-hidden"+ >+ <div+ className="select-none cursor-grab active:cursor-grabbing p-2 border-b border-muted-foreground"+ onMouseDown={handlePanelMouseDown}+ onMouseMove={handlePanelMouseMove}+ onMouseUp={handlePanelMouseUp}+ onMouseLeave={handlePanelMouseUp}+ >+ <div className="flex items-center justify-between gap-2 text-xs text-muted-foreground">+ <div className="flex items-center gap-2">+ <GripHorizontal className="w-4 h-4" />+ <span>audio transcripts</span>+ </div>+ <Button+ variant="ghost"+ size="sm"+ className="h-6 w-6 p-0"+ onClick={handleClose}+ >+ <X className="h-3 w-3" />+ </Button>+ </div>+ </div>++ <div+ className="space-y-2 p-2 overflow-y-auto"+ style={{+ height: "calc(100% - 37px)",+ overscrollBehavior: "contain", // Prevent scroll chaining+ WebkitOverflowScrolling: "touch", // Smooth scrolling on iOS+ }}+ >+ {audioGroups.map((group, groupIndex) => (+ <Card key={groupIndex} className="p-4 bg-background/80 backdrop-blur">+ <div className="text-xs text-muted-foreground mb-2">+ {group.deviceName} ({group.isInput ? "input" : "output"})+ <div className="text-[10px]">+ {formatTimeRange(+ calculateTimeRange(+ group.startTime,+ group.audioItems.reduce(+ (value, item) => value + item.duration_secs,+ 0,+ ),+ ),+ )}+ </div>+ </div>++ {group.audioItems.map((audio, index) => (+ <div key={index} className="space-y-2 mb-2 last:mb-0">+ <div className="flex items-center gap-2">+ <Button+ variant="ghost"+ size="sm"+ className="h-6 w-6 p-0"+ onClick={() => handlePlay(audio.audio_file_path)}+ >+ {playing === audio.audio_file_path ? (+ <Pause className="h-3 w-3" />+ ) : (+ <Play className="h-3 w-3" />+ )}+ </Button>+ <div className="flex items-center gap-1 text-xs">+ <Volume2 className="h-3 w-3" />+ <span>+ {formatDurationHuman(Math.round(audio.duration_secs))}+ </span>+ </div>+ </div>++ {audio.transcription && (+ <div className="text-xs pl-8 text-muted-foreground">+ {audio.transcription}+ </div>+ )}++ {playing === audio.audio_file_path && (+ <div className="pl-8">+ <VideoComponent filePath={audio.audio_file_path} />+ </div>+ )}+ </div>+ ))}+ </Card>+ ))}+ </div>++ <div+ ref={resizerRef}+ onMouseDown={handleResizeMouseDown}+ className="absolute right-0 bottom-0 w-4 h-4 cursor-se-resize bg-transparent"+ style={{+ borderTopLeftRadius: "4px",+ borderBottomRightRadius: "4px",+ cursor: "se-resize",+ }}+ />+ </div>+ ) : null;+}diff --git a/openrewind/components/rewind/timeline/timeline-controls.tsx b/openrewind/components/rewind/timeline/timeline-controls.tsxnew file mode 100644index 000000000..ef53fa890--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline-controls.tsx@@ -0,0 +1,125 @@+"use client";++import { Button } from "@/components/ui/button";+import { ChevronLeft, ChevronRight, RefreshCw } from "lucide-react";+import {+ endOfDay,+ format,+ isAfter,+ isSameDay,+ startOfDay,+ subDays,+} from "date-fns";+import { cn } from "@/lib/utils";+import { motion, AnimatePresence } from "framer-motion";+import { useMemo } from "react";++interface TimeRange {+ start: Date;+ end: Date;+}++interface TimelineControlsProps {+ startAndEndDates: TimeRange;+ currentDate: Date;+ onDateChange: (date: Date) => Promise<any>;+ onJumpToday: () => void;+ className?: string;+}++export function TimelineControls({+ startAndEndDates,+ currentDate,+ onDateChange,+ onJumpToday,+ className,+}: TimelineControlsProps) {+ const jumpDay = async (days: number) => {+ const today = new Date();++ const newDate = endOfDay(new Date(currentDate));+ newDate.setDate(newDate.getDate() + days);++ // Prevent jumping to future dates+ if (isAfter(startOfDay(newDate), startOfDay(today))) {+ await onDateChange(today);+ return;+ }++ await onDateChange(newDate);+ };++ // Disable forward button if we're at today+ const isAtToday = useMemo(+ () => !isAfter(startOfDay(new Date()), startOfDay(currentDate)),+ [currentDate],+ );++ const canGoBack = useMemo(+ () =>+ isAfter(+ startOfDay(startAndEndDates.start),+ startOfDay(subDays(currentDate, 1)),+ ),+ [startAndEndDates.start, currentDate],+ );++ return (+ <div+ className={cn(+ "flex items-center gap-2 p-2 bg-muted/50 rounded-md",+ className,+ )}+ >+ <Button+ variant="ghost"+ size="icon"+ onClick={() => jumpDay(-1)}+ className="h-8 w-8"+ disabled={canGoBack}+ >+ <ChevronLeft className="h-4 w-4" />+ </Button>++ <AnimatePresence mode="wait">+ <motion.div+ key={currentDate.toISOString()}+ initial={{ y: -20, opacity: 0 }}+ animate={{ y: 0, opacity: 1 }}+ exit={{ y: 20, opacity: 0 }}+ transition={{+ type: "spring",+ stiffness: 500,+ damping: 30,+ duration: 0.2,+ }}+ className="bg-background border rounded px-3 py-1 text-sm font-mono"+ >+ {format(currentDate, "d MMM yyyy")}+ </motion.div>+ </AnimatePresence>++ <Button+ variant="ghost"+ size="icon"+ onClick={() => jumpDay(1)}+ className="h-8 w-8"+ disabled={isAtToday}+ >+ <ChevronRight className="h-4 w-4" />+ </Button>++ <div className="h-4 w-px bg-border mx-2" />++ <Button+ variant="ghost"+ size="icon"+ onClick={onJumpToday}+ className="h-8 w-8"+ disabled={isAtToday}+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </div>+ );+}diff --git a/openrewind/components/rewind/timeline/timeline-dock-section.tsx b/openrewind/components/rewind/timeline/timeline-dock-section.tsxnew file mode 100644index 000000000..9f83f4529--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline-dock-section.tsx@@ -0,0 +1,428 @@+import localforage from "localforage";+import React, { useEffect, useState, useCallback, useMemo } from "react";+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { stringToColor } from "@/lib/utils";+import { motion, useAnimation } from "framer-motion";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { ScrollArea } from "@/components/ui/scroll-area";++import { useTimelineSelection } from "@/lib/hooks/use-timeline-selection";+import { Button } from "@/components/ui/button";+import { MessageSquarePlus, Volume2 } from "lucide-react";++// Add this near the top of the file, after imports+const GAP_THRESHOLD = 3 * 60 * 1000; // 5 minutes in milliseconds++interface ProcessedBlock {+ appName: string;+ percentThroughDay: number;+ timestamp: Date;+ iconSrc?: string;+ windows: Array<{+ title: string;+ timestamp: Date;+ }>;+}++interface AppIcon {+ base64: string;+ path?: string;+}++async function getAppIcon(+ appName: string,+ appPath?: string,+): Promise<AppIcon | null> {+ const params = new URLSearchParams({+ name: appName,+ ...(appPath && { path: appPath }),+ });++ try {+ const response = await fetch(`http://localhost:11435/app-icon?${params}`, {+ method: "GET",+ headers: {+ Accept: "application/json",+ },+ });++ if (!response.ok) {+ const error = await response.text();+ throw new Error(`failed to get app icon: ${error}`);+ }++ return await response.json();+ } catch (error) {+ console.error("error getting app icon:", error);+ return null;+ }+}++interface TimeRange {+ start: Date;+ end: Date;+}+export function TimelineIconsSection({+ blocks,+ timeRange,+}: {+ blocks: StreamTimeSeriesResponse[];+ timeRange: TimeRange;+}) {+ const [iconCache, setIconCache] = useState<{ [key: string]: string }>({});+ const [selectedApp, setSelectedApp] = useState<ProcessedBlock | null>(null);+ const [iconInvocationCount, setIconInvocationCount] = useState<{+ [key: string]: number;+ }>({});+ const { setSelectionRange } = useTimelineSelection();++ // Separate time range calculation+ //const timeRange = useMemo(() => {+ // if (blocks.length === 0) return null;+ // const startTime = new Date(blocks[blocks.length - 1].timestamp);+ // const endTime = new Date(blocks[0].timestamp);+ // return { start: startTime, end: endTime };+ //}, [blocks]);++ // Process blocks without icon dependency+ const { processedBlocks, processedAudioGroups } = useMemo(() => {+ if (!timeRange) return { processedBlocks: [], processedAudioGroups: [] };++ // Process audio groups first+ const audioGroups = blocks+ .flatMap((frame) =>+ frame.devices.flatMap((device) =>+ device.audio.map((audio) => ({+ deviceName: audio.device_name,+ isInput: audio.is_input,+ timestamp: new Date(frame.timestamp),+ duration: audio.duration_secs,+ percentThroughDay:+ ((new Date(frame.timestamp).getTime() -+ timeRange.start.getTime()) /+ (timeRange.end.getTime() - timeRange.start.getTime())) *+ 100,+ })),+ ),+ )+ .filter((audio) => {+ const timestamp = audio.timestamp;+ return timestamp >= timeRange.start && timestamp <= timeRange.end;+ })+ .filter((audio, index, array) => {+ if (index === 0) return true;+ const prevAudio = array[index - 1];+ return (+ Math.abs(audio.percentThroughDay - prevAudio.percentThroughDay) > 0.25+ );+ });++ // Process app blocks (existing logic)+ const appGroups: {+ [key: string]: Array<{+ timestamp: Date;+ title?: string;+ blockId?: number;+ }>;+ } = {};++ blocks.forEach((frame) => {+ frame.devices.forEach((device) => {+ if (!device.metadata?.app_name) return;++ const timestamp = new Date(frame.timestamp);+ const appName = device.metadata.app_name;+ const windowTitle = device.metadata.window_name;++ if (timestamp < timeRange.start || timestamp > timeRange.end) return;++ if (!appGroups[appName]) {+ appGroups[appName] = [];+ }+ appGroups[appName].push({ timestamp, title: windowTitle });+ });+ });++ Object.entries(appGroups).forEach(([appName, timestamps]) => {+ timestamps.sort((a, b) => a.timestamp.getTime() - b.timestamp.getTime());++ let currentBlockId = 0;+ let blockStart = timestamps[0];+ let lastTimestamp = timestamps[0];++ timestamps.forEach((entry, idx) => {+ if (+ entry.timestamp.getTime() - lastTimestamp.timestamp.getTime() >+ GAP_THRESHOLD+ ) {+ currentBlockId++;+ blockStart = entry;+ }+ entry.blockId = currentBlockId;+ lastTimestamp = entry;+ });+ });++ const b: ProcessedBlock[] = [];++ Object.entries(appGroups).forEach(([appName, entries]) => {+ const blockIds = [...new Set(entries.map((e) => e.blockId))];++ blockIds.forEach((blockId) => {+ const blockEntries = entries.filter((e) => e.blockId === blockId);+ if (blockEntries.length === 0) return;++ const blockStart = blockEntries[0].timestamp;+ const blockEnd = blockEntries[blockEntries.length - 1].timestamp;+ const blockMiddle = new Date(+ blockStart.getTime() ++ (blockEnd.getTime() - blockStart.getTime()) / 2,+ );++ const windowsInBlock = blockEntries+ .filter((w) => w.title)+ .map((w) => ({+ title: w.title!,+ timestamp: w.timestamp,+ }))+ .sort((a, b) => b.timestamp.getTime() - a.timestamp.getTime());++ b.push({+ appName,+ timestamp: blockMiddle,+ percentThroughDay:+ ((blockMiddle.getTime() - timeRange.start.getTime()) /+ (timeRange.end.getTime() - timeRange.start.getTime())) *+ 100,+ windows: windowsInBlock,+ });+ });+ });++ return {+ processedBlocks: b+ .sort((a, b) => a.percentThroughDay - b.percentThroughDay)+ .filter((block, index, array) => {+ if (index === 0) return true;+ const prevBlock = array[index - 1];+ return (+ Math.abs(block.percentThroughDay - prevBlock.percentThroughDay) >+ 0.25+ );+ }),+ processedAudioGroups: audioGroups,+ };+ }, [blocks, timeRange]); // Remove iconCache dependency++ // Add icons to blocks in a separate memo+ const blocksWithIcons = useMemo(() => {+ return processedBlocks.map((block) => ({+ ...block,+ iconSrc: iconCache[block.appName],+ }));+ }, [processedBlocks, iconCache]);++ const loadAppIcon = useCallback(+ async (appName: string, appPath?: string) => {+ try {+ if (iconCache[appName]) return;++ const cachedIcon = await localforage.getItem<string>(`icon-${appName}`);+ if (cachedIcon) {+ setIconCache((prev) => ({+ ...prev,+ [appName]: cachedIcon,+ }));+ return;+ }++ if (iconInvocationCount[appName] >= 100) return;++ const icon = await getAppIcon(appName, appPath);++ if (icon?.base64) {+ // Add null check for base64+ setIconCache((prev) => ({+ ...prev,+ [appName]: icon.base64,+ }));++ await localforage.setItem(`icon-${appName}`, icon.base64);++ setIconInvocationCount((prev) => ({+ ...prev,+ [appName]: (prev[appName] || 0) + 1,+ }));+ }+ } catch (error) {+ console.error(`failed to load icon for ${appName}:`, error);+ // Fail silently - the UI will just not show an icon+ }+ },+ [iconCache, iconInvocationCount],+ );++ useEffect(() => {+ const loadIcons = async () => {+ // Load icons for unique app names only+ processedBlocks.forEach((block) => {+ loadAppIcon(block.appName);+ });+ };++ loadIcons();+ }, [processedBlocks, loadAppIcon]);++ return (+ <>+ <div className="absolute -top-8 inset-x-0 h-8">+ {blocksWithIcons.map((block, i) => {+ const bgColor = stringToColor(block.appName);++ return (+ <motion.div+ key={`${block.appName}-${i}`}+ className="absolute h-full pointer-events-auto cursor-pointer"+ style={{+ left: `${block.percentThroughDay}%`,+ transform: "translateX(-50%)",+ zIndex: 50,+ }}+ onClick={() => setSelectedApp(block)}+ whileHover={{+ scale: 1.5,+ backgroundColor: "red",+ y: -20,+ }}+ transition={{+ type: "spring",+ stiffness: 300,+ damping: 30,+ }}+ >+ {block.iconSrc ? (+ <motion.div+ className="w-5 h-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full"+ style={{+ backgroundColor: `${bgColor}40`,+ padding: "2px",+ }}+ >+ <img+ src={+ window.navigator.platform === "Linux"+ ? `data:image/svg+xml;base64,${block.iconSrc}`+ : `data:image/png;base64,${block.iconSrc}`+ }+ className="w-full h-full opacity-70"+ alt={block.appName}+ loading="lazy"+ decoding="async"+ />+ </motion.div>+ ) : (+ <motion.div+ className="w-5 h-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full"+ style={{ backgroundColor: bgColor }}+ />+ )}+ </motion.div>+ );+ })}++ {/* Add this new section for audio markers */}+ {processedAudioGroups.map((audio, i) => (+ <div+ key={`audio-${i}`}+ className="absolute h-full pointer-events-auto "+ style={{+ left: `${audio.percentThroughDay}%`,+ transform: "translateX(-50%)",+ zIndex: 40,+ top: "-16px", // Moved higher+ }}+ >+ <div+ className="w-4 h-4 flex items-center justify-center rounded-full bg-muted/50 backdrop-blur"+ style={{+ border: `1px solid ${+ audio.isInput ? "rgba(0, 0, 0, 0.7)" : "rgba(0, 0, 0, 0.4)"+ }`,+ }}+ >+ <Volume2+ className="w-2 h-2"+ style={{+ color: audio.isInput+ ? "rgba(0, 0, 0, 0.7)"+ : "rgba(0, 0, 0, 0.4)",+ }}+ />+ </div>+ </div>+ ))}+ </div>++ <Dialog+ open={selectedApp !== null}+ onOpenChange={() => setSelectedApp(null)}+ >+ <DialogContent className="max-w-md p-8">+ <DialogHeader>+ <DialogTitle className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ {selectedApp?.iconSrc && (+ <img+ src={+ window.navigator.platform === "Linux"+ ? `data:image/svg+xml;base64,${selectedApp.iconSrc}`+ : `data:image/png;base64,${selectedApp.iconSrc}`+ }+ className="w-6 h-6"+ alt={selectedApp.appName}+ />+ )}+ <span>{selectedApp?.appName}</span>+ </div>+ <Button+ variant="outline"+ size="sm"+ className="gap-2"+ onClick={() => {+ if (!selectedApp) return;+ setSelectedApp(null);+ setSelectionRange({+ start: selectedApp.timestamp,+ end: new Date(selectedApp.timestamp.getTime() + 60000),+ frameIds: [],+ });+ }}+ >+ <MessageSquarePlus className="h-4 w-4" />+ <span className="text-xs">ask ai about this</span>+ </Button>+ </DialogTitle>+ </DialogHeader>++ <ScrollArea className="max-h-[60vh]">+ <div className="space-y-2">+ {selectedApp?.windows.map((window, i) => (+ <div key={i} className="p-2 rounded-lg bg-muted/50 text-sm">+ <p className="font-medium">{window.title}</p>+ <p className="text-xs text-muted-foreground">+ {window.timestamp.toLocaleTimeString()}+ </p>+ </div>+ ))}+ </div>+ </ScrollArea>+ </DialogContent>+ </Dialog>+ </>+ );+}diff --git a/openrewind/components/rewind/timeline/timeline-search-v2.tsx b/openrewind/components/rewind/timeline/timeline-search-v2.tsxnew file mode 100644index 000000000..9063c9559--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline-search-v2.tsx@@ -0,0 +1,309 @@+"use client";++import { useState, useCallback } from "react";+import { Search, Loader2 } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import {+ Dialog,+ DialogContent,+ DialogTitle,+ DialogPortal,+ DialogOverlay,+} from "@/components/ui/dialog";+import { motion } from "framer-motion";+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";++interface TimelineSearchProps {+ frames: StreamTimeSeriesResponse[];+ onResultSelect: (index: number) => void;+ onSearchResults?: (results: number[]) => void;+}++// Extract meaningful keywords from frames+function extractKeywords(frames: StreamTimeSeriesResponse[]): string[] {+ const keywords = new Map<string, number>();++ // Common words to filter out+ const stopWords = new Set([+ "the",+ "be",+ "to",+ "of",+ "and",+ "a",+ "in",+ "that",+ "have",+ "i",+ "it",+ "for",+ "not",+ "on",+ "with",+ "he",+ "as",+ "you",+ "do",+ "at",+ "this",+ "but",+ "his",+ "by",+ "from",+ "they",+ "we",+ "say",+ "her",+ "she",+ "or",+ "an",+ "will",+ "my",+ "one",+ "all",+ "would",+ "there",+ "their",+ "what",+ "so",+ "up",+ "out",+ "if",+ "about",+ "who",+ "get",+ "which",+ "go",+ "me",+ "when",+ "make",+ "can",+ "like",+ "time",+ "no",+ "just",+ "him",+ "know",+ "take",+ "people",+ "into",+ "year",+ "your",+ "good",+ "some",+ "could",+ "them",+ "see",+ "other",+ "than",+ "then",+ "now",+ "look",+ "only",+ "come",+ "its",+ "over",+ "think",+ "also",+ "back",+ "after",+ "use",+ "two",+ "how",+ "our",+ "work",+ "first",+ "well",+ "way",+ "even",+ "new",+ "want",+ "because",+ "any",+ "these",+ "give",+ "day",+ "most",+ "us",+ ]);++ // Patterns for valuable information+ const patterns = {+ email: /\b[\w\.-]+@[\w\.-]+\.\w+\b/g,+ url: /https?:\/\/[^\s]+/g,+ date: /\b\d{1,2}[-/]\d{1,2}[-/]\d{2,4}\b|\b(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]* \d{1,2}(?:st|nd|rd|th)?\b/gi,+ time: /\b(?:1[0-2]|0?[1-9])(?::[0-5][0-9])?\s*(?:am|pm)\b/gi,+ properNoun: /\b[A-Z][a-z]+(?:\s+[A-Z][a-z]+)*\b/g,+ appName:+ /\b(?:vscode|chrome|firefox|safari|slack|discord|zoom|teams|figma|notion|github)\b/gi,+ codeTerms:+ /\b(?:function|class|const|let|var|import|export|async|await|return|if|else|for|while)\b/g,+ numbers: /\b\d+(?:\.\d+)?[kmbt]?\b/gi,+ };++ frames.forEach((frame) => {+ frame.devices.forEach((device) => {+ const text = [+ device.metadata.ocr_text,+ device.metadata.window_name,+ ...device.audio.map((a) => a.transcription),+ ].join(" ");++ // Extract patterns+ Object.entries(patterns).forEach(([type, pattern]) => {+ const matches = text.match(pattern) || [];+ matches.forEach((match) => {+ const key = `${match.toLowerCase()}`;+ if (!stopWords.has(key) && key.length > 2) {+ keywords.set(key, (keywords.get(key) || 0) + 1);+ }+ });+ });++ // Extract potential important phrases (2-3 words)+ const words = text.split(/\s+/);+ for (let i = 0; i < words.length - 1; i++) {+ const phrase = words+ .slice(i, i + 2)+ .join(" ")+ .toLowerCase();+ if (phrase.split(" ").every((word) => !stopWords.has(word))) {+ keywords.set(phrase, (keywords.get(phrase) || 0) + 1);+ }+ }+ });+ });++ // Score and rank keywords+ const scoredKeywords = Array.from(keywords.entries()).map(([word, count]) => {+ let score = count;++ // Boost certain types of keywords+ if (word.match(patterns.email)) score *= 2;+ if (word.match(patterns.properNoun)) score *= 1.5;+ if (word.match(patterns.date)) score *= 1.3;+ if (word.match(patterns.appName)) score *= 1.2;++ // Penalize very common words+ if (count > frames.length / 2) score *= 0.5;++ return { word, score };+ });++ // Return top 10 most valuable keywords+ return scoredKeywords+ .sort((a, b) => b.score - a.score)+ .slice(0, 10)+ .map((k) => k.word);+}++export function TimelineSearch2({+ frames,+ onResultSelect,+ onSearchResults,+}: TimelineSearchProps) {+ const [open, setOpen] = useState(false);+ const [searchQuery, setSearchQuery] = useState("");+ const [isSearching, setIsSearching] = useState(false);++ const keywords = extractKeywords(frames);++ const handleSearch = useCallback(+ (query: string) => {+ setIsSearching(true);++ // Find all matching frames+ const results = frames.reduce<number[]>((matches, frame, index) => {+ const hasMatch = frame.devices.some((device) => {+ const searchText = [+ device.metadata.ocr_text,+ device.metadata.window_name,+ ...device.audio.map((a) => a.transcription),+ ]+ .join(" ")+ .toLowerCase();++ return searchText.includes(query.toLowerCase());+ });++ if (hasMatch) matches.push(index);+ return matches;+ }, []);++ // Instead of jumping, send results to parent+ if (results.length > 0) {+ onSearchResults?.(results);+ setOpen(false);+ }++ setIsSearching(false);+ },+ [frames, onSearchResults]+ );++ return (+ <>+ <Button+ variant="ghost"+ size="icon"+ onClick={() => setOpen(true)}+ className="rounded-full"+ >+ <Search className="h-4 w-4" />+ </Button>++ <Dialog open={open} onOpenChange={setOpen}>+ <DialogPortal>+ <DialogOverlay className="backdrop-blur-sm" />+ <DialogContent className="sm:max-w-[500px]">+ <DialogTitle>search your timeline</DialogTitle>+ <div className="p-6">+ <div className="relative">+ <Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />+ <Input+ autoFocus+ placeholder="search in your timeline..."+ className="pl-9 h-12"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === "Enter" && !isSearching) {+ handleSearch(searchQuery);+ }+ }}+ />+ {isSearching && (+ <Loader2 className="absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 animate-spin" />+ )}+ </div>++ <motion.div+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ className="mt-6"+ >+ <p className="text-sm text-muted-foreground mb-3">+ common keywords+ </p>+ <div className="flex flex-wrap gap-2">+ {keywords.map((keyword) => (+ <Button+ key={keyword}+ variant="outline"+ size="sm"+ onClick={() => handleSearch(keyword)}+ className="text-xs"+ >+ {keyword}+ </Button>+ ))}+ </div>+ </motion.div>+ </div>+ </DialogContent>+ </DialogPortal>+ </Dialog>+ </>+ );+}diff --git a/openrewind/components/rewind/timeline/timeline-search.tsx b/openrewind/components/rewind/timeline/timeline-search.tsxnew file mode 100644index 000000000..7e14df5c1--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline-search.tsx@@ -0,0 +1,852 @@+"use client";++import { useState, useMemo, useCallback, useEffect, useRef } from "react";+import { Search, RefreshCw, Loader2, Square } from "lucide-react";+import { Button } from "@/components/ui/button";+import { Input } from "@/components/ui/input";+import {+ Dialog,+ DialogContent,+ DialogTitle,+ DialogPortal,+ DialogOverlay,+} from "@/components/ui/dialog";+import { motion, AnimatePresence } from "framer-motion";+import { StreamTimeSeriesResponse } from "@/app/page";+import OpenAI from "openai";+import { useSettings } from "@/lib/hooks/use-settings";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";++interface TimelineSearchProps {+ frames: StreamTimeSeriesResponse[];+ onResultSelect: (index: number) => void;+}++interface SearchParams {+ keywords: string[];+}++interface AppStats {+ apps: Record<string, number>;+ windows: Record<string, number>;+ maxItems: number;+}++function isValidSearchParams(obj: any): obj is SearchParams {+ return (+ obj &&+ typeof obj === "object" &&+ Array.isArray(obj.keywords) &&+ obj.keywords.every((keyword: string) => typeof keyword === "string")+ );+}++async function validateFrameContext(+ frames: StreamTimeSeriesResponse[],+ centerIndex: number,+ searchParams: SearchParams,+ openai: OpenAI,+ model: string,+ systemPrompt: string,+): Promise<{ isRelevant: boolean; confidence: number; reason: string }> {+ console.log("validating context for frame:", {+ centerIndex,+ searchParams,+ model,+ });++ const windowSize = 1000;+ const start = Math.max(0, centerIndex - windowSize);+ const end = Math.min(frames.length - 1, centerIndex + windowSize);++ const contextFrames = frames.slice(start, end + 1);+ const contextData = contextFrames.map((frame) => ({+ ocr: frame.devices.map((d) => d.metadata.ocr_text || "").join(" "),+ transcripts: frame.devices+ .flatMap((d) => d.audio.map((a) => a.transcription || ""))+ .join(" "),+ apps: frame.devices.map((d) => d.metadata.app_name || "").join(", "),+ windows: frame.devices.map((d) => d.metadata.window_name || "").join(", "),+ }));++ console.log("context data being sent to AI:", contextData);++ const response = await openai.chat.completions.create({+ model,+ messages: [+ {+ role: "system",+ content: systemPrompt,+ },+ {+ role: "user",+ content: `given the search parameters: ${JSON.stringify(searchParams)}+ and these surrounding frames: ${JSON.stringify(contextData)}++ determine if this is truly a relevant match.+ output format: {+ "isRelevant": boolean,+ "confidence": number, // 0-1+ "reason": string // brief explanation+ }`,+ },+ ],+ response_format: { type: "json_object" },+ });++ console.log(+ "validation response from AI:",+ response.choices[0]?.message?.content,+ );++ if (!response.choices?.[0]?.message?.content) {+ throw new Error(+ "invalid or empty response from ai:" + JSON.stringify(response, null, 2),+ );+ }++ return JSON.parse(response.choices[0].message.content);+}++async function findRelevantFrame(+ query: string,+ frames: StreamTimeSeriesResponse[],+ openai: OpenAI,+ model: string,+ onProgress: (status: string) => void,+ systemPrompt: string,+ recursionDepth: number = 0,+ previousValidation?: { reason: string },+ signal?: AbortSignal,+): Promise<number | null> {+ if (signal?.aborted) {+ throw new Error("AbortError");+ }++ console.log("starting search with:", {+ query,+ model,+ recursionDepth,+ previousValidation,+ });++ // prevent infinite recursion+ if (recursionDepth >= 2) {+ return null;+ }++ onProgress("analyzing your search query to understand what to look for...");++ // enhance query with previous validation feedback+ const enhancedQuery = previousValidation+ ? `${query} (considering: ${previousValidation.reason})`+ : query;++ try {+ const response = await openai.chat.completions.create({+ model: model,+ messages: [+ {+ role: "system",+ content: systemPrompt,+ },+ {+ role: "user",+ content: `analyze this search query and extract key information: "${enhancedQuery}"+ output format: {+ "keywords": string[] // important keywords to match, must be non-empty array+ }++ for example, if the user asks "when i was doing annual reflections in obsidian", the output should be:+ {+ "keywords": ["obsidian", "annual reflections"]+ }++ if the user asks "when i was watching a youtube video about rust", the output should be:+ {+ "keywords": ["youtube", "rust", "video"]+ }+ `,+ },+ ],+ response_format: { type: "json_object" },+ });++ console.log(+ "search params response from AI:",+ response.choices[0]?.message?.content,+ );++ if (!response.choices?.[0]?.message?.content) {+ throw new Error(+ "invalid or empty response from ai:" ++ JSON.stringify(response, null, 2),+ );+ }++ const jsonContent = response.choices[0].message.content;+ const parsed = JSON.parse(jsonContent);+ console.log("parsed search params:", parsed);++ if (!isValidSearchParams(parsed)) {+ throw new Error(+ "invalid or malformed search parameters from ai response",+ );+ }++ const searchParams = parsed;++ onProgress(+ `searching for moments containing: ${searchParams.keywords.join(", ")}...`,+ );++ await new Promise((resolve) => setTimeout(resolve, 1000));++ // Add early return after checking N frames+ const MAX_FRAMES_TO_CHECK = 1000; // Adjust this number+ let framesChecked = 0;++ const BATCH_SIZE = 2000; // Adjust based on performance needs+ for (let i = 0; i < frames.length; i += BATCH_SIZE) {+ if (signal?.aborted) {+ throw new Error("AbortError");+ }++ if (framesChecked >= MAX_FRAMES_TO_CHECK) {+ onProgress("reached search limit. try being more specific.");+ return null;+ }++ // Process frames in batches+ const batchFrames = frames.slice(i, i + BATCH_SIZE);+ const potentialMatches: number[] = [];++ // First pass: quick keyword matching on the batch+ batchFrames.forEach((frame, batchIndex) => {+ const globalIndex = i + batchIndex;++ const hasMatch = frame.devices.some((device) =>+ searchParams.keywords.some((keyword) => {+ const keywordLower = keyword.toLowerCase();+ return (+ device.metadata.app_name?.toLowerCase().includes(keywordLower) ||+ device.metadata.window_name+ ?.toLowerCase()+ .includes(keywordLower) ||+ device.metadata.ocr_text?.toLowerCase().includes(keywordLower) ||+ device.audio.some((a) =>+ a.transcription?.toLowerCase().includes(keywordLower),+ )+ );+ }),+ );++ if (hasMatch) {+ potentialMatches.push(globalIndex);+ }+ });++ // If we found matches in this batch, validate them+ if (potentialMatches.length > 0) {+ onProgress(+ `found ${potentialMatches.length} potential matches, analyzing context...`,+ );++ // Validate the most promising matches first (you could add scoring here)+ for (const matchIndex of potentialMatches) {+ const validation = await validateFrameContext(+ frames,+ matchIndex,+ searchParams,+ openai,+ model,+ systemPrompt,+ );++ if (validation.isRelevant && validation.confidence > 0.7) {+ onProgress(+ `found a highly relevant match! jumping to that moment...`,+ );+ return matchIndex;+ }+ }++ framesChecked += potentialMatches.length;+ console.log("frames checked:", framesChecked);+ }+ }++ onProgress(+ `couldn't find an exact match. try being more specific about the app or content you're looking for.`,+ );+ return null;+ } catch (error: any) {+ if (error.includes("AbortError")) {+ console.log("search aborted");+ } else {+ console.error("search parameter parsing error:", error);+ onProgress(+ `oops! something went wrong with the search. please try again.`,+ );+ }+ throw new Error(`failed to parse search parameters: ${error}`);+ }+}++async function generateSuggestions(+ openai: OpenAI,+ model: string,+ systemPrompt: string,+ appStats: AppStats,+): Promise<string[]> {+ console.log("generating suggestions with stats:", {+ model,+ appStats,+ });++ try {+ const response = await openai.chat.completions.create({+ model,+ messages: [+ {+ role: "system",+ content: systemPrompt,+ },+ {+ role: "user",+ content: `generate 5 natural search suggestions based on the most common apps and activities in the user's data.+ use this app statistics:+ apps: ${JSON.stringify(appStats.apps)}+ windows: ${JSON.stringify(appStats.windows)}++ output format: {+ "suggestions": string[] // array of 5 natural language search queries+ }++ make them specific and varied, focusing on different types of activities.+ example output:+ {+ "suggestions": [+ "when i was coding rust in vscode yesterday",+ "that meeting about product roadmap in google meet",+ "when i was watching youtube tutorials about typescript",+ "my obsidian notes about system design",+ "that time i was debugging in chrome devtools"+ ]+ }`,+ },+ ],+ response_format: { type: "json_object" },+ });++ console.log("suggestions response from AI:", response);++ if (!response.choices?.[0]?.message?.content) {+ throw new Error("invalid or empty response from ai");+ }++ const parsed = JSON.parse(response.choices[0].message.content);+ return parsed.suggestions || [];+ } catch (error) {+ console.warn("failed to generate suggestions:", error);+ return [+ "when i was coding in vscode",+ "that meeting in google meet",+ "when i opened figma",+ "that youtube video about rust",+ "when i was writing in notion",+ ];+ }+}++const CACHE_KEY = "timeline_search_suggestions";+const CACHE_DURATION_MS = 24 * 60 * 60 * 1000; // 24 hours++interface CachedSuggestions {+ suggestions: string[];+ timestamp: number;+ appsHash: string; // to invalidate if apps change significantly+}++function generateAppsHash(appStats: AppStats): string {+ // create a hash of top 5 apps to detect major changes+ const topApps = Object.entries(appStats.apps)+ .sort(([, a], [, b]) => b - a)+ .slice(0, 5)+ .map(([app]) => app)+ .join("|");+ return topApps;+}++async function getCachedOrGenerateSuggestions(+ openai: OpenAI,+ model: string,+ systemPrompt: string,+ appStats: AppStats,+): Promise<string[]> {+ try {+ const cached = localStorage.getItem(CACHE_KEY);+ if (cached) {+ const parsedCache: CachedSuggestions = JSON.parse(cached);+ const isExpired = Date.now() - parsedCache.timestamp > CACHE_DURATION_MS;+ const appsChanged = generateAppsHash(appStats) !== parsedCache.appsHash;++ if (!isExpired && !appsChanged) {+ console.log("using cached suggestions");+ return parsedCache.suggestions;+ }+ }++ const suggestions = await generateSuggestions(+ openai,+ model,+ systemPrompt,+ appStats,+ );++ // cache the new suggestions+ const cacheData: CachedSuggestions = {+ suggestions,+ timestamp: Date.now(),+ appsHash: generateAppsHash(appStats),+ };+ localStorage.setItem(CACHE_KEY, JSON.stringify(cacheData));++ return suggestions;+ } catch (error) {+ console.warn("failed to handle suggestions:", error);+ return [+ "when i was coding in vscode",+ "that meeting in google meet",+ "when i opened figma",+ "that youtube video about rust",+ "when i was writing in notion",+ ];+ }+}++export function TimelineSearch({+ frames,+ onResultSelect,+}: TimelineSearchProps) {+ const [open, setOpen] = useState(false);+ const [searchQuery, setSearchQuery] = useState("");+ const [searchStatus, setSearchStatus] = useState("");+ const [isSearching, setIsSearching] = useState(false);+ const { settings } = useSettings();+ const [suggestions, setSuggestions] = useState<string[] | null>(null);+ const [isLoadingSuggestions, setIsLoadingSuggestions] = useState(false);+ const hasLoadedSuggestions = useRef(false);+ const [abortController, setAbortController] =+ useState<AbortController | null>(null);++ // Compute app statistics once when component mounts or frames update+ const appStats = useMemo(() => {+ const stats: AppStats = {+ apps: {},+ windows: {},+ maxItems: 10, // Keep top N most common+ };++ frames.forEach((frame) => {+ frame.devices.forEach((device) => {+ if (device.metadata.app_name) {+ stats.apps[device.metadata.app_name] =+ (stats.apps[device.metadata.app_name] || 0) + 1;+ }+ if (device.metadata.window_name) {+ stats.windows[device.metadata.window_name] =+ (stats.windows[device.metadata.window_name] || 0) + 1;+ }+ });+ });++ // Sort and keep only top N+ const topApps = Object.entries(stats.apps)+ .sort(([, a], [, b]) => b - a)+ .slice(0, stats.maxItems)+ .reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {});++ const topWindows = Object.entries(stats.windows)+ .sort(([, a], [, b]) => b - a)+ .slice(0, stats.maxItems)+ .reduce((obj, [key, val]) => ({ ...obj, [key]: val }), {});++ return {+ ...stats,+ apps: topApps,+ windows: topWindows,+ };+ }, [frames]);++ // Generate system prompt with app statistics+ const getSystemPrompt = useCallback(() => {+ const appsList = Object.entries(appStats.apps)+ .map(([app, count]) => `${app} (${count} occurrences)`)+ .join(", ");++ const windowsList = Object.entries(appStats.windows)+ .map(([window, count]) => `${window} (${count} occurrences)`)+ .join(", ");++ return `you are a search assistant for screenpipe, a system that continuously records screens & mics.++your task is to analyze search queries and extract key information to find specific moments in the timeline.+be extremely strict about matches - all keywords must be present in the correct context.++common applications in user's data:+${appsList}++common window titles:+${windowsList}++the data you're searching through includes:+- screen content (OCR text)+- audio transcriptions+- application names+- window titles+- device metadata++each frame contains:+- timestamp+- multiple devices data+- metadata (ocr_text, app_name, window_name)+- audio transcriptions++search guidelines:+1. all keywords must be present in the same timeframe or adjacent frames+2. context must match exactly (e.g. if searching for "coding db.rs in cursor", must find frames where:+ - app_name contains "cursor"+ - window_name or ocr_text contains "db.rs"+ - there's evidence of active coding)+3. temporal context matters (e.g. "last time" means most recent match)+4. activity context matters (e.g. "coding" requires code editor, relevant window titles)++examples of strict matching:+- query: "coding db.rs in cursor"+ ✓ good match: {app_name: "Cursor", window_name: "db.rs - screenpipe", ocr_text: "fn main() {..."}+ ✗ bad match: {app_name: "Cursor", window_name: "meeting notes", ocr_text: "discussing db.rs"}++- query: "watching rust video on youtube"+ ✓ good match: {app_name: "Chrome", window_name: "Rust Tutorial - YouTube", transcription: "today we'll learn rust"}+ ✗ bad match: {app_name: "Chrome", window_name: "YouTube", transcription: "discussing databases"}++focus on extracting:+- key activities (coding, watching, reading)+- specific applications (vscode, chrome, slack)+- content keywords (rust, meeting, video)+- contextual hints (time references, related activities)++output only valid json with the exact structure requested.+prioritize precision over recall - better to return no match than a wrong match.`;+ }, [appStats]);++ const loadSuggestionsIfNeeded = useCallback(() => {+ if (!settings?.aiModel) {+ setSuggestions([]);+ return;+ }+ if (+ !hasLoadedSuggestions.current &&+ frames.length > 1_000 &&+ !suggestions+ ) {+ hasLoadedSuggestions.current = true;+ setIsLoadingSuggestions(true);++ const openai = new OpenAI({+ apiKey:+ settings?.aiProviderType === "screenpipe-cloud"+ ? settings?.user?.token+ : settings?.openaiApiKey,+ baseURL: settings?.aiUrl,+ dangerouslyAllowBrowser: true,+ });++ getCachedOrGenerateSuggestions(+ openai,+ settings?.aiModel,+ getSystemPrompt(),+ appStats,+ )+ .then(setSuggestions)+ .catch((error) => {+ console.warn("failed to load suggestions:", error);+ setSuggestions([+ "last meeting in google meet",+ "last time i was working on linkedin",+ "last youtube video i watched",+ "last time i was writing in notion",+ ]);+ })+ .finally(() => setIsLoadingSuggestions(false));+ }+ }, [frames.length, appStats, settings, suggestions]);++ // Only call when dialog opens+ const handleOpen = useCallback(() => {+ setOpen(true);+ loadSuggestionsIfNeeded();+ }, [loadSuggestionsIfNeeded]);++ const cancelSearch = useCallback(() => {+ if (abortController) {+ abortController.abort();+ setIsSearching(false);+ setSearchStatus("search cancelled");+ }+ }, [abortController]);++ const handleSearch = async (query: string) => {+ const controller = new AbortController();+ setAbortController(controller);++ setIsSearching(true);+ setSearchStatus("");++ const openai = new OpenAI({+ apiKey:+ settings?.aiProviderType === "screenpipe-cloud"+ ? settings?.user?.token+ : settings?.openaiApiKey,+ baseURL: settings?.aiUrl,+ dangerouslyAllowBrowser: true,+ });++ try {+ const systemPrompt = getSystemPrompt();++ const frameIndex = await findRelevantFrame(+ query,+ frames,+ openai,+ settings?.aiModel || "mistral",+ (status) => setSearchStatus(status),+ systemPrompt,+ 0,+ undefined,+ controller.signal,+ );++ if (frameIndex !== null) {+ onResultSelect(frameIndex);+ setOpen(false);+ } else {+ setSearchStatus(+ "couldn't find that moment. try being more specific about the app or content you're looking for.",+ );+ }+ } catch (error: any) {+ if (error.includes("AbortError")) {+ console.log("search aborted");+ } else {+ console.warn("search error:", error);+ setSearchStatus("search failed. please try again.");+ }+ } finally {+ setIsSearching(false);+ setAbortController(null);+ }+ };++ const regenerateSuggestions = useCallback(async () => {+ setIsLoadingSuggestions(true);+ const openai = new OpenAI({+ apiKey:+ settings?.aiProviderType === "screenpipe-cloud"+ ? settings?.user?.token+ : settings?.openaiApiKey,+ baseURL: settings?.aiUrl,+ dangerouslyAllowBrowser: true,+ });++ try {+ // Clear cache first+ localStorage.removeItem(CACHE_KEY);++ const newSuggestions = await generateSuggestions(+ openai,+ settings?.aiModel || "mistral",+ getSystemPrompt(),+ appStats,+ );+ setSuggestions(newSuggestions);++ // Update cache+ const cacheData: CachedSuggestions = {+ suggestions: newSuggestions,+ timestamp: Date.now(),+ appsHash: generateAppsHash(appStats),+ };+ localStorage.setItem(CACHE_KEY, JSON.stringify(cacheData));+ } catch (error) {+ console.warn("failed to regenerate suggestions:", error);+ } finally {+ setIsLoadingSuggestions(false);+ }+ }, [settings, appStats, getSystemPrompt]);++ return (+ <>+ <Button+ variant="ghost"+ size="icon"+ onClick={handleOpen}+ className="rounded-full"+ >+ <Search className="h-4 w-4" />+ </Button>++ <Dialog+ open={open}+ onOpenChange={(newOpen) => {+ if (!isSearching) {+ setOpen(newOpen);+ }+ }}+ >+ <DialogPortal>+ <DialogOverlay+ className="backdrop-blur-sm"+ style={{+ opacity: isSearching ? 0 : 0.8,+ }}+ />+ <motion.div+ animate={{+ x: isSearching ? 200 : 0,+ transition: { duration: 0.3, ease: "easeInOut" },+ }}+ >+ <DialogContent className="sm:max-w-[500px]">+ <DialogTitle>Search your timeline</DialogTitle>+ <motion.div+ initial={{ opacity: 0, y: -20 }}+ animate={{ opacity: 1, y: 0 }}+ exit={{ opacity: 0, y: -20 }}+ className="p-6"+ >+ <div className="relative">+ <Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />+ <Input+ autoFocus+ placeholder="search in your timeline..."+ className="pl-9 h-12"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === "Enter" && !isSearching) {+ handleSearch(searchQuery);+ }+ }}+ disabled={isSearching}+ />+ {isSearching && (+ <Button+ variant="ghost"+ size="icon"+ onClick={cancelSearch}+ className="absolute right-2 top-1/2 -translate-y-1/2"+ >+ <Square className="h-4 w-4" />+ </Button>+ )}+ </div>++ {searchStatus && (+ <motion.div+ initial={{ opacity: 0, y: 5 }}+ animate={{ opacity: 1, y: 0 }}+ className="mt-3 flex items-center gap-2 text-sm"+ >+ {isSearching && (+ <Loader2 className="h-3 w-3 animate-spin text-primary" />+ )}+ <span+ className={+ isSearching ? "text-primary" : "text-muted-foreground"+ }+ >+ {searchStatus}+ </span>+ </motion.div>+ )}++ <motion.div+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ transition={{ delay: 0.1 }}+ className="mt-4"+ >+ {suggestions && (+ <div className="flex items-center justify-between mb-3">+ <p className="text-sm text-muted-foreground">+ suggested searches+ </p>+ <Button+ variant="ghost"+ size="icon"+ onClick={regenerateSuggestions}+ disabled={isLoadingSuggestions}+ className="h-6 w-6"+ >+ <RefreshCw className="h-4 w-4" />+ </Button>+ </div>+ )}+ <div className="space-y-2">+ {isLoadingSuggestions ? (+ // Skeleton loading state+ <>+ {[1, 2, 3, 4, 5].map((i) => (+ <div+ key={i}+ className="h-10 bg-muted rounded-md animate-pulse"+ />+ ))}+ </>+ ) : suggestions ? (+ suggestions.map((suggestion, i) => (+ <motion.div+ key={suggestion}+ initial={{ opacity: 0, x: -20 }}+ animate={{ opacity: 1, x: 0 }}+ transition={{ delay: 0.1 + i * 0.05 }}+ >+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <Button+ variant="ghost"+ className="w-full justify-start text-left h-auto py-2 px-3 overflow-hidden"+ onClick={() => handleSearch(suggestion)}+ disabled={isSearching}+ >+ <div className="max-w-[400px] overflow-hidden text-ellipsis whitespace-nowrap">+ {suggestion}+ </div>+ </Button>+ </TooltipTrigger>+ <TooltipContent side="top" align="start">+ {suggestion}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </motion.div>+ ))+ ) : null}+ </div>+ </motion.div>+ </motion.div>+ </DialogContent>+ </motion.div>+ </DialogPortal>+ </Dialog>+ </>+ );+}diff --git a/openrewind/components/rewind/timeline/timeline-selection.tsx b/openrewind/components/rewind/timeline/timeline-selection.tsxnew file mode 100644index 000000000..b606c477a--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline-selection.tsx@@ -0,0 +1,98 @@+import { useTimelineSelection } from "@/lib/hooks/use-timeline-selection";+import { useState, useCallback, MouseEvent } from "react";++interface TimelineSelectionProps {+ loadedTimeRange: { start: Date; end: Date };+ numChunks?: number;+}++export function TimelineSelection({+ loadedTimeRange,+ numChunks = 60,+}: TimelineSelectionProps) {+ const { setSelectionRange, selectionRange } = useTimelineSelection();+ const [isDragging, setIsDragging] = useState(false);+ const [currentChunk, setCurrentChunk] = useState<number | null>(null);+ const [startChunk, setStartChunk] = useState<number | null>(null);++ const getDateFromChunk = useCallback(+ (chunkIndex: number) => {+ const totalMs =+ loadedTimeRange.end.getTime() - loadedTimeRange.start.getTime();+ const msPerChunk = totalMs / numChunks;+ return new Date(+ loadedTimeRange.start.getTime() + chunkIndex * msPerChunk,+ );+ },+ [loadedTimeRange, numChunks],+ );++ const handleMouseDown = (e: MouseEvent, chunkIndex: number) => {+ e.preventDefault(); // Prevent text selection+ setIsDragging(true);+ setStartChunk(chunkIndex);+ setCurrentChunk(chunkIndex);+ const date = getDateFromChunk(chunkIndex);+ setSelectionRange({ start: date, end: date, frameIds: [] });+ };++ const handleMouseMove = (e: MouseEvent, chunkIndex: number) => {+ if (!isDragging || startChunk === null) return;+ setCurrentChunk(chunkIndex);++ const start = Math.min(startChunk, chunkIndex);+ const end = Math.max(startChunk, chunkIndex);++ setSelectionRange({+ start: getDateFromChunk(start),+ end: getDateFromChunk(end + 1), // +1 to include the full chunk+ frameIds: [],+ });+ };++ const handleMouseUp = () => {+ setIsDragging(false);+ setStartChunk(null);+ setCurrentChunk(null);+ };++ const isChunkSelected = useCallback(+ (chunkIndex: number) => {+ if (isDragging && startChunk !== null && currentChunk !== null) {+ const start = Math.min(startChunk, currentChunk);+ const end = Math.max(startChunk, currentChunk);+ return chunkIndex >= start && chunkIndex <= end;+ } else if (selectionRange) {+ const chunkDate = getDateFromChunk(chunkIndex);+ const nextChunkDate = getDateFromChunk(chunkIndex + 1);+ return (+ chunkDate >= selectionRange.start && chunkDate < selectionRange.end+ );+ }+ return false;+ },+ [isDragging, startChunk, currentChunk, selectionRange, getDateFromChunk],+ );++ return (+ <div+ className="absolute inset-0 flex"+ onMouseLeave={handleMouseUp}+ onMouseUp={handleMouseUp}+ >+ {Array.from({ length: numChunks }).map((_, i) => (+ <div+ key={i}+ className={`h-full flex-1 border-r border-foreground/5 transition-colors ${+ isChunkSelected(i) ? "bg-primary/30" : "hover:bg-foreground/10"+ }`}+ style={{+ cursor: isDragging ? "col-resize" : "pointer",+ }}+ onMouseDown={(e) => handleMouseDown(e, i)}+ onMouseMove={(e) => handleMouseMove(e, i)}+ />+ ))}+ </div>+ );+}diff --git a/openrewind/components/rewind/timeline/timeline.tsx b/openrewind/components/rewind/timeline/timeline.tsxnew file mode 100644index 000000000..7bd3dff15--- /dev/null+++ b/openrewind/components/rewind/timeline/timeline.tsx@@ -0,0 +1,300 @@+import { StreamTimeSeriesResponse, TimeRange } from "@/components/rewind/timeline";+import { useTimelineSelection } from "@/lib/hooks/use-timeline-selection";+import { isAfter, subDays } from "date-fns";+import { motion, useScroll, useTransform } from "framer-motion";+import { AudioLinesIcon } from "lucide-react";+import { useEffect, useMemo, useRef, useState } from "react";++interface TimelineSliderProps {+ frames: StreamTimeSeriesResponse[];+ currentIndex: number;+ startAndEndDates: TimeRange;+ onFrameChange: (index: number) => void;+ fetchNextDayData: (date: Date) => void;+ currentDate: Date;+ onSelectionChange?: (selectedFrames: StreamTimeSeriesResponse[]) => void;+}++interface AppGroup {+ appName: string;+ frames: StreamTimeSeriesResponse[];+ color: string;+ iconSrc?: string;+}++export function stringToColor(str: string): string {+ let hash = 0;+ for (let i = 0; i < str.length; i++) {+ hash = str.charCodeAt(i) + ((hash << 5) - hash);+ }+ let color = "#";+ for (let i = 0; i < 3; i++) {+ const value = (hash >> (i * 8)) & 0xff;+ color += ("00" + value.toString(16)).substr(-2);+ }+ return color;+}++export const TimelineSlider = ({+ frames,+ currentIndex,+ onFrameChange,+ fetchNextDayData,+ startAndEndDates,+ currentDate,+ onSelectionChange,+}: TimelineSliderProps) => {+ const containerRef = useRef<HTMLDivElement>(null);+ const observerTargetRef = useRef<HTMLDivElement>(null);+ const lastFetchRef = useRef<Date | null>(null);+ const { scrollXProgress } = useScroll({+ container: containerRef,+ offset: ["start end", "end start"],+ });+ const lineWidth = useTransform(scrollXProgress, [0, 1], ["0%", "100%"]);+ const [hoveredTimestamp, setHoveredTimestamp] = useState<string | null>(null);+ const [isDragging, setIsDragging] = useState(false);+ const [dragStartIndex, setDragStartIndex] = useState<number | null>(null);+ const [selectedIndices, setSelectedIndices] = useState<Set<number>>(+ new Set(),+ );+ const { setSelectionRange, selectionRange } = useTimelineSelection();++ const visibleFrames = useMemo(() => {+ const start = Math.max(0, currentIndex - 100);+ const end = Math.min(frames.length, currentIndex + 100);+ return frames.slice(start, end);+ }, [frames, currentIndex]);++ const appGroups = useMemo(() => {+ const groups: AppGroup[] = [];+ let currentApp = "";+ let currentGroup: StreamTimeSeriesResponse[] = [];++ visibleFrames.forEach((frame) => {+ const appName = frame.devices[0].metadata.app_name;+ if (appName !== currentApp) {+ if (currentGroup.length > 0) {+ groups.push({+ appName: currentApp,+ frames: currentGroup,+ color: stringToColor(currentApp),+ });+ }+ currentApp = appName;+ currentGroup = [frame];+ } else {+ currentGroup.push(frame);+ }+ });++ if (currentGroup.length > 0) {+ groups.push({+ appName: currentApp,+ frames: currentGroup,+ color: stringToColor(currentApp),+ });+ }+ return groups;+ }, [visibleFrames]);++ useEffect(() => {+ const observerTarget = observerTargetRef.current;+ if (!observerTarget) return;++ const observer = new IntersectionObserver(+ (entries) => {+ const entry = entries[0];+ if (!entry.isIntersecting) return;++ const lastDate = subDays(currentDate, 1);+ const now = new Date();+ const canFetch =+ !lastFetchRef.current ||+ now.getTime() - lastFetchRef.current.getTime() > 1000;++ if (isAfter(lastDate, startAndEndDates.start) && canFetch) {+ lastFetchRef.current = now;+ fetchNextDayData(lastDate);+ }+ },+ {+ root: containerRef.current,+ threshold: 1.0,+ rootMargin: "0px 20% 0px 0px",+ },+ );++ observer.observe(observerTarget);+ return () => observer.disconnect();+ }, [fetchNextDayData, currentDate, startAndEndDates]);++ useEffect(() => {+ const container = containerRef.current;+ if (!container || !frames[currentIndex]) return;++ const currentTimestamp = frames[currentIndex].timestamp;+ const currentElement = container.querySelector(+ `[data-timestamp="${currentTimestamp}"]`,+ );++ if (!currentElement) return;++ currentElement.scrollIntoView({+ behavior: "smooth",+ block: "nearest",+ inline: "center",+ });+ }, [currentIndex, frames.length]);++ useEffect(() => {+ if (!selectionRange) {+ setSelectedIndices(new Set());+ }+ }, [selectionRange]);++ const handleDragStart = (index: number) => {+ setIsDragging(true);+ setDragStartIndex(index);+ setSelectedIndices(new Set([index]));++ const startDate = new Date(frames[index].timestamp);+ setSelectionRange({ start: startDate, end: startDate, frameIds: [] });+ };++ const handleDragOver = (index: number) => {+ if (isDragging && dragStartIndex !== null) {+ const start = Math.min(dragStartIndex, index);+ const end = Math.max(dragStartIndex, index);+ const newSelection = new Set<number>();++ for (let i = start; i <= end; i++) {+ newSelection.add(i);+ }++ setSelectedIndices(newSelection);++ // Get frame IDs for the selection+ const selectedFrameIds = Array.from(newSelection).map(+ (i) => frames[i].devices[0].frame_id,+ );++ // Update selection range with frame IDs+ setSelectionRange({+ end: new Date(frames[start].timestamp),+ start: new Date(frames[end].timestamp),+ frameIds: selectedFrameIds,+ });++ if (onSelectionChange) {+ const selectedFrames = Array.from(newSelection).map((i) => frames[i]);+ onSelectionChange(selectedFrames);+ }+ }+ };++ const handleDragEnd = () => {+ setIsDragging(false);+ setDragStartIndex(null);+ };++ return (+ <div className="relative w-full" dir="rtl">+ <motion.div+ className="absolute top-0 h-1 bg-blue-500/0"+ style={{ width: lineWidth }}+ />+ <div+ ref={containerRef}+ className="w-full overflow-x-auto scroll-smooth scrollbar-hide"+ style={{+ scrollBehavior: "auto",+ }}+ >+ <motion.div+ className="whitespace-nowrap flex flex-nowrap w-max justify-center px-[50vw] h-40 sticky right-0"+ onMouseUp={handleDragEnd}+ onMouseLeave={handleDragEnd}+ >+ {appGroups.map((group, groupIndex) => (+ <div+ key={`${group.appName}-${groupIndex}`}+ className="flex flex-nowrap items-end h-full group pt-20 relative"+ dir="rtl"+ >+ <div className="absolute top-0 left-1/2 w-5 h-5 rounded-full -translate-x-1/2 bg-background/50 backdrop-blur p-0.5">+ <img+ src={`http://localhost:11435/app-icon?name=${group.appName}`}+ className="w-full h-full opacity-70"+ alt={group.appName}+ loading="lazy"+ decoding="async"+ />+ </div>+ {group.frames.map((frame) => {+ const frameIndex = frames.indexOf(frame);+ const isSelected = selectedIndices.has(frameIndex);+ const frameDate = new Date(frame.timestamp);+ const isInRange =+ selectionRange &&+ frameDate >= selectionRange.start &&+ frameDate <= selectionRange.end;++ const hasAudio = Boolean(frame.devices[0].audio.length);++ return (+ <motion.div+ key={frame.timestamp}+ data-timestamp={frame.timestamp}+ className={`flex-shrink-0 cursor-pointer w-2 mx-0.5 rounded-t relative group hover:z-50 ${+ isSelected || isInRange+ ? "ring-2 ring-blue-500 ring-offset-1"+ : ""+ }`}+ style={{+ backgroundColor: group.color,+ height:+ frameIndex === currentIndex || isSelected || isInRange+ ? "60%"+ : "40%",+ opacity:+ frameIndex === currentIndex || isSelected || isInRange+ ? 1+ : 0.7,+ direction: "ltr",+ }}+ whileHover={{ height: "60%", opacity: 1 }}+ onMouseDown={() => handleDragStart(frameIndex)}+ onMouseEnter={() => {+ setHoveredTimestamp(frame.timestamp);+ handleDragOver(frameIndex);+ }}+ onMouseLeave={() => setHoveredTimestamp(null)}+ >+ {hasAudio && (+ <div className="absolute -top-5 left-1/2 -translate-x-1/2 w-4 h-4 rounded-full ">+ <AudioLinesIcon className="w-full h-full" />+ </div>+ )}+ {(hoveredTimestamp === frame.timestamp ||+ frames[currentIndex].timestamp === frame.timestamp) && (+ <div className="absolute bottom-full left-1/2 z-50 -translate-x-1/2 mb-6 w-max bg-background border rounded-md px-2 py-1 text-xs shadow-lg">+ <p className="font-medium">+ {frame.devices[0].metadata.app_name}+ </p>+ <p className="text-muted-foreground">+ {new Date(frame.timestamp).toLocaleString()}+ </p>+ </div>+ )}+ </motion.div>+ );+ })}+ </div>+ ))}+ <div ref={observerTargetRef} className="h-full w-1" />+ </motion.div>+ </div>+ </div>+ );+};diff --git a/openrewind/components/rewind/ui/accordion.tsx b/openrewind/components/rewind/ui/accordion.tsxnew file mode 100644index 000000000..24c788c2c--- /dev/null+++ b/openrewind/components/rewind/ui/accordion.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDown } from "lucide-react"++import { cn } from "@/lib/utils"++const Accordion = AccordionPrimitive.Root++const AccordionItem = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>+>(({ className, ...props }, ref) => (+ <AccordionPrimitive.Item+ ref={ref}+ className={cn("border-b", className)}+ {...props}+ />+))+AccordionItem.displayName = "AccordionItem"++const AccordionTrigger = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>+>(({ className, children, ...props }, ref) => (+ <AccordionPrimitive.Header className="flex">+ <AccordionPrimitive.Trigger+ ref={ref}+ className={cn(+ "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",+ className+ )}+ {...props}+ >+ {children}+ <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />+ </AccordionPrimitive.Trigger>+ </AccordionPrimitive.Header>+))+AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName++const AccordionContent = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>+>(({ className, children, ...props }, ref) => (+ <AccordionPrimitive.Content+ ref={ref}+ className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"+ {...props}+ >+ <div className={cn("pb-4 pt-0", className)}>{children}</div>+ </AccordionPrimitive.Content>+))++AccordionContent.displayName = AccordionPrimitive.Content.displayName++export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }diff --git a/openrewind/components/rewind/ui/badge.tsx b/openrewind/components/rewind/ui/badge.tsxnew file mode 100644index 000000000..f000e3ef5--- /dev/null+++ b/openrewind/components/rewind/ui/badge.tsx@@ -0,0 +1,36 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const badgeVariants = cva(+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",+ {+ variants: {+ variant: {+ default:+ "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",+ secondary:+ "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",+ destructive:+ "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",+ outline: "text-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++export interface BadgeProps+ extends React.HTMLAttributes<HTMLDivElement>,+ VariantProps<typeof badgeVariants> {}++function Badge({ className, variant, ...props }: BadgeProps) {+ return (+ <div className={cn(badgeVariants({ variant }), className)} {...props} />+ )+}++export { Badge, badgeVariants }diff --git a/openrewind/components/rewind/ui/button.tsx b/openrewind/components/rewind/ui/button.tsxnew file mode 100644index 000000000..36496a287--- /dev/null+++ b/openrewind/components/rewind/ui/button.tsx@@ -0,0 +1,56 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",+ outline:+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",+ secondary:+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-10 px-4 py-2",+ sm: "h-9 rounded-md px-3",+ lg: "h-11 rounded-md px-8",+ icon: "h-10 w-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ ({ className, variant, size, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"+ return (+ <Comp+ className={cn(buttonVariants({ variant, size, className }))}+ ref={ref}+ {...props}+ />+ )+ }+)+Button.displayName = "Button"++export { Button, buttonVariants }diff --git a/openrewind/components/rewind/ui/calendar.tsx b/openrewind/components/rewind/ui/calendar.tsxnew file mode 100644index 000000000..4b1122924--- /dev/null+++ b/openrewind/components/rewind/ui/calendar.tsx@@ -0,0 +1,66 @@+"use client";++import * as React from "react";+import { ChevronLeft, ChevronRight } from "lucide-react";+import { DayPicker } from "react-day-picker";++import { cn } from "@/lib/utils";+import { buttonVariants } from "@/components/ui/button";++export type CalendarProps = React.ComponentProps<typeof DayPicker>;++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ ...props+}: CalendarProps) {+ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={cn("p-3", className)}+ classNames={{+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",+ month: "space-y-4",+ caption: "flex justify-center pt-1 relative items-center",+ caption_label: "text-sm font-medium",+ nav: "space-x-1 flex items-center",+ nav_button: cn(+ buttonVariants({ variant: "outline" }),+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",+ ),+ nav_button_previous: "absolute left-1",+ nav_button_next: "absolute right-1",+ table: "w-full border-collapse space-y-1",+ head_row: "flex",+ head_cell:+ "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",+ row: "flex w-full mt-2",+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",+ day: cn(+ buttonVariants({ variant: "ghost" }),+ "h-9 w-9 p-0 font-normal aria-selected:opacity-100",+ ),+ day_range_end: "day-range-end",+ day_selected:+ "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",+ day_today: "bg-accent text-accent-foreground",+ day_outside:+ "day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",+ day_disabled: "text-muted-foreground opacity-50",+ day_range_middle:+ "aria-selected:bg-accent aria-selected:text-accent-foreground",+ day_hidden: "invisible",+ ...classNames,+ }}+ components={{+ IconLeft: ({ ...props }) => <ChevronLeft className="h-4 w-4" />,+ IconRight: ({ ...props }) => <ChevronRight className="h-4 w-4" />,+ }}+ {...props}+ />+ );+}+Calendar.displayName = "Calendar";++export { Calendar };diff --git a/openrewind/components/rewind/ui/card.tsx b/openrewind/components/rewind/ui/card.tsxnew file mode 100644index 000000000..f62edea57--- /dev/null+++ b/openrewind/components/rewind/ui/card.tsx@@ -0,0 +1,79 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Card = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn(+ "rounded-lg border bg-card text-card-foreground shadow-sm",+ className+ )}+ {...props}+ />+))+Card.displayName = "Card"++const CardHeader = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex flex-col space-y-1.5 p-6", className)}+ {...props}+ />+))+CardHeader.displayName = "CardHeader"++const CardTitle = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn(+ "text-2xl font-semibold leading-none tracking-tight",+ className+ )}+ {...props}+ />+))+CardTitle.displayName = "CardTitle"++const CardDescription = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+CardDescription.displayName = "CardDescription"++const CardContent = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />+))+CardContent.displayName = "CardContent"++const CardFooter = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex items-center p-6 pt-0", className)}+ {...props}+ />+))+CardFooter.displayName = "CardFooter"++export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }diff --git a/openrewind/components/rewind/ui/checkbox.tsx b/openrewind/components/rewind/ui/checkbox.tsxnew file mode 100644index 000000000..df61a1388--- /dev/null+++ b/openrewind/components/rewind/ui/checkbox.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as CheckboxPrimitive from "@radix-ui/react-checkbox"+import { Check } from "lucide-react"++import { cn } from "@/lib/utils"++const Checkbox = React.forwardRef<+ React.ElementRef<typeof CheckboxPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>+>(({ className, ...props }, ref) => (+ <CheckboxPrimitive.Root+ ref={ref}+ className={cn(+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",+ className+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ className={cn("flex items-center justify-center text-current")}+ >+ <Check className="h-4 w-4" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+))+Checkbox.displayName = CheckboxPrimitive.Root.displayName++export { Checkbox }diff --git a/openrewind/components/rewind/ui/codeblock.tsx b/openrewind/components/rewind/ui/codeblock.tsxnew file mode 100644index 000000000..e52893032--- /dev/null+++ b/openrewind/components/rewind/ui/codeblock.tsx@@ -0,0 +1,148 @@+// Inspired by Chatbot-UI and modified to fit the needs of this project+// @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Markdown/CodeBlock.tsx++"use client";++import { FC, memo } from "react";+import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";+import { coldarkDark } from "react-syntax-highlighter/dist/cjs/styles/prism";++import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { IconCheck, IconCopy, IconDownload } from "@/components/ui/icons";+import { Button } from "@/components/ui/button";++interface Props {+ language: string;+ value: string;+}++interface languageMap {+ [key: string]: string | undefined;+}++export const programmingLanguages: languageMap = {+ javascript: ".js",+ python: ".py",+ java: ".java",+ c: ".c",+ cpp: ".cpp",+ "c++": ".cpp",+ "c#": ".cs",+ ruby: ".rb",+ php: ".php",+ swift: ".swift",+ "objective-c": ".m",+ kotlin: ".kt",+ typescript: ".ts",+ go: ".go",+ perl: ".pl",+ rust: ".rs",+ scala: ".scala",+ haskell: ".hs",+ lua: ".lua",+ shell: ".sh",+ sql: ".sql",+ html: ".html",+ css: ".css",+ // add more file extensions here, make sure the key is same as language prop in CodeBlock.tsx component+};++export const generateRandomString = (length: number, lowercase = false) => {+ const chars = "ABCDEFGHJKLMNPQRSTUVWXY3456789"; // excluding similar looking characters like Z, 2, I, 1, O, 0+ let result = "";+ for (let i = 0; i < length; i++) {+ result += chars.charAt(Math.floor(Math.random() * chars.length));+ }+ return lowercase ? result.toLowerCase() : result;+};++const CodeBlock: FC<Props> = memo(({ language, value }) => {+ const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 });++ const downloadAsFile = () => {+ if (typeof window === "undefined") {+ return;+ }+ const fileExtension = programmingLanguages[language] || ".file";+ const suggestedFileName = `file-${generateRandomString(+ 3,+ true+ )}${fileExtension}`;+ const fileName = window.prompt("Enter file name", suggestedFileName);++ if (!fileName) {+ // User pressed cancel on prompt.+ return;+ }++ const blob = new Blob([value], { type: "text/plain" });+ const url = URL.createObjectURL(blob);+ const link = document.createElement("a");+ link.download = fileName;+ link.href = url;+ link.style.display = "none";+ document.body.appendChild(link);+ link.click();+ document.body.removeChild(link);+ URL.revokeObjectURL(url);+ };++ const onCopy = () => {+ if (isCopied) return;+ copyToClipboard(value);+ };++ return (+ <div className="relative w-full font-sans codeblock bg-zinc-950">+ <div className="flex items-center justify-between w-full px-6 py-2 pr-4 bg-zinc-800 text-zinc-100">+ <span className="text-xs lowercase">{language}</span>+ <div className="flex items-center space-x-1">+ <Button+ variant="ghost"+ className="hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0"+ onClick={downloadAsFile}+ size="icon"+ >+ <IconDownload />+ <span className="sr-only">Download</span>+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="text-xs hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0"+ onClick={onCopy}+ >+ {isCopied ? <IconCheck /> : <IconCopy />}+ <span className="sr-only">Copy code</span>+ </Button>+ </div>+ </div>+ <SyntaxHighlighter+ language={language}+ style={coldarkDark}+ PreTag="div"+ showLineNumbers+ customStyle={{+ margin: 0,+ width: "100%",+ background: "transparent",+ padding: "1.5rem 1rem",+ }}+ lineNumberStyle={{+ userSelect: "none",+ }}+ codeTagProps={{+ style: {+ fontSize: "0.9rem",+ fontFamily: "var(--font-mono)",+ },+ }}+ >+ {value}+ </SyntaxHighlighter>+ </div>+ );+});+CodeBlock.displayName = "CodeBlock";++export { CodeBlock };diff --git a/openrewind/components/rewind/ui/command.tsx b/openrewind/components/rewind/ui/command.tsxnew file mode 100644index 000000000..103570b7b--- /dev/null+++ b/openrewind/components/rewind/ui/command.tsx@@ -0,0 +1,156 @@+"use client";++import * as React from "react";+import { type DialogProps } from "@radix-ui/react-dialog";+import { Command as CommandPrimitive } from "cmdk";+import { Search } from "lucide-react";++import { cn } from "@/lib/utils";+import { Dialog, DialogContent } from "@/components/ui/dialog";++const Command = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>+>(({ className, ...props }, ref) => (+ <CommandPrimitive+ ref={ref}+ className={cn(+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",+ className,+ )}+ {...props}+ />+));+Command.displayName = CommandPrimitive.displayName;++const CommandDialog = ({ children, ...props }: DialogProps) => {+ return (+ <Dialog {...props}>+ <DialogContent className="overflow-hidden p-0 shadow-lg">+ <Command+ shouldFilter={false}+ className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"+ >+ {children}+ </Command>+ </DialogContent>+ </Dialog>+ );+};++const CommandInput = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Input>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>+>(({ className, ...props }, ref) => (+ <div className="flex items-center border-b px-3" cmdk-input-wrapper="">+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ ref={ref}+ className={cn(+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",+ className,+ )}+ {...props}+ />+ </div>+));++CommandInput.displayName = CommandPrimitive.Input.displayName;++const CommandList = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.List>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.List+ ref={ref}+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}+ {...props}+ />+));++CommandList.displayName = CommandPrimitive.List.displayName;++const CommandEmpty = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Empty>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>+>((props, ref) => (+ <CommandPrimitive.Empty+ ref={ref}+ className="py-6 text-center text-sm"+ {...props}+ />+));++CommandEmpty.displayName = CommandPrimitive.Empty.displayName;++const CommandGroup = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Group>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Group+ ref={ref}+ className={cn(+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",+ className,+ )}+ {...props}+ />+));++CommandGroup.displayName = CommandPrimitive.Group.displayName;++const CommandSeparator = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 h-px bg-border", className)}+ {...props}+ />+));+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;++const CommandItem = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",+ className,+ )}+ {...props}+ />+));++CommandItem.displayName = CommandPrimitive.Item.displayName;++const CommandShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn(+ "ml-auto text-xs tracking-widest text-muted-foreground",+ className,+ )}+ {...props}+ />+ );+};+CommandShortcut.displayName = "CommandShortcut";++export {+ Command,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+ CommandShortcut,+ CommandSeparator,+};diff --git a/openrewind/components/rewind/ui/dialog.tsx b/openrewind/components/rewind/ui/dialog.tsxnew file mode 100644index 000000000..c97998772--- /dev/null+++ b/openrewind/components/rewind/ui/dialog.tsx@@ -0,0 +1,122 @@+"use client";++import * as React from "react";+import * as DialogPrimitive from "@radix-ui/react-dialog";+import { X } from "lucide-react";++import { cn } from "@/lib/utils";++const Dialog = DialogPrimitive.Root;++const DialogTrigger = DialogPrimitive.Trigger;++const DialogPortal = DialogPrimitive.Portal;++const DialogClose = DialogPrimitive.Close;++const DialogOverlay = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Overlay+ ref={ref}+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className,+ )}+ {...props}+ />+));+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;++const DialogContent = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>+>(({ className, children, ...props }, ref) => (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ ref={ref}+ className={cn(+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ className,+ )}+ {...props}+ >+ {children}+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ </DialogPrimitive.Content>+ </DialogPortal>+));+DialogContent.displayName = DialogPrimitive.Content.displayName;++const DialogHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-1.5 text-center sm:text-left",+ className,+ )}+ {...props}+ />+);+DialogHeader.displayName = "DialogHeader";++const DialogFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className,+ )}+ {...props}+ />+);+DialogFooter.displayName = "DialogFooter";++const DialogTitle = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Title+ ref={ref}+ className={cn(+ "text-lg font-semibold leading-none tracking-tight",+ className,+ )}+ {...props}+ />+));+DialogTitle.displayName = DialogPrimitive.Title.displayName;++const DialogDescription = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+));+DialogDescription.displayName = DialogPrimitive.Description.displayName;++export {+ Dialog,+ DialogPortal,+ DialogOverlay,+ DialogClose,+ DialogTrigger,+ DialogContent,+ DialogHeader,+ DialogFooter,+ DialogTitle,+ DialogDescription,+};diff --git a/openrewind/components/rewind/ui/icons.tsx b/openrewind/components/rewind/ui/icons.tsxnew file mode 100644index 000000000..cd613369b--- /dev/null+++ b/openrewind/components/rewind/ui/icons.tsx@@ -0,0 +1,650 @@+"use client";++import * as React from "react";++import { cn } from "@/lib/utils";++function IconNextChat({+ className,+ inverted,+ ...props+}: React.ComponentProps<"svg"> & { inverted?: boolean }) {+ const id = React.useId();++ return (+ <svg+ viewBox="0 0 17 17"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <defs>+ <linearGradient+ id={`gradient-${id}-1`}+ x1="10.6889"+ y1="10.3556"+ x2="13.8445"+ y2="14.2667"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={inverted ? "white" : "black"} />+ <stop+ offset={1}+ stopColor={inverted ? "white" : "black"}+ stopOpacity={0}+ />+ </linearGradient>+ <linearGradient+ id={`gradient-${id}-2`}+ x1="11.7555"+ y1="4.8"+ x2="11.7376"+ y2="9.50002"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={inverted ? "white" : "black"} />+ <stop+ offset={1}+ stopColor={inverted ? "white" : "black"}+ stopOpacity={0}+ />+ </linearGradient>+ </defs>+ <path+ d="M1 16L2.58314 11.2506C1.83084 9.74642 1.63835 8.02363 2.04013 6.39052C2.4419 4.75741 3.41171 3.32057 4.776 2.33712C6.1403 1.35367 7.81003 0.887808 9.4864 1.02289C11.1628 1.15798 12.7364 1.8852 13.9256 3.07442C15.1148 4.26363 15.842 5.83723 15.9771 7.5136C16.1122 9.18997 15.6463 10.8597 14.6629 12.224C13.6794 13.5883 12.2426 14.5581 10.6095 14.9599C8.97637 15.3616 7.25358 15.1692 5.74942 14.4169L1 16Z"+ fill={inverted ? "black" : "white"}+ stroke={inverted ? "black" : "white"}+ strokeWidth={2}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ <mask+ id="mask0_91_2047"+ style={{ maskType: "alpha" }}+ maskUnits="userSpaceOnUse"+ x={1}+ y={0}+ width={16}+ height={16}+ >+ <circle cx={9} cy={8} r={8} fill={inverted ? "black" : "white"} />+ </mask>+ <g mask="url(#mask0_91_2047)">+ <circle cx={9} cy={8} r={8} fill={inverted ? "black" : "white"} />+ <path+ d="M14.2896 14.0018L7.146 4.8H5.80005V11.1973H6.87681V6.16743L13.4444 14.6529C13.7407 14.4545 14.0231 14.2369 14.2896 14.0018Z"+ fill={`url(#gradient-${id}-1)`}+ />+ <rect+ x="11.2222"+ y="4.8"+ width="1.06667"+ height="6.4"+ fill={`url(#gradient-${id}-2)`}+ />+ </g>+ </svg>+ );+}++function IconOpenAI({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="currentColor"+ viewBox="0 0 24 24"+ role="img"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <title>OpenAI icon</title>+ <path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" />+ </svg>+ );+}++function IconVercel({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ aria-label="Vercel logomark"+ role="img"+ viewBox="0 0 74 64"+ className={cn("size-4", className)}+ {...props}+ >+ <path+ d="M37.5896 0.25L74.5396 64.25H0.639648L37.5896 0.25Z"+ fill="currentColor"+ ></path>+ </svg>+ );+}++function IconGitHub({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <title>GitHub</title>+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />+ </svg>+ );+}++function IconSeparator({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="none"+ shapeRendering="geometricPrecision"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1"+ viewBox="0 0 24 24"+ aria-hidden="true"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M16.88 3.549L7.12 20.451"></path>+ </svg>+ );+}++function IconArrowDown({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m205.66 149.66-72 72a8 8 0 0 1-11.32 0l-72-72a8 8 0 0 1 11.32-11.32L120 196.69V40a8 8 0 0 1 16 0v156.69l58.34-58.35a8 8 0 0 1 11.32 11.32Z" />+ </svg>+ );+}++function IconArrowRight({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z" />+ </svg>+ );+}++function IconUser({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z" />+ </svg>+ );+}++function IconPlus({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z" />+ </svg>+ );+}++function IconArrowElbow({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M200 32v144a8 8 0 0 1-8 8H67.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L67.31 168H184V32a8 8 0 0 1 16 0Z" />+ </svg>+ );+}++function IconSpinner({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4 animate-spin", className)}+ {...props}+ >+ <path d="M232 128a104 104 0 0 1-208 0c0-41 23.81-78.36 60.66-95.27a8 8 0 0 1 6.68 14.54C60.15 61.59 40 93.27 40 128a88 88 0 0 0 176 0c0-34.73-20.15-66.41-51.34-80.73a8 8 0 0 1 6.68-14.54C208.19 49.64 232 87 232 128Z" />+ </svg>+ );+}++function IconMessage({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 48H40a16 16 0 0 0-16 16v160a15.84 15.84 0 0 0 9.25 14.5A16.05 16.05 0 0 0 40 240a15.89 15.89 0 0 0 10.25-3.78.69.69 0 0 0 .13-.11L82.5 208H216a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16ZM40 224Zm176-32H82.5a16 16 0 0 0-10.3 3.75l-.12.11L40 224V64h176Z" />+ </svg>+ );+}++function IconTrash({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z" />+ </svg>+ );+}++function IconRefresh({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 183.35 93 208 128 208c36 0 58.14-21.46 58.36-21.68a8 8 0 0 1 11.31.05ZM216 40a8 8 0 0 0-8 8v23.85C192.53 54.4 165.39 32 128 32c-42.82 0-68.58 25.27-69.66 26.34a8 8 0 0 0 11.3 11.34C69.86 69.46 92 48 128 48c35 0 60.24 24.65 72.56 40H168a8 8 0 0 0 0 16h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8Z" />+ </svg>+ );+}++function IconStop({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm24-120h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8Zm-8 48h-32v-32h32Z" />+ </svg>+ );+}++function IconSidebar({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16ZM40 56h40v144H40Zm176 144H96V56h120v144Z" />+ </svg>+ );+}++function IconMoon({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M233.54 142.23a8 8 0 0 0-8-2 88.08 88.08 0 0 1-109.8-109.8 8 8 0 0 0-10-10 104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88 104.84 104.84 0 0 0 37-52.91 8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104 106 106 0 0 0 14.92-1.06 89 89 0 0 1-26.02 31.4Z" />+ </svg>+ );+}++function IconSun({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48 48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z" />+ </svg>+ );+}++function IconCopy({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z" />+ </svg>+ );+}++function IconCheck({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z" />+ </svg>+ );+}++function IconDownload({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z" />+ </svg>+ );+}++function IconClose({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z" />+ </svg>+ );+}++function IconEdit({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"+ />+ </svg>+ );+}++function IconShare({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="m237.66 106.35-80-80A8 8 0 0 0 144 32v40.35c-25.94 2.22-54.59 14.92-78.16 34.91-28.38 24.08-46.05 55.11-49.76 87.37a12 12 0 0 0 20.68 9.58c11-11.71 50.14-48.74 107.24-52V192a8 8 0 0 0 13.66 5.65l80-80a8 8 0 0 0 0-11.3ZM160 172.69V144a8 8 0 0 0-8-8c-28.08 0-55.43 7.33-81.29 21.8a196.17 196.17 0 0 0-36.57 26.52c5.8-23.84 20.42-46.51 42.05-64.86C99.41 99.77 127.75 88 152 88a8 8 0 0 0 8-8V51.32L220.69 112Z" />+ </svg>+ );+}++function IconUsers({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M117.25 157.92a60 60 0 1 0-66.5 0 95.83 95.83 0 0 0-47.22 37.71 8 8 0 1 0 13.4 8.74 80 80 0 0 1 134.14 0 8 8 0 0 0 13.4-8.74 95.83 95.83 0 0 0-47.22-37.71ZM40 108a44 44 0 1 1 44 44 44.05 44.05 0 0 1-44-44Zm210.14 98.7a8 8 0 0 1-11.07-2.33A79.83 79.83 0 0 0 172 168a8 8 0 0 1 0-16 44 44 0 1 0-16.34-84.87 8 8 0 1 1-5.94-14.85 60 60 0 0 1 55.53 105.64 95.83 95.83 0 0 1 47.22 37.71 8 8 0 0 1-2.33 11.07Z" />+ </svg>+ );+}++function IconExternalLink({+ className,+ ...props+}: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z" />+ </svg>+ );+}++function IconChevronUpDown({+ className,+ ...props+}: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M181.66 170.34a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32 0l-48-48a8 8 0 0 1 11.32-11.32L128 212.69l42.34-42.35a8 8 0 0 1 11.32 0Zm-96-84.68L128 43.31l42.34 42.35a8 8 0 0 0 11.32-11.32l-48-48a8 8 0 0 0-11.32 0l-48 48a8 8 0 0 0 11.32 11.32Z" />+ </svg>+ );+}++function IconLlama({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="currentColor"+ viewBox="0 0 24 24"+ role="img"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <title>Llama3 icon</title>+ <circle+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="2"+ fill="none"+ />+ <path+ d="M6 9l6 6 6-6"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function IconCode({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ width="15"+ height="15"+ viewBox="0 0 15 15"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z"+ fill="currentColor"+ fillRule="evenodd"+ clipRule="evenodd"+ ></path>+ </svg>+ );+}++function IconOllama({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ width="133"+ height="185"+ viewBox="0 0 133 185"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ xmlnsXlink="http://www.w3.org/1999/xlink"+ >+ <rect width="133" height="185" fill="url(#pattern0)" />+ <defs>+ <pattern+ id="pattern0"+ patternContentUnits="objectBoundingBox"+ width="1"+ height="1"+ >+ <use+ xlinkHref="#image0_406_1657"+ transform="matrix(0.00552486 0 0 0.00397193 0 -0.00840675)"+ />+ </pattern>+ <image+ id="image0_406_1657"+ width="181"+ height="256"+ xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAAEACAYAAAD1IzfbAAAMQGlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkEBoAQSkhN4EkRpASggt9I5gIyQBQokxEFTsyKKCa0FFBGzoqoiCFRA7YmdR7H2xoKKsiwW78iYFdN1XvjffN3f++8+Z/5w5d+beOwCoHeeIRDmoOgC5wnxxbLA/fVxyCp30FJAAARCBOjDncPNEzOjocADLUPv38u46QKTtFXup1j/7/2vR4PHzuAAg0RCn8fK4uRDvBwCv4YrE+QAQpbzZtHyRFMMKtMQwQIgXSXGGHNdIcZoc75bZxMeyIG4HQEmFwxFnAKB6CfL0Am4G1FDth9hRyBMIAVCjQ+yTmzuFB3EqxNbQRgSxVJ+R9oNOxt8004Y1OZyMYSyfi6woBQjyRDmcGf9nOv53yc2RDPmwhFUlUxwSK50zzNvN7ClhUqwCcZ8wLTIKYk2IPwh4MnuIUUqmJCRBbo8acPNYMGdAB2JHHicgDGIDiIOEOZHhCj4tXRDEhhiuEHS6IJ8dD7EuxIv4eYFxCpuN4imxCl9oU7qYxVTwZzlimV+pr/uS7ASmQv91Jp+t0MdUCzPjkyCmQGxeIEiMhFgVYoe87Lgwhc3YwkxW5JCNWBIrjd8c4li+MNhfro8VpIuDYhX2pbl5Q/PFNmYK2JEKvDc/Mz5Enh+sncuRxQ/ngl3iC5kJQzr8vHHhQ3Ph8QMC5XPHnvGFCXEKnQ+ifP9Y+VicIsqJVtjjpvycYClvCrFLXkGcYiyemA8XpFwfTxflR8fL48QLszih0fJ48OUgHLBAAKADCaxpYArIAoLOvuY+eCfvCQIcIAYZgA/sFczQiCRZjxBe40Ah+BMiPsgbHucv6+WDAsh/HWblV3uQLustkI3IBk8gzgVhIAfeS2SjhMPeEsFjyAj+4Z0DKxfGmwOrtP/f80Psd4YJmXAFIxnySFcbsiQGEgOIIcQgog2uj/vgXng4vPrB6oQzcI+heXy3JzwhdBEeEq4Rugm3JguKxD9FGQG6oX6QIhdpP+YCt4Sarrg/7g3VoTKug+sDe9wF+mHivtCzK2RZirilWaH/pP23GfzwNBR2ZEcySh5B9iNb/zxS1VbVdVhFmusf8yOPNW0436zhnp/9s37IPg+2YT9bYouwfdgZ7AR2DjuMNQM6dgxrwTqwI1I8vLoey1bXkLdYWTzZUEfwD39DT1aayTzHesdexy/yvnz+dOk7GrCmiGaIBRmZ+XQm/CLw6Wwh12EU3cnRyRkA6fdF/vp6EyP7biA6Hd+5BX8A4H1scHDw0Hcu9BgAe9zh9j/4nbNmwE+HMgBnD3Il4gI5h0svBPiWUIM7TQ8YATNgDefjBNyAF/ADgSAURIF4kAwmwegz4ToXg2lgFpgPSkAZWA5WgyqwAWwG28EusBc0g8PgBDgNLoBL4Bq4A1dPD3gB+sE78BlBEBJCRWiIHmKMWCB2iBPCQHyQQCQciUWSkVQkAxEiEmQWsgApQ8qRKmQTUofsQQ4iJ5BzSBdyC3mA9CKvkU8ohqqgWqghaomORhkoEw1D49GJaAY6FS1Ei9GlaCVai+5Em9AT6AX0GtqNvkAHMIApYzqYCWaPMTAWFoWlYOmYGJuDlWIVWC3WgLXC53wF68b6sI84EafhdNweruAQPAHn4lPxOfgSvArfjjfh7fgV/AHej38jUAkGBDuCJ4FNGEfIIEwjlBAqCFsJBwin4F7qIbwjEok6RCuiO9yLycQs4kziEuI6YiPxOLGL+Ig4QCKR9Eh2JG9SFIlDyieVkNaSdpKOkS6TekgflJSVjJWclIKUUpSESkVKFUo7lI4qXVZ6qvSZrE62IHuSo8g88gzyMvIWciv5IrmH/JmiQbGieFPiKVmU+ZRKSgPlFOUu5Y2ysrKpsodyjLJAeZ5ypfJu5bPKD5Q/qmiq2KqwVCaoSFSWqmxTOa5yS+UNlUq1pPpRU6j51KXUOupJ6n3qB1WaqoMqW5WnOle1WrVJ9bLqSzWymoUaU22SWqFahdo+tYtqfepkdUt1ljpHfY56tfpB9RvqAxo0jTEaURq5Gks0dmic03imSdK01AzU5GkWa27WPKn5iIbRzGgsGpe2gLaFdorWo0XUstJia2VplWnt0urU6tfW1HbRTtSerl2tfUS7WwfTsdRh6+ToLNPZq3Nd59MIwxHMEfwRi0c0jLg84r3uSF0/Xb5uqW6j7jXdT3p0vUC9bL0Ves169/RxfVv9GP1p+uv1T+n3jdQa6TWSO7J05N6Rtw1QA1uDWIOZBpsNOgwGDI0Mgw1FhmsNTxr2GekY+RllGa0yOmrUa0wz9jEWGK8yPmb8nK5NZ9Jz6JX0dnq/iYFJiInEZJNJp8lnUyvTBNMi00bTe2YUM4ZZutkqszazfnNj8wjzWeb15rctyBYMi0yLNRZnLN5bWlkmWS60bLZ8ZqVrxbYqtKq3umtNtfa1nmpda33VhmjDsMm2WWdzyRa1dbXNtK22vWiH2rnZCezW2XWNIozyGCUcVTvqhr2KPdO+wL7e/oGDjkO4Q5FDs8PL0eajU0avGH1m9DdHV8ccxy2Od8ZojgkdUzSmdcxrJ1snrlO101VnqnOQ81znFudXLnYufJf1Ljddaa4Rrgtd21y/urm7id0a3Hrdzd1T3WvcbzC0GNGMJYyzHgQPf4+5Hoc9Pnq6eeZ77vX8y8veK9trh9ezsVZj+WO3jH3kberN8d7k3e1D90n12ejT7Wviy/Gt9X3oZ+bH89vq95Rpw8xi7mS+9Hf0F/sf8H/P8mTNZh0PwAKCA0oDOgM1AxMCqwLvB5kGZQTVB/UHuwbPDD4eQggJC1kRcoNtyOay69j9oe6hs0Pbw1TC4sKqwh6G24aLw1sj0IjQiJURdyMtIoWRzVEgih21MupetFX01OhDMcSY6JjqmCexY2JnxZ6Jo8VNjtsR9y7eP35Z/J0E6wRJQluiWuKExLrE90kBSeVJ3eNGj5s97kKyfrIguSWFlJKYsjVlYHzg+NXjeya4TiiZcH2i1cTpE89N0p+UM+nIZLXJnMn7UgmpSak7Ur9woji1nIE0dlpNWj+XxV3DfcHz463i9fK9+eX8p+ne6eXpzzK8M1Zm9Gb6ZlZk9glYgirBq6yQrA1Z77OjsrdlD+Yk5TTmKuWm5h4Uagqzhe1TjKZMn9IlshOViLqnek5dPbVfHCbemofkTcxrydeCP/IdEmvJL5IHBT4F1QUfpiVO2zddY7pwescM2xmLZzwtDCr8bSY+kzuzbZbJrPmzHsxmzt40B5mTNqdtrtnc4rk984LnbZ9PmZ89//cix6LyorcLkha0FhsWzyt+9EvwL/UlqiXikhsLvRZuWIQvEizqXOy8eO3ib6W80vNljmUVZV+WcJec/3XMr5W/Di5NX9q5zG3Z+uXE5cLl11f4rtherlFeWP5oZcTKplX0VaWr3q6evPpchUvFhjWUNZI13ZXhlS1rzdcuX/ulKrPqWrV/dWONQc3imvfreOsur/db37DBcEPZhk8bBRtvbgre1FRrWVuxmbi5YPOTLYlbzvzG+K1uq/7Wsq1ftwm3dW+P3d5e515Xt8Ngx7J6tF5S37tzws5LuwJ2tTTYN2xq1Gks2w12S3Y/35O65/resL1t+xj7GvZb7K85QDtQ2oQ0zWjqb85s7m5Jbuk6GHqwrdWr9cAhh0PbDpscrj6ifWTZUcrR4qODxwqPDRwXHe87kXHiUdvktjsnx5282h7T3nkq7NTZ00GnT55hnjl21vvs4XOe5w6eZ5xvvuB2oanDtePA766/H+h062y66H6x5ZLHpdausV1HL/tePnEl4Mrpq+yrF65FXuu6nnD95o0JN7pv8m4+u5Vz69Xtgtuf78y7S7hbek/9XsV9g/u1f9j80djt1n3kQcCDjodxD+884j568Tjv8Zee4ifUJxVPjZ/WPXN6drg3qPfS8/HPe16IXnzuK/lT48+al9Yv9//l91dH/7j+nlfiV4Ovl7zRe7PtrcvbtoHogfvvct99fl/6Qe/D9o+Mj2c+JX16+nnaF9KXyq82X1u/hX27O5g7OCjiiDmyXwEMVjQ9HYDX2wCgJgNAg+czynj5+U9WEPmZVYbAf8LyM6KsuAHQAP/fY/rg380NAHZvgccvqK82AYBoKgDxHgB1dh6uQ2c12blSWojwHLAx6mtabhr4N0V+5vwh7p9bIFV1AT+3/wK5FXxP+8QO7QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAtaADAAQAAAABAAABAAAAAADcoAJxAAAjtklEQVR4Ae2dCbQlRXnHGVkGZN93GGAAQbawCIMKDw8uuKCiEdQYB4nHLKgkJ0gkRsbjFldCFvW4ADEoUTAQF8QgMKCDigSRVWaAGdZRZN9hgOT/u7x+9u3XXV31dfV9fe+t75xvum9Vfdu//reX6n53VlopSUIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEKgiwjM6mJSyom8dpC+aHK7srbIU9LfSH8mXS5N0i4Cm8v9POkLpKtNhnpG25ull09u/2+yPW0qEFhP7cdLr5MCVpU+qz6I/WfS1aVJ4iEAnuAKvuBcNQe0M0/MF/OWpIAAR+L3Se+VukAs61smmyOlXT3rKLWhEPADx2XSMpxdbcwb85edUbU73rKVyr9E6gLNp+8s+UhHDBuXwA38fHB2jWEemc+xlr1U/Z1SF1AhfTfI13ZjjWh48eAFbiE4u8Yyn8zrWMo+qvo+qQsgS98d8rnTWCIaXjQ4gZcFZ5cN88r8jpXMVbW/k7qAadJ3i3xvMVaIhhcLPuDUBGeXLfPLPI+FrKkqr5a6AInR93PFmD0WiIYXCS7gEwNnlw/mmfkeefmyKnQBEbPvlJFH01YguMTE2eWL+R5peaWqq1v7dAEU2seDgkNHGtHw4sADXEKxtI5nvpn3kRQW9W+SWsGx2hFzjZFENLwocJipOWD+R04+oIqsxGxq9+GRQ9NWEDg0xdJqz/yPlLC4b3laaAWwaPeQ4m86UoiGF0P94FDEZlCfmX940Lo8r/UIzwU4VpsNBhSrLMzaahy5I0VZoY426geHmRLmHx6MhHAt9Vup9YjwqGzfJT1BuqKBn0dku7F0HIW6qd86B+AO/swD82H1Aw9G4tr6nQ1AeFq2r5Fm8g7tNFk9+YfM0ZhtqdtKRPAG90yYD+bF6g8+DL0sUgVWAD5WUv1nG/jjvYRVS3yOchP1Urd1DsC7KMyL1d+iorNh+8y7BdYjK38MUPZEkLbrpVZQ3yjbcRLqtWIFzlVzwPxY/MKHoX43Z4GxcMA6QlolLOZbAMXm3CqnI9pOvVaswLlKmB+r3wVVToeh/Rpj4VfLrm5l5iKj7ydlt6F0HIQ6qddCPvB1CfPDPFl8w4uhlLnK2lIwNtxl1wmPe9v0Xxd/GPrB0YoR+NZJE//wY+iEP++xAPqA7Hze7JqlcdYzwfeGDk1bwtRpmQNwBd86YZ6YL0sM+DF0YgX0qwGVvldjLYA+JrvnB8QZxqHUR50WfMDVV5gvS4yhO7CsokIfNBb7cl80NY6HCtZrxlcFxBnGodRnIRt4hjykYr4sceAHPBka2UeZWgrlz4BWDazyPGOszwTGGbbh1GeZA/AMEeaLebPEgifRhTvYNuRAo9MLZMcj2RA5J2RwbuxEbn8Ud631heLJfDFvFrHyxBmrLVLv54xa3fnj6q7Knh+oh6NEqOwlg3VCjYZkPHVRX6iAI3iGimXeiGHlSWh+UcZfJy+W05H1SZN1vfSQKNV2zwl1WfAHR4swb5Z48CS6tHGk5i0sCznvkd0SY4UXGu2G6kgRUKO1LiuOzBvzFyrwJPpbe22Q+gVK1HJX+0vZ8W23yE8tRrLZ12jXdTNrXVYcmTfmL1TgCXyJKhby1SVgOUrj88o6x47+yxx9rq7dXJ2efTyk2FrKnfyuUurn8+ZS/iZwk8mtNr0v7e+1Zf2YLb+NcYuUl4N+LeX0z3vPTcValxVH8mX+DjMkDl5XGewqTdog9Y6V0dwdTKpVlsvwNuk2gQ7majxvobE2GyLbazAv+7xM+hLpZlIf4QsAyZE5vX/7/3laH6+RLpRy88WWL0CIUA91hQr4gaNVrPNn5Ys1T5Pd12RluWnYwxTtD0bfM8bl6Ooju2jQR6SQzlKfxeZRxfov6duka0l9hHosscCviTB/lrjwpfPCmmVocc/KhlN1E/m4jEPjMv71jqD8Td97pJdLLb5j2jysHE6VzpNyxK8S6rHEBb8mwvwxj6GxrWvclbk+r7LH3rGFwfR3snncYJc3sS4PcSlRlG3V8Hnp7dIvSa2rCTKNJhypj5Zy3cuXjKP3qtKilNVTHFP22Ypf5ov5Yx5DxcIXZ4yukHqZM0u/zsV+w6aN4qYuEwjB6RBffy1dV9pFYXXjG1JuMI+R5smdr0dd3mLFLx9gWf6D5350UnvG9R7GL8mHnn4Y/5/eEaoHrmeMfbbsNpb+s5QbRkv+M21zo/J+k5TLEuqx5LOR7JoK82iJHfV/IIi9+rG5ERWWt5rKA3LwoDT06PpS2UCK9aXDKiyLQeaFUsscgNs90qZinUdyvqNp8Mw+NqlXyxwHbu8NHF81/C51hJI6W2Kr8jlM7RPGZMEthljn0cqb0pxjX1P7rtcWk7m72GD83GSd1RhyJMxi4WadRytvSsGPTWrrNy70AUNpMWq8s6ojtTsRiIWbdR6tvCktKjapS4N4ND7kMcZnCNfVScIRiIVbrHkMryBn0RVS35fLqcluLD9NchhG21i4xfLTCMPYN4qNkolgbD39RQjd54JlLW6+lkkflfJQgqdta0o3nNQdJj9rM+PSFdyiADFqpLYuKTUFk9PuxdJLpb+QXi3lsbZLWFPeRsrTynnSQ6R7SWkftMwUbq3UOWqk5gg5KOFUy9rwWVLI/JQ0RMj11knFD7KllHc3jpTy9t+gLg8HiZvKalcGBVq7VQzW+yKFe5sUAvKyE6+IhhJaJqXCKsQXpAdLd5J+Wmpd+5XpeEpXSM3bcDGk6UtRVTlwJPu+9EApR9AzpU9I25Sb5fwE6bbS46Sxlt3kaprEwi3WPE5LMKShK6Tm5imGWBf/XbF/qk7I/Drpz1wDW+rjRvMU6Y5SSB5r+U2upiQWbrHmcSoxy05sUj9jSUI2qxrtimYxrw2Xy/nbpQdJf14MNAOfOZpyObKz9HRpzFpj+bLOo5U3gmG6xCY1RLCI5SWcsjh7lzUa2s6QzW7Sb0pjTbghjVITjqpHS18pvb10RHhjLNys82jlTXilBoutZQMJQvVkQ6yiyTpquN8QO58rS3PcBA6L8GbhOdJ8DZZ9cAO/psI8WuLDm84KS4SWojgyNpUPyoEldmazRPa7Nk1iBuxZ1z5Ryik8q8WyBb+mwjxaYsObaBLVmbJ6WspDh9C7YN9vKjciu0s5zW0l5Qkdk8rTur+UWoVr5sOlw/gQAhJ9Qnqz9N+ls6UWYYVlNSmXpPjkBvUOKZcG10jvldaJ7zzm/cAXeBNNIERsWSyH3KmHyDIN3m7SYC1tebI2VzpHiq89Jvfpiy2XyCErG4A77MJ1Npcja7RQCL9HskzK01LOauzfJL1KSh+yVDqHnQDBF2vynZaLlR3f9BDlm8qR4kIpR4gQ2yZjeaQdelaRSafltcpuhbQJLiG23Id8RUpc5jHElrEXSzsvZyjD0MJmYvwy5blp59G0JfhXMpsJTC0x4UtUib2kR3JLo2bYjjOOZEdKeXtuFIVH7dHJ0hJQ0fnSBqm5Yem6fFQJcukxqsIR873S24agwGHgy0ovFpCW09CgbBYqv1WGYLJjpPhSOXlKOihsLXHgS+eFZTYe6VoKbNuGvOZIx0k+q2LbxtXqn/mAL0MhZypLa6Ft2n1uKNCLm+R6cscTwzZxtfqGJ9GljWvqdZWl9R2A6AXmHN6jfR5SjJs8oIK5h+iiwJW1uphYPiee+F0htX5z27Q7Pp/omO3PVr13dHReuGGHN52UTZTVr6VtEtPqm2u3jTuJ2uCS+khH54Y5hTfwp1OygbK5RmolXdt23+gUWjOTzFYK2+WVkGuVHzzqhPAN+6W0bWJa/QPWtp1AauaTOFYpPCm1Ytm2HTxqfMSe1RBnyPJD6S4N/bjMAXKJ9EopBL1FulzK00AuK1aX8ltsm0r5LY3tpStLeWrI2eN06cPSJM8hsK82b5aCF8KNJPgulbJKAq7IRlKudZnjnaW8VIYtN3dtyg1yfpj01jaDVPnmzarbpZAutvJS07el75BG/fFA+UtiR4CDxX7Sk6Rt3j/Bq4G/uUfAO6Wxycxrje+Rtn00UIgkDRHgLL+X9IvSR6SxuQC/BkZs1qCXRi6CZcDXSttYN5fbJC0jwKXKx6Vc5sUkNzxr/ZkHR9CrIibOt/FPpInMAmEEBAKeLuUvkWKRG761duaGeN+PlCxFf0W6njTJ6CFwiEri7btYxIZ3rRz4Phkpyfvk5w3SJKONwDoqj3e6YxEb/kWVl8tbjFMKS2zbR80sOesyAtxM8l43y6tNyQ3/4GEU4fFyjPcGLpCf1q6NolSanLSFwKvkOMZNJDyM8rrDd+So6bfsXPmYLU0yvggcqNLvlzblEnxsJBOybprEd+VjtUZZJONRQeAAFfKQtCmnJqyAQEQeWTZJ4CeyX8OaQLIbSQS4Lm76YhW8NB0o+cWjJoRmSYdF+SQJgSICx6ihCbewDf5FLv5ujBdbrIF5d2NPaZKEQBUCPF638gs7+Bn0941/1zDgu2WfJCHgQoC3K3la2ITY8NRLuAb+vdQajBtD1ieTJATqENhdA56QWrl2V12ArL/J9c4DcrJl5ihtEwIeCJykMVZSPy7b2qVijrD/2yDIcbJNkhAIQYDLkCVSK7HfXhdsnwbOb5StaZmlLqnUP/IIHKEKraS+uA6dUxo4P7LOeepPCFQgwBXCz6UWYj8ju+0q/PZ+X2650fF1smvl1cCqZFP7yCHwGlVkITU2lasgEw2cvku2SRICTRDgaM1bnBZi/7Iq8OeMDln+S4/Cq1BN7SEI/LkGW0jNa6n8rsk04RLC4vDkaZ5SQ0LAhgB/WGB9RZWl6D5hbdn6RwB/1OcpfUgINEPA+tcy3yyGPUoNlqP0YtlxLZQkIRALgcPlyMLF22XX42K2YjHPmBGPxEkgSUIgFgI/lqPHDM64pt4au4zUPHSxyPkWo2STEHAgAKEvdfS7uno8htQcsvdwjazoe1Ltl1X0peaEQBMEFhqNeUGqd6TmB0jWNjhhTdFymjCESiZjhsAiY70vxI4j9Y5GB7z4lCQh0AYC/Pgkq3Gh0uMypN421HJy/LVGu2SWEKhDgLXqZXWDSvq3oQ1Slz6JKTEoNvFWXpKEQFsIsFwcKhvKYOVV9I/1B2aWhkYc0fHcaO8g5c57VymnQB5moatKN53ccgDhlLpCyt/Xsb1zUpdoe72US7rsN+i0O9ayzFj9FpB6E6MxEzJI4cu3v3QLKWvjxOdFlgelgxbWQ/np4UOlB0l9/2oeYvOXGr3TpLZ8GYpyjxoulbJeyw8j8lBh0ALW+0n5YvKl5c+mfiEdJNa/VTyLcCBZ6TQpJAlRjjKDkr0U6FvSsr9lo42+3aRtywYKcKyUZUyOuCF4WccSh3jEJX7bAo51WDMfg5B3K4gFtwNJ7jSD8W0Ytiwc1T4mfVpaVxzk5k/Jeo9JtY0pLBN9VcryZV0ebfYTnzx6y1baxhRwA7+yA0exJuaDeWF+2pT5cl6M7fN5gqROMxgvxbBl+YL8+xSRH/OhiDlxfXy2lL+syMeY6X3yIS/yiyXgFloX89OmzJfz0JwYPyE1kfpWDFuUo+TbUhCn61c2zIs76C9KOSJZchiUDfmRJ/k2EfCyXk4xT23JfDm2YDlBQqcZjDlNtSUry/FNUktB2FwvtZ4a3yrbuxvEtubcxI58ydsi4ARe1vjME/PVhlivqV9KMqdJLUWt0UYl8jnfmE++hkMCc+Nu/8wIcfM5DHqf/EOXZ8GpaZ7z5aMNOUlOLbnN5Zt6nzEjlntiC/mcGMEpS22+wh0/S4Ntnkp9c2kyjvypg3p8JQSnKp/Ml/XMWOWT9s1cnY6+Fauo817HAFfXdurk9BNTWBvdMYJD1rJ9hOvJb0v5M6Kmwg0crw5cJeWUvlTKWuud0uyadZb2IQAHBCYNDLnhY5kMMjY9lYPdIulbpD+S1okvTi4/xGTefuEaZOibY7DBZDmkZmHdIjvJ6AKLocPmxY6+2F1HyuHXpas1cAxpz5WeJ71E+pDUR24pGcQX62Dpq6VvkFqPVPjhjzf+VMqa8yCEeYtNar4socIB+imMXia1XLt8CePIskD+LLkUbT5bkxdHshXGWKw6nCM9TNr0yCoXpYJf/BOHeMX6fD5TH3W6BJx8fNWNWeAKYuhbWzaWpdQrs1hbaqcu6bL+KzIHEbcLjLkU83uzIyeuI580xIEkp0rnSgcpxCOu5UtIndRbJeBUxM7yeUFVAGP7wca8uJTsCdd5D0hDi+EwzzcqpnxAzkLzKI6nlrUqktpZ7fcbYvxYNm08yatIs7SZ+ORRrLfuM/VSd5mAk2XuizGZt5jyITkrxvD5fFI+iZ8Ynbwu7yTC/kuMeeQL5oFEmTxfjddI82Pr9nmB511SvvhdEPIgH/Kqyz3fT93UXybglR9r2WfeYspCObPk8cZ8Ep83Ool9Xf085fEbYy6A8Jh0O2mZ/KsaQ4C6WuMtNytlsWO3kRf5hdRD/WUCXuAW4is/lvli3mLJBnLEVUA+hu8+l9JTYr224u5/lSkvcXZeLze+ReTHPSu7oytSOEjt9OfHu/bP09jYl1YVqZmbyY88XXXk+6gfHMoE3ELwyftlvmIKueT9++4vLSaxsRosd5sEfE3RWYTP/yQfvsUwjgl5f0VcvnQhR7WzNb7JMl9FGq00kyf5+mIFDlUHIfALJTbzFFsulEPfevLjTi9L5Aqjs/8uc9awjdPZJ6Q+X7SnNe44R7xj1Jcv3rV/vsYOC6GzksmXvF115fvAo0rAETzz48v2mRfmJ+Zlh9yttJPUZ87LcnobDoqyQA1lg+vaAGFu0VmkzwfKDxNWBfS16puQVglHpZuldTXQf4N0XekwCnmTv0+d4FF1tKb2CSm4lvliHpgP5qUN4bq/LG5dG9fgU28rzspltqf2r8p9Dtn9qga/O8QgcCwJz5PuIeXI9IR00aRyyqwS7hXOqurMtbOeu7/017m2Ydtl/niqN9sj8T/WGC5bqoQj8IsndXVtIQ2XLj+T3ittQzaTU75wVas0rpgXqPMVZQMg+HXSum9FWT9Fc+romvxICZXlW2z7cKTEeUT9N9LTpF+WvlXKlzAvc/RhgZQxX5AeIo0l1FGsrewzuHRN/kUJleXq0+a6pFrphAaOz+0YSnzzqy5b8kDdqnEcjZrK5nKwWJr3zf6N0ldLIfzJ0iel+TGcaT4ijSHUQT15/2X74AI+XZFdlAgHxrJc69oekR2XX5VCoUXQ65zm+w+v9Dz4Dt8bxL+IlNoZ8pPHIr8Pce+u6d83Uh7Uk49dte88ukXKxccNlzoXe+ZcVsupPkG+0SDAnbKdumD3CdbiGJ86HlB8yzVcWdr3q7EMdN+2D5Y5NbRRD3XVxQWfLsixSqIuV1f/Pj5FMIgji8uRq4/LEL59My0+qx5e33LPQkIfXRcxPNEzjs8w6ir6L34Gn5kWbm6bPM28KKSAkCdVRbD4jD0PdGZK1lRgny8mqyOx5JtyVIaFTxu57hcrEfmhrrq4xASnmZJNFPg30ro8Xf2HhiT/Ig32IYUr4LXysX5I0Ihjd5UvV25ZX8ybpW0Uk9cGMt8hW+78Ywp1+cTnSDkTspGCXi/1ybFqzELZz5IGybc0usqhb/vXgyLGGzzhkXsb663cxS/xiJ3hx4HjZOnK0thCfVmcqu1E7KAe/iDiD6RVOfm0g9sBHrGmDZmjlkelPkGqxrB0NFc6aJlQwKqcsva2HrSwdHeKdEVNDjepv433ZuS2J9SX1Vq1nXhu6ED/3c0jr6p8s/b/aJLx30dI4P1NEjDaTnjkvdDo29fsSEcOrBKt4evIOG6h7DISVG0njL6bmMGHqnx82u+T/eauBOpWKT4j46ZHtKq/unDlNYi+LVoO8nuH/+Xqe9zRH6Or7fqsOTblw/EKDH6VUkdqnvK8U8rWKnz7Bi1cc9XJ1hrQxrVsFpfTbJVwI9tmbHxTX5344FTnI7S/CR9+pWCn1gWsIzX2T0iD7zJzgWdiPfSOXPyqXR4pQ662ZG+HYy49XKR3mHp1UZfPo38fnLwCBgxqwgcwi/KOUdP1V1YEBi0cqfgy1l2jHddiYrzV5or/1hZjU5crNn3g0+bZoqo8+MAZoi6/qn742EheIGufl4KqEuDp4kzJ5QpclVfWflmLyS2tiT+/xdjUldVYtQWfmRJ4UZVXXTt8hJdm+Zos64JU9T8o2znmyM0NPycXVbnl212XCU2y+G5N/Ikmzh221JOvr2offGZK5igw/KjKra4dXppkM1n5nMKrEnifKWo8Ix6hVuWWb4d8bcieclo1cWerr8l9iivfui9TVjv4zKTAjyyX0C28hJ/B8mFZhAbLxrMMuEpwxLgGxP+tNMvJtW3rIQjLV1+U/o/0+9LvSd8rXVXahlCHq86sD1y6MD/wJMspdAs/g4QbiNukoYGy8a8Iitbe4E971nCXxpm++e2lHuyZ/KkjmwPXFly6IPDElaerD34G3ei+ukGwC2Xb1qlVroNkW41mjd0FTta3SOOeH+S9O4PJm/yzWlxb8Ni2I6nDE/jiytfVB0+95UyNdDlz9R3kHWUwA78SUMv5GjtsxCZf8nbNSb4PPLok8CWfX8g+PPWStTTqEWmI82zsZbLrylE6K3YL7TwUUA81bJoZd3xLnuSb4V+3BQfw6JLAl5Aa8jXCU/haK2/RiLxhyD62XRSfhxH5OnnhaKZXB+pwJD/yzOddtw8OXZTWOXeGqq4Dp6z/Ltmt1kXElBOvA1wsLcu7qu1ZjWc9tGtHbfI5VUp+VbmXtV+s8T6vRWjYwAXewJ+yvOva4KtTVlGvz8vlZYE+5fQ8852cdi3APSy7f5TO9Gmb+ORBPmX4u9qoe6bzVwpOgT+uGqr64Cu8rZQD1FNlXNfOyyZdl/2VoPUPH56SLQ9NjpAO6maSOMQjLvHr5qCsn3qpu+sCf8ry92mDt5Vi/aOAa+WxazeIVUUepo4npD5gVY15TPYXSBdIXyvdTtq0fuzxg78FUvwTpyoHn3bqpN5hEOqHRz51FcfA2ykpHrZZXrFI9oKKxXbQNj9UwDdIvyO1HnHXkO2hk6pNT7jG5TTPkZGX2MF2SymTxePy+6XrS9eVMinc5PFyDn/FsaaUy4OY17x8Id4kPV86DAIm8OiFhmTh7cfL7AA0ZOkr/22ZV+aw422cki3X2Pm6u7pPXcNwyVGkCDyyYApvSw8IuxodcgQKelyp8V0RjqSXSC1AdtWGeqhrGAUewScLtvC3J3l27501Bm5/ovHPBNp0ZTiXAC+Tnijl+nOYhfypg3qoaxgFHsEni0zxN0/q3S2eZLPIaNcVM4D8pHRP6XldSSowD/Imf+oY1gNMVrKVT6X85bVIy2H/kCybEdlypBuWSxLyJN9REvhk4SH8nSaL1RLqjDt+7uhHUQ5QUWdImy6rhWJaN558yIv8RlHgE7yqw6HYD3/7ZJY+PSUtDqz7fHufl9H8sJ7KOlr6Xan1Ra86HOv6iUt88iCfURd4VYdJsR/+wuMpYa20OMjn80VTHsZjZ7bKPFh6gpR17hukloOBC1v84Rf/xCEeccdJ4JULo6o+eDz1zHwzI2L8Htw4yZMq9pJJzerm6ACYG05q1h66vVcG6HIpkzbOAq8OMQAAj5fz1AvZ6LlN8L93BFuMngEE5GEHmiQOAlZe9XicLen1DtuGfIZ1PdRQajIZIAJWXvV4nJE624bmfU+oQRqfEPBAwMqrHo8zMq/sEahsCC/qJEkIxEbAyqsejzNSb2HMihunJAmB2AhYedXjcUZq65GaH0VJkhCIjYCVV31HamtSq1oNk11CwIFAI15lR2pebLeIddXEEivZjA8CVl71eJyRutHd5vhgnSodEAIZL0PD9XicGVufYG0aGjWNTwh4IGDlVY/HGakf8ghUNsT6JLLMV2pLCGQIWHnV43FGauvlx9ZZFmmbEIiIgJVXvDsz9ceK1vcWto9YSHKVEMgQsPKqtxSYHal5M8wiO1mMkk1CoAYBK6+mvQgFy7nQDtEnNL7RmmJNcal7/BCAT/AqhIeMnXpgkx2pgc7ybjQvr++GcZKEQCQE4JPljyKm+Jsn9XXGpA4w2iWzhEAZAlY+TfE3BqkPKssstSUEjAhY+TRF6nzcefoQeh3D+Lul+S9H3mfaTwiEIACP4JOFh/B3mvCjh5YLdBIodTgtQmpICLgRsB5Y4S387Un+CPu4Wq6cbA/dHBFqkMYnBEoQsPII3sLfnuRJTYP1Jw+Okq31nexeIumfsUcA/sAjizh5y0W65XoGm7b+11hLkclm+BDw/d96y/jpvLnkJxN4fl5mWNc2rD+uOHzTP5oZw586jpX1w1d465TT1VtmXNfGr23u7vScOhMC5QjAG/hTx7Gy/tPLXfa38n+ElBn7tJ3V7yp9Sgh4IQBvfPhVNga+1grP3rOfvipz4mrj27Z/bYQ0ICHwBwTgi/UoDU+93z36lAa7yOvqu1y2aSVEICSpRQCewBcXn1x98NRbttfIp6Uuh66+v/WOlAaOMwLwxMUjVx/8hKdBco5Gu5y6+vhh8L2DoqXB44YA/IAnLh65+uBnsBwgC5fTur6bZb9BcNRkMA4IwAv4UcchVz/8NMn5snI5rus70xQ1GY06AvCijjuufnhplv1kab0zJalnpfzvskkSAhkC8AFeuEjr6oOP8LKRnCFrV5C6vsWNoifjUUMAPtRxxtUPHxsL/3sqP63qClTXt3PjLJKDUUAAHtRxxdUPD2v/N9/iW3plwN2pxhPLOgLa0t8xBoA1wkOb8gAewscoAvkvkrq+Ra6++VGySE6GHQF44OKJqw/++RyE/QbJGRf2S6VWYT0ySUKgCQ/gHzyMJk3edeXbt220TJKjYUZgayUPH6wKD6PI6vKyRGpN5FdRskhORgUB+GDlEjyEj43lffJgTQK7wxtnkByMEgLwoQmf4GMjmS3rO6TWJBY1ip6MRxUBeGHlFHyEl2Z5hyytwbE70Bw5GY4yAvCiCa/gpVmafKO+Y46aDMcBAfhhJbb5CoCnPyyhWAI/JTvrz7HKNMkYIAA/4ImFX/ASfpaKazH7KFnMKrWqb/w3DVlcPyyNGGME4Ac8sQi8hJ/BcpUsLN+i5bJbOzhaMhhHBOAJfLHwDH4GCYvk1kuP44MipcHjjgB8sZAafm4TAt4xxkD8ntmGIYHS2LFHAL7AGwux4ek0qbqmnpg20q/hBxp2r9/QNCoh0EMAvsAbi0yEGC3TYMs3x3TxHpJYGjuSCMAbC9+W+aKxiTHACtmt7xskjUsI5BCAN/DHQmz42idllx/79o3w/3Clht7vPzyNTAhMIQBv4I9FpvG1jNS7WzzL5lKjXTJLCICAlT/T+FpG6l2NGPPzUUkSAlYErPyZxtcyUu9izOoKo10ySwiAgJU/Xny9RwFCL9gfkk3ZF4RkkyQEfBCAP/AolHvwtU+KRFxDvZaHJ/xvozzhSZIQsCIAf6b+19oAJ/AV3k5JkdRbTfWE7dwYNjyNTgiUImDlUR9vi6TevDRUfePt9UPSiIRALQJWHvXxtkjqdWrDlg/gT2ySJASaImDlUR9vi6TeyJjVfUa7ZJYQyCNg5VEfb4ukzgcI2b8rZHAamxCoQCAKj4qkXrciWF1zWvmoQyj1+yBg5VEfb4uktr6QZD1t+BSaxowPAlYe9fG2SGorfCyaJ0kINEUgCo+KpOZpjkU2sBglm4RAAQErj/p4WyT1tEeOhaBVH9ep6kjtCYEABKw86uNtkdSPBiSQH7p2/kPaTwgYEbD++GMfb4uk7juMByS2acDYNDQhUIXAllUdNe19vC2Smt9gsAg/qZAkIdAUgW2MDvp4WyR137VJQIAdAsamoQmBKgSsPOrjbZHU1mfv0/6kpirr1J4QcCBg5ZGTt/xG2QNSrlFC9GmN71sA1+ckCYEQBOAPPArhHWPha99vPhaP1Ay6QRoqK8vg5aFGaXxCIIcA/IFHoQJf4e2UFElNR/AP7016Sz9kMwVr2jEgYOWPF1/nK6HQUwDjH5bOliZJCIQiAG/gj4V3832CzTE6J6E9fQKkMQmBAgLwxkJobOYUfJX+BfgyDbquONDzc98fQHrapGEJAStvrhd0y4rwlV1TM+as4kCPz89ozE0e49KQhEARAXgDf0Ll22UG/w9yreSQIAJvAgAAAABJRU5ErkJggg=="+ />+ </defs>+ </svg>+ );+}++function IconClaude({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ height="1em"+ style={{ flex: "none", lineHeight: "1" }}+ viewBox="0 0 24 24"+ width="1em"+ xmlns="http://www.w3.org/2000/svg"+ >+ <title>Claude</title>+ <path+ d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"+ fill="#D97757"+ fillRule="nonzero"+ ></path>+ </svg>+ );+}++function IconGemini({ className, ...props }: React.ComponentProps<"svg">) {+ const id = React.useId();++ return (+ <svg+ height="1em"+ style={{ flex: "none", lineHeight: "1" }}+ viewBox="0 0 24 24"+ width="1em"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <title>Gemini</title>+ <defs>+ <linearGradient+ id={`gemini-gradient-${id}`}+ x1="0%"+ x2="68.73%"+ y1="100%"+ y2="30.395%"+ >+ <stop offset="0%" stopColor="#1C7DFF" />+ <stop offset="52.021%" stopColor="#1C69FF" />+ <stop offset="100%" stopColor="#F0DCD6" />+ </linearGradient>+ </defs>+ <path+ d="M12 24A14.304 14.304 0 000 12 14.304 14.304 0 0012 0a14.305 14.305 0 0012 12 14.305 14.305 0 00-12 12"+ fill={`url(#gemini-gradient-${id})`}+ fillRule="nonzero"+ />+ </svg>+ );+}++export {+ IconOllama,+ IconEdit,+ IconNextChat,+ IconOpenAI,+ IconVercel,+ IconGitHub,+ IconSeparator,+ IconArrowDown,+ IconArrowRight,+ IconUser,+ IconPlus,+ IconArrowElbow,+ IconSpinner,+ IconMessage,+ IconTrash,+ IconRefresh,+ IconStop,+ IconSidebar,+ IconMoon,+ IconSun,+ IconCopy,+ IconCheck,+ IconDownload,+ IconClose,+ IconShare,+ IconUsers,+ IconExternalLink,+ IconChevronUpDown,+ IconLlama,+ IconCode,+ IconClaude,+ IconGemini,+};diff --git a/openrewind/components/rewind/ui/input.tsx b/openrewind/components/rewind/ui/input.tsxnew file mode 100644index 000000000..68551b927--- /dev/null+++ b/openrewind/components/rewind/ui/input.tsx@@ -0,0 +1,22 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(+ ({ className, type, ...props }, ref) => {+ return (+ <input+ type={type}+ className={cn(+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ ref={ref}+ {...props}+ />+ )+ }+)+Input.displayName = "Input"++export { Input }diff --git a/openrewind/components/rewind/ui/label.tsx b/openrewind/components/rewind/ui/label.tsxnew file mode 100644index 000000000..534182176--- /dev/null+++ b/openrewind/components/rewind/ui/label.tsx@@ -0,0 +1,26 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const labelVariants = cva(+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"+)++const Label = React.forwardRef<+ React.ElementRef<typeof LabelPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &+ VariantProps<typeof labelVariants>+>(({ className, ...props }, ref) => (+ <LabelPrimitive.Root+ ref={ref}+ className={cn(labelVariants(), className)}+ {...props}+ />+))+Label.displayName = LabelPrimitive.Root.displayName++export { Label }diff --git a/openrewind/components/rewind/ui/multi-select-combobox.tsx b/openrewind/components/rewind/ui/multi-select-combobox.tsxnew file mode 100644index 000000000..903683f3d--- /dev/null+++ b/openrewind/components/rewind/ui/multi-select-combobox.tsx@@ -0,0 +1,212 @@+import React, { useState } from "react";++// Third-party component imports+import { Check, ChevronsUpDown, LoaderCircle, X } from "lucide-react";++// Local UI component imports+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "@/components/ui/command";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";++// Utility imports+import { cn } from "@/lib/utils";++/**+ * Base interface for option items in the multi-select combobox+ * @property label - Display text for the option+ * @property value - Unique identifier for the option+ */+export interface BaseOption {+ label: string;+ value: string;+}++/**+ * Generic type for extending BaseOption with additional properties+ */+export type Option<T extends BaseOption = BaseOption> = T;++/**+ * Props interface for the MultiSelectCombobox component+ * @template T - Type extending BaseOption+ */+interface Props<T extends BaseOption> {+ /** Label for the combobox */+ label: string;+ /** Custom render function for individual options */+ renderItem: (option: T) => React.ReactNode;+ /** Custom render function for selected items display */+ renderSelectedItem: (value: string[]) => React.ReactNode;+ /** Array of available options */+ options: T[];+ /** Array of selected values */+ value: string[];+ /** Callback function when selection changes */+ onChange: (value: string[]) => void;+ /** Optional placeholder text for search input */+ placeholder?: string;++ isLoading?: Boolean;+}++/**+ * A customizable multi-select combobox component with type safety+ * @template T - Type extending BaseOption+ */+export const MultiSelectCombobox = <T extends BaseOption>({+ label,+ renderItem,+ renderSelectedItem,+ options,+ value,+ onChange,+ placeholder,+ isLoading,+}: Props<T>) => {+ // State for controlling popover visibility+ const [open, setOpen] = useState(false);++ /**+ * Handles the selection/deselection of an option+ * @param currentValue - The value to toggle+ */+ const handleChange = (currentValue: string) => {+ onChange(+ value.includes(currentValue)+ ? value.filter((val) => val !== currentValue)+ : [...value, currentValue],+ );+ };++ /**+ * Clears all selected values+ */+ const handleClear = (e: React.MouseEvent) => {+ e.stopPropagation();+ onChange([]);+ };++ return (+ <Popover open={open} onOpenChange={setOpen}>+ <PopoverTrigger asChild>+ <div+ role="combobox"+ aria-expanded={open}+ aria-haspopup="listbox"+ aria-controls="multi-select-options"+ aria-label={`Select ${label}`}+ tabIndex={0}+ className="flex h-10 min-w-[200px] cursor-pointer items-center justify-start gap-2 rounded-md border border-input bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2"+ onClick={() => setOpen(!open)}+ onKeyDown={(e) => {+ if (e.key === "Enter" || e.key === " ") {+ setOpen(!open);+ }+ }}+ >+ {/* Icon and label section */}+ {+ //<ListFilter+ // className="size-4 shrink-0 text-muted-foreground"+ // aria-hidden="true"+ ///>+ }++ {isLoading && (+ <LoaderCircle+ className={cn("size-4 shrink-0 text-muted-foreground hidden", {+ "block animate-spin": isLoading,+ })}+ aria-hidden="true"+ />+ )}++ {+ // value.length > 0 && (+ // <span className="text-muted-foreground">{label}</span>+ //)+ }++ {/* Selected items display */}+ <div className="flex-1 overflow-hidden h-full text-muted-foreground">+ {value.length > 0+ ? renderSelectedItem(value)+ : `Filter by ${label}...`}+ </div>++ {/* Control buttons */}+ <span className="z-10 ml-auto flex items-center gap-2">+ {value.length > 0 && (+ <button+ type="button"+ aria-label="Clear selection"+ className="z-10 rounded-sm opacity-50 hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-gray-300"+ onClick={handleClear}+ >+ <X className="size-4 shrink-0" />+ </button>+ )}+ <ChevronsUpDown+ className="size-4 shrink-0 opacity-50"+ aria-hidden="true"+ />+ </span>+ </div>+ </PopoverTrigger>++ {/* Dropdown content */}+ <PopoverContent+ className="w-[--radix-popover-trigger-width] p-0"+ id="multi-select-options"+ >+ <Command>+ <CommandInput+ placeholder={placeholder || `Search ${label}...`}+ aria-label={`Search ${label}`}+ />+ <CommandList>+ <CommandEmpty>No {label} found.</CommandEmpty>+ <CommandGroup>+ {options.map((option) => (+ <CommandItem+ key={option.value}+ value={option.label}+ onSelect={() => handleChange(option.value)}+ aria-selected={value.includes(option.value)}+ className={cn({+ "bg-accent text-accent-foreground": value.includes(+ option.value,+ ),+ })}+ >+ {+ //<Check+ // className={cn(+ // "mr-2 h-4 w-4",+ // value.includes(option.value)+ // ? "opacity-100"+ // : "opacity-0",+ // )}+ // aria-hidden="true"+ ///>+ }+ {renderItem(option)}+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+};diff --git a/openrewind/components/rewind/ui/popover.tsx b/openrewind/components/rewind/ui/popover.tsxnew file mode 100644index 000000000..2213ab65b--- /dev/null+++ b/openrewind/components/rewind/ui/popover.tsx@@ -0,0 +1,48 @@+"use client";++import * as React from "react";+import * as PopoverPrimitive from "@radix-ui/react-popover";++import { cn } from "@/lib/utils";++const Popover = PopoverPrimitive.Root;++const PopoverTrigger = PopoverPrimitive.Trigger;++const PopoverContent = React.forwardRef<+ React.ElementRef<typeof PopoverPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ ref={ref}+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className,+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+));+PopoverContent.displayName = PopoverPrimitive.Content.displayName;++const PopoverContentInDialog = React.forwardRef<+ React.ElementRef<typeof PopoverPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (+ <PopoverPrimitive.Content+ ref={ref}+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className,+ )}+ {...props}+ />+));+PopoverContentInDialog.displayName = "PopoverContentInDialog";++export { Popover, PopoverTrigger, PopoverContent, PopoverContentInDialog };diff --git a/openrewind/components/rewind/ui/progress.tsx b/openrewind/components/rewind/ui/progress.tsxnew file mode 100644index 000000000..5c87ea486--- /dev/null+++ b/openrewind/components/rewind/ui/progress.tsx@@ -0,0 +1,28 @@+"use client"++import * as React from "react"+import * as ProgressPrimitive from "@radix-ui/react-progress"++import { cn } from "@/lib/utils"++const Progress = React.forwardRef<+ React.ElementRef<typeof ProgressPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>+>(({ className, value, ...props }, ref) => (+ <ProgressPrimitive.Root+ ref={ref}+ className={cn(+ "relative h-4 w-full overflow-hidden rounded-full bg-secondary",+ className+ )}+ {...props}+ >+ <ProgressPrimitive.Indicator+ className="h-full w-full flex-1 bg-primary transition-all"+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}+ />+ </ProgressPrimitive.Root>+))+Progress.displayName = ProgressPrimitive.Root.displayName++export { Progress }diff --git a/openrewind/components/rewind/ui/scroll-area.tsx b/openrewind/components/rewind/ui/scroll-area.tsxnew file mode 100644index 000000000..0b4a48d87--- /dev/null+++ b/openrewind/components/rewind/ui/scroll-area.tsx@@ -0,0 +1,48 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++const ScrollArea = React.forwardRef<+ React.ElementRef<typeof ScrollAreaPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>+>(({ className, children, ...props }, ref) => (+ <ScrollAreaPrimitive.Root+ ref={ref}+ className={cn("relative overflow-hidden", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+))+ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName++const ScrollBar = React.forwardRef<+ React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>+>(({ className, orientation = "vertical", ...props }, ref) => (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ ref={ref}+ orientation={orientation}+ className={cn(+ "flex touch-none select-none transition-colors",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent p-[1px]",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent p-[1px]",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+))+ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName++export { ScrollArea, ScrollBar }diff --git a/openrewind/components/rewind/ui/select.tsx b/openrewind/components/rewind/ui/select.tsxnew file mode 100644index 000000000..cbe5a36b6--- /dev/null+++ b/openrewind/components/rewind/ui/select.tsx@@ -0,0 +1,160 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { Check, ChevronDown, ChevronUp } from "lucide-react"++import { cn } from "@/lib/utils"++const Select = SelectPrimitive.Root++const SelectGroup = SelectPrimitive.Group++const SelectValue = SelectPrimitive.Value++const SelectTrigger = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>+>(({ className, children, ...props }, ref) => (+ <SelectPrimitive.Trigger+ ref={ref}+ className={cn(+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDown className="h-4 w-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+))+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName++const SelectScrollUpButton = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.ScrollUpButton+ ref={ref}+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUp className="h-4 w-4" />+ </SelectPrimitive.ScrollUpButton>+))+SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName++const SelectScrollDownButton = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.ScrollDownButton+ ref={ref}+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDown className="h-4 w-4" />+ </SelectPrimitive.ScrollDownButton>+))+SelectScrollDownButton.displayName =+ SelectPrimitive.ScrollDownButton.displayName++const SelectContent = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>+>(({ className, children, position = "popper", ...props }, ref) => (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ ref={ref}+ className={cn(+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+))+SelectContent.displayName = SelectPrimitive.Content.displayName++const SelectLabel = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.Label+ ref={ref}+ className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}+ {...props}+ />+))+SelectLabel.displayName = SelectPrimitive.Label.displayName++const SelectItem = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>+>(({ className, children, ...props }, ref) => (+ <SelectPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </SelectPrimitive.ItemIndicator>+ </span>++ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+))+SelectItem.displayName = SelectPrimitive.Item.displayName++const SelectSeparator = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-muted", className)}+ {...props}+ />+))+SelectSeparator.displayName = SelectPrimitive.Separator.displayName++export {+ Select,+ SelectGroup,+ SelectValue,+ SelectTrigger,+ SelectContent,+ SelectLabel,+ SelectItem,+ SelectSeparator,+ SelectScrollUpButton,+ SelectScrollDownButton,+}diff --git a/openrewind/components/rewind/ui/separator.tsx b/openrewind/components/rewind/ui/separator.tsxnew file mode 100644index 000000000..12d81c4a8--- /dev/null+++ b/openrewind/components/rewind/ui/separator.tsx@@ -0,0 +1,31 @@+"use client"++import * as React from "react"+import * as SeparatorPrimitive from "@radix-ui/react-separator"++import { cn } from "@/lib/utils"++const Separator = React.forwardRef<+ React.ElementRef<typeof SeparatorPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>+>(+ (+ { className, orientation = "horizontal", decorative = true, ...props },+ ref+ ) => (+ <SeparatorPrimitive.Root+ ref={ref}+ decorative={decorative}+ orientation={orientation}+ className={cn(+ "shrink-0 bg-border",+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",+ className+ )}+ {...props}+ />+ )+)+Separator.displayName = SeparatorPrimitive.Root.displayName++export { Separator }diff --git a/openrewind/components/rewind/ui/skeleton.tsx b/openrewind/components/rewind/ui/skeleton.tsxnew file mode 100644index 000000000..01b8b6d4f--- /dev/null+++ b/openrewind/components/rewind/ui/skeleton.tsx@@ -0,0 +1,15 @@+import { cn } from "@/lib/utils"++function Skeleton({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ className={cn("animate-pulse rounded-md bg-muted", className)}+ {...props}+ />+ )+}++export { Skeleton }diff --git a/openrewind/components/rewind/ui/slider.tsx b/openrewind/components/rewind/ui/slider.tsxnew file mode 100644index 000000000..c31c2b3bc--- /dev/null+++ b/openrewind/components/rewind/ui/slider.tsx@@ -0,0 +1,28 @@+"use client"++import * as React from "react"+import * as SliderPrimitive from "@radix-ui/react-slider"++import { cn } from "@/lib/utils"++const Slider = React.forwardRef<+ React.ElementRef<typeof SliderPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>+>(({ className, ...props }, ref) => (+ <SliderPrimitive.Root+ ref={ref}+ className={cn(+ "relative flex w-full touch-none select-none items-center",+ className+ )}+ {...props}+ >+ <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">+ <SliderPrimitive.Range className="absolute h-full bg-primary" />+ </SliderPrimitive.Track>+ <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />+ </SliderPrimitive.Root>+))+Slider.displayName = SliderPrimitive.Root.displayName++export { Slider }diff --git a/openrewind/components/rewind/ui/switch.tsx b/openrewind/components/rewind/ui/switch.tsxnew file mode 100644index 000000000..bc69cf2db--- /dev/null+++ b/openrewind/components/rewind/ui/switch.tsx@@ -0,0 +1,29 @@+"use client"++import * as React from "react"+import * as SwitchPrimitives from "@radix-ui/react-switch"++import { cn } from "@/lib/utils"++const Switch = React.forwardRef<+ React.ElementRef<typeof SwitchPrimitives.Root>,+ React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>+>(({ className, ...props }, ref) => (+ <SwitchPrimitives.Root+ className={cn(+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",+ className+ )}+ {...props}+ ref={ref}+ >+ <SwitchPrimitives.Thumb+ className={cn(+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"+ )}+ />+ </SwitchPrimitives.Root>+))+Switch.displayName = SwitchPrimitives.Root.displayName++export { Switch }diff --git a/openrewind/components/rewind/ui/textarea.tsx b/openrewind/components/rewind/ui/textarea.tsxnew file mode 100644index 000000000..4d858bb6b--- /dev/null+++ b/openrewind/components/rewind/ui/textarea.tsx@@ -0,0 +1,22 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Textarea = React.forwardRef<+ HTMLTextAreaElement,+ React.ComponentProps<"textarea">+>(({ className, ...props }, ref) => {+ return (+ <textarea+ className={cn(+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",+ className+ )}+ ref={ref}+ {...props}+ />+ )+})+Textarea.displayName = "Textarea"++export { Textarea }diff --git a/openrewind/components/rewind/ui/toast.tsx b/openrewind/components/rewind/ui/toast.tsxnew file mode 100644index 000000000..521b94b07--- /dev/null+++ b/openrewind/components/rewind/ui/toast.tsx@@ -0,0 +1,129 @@+"use client"++import * as React from "react"+import * as ToastPrimitives from "@radix-ui/react-toast"+import { cva, type VariantProps } from "class-variance-authority"+import { X } from "lucide-react"++import { cn } from "@/lib/utils"++const ToastProvider = ToastPrimitives.Provider++const ToastViewport = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Viewport>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Viewport+ ref={ref}+ className={cn(+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",+ className+ )}+ {...props}+ />+))+ToastViewport.displayName = ToastPrimitives.Viewport.displayName++const toastVariants = cva(+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",+ {+ variants: {+ variant: {+ default: "border bg-background text-foreground",+ destructive:+ "destructive group border-destructive bg-destructive text-destructive-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++const Toast = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Root>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &+ VariantProps<typeof toastVariants>+>(({ className, variant, ...props }, ref) => {+ return (+ <ToastPrimitives.Root+ ref={ref}+ className={cn(toastVariants({ variant }), className)}+ {...props}+ />+ )+})+Toast.displayName = ToastPrimitives.Root.displayName++const ToastAction = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Action>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Action+ ref={ref}+ className={cn(+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",+ className+ )}+ {...props}+ />+))+ToastAction.displayName = ToastPrimitives.Action.displayName++const ToastClose = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Close>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Close+ ref={ref}+ className={cn(+ "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",+ className+ )}+ toast-close=""+ {...props}+ >+ <X className="h-4 w-4" />+ </ToastPrimitives.Close>+))+ToastClose.displayName = ToastPrimitives.Close.displayName++const ToastTitle = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Title>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Title+ ref={ref}+ className={cn("text-sm font-semibold", className)}+ {...props}+ />+))+ToastTitle.displayName = ToastPrimitives.Title.displayName++const ToastDescription = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Description>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Description+ ref={ref}+ className={cn("text-sm opacity-90", className)}+ {...props}+ />+))+ToastDescription.displayName = ToastPrimitives.Description.displayName++type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>++type ToastActionElement = React.ReactElement<typeof ToastAction>++export {+ type ToastProps,+ type ToastActionElement,+ ToastProvider,+ ToastViewport,+ Toast,+ ToastTitle,+ ToastDescription,+ ToastClose,+ ToastAction,+}diff --git a/openrewind/components/rewind/ui/toaster.tsx b/openrewind/components/rewind/ui/toaster.tsxnew file mode 100644index 000000000..fe7103d70--- /dev/null+++ b/openrewind/components/rewind/ui/toaster.tsx@@ -0,0 +1,35 @@+"use client"++import { useToast } from "@/components/ui/use-toast"+import {+ Toast,+ ToastClose,+ ToastDescription,+ ToastProvider,+ ToastTitle,+ ToastViewport,+} from "@/components/ui/toast"++export function Toaster() {+ const { toasts } = useToast()++ return (+ <ToastProvider>+ {toasts.map(function ({ id, title, description, action, ...props }) {+ return (+ <Toast key={id} {...props}>+ <div className="grid gap-1">+ {title && <ToastTitle>{title}</ToastTitle>}+ {description && (+ <ToastDescription>{description}</ToastDescription>+ )}+ </div>+ {action}+ <ToastClose />+ </Toast>+ )+ })}+ <ToastViewport />+ </ToastProvider>+ )+}diff --git a/openrewind/components/rewind/ui/tooltip.tsx b/openrewind/components/rewind/ui/tooltip.tsxnew file mode 100644index 000000000..30fc44d90--- /dev/null+++ b/openrewind/components/rewind/ui/tooltip.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/lib/utils"++const TooltipProvider = TooltipPrimitive.Provider++const Tooltip = TooltipPrimitive.Root++const TooltipTrigger = TooltipPrimitive.Trigger++const TooltipContent = React.forwardRef<+ React.ElementRef<typeof TooltipPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <TooltipPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+TooltipContent.displayName = TooltipPrimitive.Content.displayName++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/openrewind/components/rewind/ui/use-toast.ts b/openrewind/components/rewind/ui/use-toast.tsnew file mode 100644index 000000000..02e111d81--- /dev/null+++ b/openrewind/components/rewind/ui/use-toast.ts@@ -0,0 +1,194 @@+"use client"++// Inspired by react-hot-toast library+import * as React from "react"++import type {+ ToastActionElement,+ ToastProps,+} from "@/components/ui/toast"++const TOAST_LIMIT = 1+const TOAST_REMOVE_DELAY = 1000000++type ToasterToast = ToastProps & {+ id: string+ title?: React.ReactNode+ description?: React.ReactNode+ action?: ToastActionElement+}++const actionTypes = {+ ADD_TOAST: "ADD_TOAST",+ UPDATE_TOAST: "UPDATE_TOAST",+ DISMISS_TOAST: "DISMISS_TOAST",+ REMOVE_TOAST: "REMOVE_TOAST",+} as const++let count = 0++function genId() {+ count = (count + 1) % Number.MAX_SAFE_INTEGER+ return count.toString()+}++type ActionType = typeof actionTypes++type Action =+ | {+ type: ActionType["ADD_TOAST"]+ toast: ToasterToast+ }+ | {+ type: ActionType["UPDATE_TOAST"]+ toast: Partial<ToasterToast>+ }+ | {+ type: ActionType["DISMISS_TOAST"]+ toastId?: ToasterToast["id"]+ }+ | {+ type: ActionType["REMOVE_TOAST"]+ toastId?: ToasterToast["id"]+ }++interface State {+ toasts: ToasterToast[]+}++const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()++const addToRemoveQueue = (toastId: string) => {+ if (toastTimeouts.has(toastId)) {+ return+ }++ const timeout = setTimeout(() => {+ toastTimeouts.delete(toastId)+ dispatch({+ type: "REMOVE_TOAST",+ toastId: toastId,+ })+ }, TOAST_REMOVE_DELAY)++ toastTimeouts.set(toastId, timeout)+}++export const reducer = (state: State, action: Action): State => {+ switch (action.type) {+ case "ADD_TOAST":+ return {+ ...state,+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),+ }++ case "UPDATE_TOAST":+ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === action.toast.id ? { ...t, ...action.toast } : t+ ),+ }++ case "DISMISS_TOAST": {+ const { toastId } = action++ // ! Side effects ! - This could be extracted into a dismissToast() action,+ // but I'll keep it here for simplicity+ if (toastId) {+ addToRemoveQueue(toastId)+ } else {+ state.toasts.forEach((toast) => {+ addToRemoveQueue(toast.id)+ })+ }++ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === toastId || toastId === undefined+ ? {+ ...t,+ open: false,+ }+ : t+ ),+ }+ }+ case "REMOVE_TOAST":+ if (action.toastId === undefined) {+ return {+ ...state,+ toasts: [],+ }+ }+ return {+ ...state,+ toasts: state.toasts.filter((t) => t.id !== action.toastId),+ }+ }+}++const listeners: Array<(state: State) => void> = []++let memoryState: State = { toasts: [] }++function dispatch(action: Action) {+ memoryState = reducer(memoryState, action)+ listeners.forEach((listener) => {+ listener(memoryState)+ })+}++type Toast = Omit<ToasterToast, "id">++function toast({ ...props }: Toast) {+ const id = genId()++ const update = (props: ToasterToast) =>+ dispatch({+ type: "UPDATE_TOAST",+ toast: { ...props, id },+ })+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })++ dispatch({+ type: "ADD_TOAST",+ toast: {+ ...props,+ id,+ open: true,+ onOpenChange: (open) => {+ if (!open) dismiss()+ },+ },+ })++ return {+ id: id,+ dismiss,+ update,+ }+}++function useToast() {+ const [state, setState] = React.useState<State>(memoryState)++ React.useEffect(() => {+ listeners.push(setState)+ return () => {+ const index = listeners.indexOf(setState)+ if (index > -1) {+ listeners.splice(index, 1)+ }+ }+ }, [state])++ return {+ ...state,+ toast,+ dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),+ }+}++export { useToast, toast }diff --git a/openrewind/components/rewind/video.tsx b/openrewind/components/rewind/video.tsxnew file mode 100644index 000000000..2fedd23e0--- /dev/null+++ b/openrewind/components/rewind/video.tsx@@ -0,0 +1,134 @@+import { memo, useCallback, useEffect, useState } from "react";+import { cn } from "@/lib/utils";+import { getMediaFile } from '@/lib/actions/video-actions'++export const VideoComponent = memo(function VideoComponent({+ filePath,+ customDescription,+ className,+}: {+ filePath: string;+ customDescription?: string;+ className?: string;+}) {+ const [mediaSrc, setMediaSrc] = useState<string | null>(null);+ const [error, setError] = useState<string | null>(null);+ const [isAudio, setIsAudio] = useState(false);++ const sanitizeFilePath = useCallback((path: string): string => {+ const isWindows = navigator.userAgent.includes("Windows");+ if (isWindows) {+ return path; // no sanitization on windows+ }+ return path+ .replace(/^["']|["']$/g, "")+ .trim()+ .replace(/\//g, "/");+ }, []);++ const renderFileLink = () => (+ <div className="mt-2 text-center text-xs text-gray-500 truncate px-2" title={filePath}>+ {customDescription || filePath}+ </div>+ );++ const getMimeType = (path: string): string => {+ const ext = path.split(".").pop()?.toLowerCase();+ switch (ext) {+ case "mp4":+ return "video/mp4";+ case "webm":+ return "video/webm";+ case "ogg":+ return "video/ogg";+ case "mp3":+ return "audio/mpeg";+ case "wav":+ return "audio/wav";+ default:+ return isAudio ? "audio/mpeg" : "video/mp4";+ }+ };++ useEffect(() => {+ async function loadMedia() {+ try {+ console.log("Loading media:", filePath);+ const sanitizedPath = sanitizeFilePath(filePath);+ console.log("Sanitized path:", sanitizedPath);+ if (!sanitizedPath) {+ throw new Error("Invalid file path");+ }++ setIsAudio(+ sanitizedPath.toLowerCase().includes("input") ||+ sanitizedPath.toLowerCase().includes("output")+ );++ const { data, mimeType } = await getMediaFile(sanitizedPath);+ const binaryData = atob(data);+ const bytes = new Uint8Array(binaryData.length);+ for (let i = 0; i < binaryData.length; i++) {+ bytes[i] = binaryData.charCodeAt(i);+ }+ const blob = new Blob([bytes], { type: mimeType });+ setMediaSrc(URL.createObjectURL(blob));+ } catch (error) {+ console.warn("Failed to load media:", error);+ setError(+ `Failed to load media: ${+ error instanceof Error ? error.message : "Unknown error"+ }`+ );+ }+ }++ loadMedia();+ return () => {+ if (mediaSrc) URL.revokeObjectURL(mediaSrc);+ };+ }, [filePath, sanitizeFilePath]);++ if (error) {+ return (+ <div className="w-full p-4 bg-red-100 border border-red-300 rounded-md">+ <p className="text-red-700">{error}</p>+ {renderFileLink()}+ </div>+ );+ }++ if (!mediaSrc) {+ return (+ <div+ className={cn(+ "w-full h-48 bg-gray-200 animate-pulse rounded-md flex items-center justify-center",+ className+ )}+ >+ <span className="text-gray-500">Loading media...</span>+ </div>+ );+ }++ return (+ <div className={cn("w-full max-w-2xl text-center", className)}>+ {isAudio ? (+ <div className="bg-gray-100 p-4 rounded-md">+ <audio controls className="w-full">+ <source src={mediaSrc} type="audio/mpeg" />+ Your browser does not support the audio element.+ </audio>+ </div>+ ) : (+ <video controls className="w-full rounded-md">+ <source src={mediaSrc} type='video/mp4; codecs="hvc1"' />+ <source src={mediaSrc} type='video/mp4; codecs="hvec"' />+ <source src={mediaSrc} type="video/mp4" />+ Your browser does not support the video tag.+ </video>+ )}+ {renderFileLink()}+ </div>+ );+});diff --git a/openrewind/components/screenpipe-status.tsx b/openrewind/components/screenpipe-status.tsxnew file mode 100644index 000000000..8ff062c46--- /dev/null+++ b/openrewind/components/screenpipe-status.tsx@@ -0,0 +1,314 @@+"use client";+import React, { useState } from "react";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Badge } from "./ui/badge";+import { toast } from "./ui/use-toast";++import { Button } from "./ui/button";+import { Separator } from "./ui/separator";+import { useHealthCheck } from "@/lib/hooks/use-health-check";+import { Folder, Activity, Mic } from "lucide-react";+import { open as openUrl } from "@tauri-apps/plugin-shell";++import { LogFileButton } from "./log-file-button";+import { DevModeSettings } from "./dev-mode-settings";+import { cn } from "@/lib/utils";+import { useSettings } from "@/lib/hooks/use-settings";+import { useStatusDialog } from "@/lib/hooks/use-status-dialog";+import { PermissionButtons } from "./status/permission-buttons";++const HealthStatus = ({ className }: { className?: string }) => {+ const { health } = useHealthCheck();+ const { isOpen, open, close } = useStatusDialog();+ const { settings, getDataDir } = useSettings();+ const [localDataDir, setLocalDataDir] = useState("");++ const handleOpenDataDir = async () => {+ try {+ const dataDir = await getDataDir();+ await openUrl(dataDir);+ } catch (error) {+ console.error("failed to open data directory:", error);+ toast({+ title: "error",+ description: "failed to open data directory.",+ variant: "destructive",+ duration: 3000,+ });+ }+ };++ const getStatusColor = (+ status: string,+ frameStatus: string,+ audioStatus: string,+ uiStatus: string,+ audioDisabled: boolean,+ uiMonitoringEnabled: boolean+ ) => {+ if (status === "loading") return "bg-yellow-500";+ const isVisionOk = frameStatus === "ok" || frameStatus === "disabled";+ const isAudioOk =+ audioStatus === "ok" || audioStatus === "disabled" || audioDisabled;+ const isUiOk =+ uiStatus === "ok" || uiStatus === "disabled" || !uiMonitoringEnabled;+ return isVisionOk && isAudioOk && isUiOk ? "bg-green-500" : "bg-red-500";+ };++ const getStatusMessage = (+ status: string,+ frameStatus: string,+ audioStatus: string,+ uiStatus: string,+ audioDisabled: boolean,+ uiMonitoringEnabled: boolean+ ) => {+ if (status === "loading")+ return "screenpipe is starting up. this may take a few minutes...";++ let issues = [];+ if (frameStatus !== "ok" && frameStatus !== "disabled")+ issues.push("screen recording");+ if (!audioDisabled && audioStatus !== "ok" && audioStatus !== "disabled")+ issues.push("audio recording");+ if (uiMonitoringEnabled && uiStatus !== "ok" && uiStatus !== "disabled")+ issues.push("ui monitoring");++ if (issues.length === 0) return "screenpipe is running smoothly";+ return `there might be an issue with ${issues.join(" and ")}`;+ };++ const formatTimestamp = (timestamp: string | null) => {+ return timestamp ? new Date(timestamp).toLocaleString() : "n/a";+ };++ const statusColor = getStatusColor(+ health?.status ?? "",+ health?.frame_status ?? "",+ health?.audio_status ?? "",+ health?.ui_status ?? "",+ settings.disableAudio,+ settings.enableUiMonitoring+ );+ const statusMessage = getStatusMessage(+ health?.status ?? "",+ health?.frame_status ?? "",+ health?.audio_status ?? "",+ health?.ui_status ?? "",+ settings.disableAudio ?? "",+ settings.enableUiMonitoring+ );++ const handleOpenStatusDialog = async () => {+ try {+ const dir = await getDataDir();+ setLocalDataDir(dir);+ open();+ } catch (error) {+ console.error("failed to open status dialog:", error);+ toast({+ title: "error",+ description: "failed to open status dialog. please try again.",+ variant: "destructive",+ duration: 3000,+ });+ }+ };++ return (+ <>+ <Badge+ variant="default"+ className={cn(+ "cursor-pointer bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground"+ )}+ onClick={handleOpenStatusDialog}+ >+ {/* <Power className="mr-2 h-4 w-4" /> */}+ <Activity className="mr-2 h-4 w-4" />+ <span+ className={`ml-1 w-2 h-2 rounded-full ${statusColor} inline-block ${+ statusColor === "bg-red-500" ? "animate-pulse" : ""+ }`}+ />+ </Badge>+ <Dialog open={isOpen} onOpenChange={close}>+ <DialogContent+ className="max-w-4xl max-h-[90vh] flex flex-col p-8"+ aria-describedby="status-dialog-description"+ >+ <DialogHeader className="flex flex-row items-center justify-between">+ <DialogTitle>screenpipe status</DialogTitle>+ <div className="flex space-x-2">+ <LogFileButton size="10" />++ <Button+ variant="outline"+ onClick={handleOpenDataDir}+ className="flex-shrink-0"+ >+ <Folder className="h-4 w-4 mr-2" />+ view saved data+ </Button>+ </div>+ </DialogHeader>+ <div className="flex-grow overflow-auto">+ <p className="text-sm mb-4 font-semibold" aria-label="status-message-text">{statusMessage}</p>+ <div className="space-y-2 text-sm">+ {/* Screen Recording Status */}+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <div+ className={`w-2 h-2 rounded-full ${+ health?.frame_status === "ok"+ ? "bg-green-500"+ : "bg-red-500"+ }`}+ />+ <span className="text-sm">screen recording</span>+ <span className="text-sm text-muted-foreground">+ status: {health ? health.frame_status : "error"}, last+ update:{" "}+ {formatTimestamp(health?.last_frame_timestamp ?? null)}+ </span>+ </div>+ <div className="flex-shrink-0">+ <PermissionButtons type="screen" />+ </div>+ </div>++ {/* Audio Recording Status */}+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <div+ className={`w-2 h-2 rounded-full ${+ settings.disableAudio+ ? "bg-gray-400"+ : health?.audio_status === "ok"+ ? "bg-green-500"+ : "bg-red-500"+ }`}+ />+ <span className="text-sm">audio recording</span>+ <span className="text-sm text-muted-foreground">+ status:{" "}+ {settings.disableAudio+ ? "turned off"+ : health+ ? health.audio_status+ : "error"}+ , last update:{" "}+ {settings.disableAudio+ ? "n/a"+ : formatTimestamp(health?.last_audio_timestamp ?? null)}+ </span>+ </div>+ <div className="flex-shrink-0">+ <PermissionButtons type="audio" />+ </div>+ </div>++ {/* Audio Devices Status */}+ {!settings.disableAudio && health?.device_status_details && (+ <div className="mt-1 mb-2 relative">+ <div className="flex items-center">+ <Button+ variant="ghost"+ size="sm"+ className="h-6 p-2"+ onClick={() => {+ const audioDevicesEl = document.getElementById(+ "audio-devices-container"+ );+ if (audioDevicesEl) {+ audioDevicesEl.classList.toggle("hidden");+ }+ }}+ >+ <Mic className="h-4 w-4 mr-2" />+ <span className="text-xs font-medium">audio devices</span>+ <svg+ xmlns="http://www.w3.org/2000/svg"+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ className="ml-1 h-4 w-4"+ >+ <path d="m6 9 6 6 6-6" />+ </svg>+ </Button>+ </div>++ <div+ id="audio-devices-container"+ className="mt-1 max-h-32 bg-background z-10 overflow-y-auto absolute rounded border border-border p-2 hidden"+ >+ {health.device_status_details+ .split(", ")+ .map((deviceStatus: string, index: number) => {+ const isActive = deviceStatus.includes("active");++ return (+ <div+ key={index}+ className="flex items-center mb-1 last:mb-0"+ >+ <div+ className={`w-2 h-2 rounded-full mr-2 ${+ isActive ? "bg-green-500" : "bg-red-500"+ }`}+ ></div>+ <span className="text-xs">{deviceStatus}</span>+ </div>+ );+ })}+ </div>+ </div>+ )}++ {/* UI Monitoring Status */}+ {settings.enableUiMonitoring && (+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <div+ className={`w-2 h-2 rounded-full ${+ health?.ui_status === "ok"+ ? "bg-green-500"+ : "bg-red-500"+ }`}+ />+ <span className="text-sm">ui monitoring</span>+ <span className="text-sm text-muted-foreground">+ status: {health?.ui_status}, last update:{" "}+ {formatTimestamp(+ health ? health.last_ui_timestamp : "error"+ )}+ </span>+ </div>+ <div className="flex-shrink-0">+ <PermissionButtons type="accessibility" />+ </div>+ </div>+ )}+ </div>++ <Separator className="my-12" />+ <DevModeSettings localDataDir={localDataDir} />+ </div>+ </DialogContent>+ </Dialog>+ </>+ );+};++export default HealthStatus;diff --git a/openrewind/components/settings.tsx b/openrewind/components/settings.tsxnew file mode 100644index 000000000..adef58b5d--- /dev/null+++ b/openrewind/components/settings.tsx@@ -0,0 +1,289 @@+"use client";++import React, { useEffect, useState } from "react";+import { useSettings } from "@/lib/hooks/use-settings";+import {+ Brain,+ Video,+ Keyboard,+ User,+ ChevronDown,+ Plus,+ Trash2,+ Check,+ HardDrive,+ FolderInput,+ Settings as SettingsIcon,+} from "lucide-react";+import { DialogHeader, DialogTitle } from "./ui/dialog";+import { cn } from "@/lib/utils";+import { AccountSection } from "./settings/account-section";+import ShortcutSection from "./settings/shortcut-section";+import DiskUsage from "./settings/disk-usage";+import AISection from "./settings/ai-section";+import { AIPresets } from "./settings/ai-presets";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuSeparator,+ DropdownMenuTrigger,+} from "./ui/dropdown-menu";+import { Input } from "./ui/input";+import { Button } from "./ui/button";+import { relaunch } from "@tauri-apps/plugin-process";+import { invoke } from "@tauri-apps/api/core";+import { useProfiles } from "@/lib/hooks/use-profiles";+import { toast } from "./ui/use-toast";+import { DataImportSection } from "./settings/data-import-section";+import { Dialog, DialogContent } from "./ui/dialog";+import { useSettingsDialog } from "@/lib/hooks/use-settings-dialog";+import { RecordingSettings } from "./settings/recording-settings";+import GeneralSettings from "./settings/general-settings";++type SettingsSection =+ | "general"+ | "ai"+ | "shortcuts"+ | "recording"+ | "account"+ | "diskUsage"+ | "dataImport";++export function Settings() {+ const { isOpen, setIsOpen: setSettingsOpen } = useSettingsDialog();+ const {+ profiles,+ activeProfile,+ createProfile,+ deleteProfile,+ setActiveProfile,+ } = useProfiles();+ const [activeSection, setActiveSection] =+ useState<SettingsSection>("account");+ const [isCreatingProfile, setIsCreatingProfile] = useState(false);+ const [newProfileName, setNewProfileName] = useState("");+ const { settings } = useSettings();++ const handleProfileChange = async () => {+ toast({+ title: "Restarting Screenpipe",+ description: "Please wait while we restart Screenpipe",+ });+ await invoke("stop_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 1000));++ await invoke("spawn_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 1000));+ relaunch();+ };++ const handleCreateProfile = async () => {+ if (newProfileName.trim() === "default") {+ toast({+ title: "profile name is not allowed",+ description: "Please choose a different name for your profile",+ });+ return;+ }+ if (newProfileName.trim()) {+ console.log("creating profile", newProfileName.trim());+ createProfile({+ profileName: newProfileName.trim(),+ currentSettings: settings,+ });+ setActiveProfile(newProfileName.trim());+ setNewProfileName("");+ setIsCreatingProfile(false);+ handleProfileChange();+ }+ };++ const handleSwitchProfile = async (profileName: string) => {+ setActiveProfile(profileName);+ handleProfileChange();+ };++ const renderSection = () => {+ switch (activeSection) {+ case "general":+ return <GeneralSettings />;+ case "ai":+ return <AIPresets />;+ case "account":+ return <AccountSection />;+ case "recording":+ return <RecordingSettings />;+ case "shortcuts":+ return <ShortcutSection />;+ case "diskUsage":+ return <DiskUsage />;+ case "dataImport":+ return <DataImportSection />;+ }+ };++ useEffect(() => {+ console.log(profiles, "profiles");+ }, [profiles]);++ return (+ <Dialog modal={true} open={isOpen} onOpenChange={setSettingsOpen}>+ <DialogContent+ className="max-w-[80vw] w-full max-h-[80vh] h-full overflow-hidden p-0 [&>button]:hidden"+ onClick={(e) => e.stopPropagation()}+ >+ <div className="flex h-full">+ {/* Sidebar */}+ <div className="w-64 border-r bg-[#f3f3f3]">+ <DialogHeader className="flex items-center gap-4 ml-6 mt-4">+ <DialogTitle className="text-2xl font-bold">settings</DialogTitle>+ </DialogHeader>++ {/* Profile Selector */}+ <div className="px-4 py-3 border-b">+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <Button+ variant="outline"+ className="w-full justify-between font-mono text-sm"+ >+ {activeProfile}+ <ChevronDown className="h-4 w-4 opacity-50" />+ </Button>+ </DropdownMenuTrigger>+ <DropdownMenuContent className="w-56">+ {profiles?.map((profile) => (+ <DropdownMenuItem+ key={profile}+ className="justify-between"+ onSelect={() => handleSwitchProfile(profile)}+ >+ <span className="font-mono">{profile}</span>+ {activeProfile === profile && (+ <Check className="h-4 w-4" />+ )}+ {profile !== "default" && (+ <Trash2+ className="h-4 w-4 opacity-50 hover:opacity-100"+ onClick={(e) => {+ e.stopPropagation();+ deleteProfile(profile);+ }}+ />+ )}+ </DropdownMenuItem>+ ))}+ <DropdownMenuSeparator />+ {isCreatingProfile ? (+ <div className="p-2">+ <form+ onSubmit={(e) => {+ e.preventDefault();+ handleCreateProfile();+ }}+ className="flex gap-2"+ >+ <Input+ value={newProfileName}+ onChange={(e) => setNewProfileName(e.target.value)}+ placeholder="profile name"+ className="h-8 font-mono"+ autoFocus+ />+ <Button+ type="submit"+ size="sm"+ disabled={!newProfileName.trim()}+ >+ <Check className="h-4 w-4" />+ </Button>+ </form>+ </div>+ ) : (+ <DropdownMenuItem+ onSelect={(e) => {+ e.preventDefault();+ setIsCreatingProfile(true);+ }}+ className="gap-2"+ >+ <Plus className="h-4 w-4" />+ <span>new profile</span>+ </DropdownMenuItem>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>++ {/* Existing Settings Navigation */}+ <div className="flex flex-col space-y-1 p-4">+ {[+ {+ id: "account",+ label: "account",+ icon: <User className="h-4 w-4" />,+ },+ {+ id: "general",+ label: "general",+ icon: <SettingsIcon className="h-4 w-4" />,+ },+ {+ id: "ai",+ label: "ai settings",+ icon: <Brain className="h-4 w-4" />,+ },+ {+ id: "recording",+ label: "recording",+ icon: <Video className="h-4 w-4" />,+ },+ {+ id: "shortcuts",+ label: "shortcuts",+ icon: <Keyboard className="h-4 w-4" />,+ },+ {+ id: "diskUsage",+ label: "disk usage",+ icon: <HardDrive className="h-4 w-4" />,+ },+ {+ id: "dataImport",+ label: "data import",+ icon: <FolderInput className="h-4 w-4" />,+ },+ ].map((section) => (+ <button+ key={section.id}+ onClick={() =>+ setActiveSection(section.id as SettingsSection)+ }+ className={cn(+ "flex items-center space-x-2 px-4 py-1.5 rounded-lg transition-colors",+ activeSection === section.id+ ? "bg-black/90 text-white"+ : "hover:bg-black/10",+ )}+ >+ {section.icon}+ <span>{section.label}</span>+ </button>+ ))}+ </div>+ </div>++ {/* Content */}+ <div className="flex-1 flex flex-col h-full max-h-[80vh]">+ <div className="flex-1 overflow-y-auto px-4">+ <div className="max-h-full">{renderSection()}</div>+ </div>+ </div>+ </div>+ </DialogContent>+ </Dialog>+ );+}diff --git a/openrewind/components/settings/account-section.tsx b/openrewind/components/settings/account-section.tsxnew file mode 100644index 000000000..cb3ad15bf--- /dev/null+++ b/openrewind/components/settings/account-section.tsx@@ -0,0 +1,734 @@+"use client";+import React, { useEffect, useState } from "react";+import { Button } from "@/components/ui/button";+import { useSettings } from "@/lib/hooks/use-settings";+import { Separator } from "@/components/ui/separator";+import { cn } from "@/lib/utils";+import {+ RefreshCw,+ UserCog,+ ExternalLinkIcon,+ Key,+ EyeOff,+ Eye,+ ArrowUpRight,+ BookOpen,+ X,+} from "lucide-react";+import { toast } from "@/components/ui/use-toast";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { Card } from "../ui/card";+import { onOpenUrl } from "@tauri-apps/plugin-deep-link";+import { invoke } from "@tauri-apps/api/core";+import { PricingToggle } from "./pricing-toggle";+import { Label } from "@/components/ui/label";+import { Textarea } from "@/components/ui/textarea";+import { Input } from "@/components/ui/input";+import posthog from "posthog-js";+import { platform } from "@tauri-apps/plugin-os";+import { Dialog, DialogTrigger, DialogContent } from "@/components/ui/dialog";++function PlanCard({+ title,+ price,+ features,+ isActive,+ isSelected,+ onSelect,+}: {+ title: string;+ price: string;+ features: (string | JSX.Element)[];+ isActive?: boolean;+ isSelected?: boolean;+ onSelect?: () => void;+}) {+ return (+ <Card+ className={cn(+ "rounded-xl border px-6 py-4 flex items-start gap-6 cursor-pointer transition-all",+ isActive+ ? "border-gray-500/50 bg-gray-500/5"+ : "border-border/50 bg-secondary/5",+ isSelected && !isActive && "border-primary ring-1 ring-primary",+ !isActive && "hover:border-primary/50"+ )}+ onClick={onSelect}+ >+ <div className="space-y-2 min-w-[200px]">+ <div className="flex items-center justify-between">+ <h3 className="text-xl font-medium opacity-80">{title}</h3>+ </div>+ <p className="text-lg">{price}</p>+ </div>++ <ul className="flex-grow space-y-2">+ {features.map((feature, i) => (+ <li+ key={i}+ className="flex items-center text-sm text-muted-foreground"+ >+ <span className="mr-2">•</span>+ {feature}+ </li>+ ))}+ </ul>+ </Card>+ );+}++export function AccountSection() {+ const { settings, updateSettings, loadUser } = useSettings();+ const [isConnectingStripe, setIsConnectingStripe] = useState(false);+ const [showApiKey, setShowApiKey] = useState(false);+ const [isAnnual, setIsAnnual] = useState(true);+ const [profileForm, setProfileForm] = useState({+ bio: settings.user?.bio || "",+ github_username: settings.user?.github_username || "",+ website: settings.user?.website || "",+ contact: settings.user?.contact || "",+ });++ useEffect(() => {+ if (!settings.user?.email) {+ posthog.capture("app_login", {+ email: settings.user?.email,+ });+ }++ const setupDeepLink = async () => {+ const unsubscribeDeepLink = await onOpenUrl(async (urls) => {+ console.log("received deep link urls:", urls);+ for (const url of urls) {+ // eg stripe / dev flow+ if (url.includes("stripe-connect")) {+ console.log("stripe connect url:", url);+ if (url.includes("/return")) {+ if (settings.user) {+ updateSettings({+ user: {+ ...settings.user,+ stripe_connected: true,+ },+ });+ loadUser(settings.user.token!, true);+ }+ toast({+ title: "stripe connected!",+ description: "your account is now set up for payments",+ });+ } else if (url.includes("/refresh")) {+ toast({+ title: "stripe setup incomplete",+ description: "please complete the stripe onboarding process",+ });+ }+ }+ }+ });+ return unsubscribeDeepLink;+ };++ let deepLinkUnsubscribe: (() => void) | undefined;+ setupDeepLink().then((unsubscribe) => {+ deepLinkUnsubscribe = unsubscribe;+ });++ return () => {+ if (deepLinkUnsubscribe) deepLinkUnsubscribe();+ };+ }, [settings.user?.token, updateSettings]);++ const clientRefId = `${settings.user?.id}&customer_email=${encodeURIComponent(+ settings.user?.email ?? ""+ )}`;++ const plans = [+ {+ title: settings.user?.cloud_subscribed+ ? "your subscription"+ : "subscription",+ price: settings.user?.cloud_subscribed+ ? "active"+ : isAnnual+ ? "$200/year"+ : "$20/mo",+ features: settings.user?.cloud_subscribed+ ? [+ "unlimited screenpipe cloud",+ "priority support",+ <a+ key="portal"+ href={`https://billing.stripe.com/p/login/3cs6pT8Qbd846yc9AA?email=${encodeURIComponent(+ settings.user?.email || ""+ )}`}+ className="text-primary hover:underline cursor-pointer"+ onClick={(e) => {+ e.preventDefault();+ openUrl(+ `https://billing.stripe.com/p/login/3cs6pT8Qbd846yc9AA?email=${encodeURIComponent(+ settings.user?.email || ""+ )}`+ );+ }}+ >+ manage subscription+ </a>,+ ]+ : [+ "unlimited screenpipe cloud",+ "priority support",+ isAnnual ? "17% discount applied" : "switch to annual for 17% off",+ ],+ url: isAnnual+ ? "https://buy.stripe.com/eVadRzfOCgAi5W0fZu" ++ `?client_reference_id=${clientRefId}`+ : "https://buy.stripe.com/7sIdRzbym4RA98c7sX" ++ `?client_reference_id=${clientRefId}`,+ },+ {+ title: "enterprise",+ price: "book a call",+ features: [+ "enterprise screen search engine",+ "dedicated support",+ "consulting",+ "custom features",+ ],+ url: "https://cal.com/louis030195/screenpipe-for-businesses",+ },+ ];++ const handleConnectStripe = async () => {+ setIsConnectingStripe(true);+ try {+ // const host = `${BASE_URL}/api/dev-stripe`;+ const host = `https://screenpi.pe/api/dev/stripe-connect`;+ const response = await fetch(host, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${settings.user?.token}`,+ },+ });++ const { url } = await response.json();+ await openUrl(url);+ } catch (error) {+ console.warn("failed to connect stripe", error);+ toast({+ title: "failed to connect stripe",+ description: "please try again later",+ variant: "destructive",+ });+ } finally {+ setIsConnectingStripe(false);+ }+ };++ const updateProfile = async (updates: Partial<typeof settings.user>) => {+ if (!settings.user?.token) return;++ try {+ const response = await fetch(+ "https://screenpi.pe/api/plugins/dev-profile",+ {+ method: "PUT",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${settings.user.api_key}`,+ },+ body: JSON.stringify(updates),+ }+ );++ if (!response.ok) throw new Error("failed to update profile");+ } catch (error) {+ console.error("failed to update profile:", error);+ toast({+ title: "update failed",+ description: "couldn't save your profile changes",+ variant: "destructive",+ });+ }+ };++ // Initialize form only once when user data first loads+ useEffect(() => {+ if (+ settings.user &&+ !profileForm.bio &&+ !profileForm.github_username &&+ !profileForm.website &&+ !profileForm.contact+ ) {+ setProfileForm({+ bio: settings.user.bio || "",+ github_username: settings.user.github_username || "",+ website: settings.user.website || "",+ contact: settings.user.contact || "",+ });+ }+ }, [settings.user]); // Only run when settings.user changes++ return (+ <div className="w-full space-y-6 py-4">+ <div className="flex items-center justify-between">+ <div className="space-y-2">+ <h1 className="text-2xl font-bold">account settings</h1>+ {settings.user?.token ? (+ <p className="text-sm text-muted-foreground flex items-center gap-2">+ <span className="inline-flex h-2 w-2 rounded-full bg-green-500" />+ logged in as {settings.user.email}+ </p>+ ) : (+ <p className="text-sm text-muted-foreground flex items-center gap-2">+ <span className="inline-flex h-2 w-2 rounded-full bg-yellow-500" />+ not logged in - some features will be limited+ </p>+ )}+ </div>+ <div className="flex gap-2">+ {settings.user?.token ? (+ <>+ <Button+ variant="outline"+ size="sm"+ onClick={() => openUrl("https://accounts.screenpi.pe/user")}+ className="hover:bg-secondary/80"+ >+ manage account <UserCog className="w-4 h-4 ml-2" />+ </Button>+ <Button+ variant="outline"+ size="sm"+ onClick={() => {+ updateSettings({ user: { token: undefined } });+ toast({+ title: "logged out",+ description: "you have been logged out",+ });+ }}+ className="hover:bg-secondary/80"+ >+ logout <ExternalLinkIcon className="w-4 h-4 ml-2" />+ </Button>+ </>+ ) : (+ <Button+ variant="outline"+ size="sm"+ onClick={() => openUrl("https://screenpi.pe/login")}+ className="hover:bg-secondary/80"+ >+ login <ExternalLinkIcon className="w-4 h-4 ml-2" />+ </Button>+ )}+ </div>+ </div>++ <div className="space-y-8">+ <div className="space-y-6">+ <div className="grid gap-4">+ <div className="space-y-6">+ <h4 className="text-lg font-medium">plans</h4>++ <PricingToggle isAnnual={isAnnual} onToggle={setIsAnnual} />++ <div className="flex flex-col gap-4">+ {plans.map((plan) => (+ <PlanCard+ key={plan.title}+ title={plan.title}+ price={plan.price}+ features={plan.features}+ onSelect={async () => {+ if (plan.title.toLowerCase() === "enterprise") {+ posthog.capture("enterprise_plan_selected");+ openUrl(plan.url);+ return;+ }++ if (!settings.user?.id) {+ toast({+ title: "not logged in",+ description: "please login first to subscribe",+ variant: "destructive",+ });+ return;+ }+ if (!settings.user?.cloud_subscribed) {+ posthog.capture("cloud_plan_selected");+ openUrl(plan.url);+ }+ }}+ />+ ))}+ </div>+ </div>+ </div>+ </div>++ {settings.user?.token && (+ <>+ <Separator className="my-6" />++ <div className="flex items-center justify-between">+ <div className="space-y-1.5">+ <h4 className="text-lg font-medium">developer access</h4>+ <p className="text-sm text-muted-foreground">+ get api key to start building pipes+ </p>+ </div>+ </div>++ <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">+ <div className="flex items-center justify-between">+ <div className="flex items-center space-x-3">+ <div className="w-8 h-8 flex items-center justify-center bg-gray-900/10 rounded-md">+ <Key className="w-4 h-4 text-gray-900/60" />+ </div>+ <div className="space-y-1">+ <div className="flex items-center gap-2">+ <div className="text-sm font-medium">api key</div>+ {settings.user?.api_key && (+ <Button+ variant="ghost"+ size="icon"+ className="h-4 w-4 hover:bg-transparent"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-3 w-3" />+ ) : (+ <Eye className="h-3 w-3" />+ )}+ </Button>+ )}+ </div>+ {settings.user?.api_key ? (+ <p className="text-xs font-mono text-muted-foreground">+ {showApiKey+ ? settings.user.api_key+ : settings.user.api_key.replace(/./g, "*")}+ </p>+ ) : (+ <p className="text-xs text-muted-foreground">+ no api key yet - generate one to start building+ </p>+ )}+ </div>+ </div>+ {settings.user?.api_key ? (+ <Button+ variant="secondary"+ size="sm"+ className="h-9"+ onClick={() => {+ navigator.clipboard.writeText(settings.user.api_key!);+ toast({+ title: "copied to clipboard",+ description:+ "your api key has been copied to your clipboard",+ });+ }}+ >+ copy+ </Button>+ ) : (+ <Button+ variant="secondary"+ size="sm"+ className="h-9"+ onClick={async () => {+ try {+ const response = await fetch(+ "https://screenpi.pe/api/dev/create",+ {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${settings.user?.token}`,+ },+ }+ );++ if (!response.ok)+ throw new Error("failed to generate api key");++ const { api_key } = await response.json();+ if (settings.user) {+ const updatedUser = { ...settings.user, api_key };+ updateSettings({ user: updatedUser });+ toast({+ title: "api key generated",+ description: "you can now start building pipes",+ });+ }+ } catch (error) {+ console.error("failed to generate api key:", error);+ toast({+ title: "generation failed",+ description: "couldn't generate api key",+ variant: "destructive",+ });+ }+ }}+ >+ generate+ </Button>+ )}+ </div>+ </div>+ <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">+ <div className="flex items-center justify-between">+ <div className="flex items-center space-x-3">+ <div className="w-8 h-8 flex items-center justify-center bg-gray-900/10 rounded-md">+ <BookOpen className="w-4 h-4 text-gray-900/60" />+ </div>+ <div className="space-y-1">+ <div className="text-sm font-medium">documentation</div>+ <p className="text-xs text-muted-foreground">+ learn how to build and publish custom pipes+ </p>+ </div>+ </div>+ <a+ href="https://docs.screenpi.pe/plugins"+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex items-center gap-2 px-3 py-2 text-xs font-medium transition-colors rounded-md bg-secondary hover:bg-secondary/80"+ >+ read docs+ <ArrowUpRight className="w-3 h-3" />+ </a>+ </div>+ </div>+ <div className="p-5 border border-border/50 rounded-lg bg-background/50 hover:bg-background/80 transition-colors">+ <div className="flex items-center justify-between">+ <div className="flex items-center space-x-3">+ <div className="w-8 h-8 flex items-center justify-center bg-[#635BFF]/10 rounded-md">+ {/* eslint-disable-next-line @next/next/no-img-element */}+ <img+ className="rounded-md"+ src="https://images.stripeassets.com/fzn2n1nzq965/HTTOloNPhisV9P4hlMPNA/cacf1bb88b9fc492dfad34378d844280/Stripe_icon_-_square.svg?q=80&w=1082"+ alt=""+ />+ </div>+ <div className="space-y-1">+ <div className="text-sm font-medium flex items-center gap-2">+ stripe connect+ {settings.user?.stripe_connected &&+ settings.user?.stripe_account_status && (+ <div+ className={cn(+ "px-2 py-0.5 text-xs rounded-full",+ settings.user.stripe_account_status === "pending"+ ? "bg-yellow-500/10 text-yellow-500"+ : "bg-green-500/10 text-green-500"+ )}+ title={+ settings.user.stripe_account_status === "pending"+ ? "go to stripe and complete your account verification (bank account, id verification...)"+ : "your stripe account is fully verified and you can start receiving earnings from your pipes"+ }+ >+ {settings.user.stripe_account_status}+ </div>+ )}+ </div>+ <p className="text-xs text-muted-foreground">+ receive earnings from your pipes (+ <a+ href="https://discord.gg/dU9EBuw7Uq"+ className="underline hover:text-primary"+ target="_blank"+ >+ dm @louis030195+ </a>{" "}+ for any questions)+ </p>+ </div>+ </div>+ {settings.user?.stripe_connected ? (+ <div className="flex gap-2">+ <Button+ variant="secondary"+ size="sm"+ className="h-9"+ onClick={() => openUrl("https://dashboard.stripe.com/")}+ >+ manage+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-9 w-9"+ onClick={() => {+ if (settings.user) {+ const updatedUser = {+ ...settings.user,+ stripe_connected: false,+ };+ updateSettings({ user: updatedUser });+ toast({+ title: "stripe disconnected",+ description:+ "your stripe account has been disconnected",+ });+ }+ }}+ >+ <X className="h-4 w-4" />+ </Button>+ </div>+ ) : (+ <Button+ variant="secondary"+ size="sm"+ onClick={handleConnectStripe}+ className="h-9"+ disabled={isConnectingStripe || !settings.user?.id}+ >+ {isConnectingStripe ? (+ <RefreshCw className="w-4 h-4 animate-spin" />+ ) : (+ "connect"+ )}+ </Button>+ )}+ </div>+ </div>+ </>+ )}++ {settings.user?.api_key && (+ <>+ <Separator className="my-6" />++ <div className="flex items-center justify-between">+ <div className="space-y-1.5">+ <h4 className="text-lg font-medium">developer profile</h4>+ <p className="text-sm text-muted-foreground">+ customize your public developer profile, this will help us+ approve your pipe faster and help you get more users+ </p>+ </div>+ </div>++ <div className="space-y-6">+ <div className="grid gap-4">+ <div className="grid gap-2">+ <Label htmlFor="bio">bio</Label>+ <Textarea+ id="bio"+ placeholder="tell us about yourself..."+ className="resize-none"+ rows={3}+ value={profileForm.bio}+ disabled={!settings.user?.api_key}+ onChange={(e) =>+ setProfileForm((prev) => ({+ ...prev,+ bio: e.target.value,+ }))+ }+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ />+ </div>++ <div className="grid gap-2">+ <Label htmlFor="github">github username</Label>+ <Input+ id="github"+ placeholder="username"+ disabled={!settings.user?.api_key}+ value={profileForm.github_username}+ onChange={(e) =>+ setProfileForm((prev) => ({+ ...prev,+ github_username: e.target.value,+ }))+ }+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ />+ </div>++ <div className="grid gap-2">+ <Label htmlFor="website">website</Label>+ <Input+ id="website"+ type="url"+ placeholder="https://..."+ value={profileForm.website}+ disabled={!settings.user?.api_key}+ onChange={(e) =>+ setProfileForm((prev) => ({+ ...prev,+ website: e.target.value,+ }))+ }+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ />+ </div>++ <div className="grid gap-2">+ <Label htmlFor="contact">additional contact</Label>+ <Input+ id="contact"+ placeholder="discord, twitter, etc..."+ value={profileForm.contact}+ disabled={!settings.user?.api_key}+ onChange={(e) =>+ setProfileForm((prev) => ({+ ...prev,+ contact: e.target.value,+ }))+ }+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ />+ </div>++ <div className="flex justify-end">+ <Button+ className="w-full"+ disabled={!settings.user?.api_key}+ onClick={async () => {+ if (!settings.user) return;++ await updateProfile(profileForm);++ // Update the main settings after successful profile update+ if (settings.user) {+ const updatedUser = {+ ...settings.user,+ ...profileForm,+ };+ updateSettings({ user: updatedUser });+ }++ toast({+ title: "profile updated",+ description: "your developer profile has been saved",+ });+ }}+ >+ save changes+ </Button>+ </div>+ </div>+ </div>+ </>+ )}+ </div>+ </div>+ );+}diff --git a/openrewind/components/settings/ai-presets.tsx b/openrewind/components/settings/ai-presets.tsxnew file mode 100644index 000000000..75012e6f9--- /dev/null+++ b/openrewind/components/settings/ai-presets.tsx@@ -0,0 +1,1012 @@+import { useEffect, useMemo, useState } from "react";+import { Button } from "../ui/button";+import {+ AIPreset,+ DEFAULT_PROMPT,+ useSettings,+} from "@/lib/hooks/use-settings";+import { AIModel, AIProviderCard, OllamaModel } from "./ai-section";+import { Label } from "../ui/label";+import { Input } from "../ui/input";+import {+ ArrowLeft,+ ChevronsUpDown,+ Eye,+ EyeOff,+ HelpCircle,+ Loader2,+ Plus,+ RefreshCw,+ Settings2,+ Trash2,+ XIcon,+} from "lucide-react";+import { Textarea } from "../ui/textarea";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "../ui/tooltip";+import { Slider } from "../ui/slider";+import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+} from "../ui/command";+import { Badge } from "../ui/badge";+import { toast } from "../ui/use-toast";+import { Card } from "../ui/card";+import { AIProviderType } from "@screenpipe/browser";+import {+ AlertDialog,+ AlertDialogAction,+ AlertDialogCancel,+ AlertDialogContent,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogTitle,+ AlertDialogTrigger,+} from "@/components/ui/alert-dialog";+import { cn } from "@/lib/utils";++const AISection = ({+ preset,+ setDialog,+ isDuplicating,+}: {+ preset?: AIPreset;+ setDialog: (value: boolean) => void;+ isDuplicating?: boolean;+}) => {+ const { settings, updateSettings } = useSettings();+ const [settingsPreset, setSettingsPreset] = useState<+ Partial<AIPreset> | undefined+ >(preset);+ const [isLoading, setIsLoading] = useState(false);+ const [showApiKey, setShowApiKey] = useState(false);+ const [nameError, setNameError] = useState<string | null>(null);++ const validateName = (name: string) => {+ if (!name) {+ setNameError("name is required");+ return false;+ }+ if (name.trim().toLowerCase().endsWith("copy")) {+ setNameError("name cannot end with 'copy'");+ return false;+ }+ if (+ settings.aiPresets.find(+ (p) => p.id.toLowerCase() === name.toLowerCase() && p.id !== preset?.id+ )+ ) {+ setNameError("name already exists");+ return false;+ }+ setNameError(null);+ return true;+ };++ const updateStoreSettings = async () => {+ setIsLoading(true);+ try {+ if (!settingsPreset?.id) {+ toast({+ title: "please enter a name",+ description: "name is required",+ variant: "destructive",+ });+ return;+ }++ if (!validateName(settingsPreset.id)) {+ return;+ }++ // If this is the first preset, make it default+ if (!settings.aiPresets.length) {+ const defaultPreset = {+ ...settingsPreset,+ prompt: settingsPreset?.prompt || DEFAULT_PROMPT,+ maxContextChars: settingsPreset?.maxContextChars || 512000,+ defaultPreset: true,+ } as AIPreset;++ await updateSettings({+ aiModel: defaultPreset?.model,+ aiProviderType: defaultPreset?.provider,+ customPrompt: defaultPreset?.prompt,+ aiMaxContextChars: defaultPreset?.maxContextChars,+ aiUrl: defaultPreset?.url,+ ...("apiKey" in defaultPreset && {+ openaiApiKey: defaultPreset.apiKey,+ }),+ aiPresets: [defaultPreset],+ });++ toast({+ title: "preset created",+ description: "default preset has been created",+ });++ setDialog(false);+ return;+ }++ // Handle update case+ if (preset && !isDuplicating) {+ const updatedPresets = settings.aiPresets.map((p) => {+ if (p.id === preset.id) {+ const updatedPreset = {+ ...settingsPreset,+ prompt: settingsPreset?.prompt || DEFAULT_PROMPT,+ maxContextChars: settingsPreset?.maxContextChars || 512000,+ defaultPreset: p.defaultPreset,+ } as AIPreset;++ // If this is the default preset, update global settings too+ if (p.defaultPreset) {+ updateSettings({+ aiModel: updatedPreset.model,+ aiProviderType: updatedPreset.provider,+ customPrompt: updatedPreset.prompt,+ aiMaxContextChars: updatedPreset.maxContextChars,+ aiUrl: updatedPreset.url,+ ...("apiKey" in updatedPreset && {+ openaiApiKey: updatedPreset.apiKey,+ }),+ });+ }++ return updatedPreset;+ }+ return p;+ });++ await updateSettings({+ aiPresets: updatedPresets,+ });++ toast({+ title: "preset updated",+ description: "changes have been saved",+ });+ } else {+ // Handle create case (new preset or duplicate)+ const newPreset = {+ ...settingsPreset,+ prompt: settingsPreset?.prompt || DEFAULT_PROMPT,+ maxContextChars: settingsPreset?.maxContextChars || 512000,+ defaultPreset: false,+ } as AIPreset;++ await updateSettings({+ aiPresets: [...settings.aiPresets, newPreset],+ });++ toast({+ title: isDuplicating ? "preset duplicated" : "preset created",+ description: isDuplicating+ ? "duplicate has been saved"+ : "new preset has been added",+ });+ }++ setDialog(false);+ } catch (error) {+ toast({+ title: "error saving preset",+ description: "something went wrong while saving the preset",+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ }+ };++ const updateSettingsPreset = (presetsObject: Partial<AIPreset>) => {+ setSettingsPreset({ ...settingsPreset, ...presetsObject });+ };++ const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const value = e.target.value;+ updateSettingsPreset({+ apiKey: value,+ });+ };++ const handleMaxContextCharsChange = (value: number[]) => {+ updateSettingsPreset({+ maxContextChars: value[0],+ });+ };++ const handleCustomPromptChange = (+ e: React.ChangeEvent<HTMLTextAreaElement>+ ) => {+ updateSettingsPreset({+ prompt: e.target.value ?? DEFAULT_PROMPT,+ });+ };++ const handleResetCustomPrompt = () => {+ updateSettingsPreset({+ prompt: DEFAULT_PROMPT,+ });+ };++ const handleAiProviderChange = (newValue: AIPreset["provider"]) => {+ let newUrl = "";+ let newModel = settingsPreset?.model;++ switch (newValue) {+ case "openai":+ newUrl = "https://api.openai.com/v1";+ break;+ case "native-ollama":+ newUrl = "http://localhost:11434/v1";+ break;+ case "screenpipe-cloud":+ newUrl = "https://ai-proxy.i-f9f.workers.dev/v1";+ break;+ case "custom":+ newUrl = settingsPreset?.url || "";+ break;+ }++ updateSettingsPreset({+ provider: newValue,+ url: newUrl,+ model: newModel,+ });+ };++ const isApiKeyRequired =+ settingsPreset?.url !== "https://ai-proxy.i-f9f.workers.dev/v1" &&+ settingsPreset?.url !== "http://localhost:11434/v1" &&+ settingsPreset?.url !== "embedded";++ const [models, setModels] = useState<AIModel[]>([]);+ const [isLoadingModels, setIsLoadingModels] = useState(false);++ const fetchModels = async () => {+ setIsLoadingModels(true);+ console.log(settingsPreset);+ try {+ switch (settingsPreset?.provider) {+ case "screenpipe-cloud":+ const response = await fetch(+ "https://ai-proxy.i-f9f.workers.dev/v1/models",+ {+ headers: {+ Authorization: `Bearer ${settings.user?.id || ""}`,+ },+ }+ );+ if (!response.ok) throw new Error("Failed to fetch models");+ const data = await response.json();+ setModels(data.models);+ break;++ case "native-ollama":+ const ollamaResponse = await fetch("http://localhost:11434/api/tags");+ if (!ollamaResponse.ok)+ throw new Error("Failed to fetch Ollama models");+ const ollamaData = (await ollamaResponse.json()) as {+ models: OllamaModel[];+ };+ setModels(+ (ollamaData.models || []).map((model) => ({+ id: model.name,+ name: model.name,+ provider: "ollama",+ }))+ );+ break;++ case "openai":+ const r = await fetch("https://api.openai.com/v1/models", {+ headers: {+ Authorization: `Bearer ${settingsPreset?.apiKey}`,+ },+ });+ if (!r.ok) {+ // TODO better UX for this+ toast({+ title: "error fetching models",+ description: "please check your api key",+ variant: "destructive",+ });+ return;+ }+ const d = await r.json();+ console.log(d);+ const models = d.data.map((model: { id: string }) => ({+ id: model.id,+ name: model.id,+ provider: "openai",+ }));+ setModels(models);+ break;+ case "custom":+ try {+ const customResponse = await fetch(+ `${settingsPreset?.url}/models`,+ {+ headers: settingsPreset.apiKey+ ? { Authorization: `Bearer ${settingsPreset?.apiKey}` }+ : {},+ }+ );+ if (!customResponse.ok) {+ console.warn("failed to fetch custom models");+ return;+ }+ const customData = await customResponse.json();+ console.log(customData);+ setModels(+ (customData.data || []).map((model: { id: string }) => ({+ id: model.id,+ name: model.id,+ provider: "custom",+ }))+ );+ } catch (error) {+ console.error(+ "Failed to fetch custom models, allowing manual input:",+ error+ );+ setModels([]);+ }+ break;++ default:+ setModels([]);+ }+ } catch (error) {+ console.error(+ `Failed to fetch models for ${settingsPreset?.provider}:`,+ error+ );+ setModels([]);+ } finally {+ setIsLoadingModels(false);+ }+ };++ const apiKey = useMemo(() => {+ if (settingsPreset && "apiKey" in settingsPreset) {+ return settingsPreset?.apiKey;+ }+ return "";+ }, [settingsPreset]);++ useEffect(() => {+ console.log("hello");+ if (+ (settingsPreset?.provider === "openai" ||+ settingsPreset?.provider === "custom") &&+ !settingsPreset?.apiKey+ )+ return;+ fetchModels();+ }, [settingsPreset?.provider, settingsPreset?.url, apiKey]);++ return (+ <div className="w-full space-y-6 py-4">+ <div className="flex flex-col gap-2">+ <Button+ className="w-max flex gap-2"+ variant={"link"}+ onClick={() => setDialog(false)}+ >+ <ArrowLeft className="w-4 h-4" /> back+ </Button>+ <h1 className="text-2xl font-bold">+ {preset ? "update preset" : "create preset"}+ </h1>+ </div>+ <div className="w-full">+ <div className="flex flex-col gap-2">+ <Label htmlFor="aiUrl" className="min-w-[80px]">+ ai provider+ </Label>+ </div>+ <div className="grid grid-cols-2 gap-4 mb-4 mt-4">+ <AIProviderCard+ type="openai"+ title="openai"+ description="use your own openai api key for gpt-4 and other models"+ imageSrc="/images/openai.png"+ selected={settingsPreset?.provider === "openai"}+ onClick={() => handleAiProviderChange("openai")}+ />++ <AIProviderCard+ type="screenpipe-cloud"+ title="screenpipe cloud"+ description="use openai, anthropic and google models without worrying about api keys or usage"+ imageSrc="/images/screenpipe.png"+ selected={settingsPreset?.provider === "screenpipe-cloud"}+ onClick={() => handleAiProviderChange("screenpipe-cloud")}+ disabled={!settings.user}+ warningText={+ !settings.user+ ? "login required"+ : !settings.user?.credits?.amount+ ? "requires credits"+ : undefined+ }+ />++ <AIProviderCard+ type="native-ollama"+ title="ollama"+ description="run ai models locally using your existing ollama installation"+ imageSrc="/images/ollama.png"+ selected={settingsPreset?.provider === "native-ollama"}+ onClick={() => handleAiProviderChange("native-ollama")}+ />++ <AIProviderCard+ type="custom"+ title="custom"+ description="connect to your own ai provider or self-hosted models"+ imageSrc="/images/custom.png"+ selected={settingsPreset?.provider === "custom"}+ onClick={() => handleAiProviderChange("custom")}+ />+ </div>+ </div>+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4">+ <Label htmlFor="preset_id" className="flex items-center gap-2">+ name+ {nameError && (+ <span className="text-xs text-destructive font-normal">+ {nameError}+ </span>+ )}+ </Label>+ <Input+ id="preset_id"+ value={settingsPreset?.id}+ onChange={(e) => {+ const namePreset = e.target.value;+ validateName(namePreset);+ updateSettingsPreset({ id: namePreset });+ }}+ className={cn(+ "flex-grow",+ nameError && "border-destructive focus-visible:ring-destructive"+ )}+ placeholder="enter name"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ type="text"+ disabled={!!preset && !isDuplicating && preset.id !== undefined}+ />+ </div>+ </div>++ {settingsPreset?.provider === "custom" && (+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4">+ <Label htmlFor="customAiUrl">custom url</Label>+ <Input+ id="customAiUrl"+ value={settingsPreset?.url}+ onChange={(e) => {+ const newUrl = e.target.value;+ updateSettingsPreset({ url: newUrl });+ }}+ className="flex-grow"+ placeholder="enter custom ai url"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ type="text"+ />+ </div>+ </div>+ )}+ {isApiKeyRequired &&+ (settingsPreset?.provider === "openai" ||+ settingsPreset?.provider === "custom") && (+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiApiKey">API Key</Label>+ <div className="flex-grow relative">+ <Input+ id="aiApiKey"+ type={showApiKey ? "text" : "password"}+ value={settingsPreset?.apiKey}+ onChange={handleApiKeyChange}+ className="pr-10"+ placeholder="enter your ai api key"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="absolute right-0 top-0 h-full"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ </div>+ )}++ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiModel">ai model</Label>+ <Popover modal={true}>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ className="w-full justify-between"+ disabled={+ (settingsPreset?.provider === "openai" &&+ !settingsPreset?.apiKey) ||+ (settingsPreset?.provider === "screenpipe-cloud" &&+ (!settings.user ||+ settings.user.cloud_subscribed === false))+ }+ >+ {settingsPreset?.provider === "openai" &&+ !settingsPreset?.apiKey+ ? "api key required to fetch models"+ : settingsPreset?.provider === "screenpipe-cloud" &&+ (!settings.user || settings.user.cloud_subscribed === false)+ ? "subscription required to access models"+ : settingsPreset?.model || "select model..."}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-full p-0">+ <Command>+ <CommandInput placeholder="select or type model name" />+ <CommandList>+ <CommandEmpty>+ press enter to use "{settingsPreset?.model}"+ </CommandEmpty>+ <CommandGroup heading="Suggestions">+ {isLoadingModels ? (+ <CommandItem value="loading" disabled>+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ loading models...+ </CommandItem>+ ) : (+ models?.map((model) => (+ <CommandItem+ key={model.id}+ value={model.id}+ onSelect={() => {+ updateSettingsPreset({ model: model.id });+ }}+ >+ {model.name}+ <Badge variant="outline" className="ml-2">+ {model.provider}+ </Badge>+ </CommandItem>+ ))+ )}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ </div>+ </div>+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="customPrompt">prompt</Label>+ <div className="flex-grow relative">+ <Textarea+ id="customPrompt"+ value={settingsPreset?.prompt || DEFAULT_PROMPT}+ onChange={handleCustomPromptChange}+ className="min-h-[100px]"+ placeholder="enter your custom prompt here"+ />+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="absolute right-2 top-2"+ onClick={handleResetCustomPrompt}+ >+ <RefreshCw className="h-4 w-4 mr-2" />+ reset+ </Button>+ </div>+ </div>+ </div>++ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiMaxContextChars" className="flex items-center">+ max context{" "}+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <HelpCircle className="ml-2 h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="left">+ <p>+ maximum number of characters (think 4 characters per token)+ to send to the ai model. <br />+ usually, openai models support up to 200k tokens, which is+ roughly 1m characters. <br />+ we'll use this for UI purposes to show you how much you+ can send.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex-grow flex items-center">+ <Slider+ id="aiMaxContextChars"+ min={10000}+ max={1000000}+ step={10000}+ value={+ settingsPreset?.maxContextChars+ ? [settingsPreset?.maxContextChars]+ : [512000]+ }+ onValueChange={handleMaxContextCharsChange}+ className="flex-grow"+ />+ <span className="ml-2 min-w-[60px] text-right">+ {settingsPreset?.maxContextChars?.toLocaleString() ?? 512000}+ </span>+ </div>+ </div>+ </div>+ <div className="flex justify-end">+ <Button onClick={() => updateStoreSettings()} disabled={isLoading}>+ {isLoading ? <Loader2 className="w-4 h-4 animate-spin mr-2" /> : null}+ {preset ? "update preset" : "create preset"}+ </Button>+ </div>+ </div>+ );+};++const providerImageSrc: Record<AIPreset["provider"], string> = {+ openai: "/images/openai.png",+ "screenpipe-cloud": "/images/screenpipe.png",+ "native-ollama": "/images/ollama.png",+ custom: "/images/custom.png",+};++export const AIPresets = () => {+ const { settings, updateSettings } = useSettings();+ const [createPresetsDialog, setCreatePresentDialog] = useState(false);+ const [selectedPreset, setSelectedPreset] = useState<AIPreset | undefined>();+ const [isLoading, setIsLoading] = useState(false);+ const [presetToDelete, setPresetToDelete] = useState<string | null>(null);+ const [presetToSetDefault, setPresetToSetDefault] = useState<string | null>(+ null+ );+ const [isDuplicating, setIsDuplicating] = useState(false);++ useEffect(() => {+ if (!createPresetsDialog) {+ setSelectedPreset(undefined);+ setIsDuplicating(false);+ }+ }, [createPresetsDialog]);++ if (createPresetsDialog)+ return (+ <AISection+ setDialog={setCreatePresentDialog}+ preset={selectedPreset}+ isDuplicating={isDuplicating}+ />+ );++ const removePreset = async (id: string) => {+ setIsLoading(true);+ try {+ const checkIfDefault = settings.aiPresets.find(+ (preset) => preset.id === id+ )?.defaultPreset;++ if (checkIfDefault) {+ toast({+ title: "cannot delete default preset",+ description: "please set another preset as default first",+ variant: "destructive",+ });+ return;+ }++ const checkIfIDPresent = settings.aiPresets.find(+ (preset) => preset.id === id+ );++ if (!checkIfIDPresent) {+ toast({+ title: "preset not found",+ description: "the preset you're trying to delete doesn't exist",+ variant: "destructive",+ });+ return;+ }++ const filteredPresets = settings.aiPresets.filter(+ (preset) => preset.id !== id+ );++ await updateSettings({+ aiPresets: filteredPresets,+ });++ toast({+ title: "preset deleted",+ description: "the preset has been removed successfully",+ });+ } catch (error) {+ toast({+ title: "error deleting preset",+ description: "something went wrong while deleting the preset",+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ setPresetToDelete(null);+ }+ };++ const setDefaultPreset = async (id: string) => {+ setIsLoading(true);+ try {+ const selectedPreset = settings.aiPresets.find((p) => p.id === id);+ if (!selectedPreset) return;++ const updatedPresets = settings.aiPresets.map((preset) => ({+ ...preset,+ defaultPreset: preset.id === id,+ }));++ const updateData: any = {+ aiPresets: updatedPresets,+ aiModel: selectedPreset.model,+ aiProviderType: selectedPreset.provider,+ customPrompt: selectedPreset.prompt,+ aiMaxContextChars: selectedPreset.maxContextChars,+ aiUrl: selectedPreset.url,+ };++ if ("apiKey" in selectedPreset) {+ updateData.openaiApiKey = selectedPreset.apiKey;+ }++ await updateSettings(updateData);++ toast({+ title: "default preset updated",+ description: "the preset has been set as default",+ });+ } catch (error) {+ toast({+ title: "error updating default preset",+ description: "something went wrong while updating the default preset",+ variant: "destructive",+ });+ } finally {+ setIsLoading(false);+ setPresetToSetDefault(null);+ }+ };++ const duplicatePreset = async (id: string) => {+ const presetToDuplicate = settings.aiPresets.find((p) => p.id === id);+ if (!presetToDuplicate) return;++ const newPreset = {+ ...presetToDuplicate,+ id: `${presetToDuplicate.id} copy`,+ defaultPreset: false,+ };++ setSelectedPreset(newPreset);+ setIsDuplicating(true);+ setCreatePresentDialog(true);+ };++ if (!settings.aiPresets?.length) {+ return (+ <div className="w-full h-[400px] flex flex-col items-center justify-center space-y-4">+ <Settings2 className="w-12 h-12 text-muted-foreground" />+ <h2 className="text-xl font-medium text-muted-foreground">+ no presets yet+ </h2>+ <p className="text-sm text-muted-foreground">+ create your first ai preset to get started+ </p>+ <Button onClick={() => setCreatePresentDialog(true)}>+ <Plus className="w-4 h-4 mr-2" />+ create preset+ </Button>+ </div>+ );+ }++ return (+ <div className="w-full space-y-6 py-4">+ <div className="flex items-center justify-between">+ <h1 className="text-2xl font-bold">ai settings</h1>+ <Button onClick={() => setCreatePresentDialog(true)}>+ <Plus className="w-4 h-4 mr-2" />+ create preset+ </Button>+ </div>+ <div className="w-full grid grid-cols-1 md:grid-cols-2 gap-4">+ {settings.aiPresets.map((preset) => {+ const isDefault = preset.defaultPreset;+ return (+ <Card+ key={preset.id}+ className="p-4 relative group transition-all hover:shadow-md"+ >+ <div+ className="flex justify-between items-start cursor-pointer"+ onClick={() => {+ setSelectedPreset(preset);+ setIsDuplicating(false);+ setCreatePresentDialog(true);+ }}+ >+ <div className="space-y-2">+ <div className="text-lg font-semibold text-foreground flex items-center gap-2">+ {preset.id}+ {isDefault && (+ <Badge variant="secondary" className="font-normal">+ default+ </Badge>+ )}+ </div>+ <div className="text-sm text-muted-foreground space-y-1">+ <div className="flex items-center gap-2">+ <span>model:</span>+ <span className="font-medium">{preset.model}</span>+ </div>+ <div className="flex items-center gap-2">+ <span>context:</span>+ <span className="font-medium">+ {preset.maxContextChars?.toLocaleString()}+ </span>+ </div>+ </div>+ </div>+ <img+ src={providerImageSrc[preset.provider]}+ alt={`${preset.provider} logo`}+ className="w-10 h-10 opacity-80 group-hover:opacity-100 transition-opacity"+ />+ </div>+ <div className="flex justify-end gap-2 mt-4">+ <Button+ className="text-xs"+ variant="ghost"+ size="sm"+ onClick={(e) => {+ e.stopPropagation();+ duplicatePreset(preset.id);+ }}+ disabled={isLoading}+ >+ duplicate+ </Button>+ <Button+ className="text-xs"+ variant="ghost"+ size="sm"+ onClick={(e) => {+ e.stopPropagation();+ setPresetToSetDefault(preset.id);+ }}+ disabled={isLoading || isDefault}+ >+ {isDefault ? "current default" : "set as default"}+ </Button>+ <Button+ className="text-xs text-destructive"+ variant="ghost"+ size="sm"+ onClick={(e) => {+ e.stopPropagation();+ setPresetToDelete(preset.id);+ }}+ disabled={isLoading || isDefault}+ >+ <Trash2 className="w-3 h-3 mr-1" />+ remove+ </Button>+ </div>+ </Card>+ );+ })}+ </div>++ <AlertDialog+ open={!!presetToDelete}+ onOpenChange={() => setPresetToDelete(null)}+ >+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>are you sure?</AlertDialogTitle>+ <AlertDialogDescription>+ this action cannot be undone. this will permanently delete the+ preset.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>cancel</AlertDialogCancel>+ <AlertDialogAction+ className="bg-destructive text-destructive-foreground hover:bg-destructive/90"+ onClick={() => presetToDelete && removePreset(presetToDelete)}+ >+ {isLoading ? (+ <Loader2 className="w-4 h-4 animate-spin" />+ ) : (+ "delete"+ )}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>++ <AlertDialog+ open={!!presetToSetDefault}+ onOpenChange={() => setPresetToSetDefault(null)}+ >+ <AlertDialogContent>+ <AlertDialogHeader>+ <AlertDialogTitle>change default preset?</AlertDialogTitle>+ <AlertDialogDescription>+ this will set this preset as the default and apply its settings.+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogCancel>cancel</AlertDialogCancel>+ <AlertDialogAction+ onClick={() =>+ presetToSetDefault && setDefaultPreset(presetToSetDefault)+ }+ >+ {isLoading ? (+ <Loader2 className="w-4 h-4 animate-spin" />+ ) : (+ "continue"+ )}+ </AlertDialogAction>+ </AlertDialogFooter>+ </AlertDialogContent>+ </AlertDialog>+ </div>+ );+};diff --git a/openrewind/components/settings/ai-section.tsx b/openrewind/components/settings/ai-section.tsxnew file mode 100644index 000000000..7d69ca2f1--- /dev/null+++ b/openrewind/components/settings/ai-section.tsx@@ -0,0 +1,493 @@+/* eslint-disable @next/next/no-img-element */+import { AIProviderType, useSettings } from "@/lib/hooks/use-settings";+import { Label } from "@/components/ui/label";+import { Separator } from "@/components/ui/separator";+import { Slider } from "@/components/ui/slider";+import { Switch } from "@/components/ui/switch";+import {+ TooltipProvider,+ Tooltip,+ TooltipTrigger,+ TooltipContent,+} from "@/components/ui/tooltip";+import {+ HelpCircle,+ EyeOff,+ Eye,+ RefreshCw,+ Loader2,+ ChevronsUpDown,+} from "lucide-react";+import { Badge } from "@/components/ui/badge";+import React, { useState, useEffect } from "react";+import { Input } from "../ui/input";+import { Textarea } from "../ui/textarea";+import { Button } from "../ui/button";+import { cn } from "@/lib/utils";+import { Card, CardContent } from "../ui/card";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+ CommandSeparator,+} from "@/components/ui/command";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";++export interface AIProviderCardProps {+ type: "screenpipe-cloud" | "openai" | "native-ollama" | "custom" | "embedded";+ title: string;+ description: string;+ imageSrc: string;+ selected: boolean;+ onClick: () => void;+ disabled?: boolean;+ warningText?: string;+ imageClassName?: string;+}++export interface OllamaModel {+ name: string;+ size: number;+ digest: string;+ modified_at: string;+}++export interface AIModel {+ id: string;+ name: string;+ provider: string;+}++export const AIProviderCard = ({+ type,+ title,+ description,+ imageSrc,+ selected,+ onClick,+ disabled,+ warningText,+ imageClassName,+}: AIProviderCardProps) => {+ return (+ <Card+ onClick={onClick}+ className={cn(+ "flex py-4 px-4 rounded-lg hover:bg-accent transition-colors h-[145px] w-full cursor-pointer",+ selected ? "border-black/60 border-[1.5px]" : "",+ disabled && "opacity-50 cursor-not-allowed",+ )}+ >+ <CardContent className="flex flex-col p-0 w-full">+ <div className="flex items-center gap-2 mb-2">+ <img+ src={imageSrc}+ alt={title}+ className={cn(+ "rounded-lg shrink-0 size-8",+ type === "native-ollama" &&+ "outline outline-gray-300 outline-1 outline-offset-2",+ imageClassName,+ )}+ />+ <span className="text-lg font-medium truncate">{title}</span>+ </div>+ <p className="text-sm text-muted-foreground line-clamp-3">+ {description}+ </p>+ {warningText && <Badge className="w-fit mt-2">{warningText}</Badge>}+ </CardContent>+ </Card>+ );+};++const AISection = () => {+ const { settings, updateSettings, resetSetting } = useSettings();++ const [showApiKey, setShowApiKey] = React.useState(false);++ const handleApiKeyChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ updateSettings({ openaiApiKey: e.target.value });+ };++ const handleMaxContextCharsChange = (value: number[]) => {+ updateSettings({ aiMaxContextChars: value[0] });+ };++ const handleCustomPromptChange = (+ e: React.ChangeEvent<HTMLTextAreaElement>,+ ) => {+ updateSettings({ customPrompt: e.target.value });+ };++ const handleResetCustomPrompt = () => {+ resetSetting("customPrompt");+ };++ const handleAiProviderChange = (newValue: AIProviderType) => {+ let newUrl = "";+ let newModel = settings.aiModel;++ switch (newValue) {+ case "openai":+ newUrl = "https://api.openai.com/v1";+ break;+ case "native-ollama":+ newUrl = "http://localhost:11434/v1";+ break;+ case "embedded":+ newUrl = `http://localhost:${settings.embeddedLLM.port}/v1`;+ newModel = settings.embeddedLLM.model;+ break;+ case "screenpipe-cloud":+ newUrl = "https://ai-proxy.i-f9f.workers.dev/v1";+ break;+ case "custom":+ newUrl = settings.aiUrl;+ break;+ }++ updateSettings({+ aiProviderType: newValue,+ aiUrl: newUrl,+ aiModel: newModel,+ });+ };++ const isApiKeyRequired =+ settings.aiUrl !== "https://ai-proxy.i-f9f.workers.dev/v1" &&+ settings.aiUrl !== "http://localhost:11434/v1" &&+ settings.aiUrl !== "embedded";++ const [models, setModels] = useState<AIModel[]>([]);+ const [isLoadingModels, setIsLoadingModels] = useState(false);++ const fetchModels = async () => {+ setIsLoadingModels(true);+ console.log(settings.aiProviderType, settings.openaiApiKey, settings.aiUrl);+ try {+ switch (settings.aiProviderType) {+ case "screenpipe-cloud":+ const response = await fetch(+ "https://ai-proxy.i-f9f.workers.dev/v1/models",+ {+ headers: {+ Authorization: `Bearer ${settings.user?.id || ""}`,+ },+ },+ );+ if (!response.ok) throw new Error("Failed to fetch models");+ const data = await response.json();+ setModels(data.models);+ break;++ case "native-ollama":+ const ollamaResponse = await fetch("http://localhost:11434/api/tags");+ if (!ollamaResponse.ok)+ throw new Error("Failed to fetch Ollama models");+ const ollamaData = (await ollamaResponse.json()) as {+ models: OllamaModel[];+ };+ setModels(+ (ollamaData.models || []).map((model) => ({+ id: model.name,+ name: model.name,+ provider: "ollama",+ })),+ );+ break;++ case "openai":+ setModels([+ { id: "gpt-4", name: "gpt-4", provider: "openai" },+ { id: "gpt-3.5-turbo", name: "gpt-3.5-turbo", provider: "openai" },+ ]);+ break;++ case "custom":+ try {+ const customResponse = await fetch(`${settings.aiUrl}/models`, {+ headers: settings.openaiApiKey+ ? { Authorization: `Bearer ${settings.openaiApiKey}` }+ : {},+ });+ if (!customResponse.ok)+ throw new Error("Failed to fetch custom models");+ const customData = await customResponse.json();+ console.log(customData);+ setModels(+ (customData.data || []).map((model: { id: string }) => ({+ id: model.id,+ name: model.id,+ provider: "custom",+ })),+ );+ } catch (error) {+ console.error(+ "Failed to fetch custom models, allowing manual input:",+ error,+ );+ setModels([]);+ }+ break;++ default:+ setModels([]);+ }+ } catch (error) {+ console.error(+ `Failed to fetch models for ${settings.aiProviderType}:`,+ error,+ );+ setModels([]);+ } finally {+ setIsLoadingModels(false);+ }+ };++ useEffect(() => {+ fetchModels();+ }, [settings.aiProviderType, settings.openaiApiKey, settings.aiUrl]);++ return (+ <div className="w-full space-y-6 py-4">+ <h1 className="text-2xl font-bold">ai settings</h1>+ <div className="w-full">+ <Label htmlFor="aiUrl" className="min-w-[80px]">+ ai provider+ </Label>+ <div className="grid grid-cols-2 gap-4 mb-4 mt-4">+ <AIProviderCard+ type="openai"+ title="openai"+ description="use your own openai api key for gpt-4 and other models"+ imageSrc="/images/openai.png"+ selected={settings.aiProviderType === "openai"}+ onClick={() => handleAiProviderChange("openai")}+ />++ <AIProviderCard+ type="screenpipe-cloud"+ title="screenpipe cloud"+ description="use openai, anthropic and google models without worrying about api keys or usage"+ imageSrc="/images/screenpipe.png"+ selected={settings.aiProviderType === "screenpipe-cloud"}+ onClick={() => handleAiProviderChange("screenpipe-cloud")}+ disabled={!settings.user}+ warningText={+ !settings.user+ ? "login required"+ : !settings.user?.credits?.amount+ ? "requires credits"+ : undefined+ }+ />++ <AIProviderCard+ type="native-ollama"+ title="ollama"+ description="run ai models locally using your existing ollama installation"+ imageSrc="/images/ollama.png"+ selected={settings.aiProviderType === "native-ollama"}+ onClick={() => handleAiProviderChange("native-ollama")}+ />++ <AIProviderCard+ type="custom"+ title="custom"+ description="connect to your own ai provider or self-hosted models"+ imageSrc="/images/custom.png"+ selected={settings.aiProviderType === "custom"}+ onClick={() => handleAiProviderChange("custom")}+ />+ </div>+ </div>+ {settings.aiProviderType === "custom" && (+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4">+ <Label htmlFor="customAiUrl">custom url</Label>+ <Input+ id="customAiUrl"+ value={settings.aiUrl}+ onChange={(e) => {+ const newUrl = e.target.value;+ updateSettings({ aiUrl: newUrl });+ }}+ className="flex-grow"+ placeholder="enter custom ai url"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ type="text"+ />+ </div>+ </div>+ )}+ {isApiKeyRequired && (+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiApiKey">API Key</Label>+ <div className="flex-grow relative">+ <Input+ id="aiApiKey"+ type={showApiKey ? "text" : "password"}+ value={settings.openaiApiKey}+ onChange={handleApiKeyChange}+ className="pr-10"+ placeholder="enter your ai api key"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="absolute right-0 top-0 h-full"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ </div>+ )}+ {settings.aiProviderType !== "embedded" && (+ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiModel">ai model</Label>+ <Popover modal={true}>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ className="w-full justify-between"+ >+ {settings.aiModel || "select model..."}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-full p-0">+ <Command>+ <CommandInput+ placeholder="select or type model name"+ onValueChange={(value) => {+ if (value) {+ updateSettings({ aiModel: value });+ }+ }}+ />+ <CommandList>+ <CommandEmpty>+ press enter to use "{settings.aiModel}"+ </CommandEmpty>+ <CommandGroup heading="Suggestions">+ {isLoadingModels ? (+ <CommandItem value="loading" disabled>+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ loading models...+ </CommandItem>+ ) : (+ models.map((model) => (+ <CommandItem+ key={model.id}+ value={model.id}+ onSelect={() => {+ updateSettings({ aiModel: model.id });+ }}+ >+ {model.name}+ <Badge variant="outline" className="ml-2">+ {model.provider}+ </Badge>+ </CommandItem>+ ))+ )}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ </div>+ </div>+ )}++ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="customPrompt">prompt</Label>+ <div className="flex-grow relative">+ <Textarea+ id="customPrompt"+ value={settings.customPrompt}+ onChange={handleCustomPromptChange}+ className="min-h-[100px]"+ placeholder="enter your custom prompt here"+ />+ <Button+ type="button"+ variant="ghost"+ size="sm"+ className="absolute right-2 top-2"+ onClick={handleResetCustomPrompt}+ >+ <RefreshCw className="h-4 w-4 mr-2" />+ reset+ </Button>+ </div>+ </div>+ </div>++ <div className="w-full">+ <div className="flex flex-col gap-4 mb-4 w-full">+ <Label htmlFor="aiMaxContextChars" className="flex items-center">+ max context{" "}+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <HelpCircle className="ml-2 h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="left">+ <p>+ maximum number of characters (think 4 characters per token)+ to send to the ai model. <br />+ usually, openai models support up to 200k tokens, which is+ roughly 1m characters. <br />+ we'll use this for UI purposes to show you how much you+ can send.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex-grow flex items-center">+ <Slider+ id="aiMaxContextChars"+ min={10000}+ max={1000000}+ step={10000}+ value={[settings.aiMaxContextChars]}+ onValueChange={handleMaxContextCharsChange}+ className="flex-grow"+ />+ <span className="ml-2 min-w-[60px] text-right">+ {settings.aiMaxContextChars.toLocaleString()}+ </span>+ </div>+ </div>+ </div>+ </div>+ );+};++export default AISection;diff --git a/openrewind/components/settings/data-import-section.tsx b/openrewind/components/settings/data-import-section.tsxnew file mode 100644index 000000000..905a0f948--- /dev/null+++ b/openrewind/components/settings/data-import-section.tsx@@ -0,0 +1,502 @@+import React, { useState, useEffect } from "react";+import { Command, Trash2, Plus } from "lucide-react";+import { Button } from "../ui/button";+import { Input } from "../ui/input";+import { Command as TauriCommand } from "@tauri-apps/plugin-shell";+import { toast } from "../ui/use-toast";+import { open } from "@tauri-apps/plugin-dialog";+import { FolderOpen } from "lucide-react";+import { Card, CardContent } from "../ui/card";+import { Label } from "../ui/label";+import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+} from "../ui/accordion";+import { writeTextFile, BaseDirectory, readDir } from "@tauri-apps/plugin-fs";+import { join } from "@tauri-apps/api/path";+import { appLocalDataDir } from "@tauri-apps/api/path";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "../ui/tooltip";+import { AlertCircle } from "lucide-react";++interface VideoMetadata {+ file_path: string;+ metadata: {+ name?: string;+ creation_time?: string;+ fps?: number;+ device_name?: string;+ };+}++export function DataImportSection() {+ const [path, setPath] = useState("");+ const [isIndexing, setIsIndexing] = useState(false);+ const [detectedVideos, setDetectedVideos] = useState<string[]>([]);+ const [metadataConfig, setMetadataConfig] = useState<VideoMetadata[]>([]);+ const [isScanning, setIsScanning] = useState(false);+ const [progress, setProgress] = useState<{+ current: number;+ total: number;+ } | null>(null);+ const [useEmbeddings, setUseEmbeddings] = useState(true);+ const [ollamaAvailable, setOllamaAvailable] = useState<boolean | null>(null);++ // Scan for videos in the selected path+ const scanForVideos = async () => {+ if (!path.trim()) return;++ try {+ console.log("starting video scan for path:", path);+ setIsScanning(true);++ // recursively read directory+ const entries = await readDir(path);+ console.log("found directory entries:", entries);++ if (entries.length > 10) {+ toast({+ title: "too many files",+ description: "please select a directory with 10 or fewer files",+ variant: "destructive",+ });+ return;+ }++ const videos = await Promise.all(entries.map((e) => join(path, e.name)));+ console.log("filtered video files:", videos);+ setDetectedVideos(videos);++ // initialize metadata config for each video+ const newMetadataConfig = videos.map((file_path) => ({+ file_path,+ metadata: {+ name: "",+ creation_time: new Date().toISOString(),+ fps: 30,+ device_name: "",+ },+ }));+ console.log("initialized metadata config:", newMetadataConfig);+ setMetadataConfig(newMetadataConfig);++ if (videos.length === 0) {+ toast({+ title: "no videos found",+ description:+ "no supported video files found in the selected directory",+ variant: "destructive",+ });+ } else {+ toast({+ title: "videos detected",+ description: `found ${videos.length} video files`,+ });+ }+ } catch (error: any) {+ console.error("scan error:", error);+ toast({+ title: "scanning failed",+ description: error.toString(),+ variant: "destructive",+ });+ } finally {+ setIsScanning(false);+ }+ };++ const handleMetadataChange = (+ index: number,+ field: string,+ value: string | number+ ) => {+ console.log("metadata change:", { index, field, value });+ setMetadataConfig((prev) => {+ const updated = [...prev];+ updated[index] = {+ ...updated[index],+ metadata: {+ ...updated[index].metadata,+ [field]: value,+ },+ };+ console.log("updated metadata config:", updated[index]);+ return updated;+ });+ };++ useEffect(() => {+ if (path.trim()) {+ scanForVideos();+ }+ }, [path]);++ const handleIndex = async () => {+ if (!path.trim()) return;++ try {+ console.log("starting indexing process for path:", path);+ setIsIndexing(true);+ setProgress(null);++ const configFileName = `metadata-override-${Date.now()}.json`;+ const configData = { overrides: metadataConfig };+ console.log("writing metadata config:", configData);+ console.log(+ "writing metadata config with paths:",+ metadataConfig.map((m) => m.file_path)+ );+ await writeTextFile(configFileName, JSON.stringify(configData), {+ baseDir: BaseDirectory.AppLocalData,+ });++ const configPath = await join(await appLocalDataDir(), configFileName);+ console.log("config file path:", configPath);++ const command = TauriCommand.sidecar("screenpipe", [+ "add",+ path.trim(),+ "--metadata-override",+ configPath,+ "--output",+ "json",+ ...(ollamaAvailable && useEmbeddings ? ["--use-embedding"] : []),+ ]);+ console.log("executing command:", command);++ command.stdout.on("data", (line) => {+ console.log("command output:", line);+ if (line.includes("found")) {+ const match = line.match(/found (\d+) video files/);+ if (match) {+ setProgress({ current: 0, total: parseInt(match[1]) });+ }+ }+ if (line.includes("processing video:")) {+ setProgress((prev) =>+ prev ? { ...prev, current: prev.current + 1 } : null+ );+ }+ });++ const output = await command.execute();+ console.log("command execution result:", output);++ if (output.code === 0) {+ toast({+ title: "data imported",+ description: "your data has been successfully imported",+ });+ } else {+ throw new Error(output.stderr);+ }+ } catch (error: any) {+ console.error("import error:", error);+ toast({+ title: "import failed",+ description: error.toString(),+ variant: "destructive",+ });+ } finally {+ setIsIndexing(false);+ setProgress(null);+ }+ };++ const handleSelectFolder = async () => {+ try {+ console.log("opening folder selector");+ const selected = await open({+ directory: true,+ multiple: false,+ });+ console.log("selected folder:", selected);++ if (selected && typeof selected === "string") {+ setPath(selected);+ }+ } catch (error: any) {+ console.error("folder selection error:", error);+ toast({+ title: "folder selection failed",+ description: error.toString(),+ variant: "destructive",+ });+ }+ };++ // Check Ollama availability+ const checkOllama = async () => {+ try {+ const response = await fetch("http://localhost:11434/api/version");+ setOllamaAvailable(response.ok);+ console.log("ollama available:", response.ok);++ if (response.ok) {+ // Check if model is available+ const modelResponse = await fetch("http://localhost:11434/api/tags");+ const models = await modelResponse.json();+ console.log("ollama model available:", models);++ const hasModel = models.models?.some(+ (m: any) => m.name.includes("nomic-embed-text")+ );+ setOllamaAvailable(hasModel);+ }+ } catch (e) {+ console.error("ollama check error:", e);+ setOllamaAvailable(false);+ if (useEmbeddings) {+ setUseEmbeddings(false);+ }+ }+ };++ // Check Ollama status periodically+ useEffect(() => {+ checkOllama();+ const interval = setInterval(checkOllama, 10000); // Check every 10s+ return () => clearInterval(interval);+ }, []);++ return (+ <div className="w-full space-y-6 py-4">+ <div>+ <h1 className="text-2xl font-bold">data import</h1>+ <p className="text-sm text-gray-500">+ add your own video recordings (mp4, mov, avi) into screenpipe+ </p>+ </div>++ <div className="space-y-4">+ <div className="flex gap-2">+ <Input+ placeholder="enter path to index (e.g., /path/to/files)"+ value={path}+ onChange={(e) => setPath(e.target.value)}+ className="font-mono"+ />+ <Button+ onClick={handleSelectFolder}+ variant="outline"+ className="whitespace-nowrap"+ >+ <FolderOpen className="h-4 w-4 mr-2" />+ select folder+ </Button>+ </div>++ {/* Metadata Configuration Section */}+ {detectedVideos.length > 0 && (+ <Card className="mt-4">+ <CardContent className="pt-6">+ <h3 className="text-lg font-semibold mb-4">+ configure video metadata+ </h3>+ <Accordion type="single" collapsible className="w-full">+ {detectedVideos.map((video, index) => (+ <AccordionItem key={video} value={`video-${index}`}>+ <AccordionTrigger className="text-sm">+ {video.split("/").pop()}+ </AccordionTrigger>+ <AccordionContent>+ <div className="space-y-4 p-4">+ <div className="grid gap-4">+ <div className="space-y-2">+ <Label>custom name</Label>+ <Input+ placeholder="enter a custom name for this video"+ value={metadataConfig[index]?.metadata.name || ""}+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ onChange={(e) =>+ handleMetadataChange(+ index,+ "name",+ e.target.value+ )+ }+ />+ </div>+ <div className="space-y-2">+ <Label>device name</Label>+ <Input+ placeholder="enter device name"+ value={+ metadataConfig[index]?.metadata.device_name ||+ ""+ }+ autoCorrect="off"+ autoComplete="off"+ autoCapitalize="off"+ onChange={(e) =>+ handleMetadataChange(+ index,+ "device_name",+ e.target.value+ )+ }+ />+ </div>+ <div className="space-y-2">+ <Label>fps</Label>+ <Input+ type="number"+ placeholder="enter fps (optional)"+ value={metadataConfig[index]?.metadata.fps || ""}+ onChange={(e) =>+ handleMetadataChange(+ index,+ "fps",+ parseFloat(e.target.value)+ )+ }+ />+ </div>+ <div className="space-y-2">+ <Label>creation time</Label>+ <Input+ type="datetime-local"+ value={+ metadataConfig[+ index+ ]?.metadata.creation_time?.split("Z")[0] || ""+ }+ onChange={(e) =>+ handleMetadataChange(+ index,+ "creation_time",+ new Date(e.target.value).toISOString()+ )+ }+ />+ </div>+ </div>+ </div>+ </AccordionContent>+ </AccordionItem>+ ))}+ </Accordion>+ </CardContent>+ </Card>+ )}++ {detectedVideos.length > 0 && (+ <div className="flex items-center gap-4">+ <div className="flex items-center gap-2">+ <Button onClick={handleIndex} disabled={isIndexing}>+ <Command className="h-4 w-4 mr-2" />+ {isIndexing ? "importing..." : "start import"}+ </Button>++ <div className="flex flex-col gap-1 ml-2">+ <div className="flex items-center gap-2">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <div className="flex items-center gap-2">+ <input+ type="checkbox"+ id="embeddings-toggle"+ checked={useEmbeddings}+ onChange={(e) => setUseEmbeddings(e.target.checked)}+ disabled={!ollamaAvailable}+ className={`h-4 w-4 ${+ !ollamaAvailable+ ? "cursor-not-allowed opacity-50"+ : ""+ }`}+ />+ <Label+ htmlFor="embeddings-toggle"+ className={`text-sm ${+ !ollamaAvailable+ ? "cursor-not-allowed opacity-50"+ : ""+ }`}+ >+ generate embeddings+ </Label>+ {ollamaAvailable === false && (+ <AlertCircle className="h-4 w-4 text-yellow-500" />+ )}+ </div>+ </TooltipTrigger>+ <TooltipContent side="top" className="max-w-[300px]">+ {ollamaAvailable === false ? (+ <div className="space-y-2">+ <p>ollama is not running. to enable embeddings:</p>+ <ol className="list-decimal list-inside space-y-1">+ <li>+ install ollama from{" "}+ <a+ href="https://ollama.ai"+ target="_blank"+ rel="noopener noreferrer"+ className="underline"+ >+ ollama.ai+ </a>+ </li>+ <li>start ollama</li>+ <li>+ run:{" "}+ <code className="bg-secondary px-1 rounded">+ ollama run nomic-embed-text+ </code>+ </li>+ </ol>+ </div>+ ) : ollamaAvailable === true ? (+ <p>ollama is running and ready for embeddings</p>+ ) : (+ <p>checking ollama availability...</p>+ )}+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ {useEmbeddings && ollamaAvailable && (+ <p className="text-xs text-muted-foreground">+ using ollama with nomic-embed-text model for embeddings+ </p>+ )}+ </div>+ </div>++ {/* Progress indicator */}+ {isIndexing && (+ <div className="flex-1 text-sm text-muted-foreground space-y-2">+ <div className="flex items-center gap-2">+ <div className="animate-spin h-4 w-4 border-2 border-primary border-t-transparent rounded-full" />+ <span>+ {progress+ ? `processing ${progress.current}/${progress.total} videos...`+ : "analyzing files..."}+ </span>+ </div>+ {progress && (+ <div className="h-1 bg-secondary rounded-full overflow-hidden">+ <div+ className="h-full bg-primary transition-all duration-300"+ style={{+ width: `${(progress.current / progress.total) * 100}%`,+ }}+ />+ </div>+ )}+ </div>+ )}+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/openrewind/components/settings/disk-usage.tsx b/openrewind/components/settings/disk-usage.tsxnew file mode 100644index 000000000..411a7ba10--- /dev/null+++ b/openrewind/components/settings/disk-usage.tsx@@ -0,0 +1,229 @@+"use client";+import React, { useEffect, useState } from "react";+import { Badge } from "@/components/ui/badge";+import { toast } from "@/components/ui/use-toast";+import { invoke } from "@tauri-apps/api/core";+import localforage from "localforage";+import { Skeleton } from "@/components/ui/skeleton";+import {+ Accordion,+ AccordionContent,+ AccordionItem,+ AccordionTrigger,+} from "@/components/ui/accordion";++interface DiskUsageData {+ media: {+ audios_size: string;+ videos_size: string;+ total_media_size: string;+ };+ pipes: {+ pipes: [string, string][];+ total_pipes_size: string;+ };+ total_data_size: string;+ total_cache_size: string;+ avaiable_space: string;+}++const BadgeItem = ({+ label,+ value,+ description,+}: {+ label: string;+ value: string;+ description?: string;+}) => (+ <div className="flex flex-row items-center justify-between">+ <div className="flex flex-col !float-left items-start">+ <span className="font-semibold">{label}</span>+ <span className="text-[14px] !font-normal text-muted-foreground">+ {description}+ </span>+ </div>+ <Badge+ variant={"outline"}+ className="mr-4 font-semibold min-w-[5.5rem] flex flex-row justify-center"+ >+ {value}+ </Badge>+ </div>+);++const Divider = () => (+ <div className="flex my-2 justify-center">+ <div className="h-[1px] w-[250px] rounded-full bg-gradient-to-l from-slate-500/30 to-transparent"></div>+ <div className="h-[1px] w-[250px] rounded-full bg-gradient-to-r from-slate-500/30 to-transparent"></div>+ </div>+);++export default function DiskUsage() {+ const [diskUsage, setDiskUsage] = useState<DiskUsageData | null>(null);+ const [loading, setLoading] = useState<boolean>(false);++ const getDisk = async () => {+ setLoading(true);+ try {+ const result = await invoke<DiskUsageData>("get_disk_usage");+ console.log("result", result);+ setDiskUsage(result);+ setLoading(false);+ } catch (error) {+ console.error("Failed to fetch disk usage:", error);+ toast({+ title: "error",+ description: "failed to fetch disk usage, please try again!",+ variant: "destructive",+ });+ }+ };++ useEffect(() => {+ getDisk();+ }, []);++ return (+ <div className="w-full space-y-6 py-4">+ <h1 className="text-2xl font-bold">+ disk usage+ {loading && !diskUsage ? (+ <span className="text-sm ml-2 !font-normal text-muted-foreground">+ loading...+ </span>+ ) : (+ ""+ )}+ </h1>+ <div className="flex flex-col items-center justify-center space-y-4">+ {loading && !diskUsage ? (+ <div className="w-full space-y-4">+ <Skeleton className="h-[80px] w-[90%] mx-auto" />+ <Skeleton className="h-[80px] w-[90%] mx-auto" />+ <Skeleton className="h-[200px] w-[90%] mx-auto" />+ </div>+ ) : (+ ""+ )}+ {diskUsage && diskUsage.pipes && (+ <Accordion+ type="single"+ collapsible+ className="w-[90%] border rounded-lg"+ >+ <AccordionItem value="total-pipes-size">+ <AccordionTrigger className="mx-4 h-[80px] hover:no-underline">+ <div className="w-full flex items-center justify-between">+ <div className="flex flex-col !float-left items-start">+ <span className="font-semibold">disk used by pipes</span>+ <span className="text-[14px] !font-normal text-muted-foreground">+ total space used by installed pipes+ </span>+ </div>+ <Badge+ variant={"outline"}+ className="mr-4 font-semibold min-w-[5.5rem] flex flex-row justify-center"+ >+ {diskUsage.pipes.total_pipes_size}+ </Badge>+ </div>+ </AccordionTrigger>+ <AccordionContent className="w-full">+ {diskUsage.pipes.pipes.map(([name, size], index) => (+ <div+ key={index}+ className="flex items-center justify-between px-1 py-1"+ >+ <span className="text-base ml-8">{name}</span>+ <Badge+ variant={"outline"}+ className="mr-10 min-w-[5.5rem] flex flex-row justify-center"+ >+ {size}+ </Badge>+ </div>+ ))}+ </AccordionContent>+ </AccordionItem>+ </Accordion>+ )}+ {diskUsage && diskUsage.media && (+ <Accordion+ type="single"+ collapsible+ className="w-[90%] border rounded-lg"+ >+ <AccordionItem value="total-pipes-size">+ <AccordionTrigger className="mx-4 h-[80px] hover:no-underline">+ <div className="w-full flex items-center justify-between">+ <div className="flex flex-col !float-left items-start">+ <span className="font-semibold">total data captured</span>+ <span className="text-[14px] !font-normal text-muted-foreground">+ amount of data captured by screenpipe over the time+ </span>+ </div>+ <Badge+ variant={"outline"}+ className="mr-4 font-semibold min-w-[5.5rem] flex flex-row justify-center"+ >+ {diskUsage.media.total_media_size}+ </Badge>+ </div>+ </AccordionTrigger>+ <AccordionContent className="w-full">+ <div+ key={"video"}+ className="flex items-center justify-between px-1 py-1"+ >+ <span className="text-base ml-8">video data</span>+ <Badge+ variant={"outline"}+ className="mr-10 min-w-[5.5rem] flex flex-row justify-center"+ >+ {diskUsage.media.videos_size}+ </Badge>+ </div>+ <div+ key={"audio"}+ className="flex items-center justify-between px-1 py-1"+ >+ <span className="text-base ml-8">audio data</span>+ <Badge+ variant={"outline"}+ className="mr-10 min-w-[5.5rem] flex flex-row justify-center "+ >+ {diskUsage.media.audios_size}+ </Badge>+ </div>+ </AccordionContent>+ </AccordionItem>+ </Accordion>+ )}+ {diskUsage && diskUsage.total_data_size && diskUsage.avaiable_space && (+ <div className="w-[90%] border rounded-lg p-8">+ <div className="w-full space-y-6">+ <BadgeItem+ label="screenpipe cache size"+ description="disk space used for models, frames..."+ value={diskUsage.total_cache_size}+ />+ <Divider />+ <BadgeItem+ label="disk space used by screenpipe"+ description="total disk space utilized by the screenpipe application"+ value={diskUsage.total_data_size}+ />+ <Divider />+ <BadgeItem+ label="available disk space"+ description="remaining free disk space on your device"+ value={diskUsage.avaiable_space}+ />+ </div>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/openrewind/components/settings/general-settings.tsx b/openrewind/components/settings/general-settings.tsxnew file mode 100644index 000000000..ce1f2db8f--- /dev/null+++ b/openrewind/components/settings/general-settings.tsx@@ -0,0 +1,53 @@+"use client";++import React from "react";+import { useSettings } from "@/lib/hooks/use-settings";+import { Switch } from "@/components/ui/switch";++export default function GeneralSettings() {+ const { settings, updateSettings } = useSettings();++ const handleSettingsChange = (newSettings: Partial<typeof settings>) => {+ updateSettings(newSettings);+ };++ return (+ <div className="w-full space-y-6 py-4">+ <h1 className="text-2xl font-bold mb-4">general</h1>++ <div className="space-y-8">+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">enable autostart</h4>+ <p className="text-sm text-muted-foreground">+ automatically launch screenpipe at startup+ </p>+ </div>+ <Switch+ id="auto-start-toggle"+ checked={settings.autoStartEnabled}+ onCheckedChange={(checked) =>+ handleSettingsChange({ autoStartEnabled: checked })+ }+ />+ </div>++ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">auto-update pipes</h4>+ <p className="text-sm text-muted-foreground">+ automatically update pipes when updates are available+ </p>+ </div>+ <Switch+ id="auto-update-toggle"+ checked={settings.autoUpdatePipes}+ onCheckedChange={(checked) =>+ handleSettingsChange({ autoUpdatePipes: checked })+ }+ />+ </div>+ </div>+ </div>+ );+}diff --git a/openrewind/components/settings/pricing-toggle.tsx b/openrewind/components/settings/pricing-toggle.tsxnew file mode 100644index 000000000..4d1597dba--- /dev/null+++ b/openrewind/components/settings/pricing-toggle.tsx@@ -0,0 +1,25 @@+import { Label } from "@/components/ui/label";+import { Switch } from "@/components/ui/switch";++interface PricingToggleProps {+ isAnnual: boolean;+ onToggle: (value: boolean) => void;+}++export function PricingToggle({ isAnnual, onToggle }: PricingToggleProps) {+ return (+ <div className="flex items-center gap-4 mb-4">+ <Label htmlFor="billing-toggle" className="text-sm">+ monthly+ </Label>+ <Switch+ id="billing-toggle"+ checked={isAnnual}+ onCheckedChange={onToggle}+ />+ <Label htmlFor="billing-toggle" className="text-sm">+ annual (save 17%)+ </Label>+ </div>+ );+}diff --git a/openrewind/components/settings/recording-settings.tsx b/openrewind/components/settings/recording-settings.tsxnew file mode 100644index 000000000..c6df74d49--- /dev/null+++ b/openrewind/components/settings/recording-settings.tsx@@ -0,0 +1,1515 @@+"use client";++import React, { useEffect, useState } from "react";+import { Label } from "@/components/ui/label";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Button } from "@/components/ui/button";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import {+ Check,+ ChevronsUpDown,+ Eye,+ HelpCircle,+ Languages,+ Mic,+ Monitor,+ Folder,+ AppWindowMac,+ EyeOff,+ Key,+ Terminal,+ Asterisk,+} from "lucide-react";+import { cn } from "@/lib/utils";+import {+ Command,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+} from "@/components/ui/command";+import { Command as TauriCommand } from "@tauri-apps/plugin-shell";++import {+ Settings,+ useSettings,+ VadSensitivity,+} from "@/lib/hooks/use-settings";+import { useToast } from "@/components/ui/use-toast";+import { useHealthCheck } from "@/lib/hooks/use-health-check";+import { invoke } from "@tauri-apps/api/core";+import { Badge } from "@/components/ui/badge";+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip";+import { Switch } from "@/components/ui/switch";+import { Input } from "@/components/ui/input";+import { Slider } from "@/components/ui/slider";+import { platform } from "@tauri-apps/plugin-os";+import posthog from "posthog-js";+import { Language } from "@/lib/language";+import { open } from "@tauri-apps/plugin-dialog";+import { exists } from "@tauri-apps/plugin-fs";+import { ToastAction } from "@/components/ui/toast";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { Separator } from "@/components/ui/separator";+import { MultiSelect } from "@/components/ui/multi-select";+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";+import { useSqlAutocomplete } from "@/lib/hooks/use-sql-autocomplete";+import * as Sentry from "@sentry/react";+import { defaultOptions } from "tauri-plugin-sentry-api";+import { useLoginDialog } from "../login-dialog";++type PermissionsStatus = {+ screenRecording: string;+ microphone: string;+ accessibility: string;+};++interface AudioDevice {+ name: string;+ is_default: boolean;+}++interface MonitorDevice {+ id: string;+ name: string;+ is_default: boolean;+ width: number;+ height: number;+}++const createWindowOptions = (+ windowItems: { name: string }[],+ existingPatterns: string[]+) => {+ const windowOptions = windowItems+ .sort((a, b) => a.name.localeCompare(b.name))+ .map((item) => ({+ value: item.name,+ label: item.name,+ icon: AppWindowMac,+ }));++ // Only add custom patterns that aren't already in windowItems+ const customOptions = existingPatterns+ .filter((pattern) => !windowItems.some((item) => item.name === pattern))+ .map((pattern) => ({+ value: pattern,+ label: pattern,+ icon: Asterisk,+ }));++ return [...windowOptions, ...customOptions];+};++export function RecordingSettings() {+ const { settings, updateSettings, getDataDir } = useSettings();+ const [openAudioDevices, setOpenAudioDevices] = React.useState(false);+ const [openLanguages, setOpenLanguages] = React.useState(false);+ const [dataDirInputVisible, setDataDirInputVisible] = React.useState(false);+ const [clickTimeout, setClickTimeout] = useState<ReturnType<+ typeof setTimeout+ > | null>(null);++ const { items: windowItems, isLoading: isWindowItemsLoading } =+ useSqlAutocomplete("window");++ const [availableMonitors, setAvailableMonitors] = useState<MonitorDevice[]>(+ []+ );+ const [availableAudioDevices, setAvailableAudioDevices] = useState<+ AudioDevice[]+ >([]);+ const { toast } = useToast();+ const [isUpdating, setIsUpdating] = useState(false);+ const { health } = useHealthCheck();+ const isDisabled = health?.status_code === 500;+ const [isMacOS, setIsMacOS] = useState(false);+ const [showApiKey, setShowApiKey] = useState(false);+ const { checkLogin } = useLoginDialog();++ // Add new state to track if settings have changed+ const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);++ // Modify setLocalSettings to track changes+ const handleSettingsChange = (+ newSettings: Partial<Settings>,+ restart: boolean = true+ ) => {+ updateSettings(newSettings);+ if (restart) {+ setHasUnsavedChanges(true);+ }+ };++ // Show toast when settings change+ useEffect(() => {+ if (hasUnsavedChanges) {+ toast({+ title: "settings changed",+ description: "restart required to apply changes",+ action: (+ <ToastAction+ altText="restart now"+ onClick={(e) => {+ e.preventDefault();+ e.stopPropagation();+ // Wrap in setTimeout to ensure event handling is complete+ setTimeout(() => {+ handleUpdate();+ }, 0);+ return false;+ }}+ onMouseDown={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ onMouseUp={(e) => {+ e.preventDefault();+ e.stopPropagation();+ }}+ >+ restart now+ </ToastAction>+ ),+ duration: 50000,+ });+ }+ }, [hasUnsavedChanges]);++ useEffect(() => {+ const checkPlatform = async () => {+ const currentPlatform = platform();+ setIsMacOS(currentPlatform === "macos");+ };+ checkPlatform();+ }, []);++ useEffect(() => {+ const loadDevices = async () => {+ try {+ // Use sidecar command to fetch monitors+ const monitorCommand = TauriCommand.sidecar("screenpipe", [+ "vision",+ "list",+ "-o",+ "json",+ ]);++ const monitorOutput = await monitorCommand.execute();+ if (monitorOutput.code !== 0) {+ throw new Error(`Failed to fetch monitors: ${monitorOutput.stderr}`);+ }++ // Parse the JSON response which might be in {data: [...], success: true} format+ const monitorResponse = JSON.parse(monitorOutput.stdout);+ const monitors: MonitorDevice[] =+ monitorResponse.data || monitorResponse;+ console.log("monitors", monitors);+ setAvailableMonitors(monitors);++ // Use sidecar command to fetch audio devices+ const audioCommand = TauriCommand.sidecar("screenpipe", [+ "audio",+ "list",+ "-o",+ "json",+ ]);++ const audioOutput = await audioCommand.execute();+ if (audioOutput.code !== 0) {+ throw new Error(+ `Failed to fetch audio devices: ${audioOutput.stderr}`+ );+ }++ // Parse the JSON response which might be in {data: [...], success: true} format+ const audioResponse = JSON.parse(audioOutput.stdout);+ const audioDevices: AudioDevice[] = audioResponse.data || audioResponse;+ console.log("audioDevices", audioDevices);+ setAvailableAudioDevices(audioDevices);++ console.log("settings", settings);++ // Update monitors+ const availableMonitorIds = monitors.map((monitor) =>+ monitor.id.toString()+ );+ let updatedMonitorIds = settings.monitorIds.filter((id) =>+ availableMonitorIds.includes(id)+ );++ if (+ updatedMonitorIds.length === 0 ||+ (settings.monitorIds.length === 1 &&+ settings.monitorIds[0] === "default" &&+ monitors.length > 0)+ ) {+ updatedMonitorIds = [+ monitors.find((monitor) => monitor.is_default)!.id!.toString(),+ ];+ }++ // Update audio devices+ const availableAudioDeviceNames = audioDevices.map(+ (device) => device.name+ );+ let updatedAudioDevices = settings.audioDevices.filter((device) =>+ availableAudioDeviceNames.includes(device)+ );++ if (+ updatedAudioDevices.length === 0 ||+ (settings.audioDevices.length === 1 &&+ settings.audioDevices[0] === "default" &&+ audioDevices.length > 0)+ ) {+ updatedAudioDevices = audioDevices+ .filter((device) => device.is_default)+ .map((device) => device.name);+ }++ handleSettingsChange(+ {+ monitorIds: updatedMonitorIds,+ audioDevices: updatedAudioDevices,+ },+ false+ );+ } catch (error) {+ console.error("Failed to load devices:", error);+ }+ };++ loadDevices();+ }, []);++ const handleUpdate = async () => {+ setIsUpdating(true);+ toast({+ title: "updating screenpipe recording settings",+ description: "this may take a few moments...",+ });++ try {+ console.log("settings", settings);++ if (!settings.analyticsEnabled) {+ posthog.capture("telemetry", {+ enabled: false,+ });+ // disable opentelemetry+ posthog.opt_out_capturing();+ // disable sentry+ Sentry.close();+ console.log("telemetry disabled");+ } else {+ const isDebug = process.env.TAURI_ENV_DEBUG === "true";+ if (!isDebug) {+ posthog.opt_in_capturing();+ posthog.capture("telemetry", {+ enabled: true,+ });++ // enable opentelemetry+ console.log("telemetry enabled");++ // enable sentry+ Sentry.init({+ ...defaultOptions,+ });+ }+ }++ await invoke("stop_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 1000));+ // Start a new instance with updated settings+ await invoke("spawn_screenpipe");++ await new Promise((resolve) => setTimeout(resolve, 2000));+ // await relaunch();++ // toast({+ // title: "settings updated successfully",+ // description: "screenpipe has been restarted with new settings.",+ // });++ // window.location.reload();+ } catch (error) {+ console.error("failed to update settings:", error);+ toast({+ title: "error updating settings",+ description: "please try again or check the logs for more information.",+ variant: "destructive",+ });+ } finally {+ setIsUpdating(false);+ }+ };++ const handleAudioTranscriptionModelChange = (+ value: string,+ realtime = false+ ) => {+ const isLoggedIn = checkLogin(settings.user);+ // If trying to use cloud but not logged in+ if (value === "screenpipe-cloud" && !isLoggedIn) {+ return;+ }++ // If trying to use cloud but not subscribed+ if (value === "screenpipe-cloud" && !settings.user?.cloud_subscribed) {+ const clientRefId = `${+ settings.user?.id+ }&customer_email=${encodeURIComponent(settings.user?.email ?? "")}`;+ openUrl(+ `https://buy.stripe.com/7sIdRzbym4RA98c7sX?client_reference_id=${clientRefId}`+ );+ // Revert back to previous value in the Select component+ return;+ }++ // Only proceed with the change if all checks pass+ const newSettings = realtime+ ? { realtimeAudioTranscriptionEngine: value }+ : { audioTranscriptionEngine: value };+ handleSettingsChange(newSettings, true);+ };++ const handleOcrModelChange = (value: string) => {+ handleSettingsChange({ ocrEngine: value });+ };++ const handleLanguageChange = (currentValue: Language) => {+ const updatedLanguages = settings.languages.includes(currentValue)+ ? settings.languages.filter((id) => id !== currentValue)+ : [...settings.languages, currentValue];++ handleSettingsChange({ languages: updatedLanguages });+ };++ const handleAudioDeviceChange = (currentValue: string) => {+ const updatedDevices = settings.audioDevices.includes(currentValue)+ ? settings.audioDevices.filter((device) => device !== currentValue)+ : [...settings.audioDevices, currentValue];++ handleSettingsChange({ audioDevices: updatedDevices }, true);+ };++ const handlePiiRemovalChange = (checked: boolean) => {+ handleSettingsChange({ usePiiRemoval: checked }, true);+ };++ const handleDisableAudioChange = (checked: boolean) => {+ handleSettingsChange({ disableAudio: checked }, true);+ };++ const handleFpsChange = (value: number[]) => {+ handleSettingsChange({ fps: value[0] }, true);+ };++ const handleVadSensitivityChange = (value: number[]) => {+ const sensitivityMap: { [key: number]: VadSensitivity } = {+ 2: "high",+ 1: "medium",+ 0: "low",+ };+ handleSettingsChange(+ {+ vadSensitivity: sensitivityMap[value[0]],+ },+ true+ );+ };++ const vadSensitivityToNumber = (sensitivity: VadSensitivity): number => {+ const sensitivityMap: { [key in VadSensitivity]: number } = {+ high: 2,+ medium: 1,+ low: 0,+ };+ return sensitivityMap[sensitivity];+ };++ const handleAudioChunkDurationChange = (value: number[]) => {+ handleSettingsChange({ audioChunkDuration: value[0] }, true);+ };++ const renderOcrEngineOptions = () => {+ const currentPlatform = platform();+ return (+ <>+ {currentPlatform === "linux" && (+ <SelectItem value="tesseract">tesseract</SelectItem>+ )}+ {currentPlatform === "windows" && (+ <SelectItem value="windows-native">windows native</SelectItem>+ )}+ {currentPlatform === "macos" && (+ <SelectItem value="apple-native">apple native</SelectItem>+ )}+ </>+ );+ };++ const handleAnalyticsToggle = (checked: boolean) => {+ const newValue = checked;+ handleSettingsChange({ analyticsEnabled: newValue }, true);+ };++ const handleChineseMirrorToggle = async (checked: boolean) => {+ handleSettingsChange({ useChineseMirror: checked }, true);+ };++ const handleDataDirChange = async () => {+ if (clickTimeout) {+ // Double Click+ clearTimeout(clickTimeout);+ setClickTimeout(null);+ setDataDirInputVisible(true);+ } else {+ const timeout = setTimeout(() => {+ // Single Click+ selectDataDir();+ setClickTimeout(null);+ }, 250);+ setClickTimeout(timeout);+ }++ async function selectDataDir() {+ try {+ const dataDir = await getDataDir();++ const selected = await open({+ directory: true,+ multiple: false,+ defaultPath: dataDir,+ });+ // TODO: check permission of selected dir for server to write into++ if (selected) {+ handleSettingsChange({ dataDir: selected }, true);+ } else {+ console.log("canceled");+ }+ } catch (error) {+ console.error("failed to change data directory:", error);+ toast({+ title: "error",+ description: "failed to change data directory.",+ variant: "destructive",+ duration: 3000,+ });+ }+ }+ };++ const handleDataDirInputChange = async (+ e: React.ChangeEvent<HTMLInputElement>+ ) => {+ const newValue = e.target.value;+ handleSettingsChange({ dataDir: newValue }, true);+ };++ const handleDataDirInputBlur = () => {+ console.log("wcw blur");+ setDataDirInputVisible(false);+ validateDataDirInput();+ };++ const handleDataDirInputKeyDown = (+ e: React.KeyboardEvent<HTMLInputElement>+ ) => {+ if (e.key === "Enter") {+ setDataDirInputVisible(false);+ validateDataDirInput();+ }+ };++ const validateDataDirInput = async () => {+ try {+ if (await exists(settings.dataDir)) {+ return;+ }+ } catch (err) {}++ toast({+ title: "error",+ description: "failed to change data directory.",+ variant: "destructive",+ duration: 3000,+ });++ handleSettingsChange({ dataDir: settings.dataDir }, true);+ };++ const handleFrameCacheToggle = (checked: boolean) => {+ handleSettingsChange(+ {+ enableFrameCache: checked,+ },+ true+ );+ };++ const handleUiMonitoringToggle = async (checked: boolean) => {+ try {+ if (checked) {+ // Check accessibility permissions first+ const perms = await invoke<PermissionsStatus>("do_permissions_check", {+ initialCheck: false,+ });+ if (!perms.accessibility) {+ toast({+ title: "accessibility permission required",+ description:+ "please grant accessibility permission in system preferences",+ action: (+ <ToastAction+ altText="open preferences"+ onClick={() => invoke("open_accessibility_preferences")}+ >+ open preferences+ </ToastAction>+ ),+ variant: "destructive",+ });+ return;+ }+ }++ // Just update the local setting - the update button will handle the restart+ handleSettingsChange({ enableUiMonitoring: checked }, true);+ } catch (error) {+ console.error("failed to toggle ui monitoring:", error);+ toast({+ title: "error checking accessibility permissions",+ description: "please try again or check the logs",+ variant: "destructive",+ });+ }+ };+ const handleIgnoredWindowsChange = (values: string[]) => {+ // Convert all values to lowercase for comparison+ const lowerCaseValues = values.map((v) => v.toLowerCase());+ const currentLowerCase = settings.ignoredWindows.map((v) =>+ v.toLowerCase()+ );++ // Find added values (in values but not in current)+ const addedValues = values.filter(+ (v) => !currentLowerCase.includes(v.toLowerCase())+ );+ // Find removed values (in current but not in values)+ const removedValues = settings.ignoredWindows.filter(+ (v) => !lowerCaseValues.includes(v.toLowerCase())+ );++ if (addedValues.length > 0) {+ // Handle adding new value+ const newValue = addedValues[0];+ handleSettingsChange(+ {+ ignoredWindows: [...settings.ignoredWindows, newValue],+ // Remove from included windows if present+ includedWindows: settings.includedWindows.filter(+ (w) => w.toLowerCase() !== newValue.toLowerCase()+ ),+ },+ true+ );+ } else if (removedValues.length > 0) {+ // Handle removing value+ const removedValue = removedValues[0];+ handleSettingsChange(+ {+ ignoredWindows: settings.ignoredWindows.filter(+ (w) => w !== removedValue+ ),+ },+ true+ );+ }+ };++ const handleIncludedWindowsChange = (values: string[]) => {+ // Convert all values to lowercase for comparison+ const lowerCaseValues = values.map((v) => v.toLowerCase());+ const currentLowerCase = settings.includedWindows.map((v) =>+ v.toLowerCase()+ );++ // Find added values (in values but not in current)+ const addedValues = values.filter(+ (v) => !currentLowerCase.includes(v.toLowerCase())+ );+ // Find removed values (in current but not in values)+ const removedValues = settings.includedWindows.filter(+ (v) => !lowerCaseValues.includes(v.toLowerCase())+ );++ if (addedValues.length > 0) {+ // Handle adding new value+ const newValue = addedValues[0];+ handleSettingsChange(+ {+ includedWindows: [...settings.includedWindows, newValue],+ // Remove from ignored windows if present+ ignoredWindows: settings.ignoredWindows.filter(+ (w) => w.toLowerCase() !== newValue.toLowerCase()+ ),+ },+ true+ );+ } else if (removedValues.length > 0) {+ // Handle removing value+ const removedValue = removedValues[0];+ handleSettingsChange(+ {+ includedWindows: settings.includedWindows.filter(+ (w) => w !== removedValue+ ),+ },+ true+ );+ }+ };++ return (+ <div className="w-full space-y-6 py-4">+ <h1 className="text-2xl font-bold mb-4">recording</h1>+ {settings.devMode || (!isUpdating && isDisabled) ? (+ <Alert>+ <Terminal className="h-4 w-4" />+ <AlertTitle>heads up!</AlertTitle>+ <AlertDescription>+ make sure to turn off dev mode and start screenpipe recorder first+ (go to status)+ </AlertDescription>+ </Alert>+ ) : (+ <></>+ )}+ <div+ // className={cn(+ // isDisabled && "opacity-50 pointer-events-none cursor-not-allowed"+ // )}+ >+ <h4 className="text-lg font-semibold my-4">video</h4>+ <div className="space-y-6">+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">disable video recording</h4>+ <p className="text-sm text-muted-foreground">+ useful if you don't need screen recording or if you have+ memory/cpu issues+ </p>+ </div>+ <Switch+ id="disableVision"+ checked={settings.disableVision}+ onCheckedChange={(checked) =>+ handleSettingsChange({ disableVision: checked }, true)+ }+ />+ </div>++ {!settings.disableVision && (+ <>+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">+ enable realtime vision processing+ </h4>+ <p className="text-sm text-muted-foreground">+ stream screen content in real-time (dev preview) -{" "}+ <a+ href="https://github.com/mediar-ai/screenpipe/tree/main/screenpipe-js/examples/stream-screenshots"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary hover:underline"+ >+ view example+ </a>+ </p>+ </div>+ <div className="flex items-center gap-2">+ <Switch+ id="enableRealtimeVision"+ checked={settings.enableRealtimeVision}+ onCheckedChange={(checked) =>+ handleSettingsChange(+ {+ enableRealtimeVision: checked,+ },+ true+ )+ }+ />+ </div>+ </div>++ <div className="flex flex-col space-y-6">+ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="monitorIds"+ className="flex items-center space-x-2"+ >+ <Monitor className="h-4 w-4" />+ <span>monitors</span>+ </Label>+ <MultiSelect+ options={availableMonitors.map((monitor) => ({+ value: monitor.id.toString(),+ label: `${monitor.id}. ${monitor.name} - ${+ monitor.width+ }x${monitor.height} ${+ monitor.is_default ? "(default)" : ""+ }`,+ }))}+ defaultValue={settings.monitorIds}+ onValueChange={(values) =>+ values.length === 0+ ? handleSettingsChange({ disableVision: true }, true)+ : handleSettingsChange({ monitorIds: values }, true)+ }+ placeholder={+ settings.useAllMonitors+ ? "all monitors will be used"+ : "select monitors"+ }+ variant="default"+ modalPopover={true}+ animation={2}+ // disabled={settings.useAllMonitors}+ />+ </div>++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="ocrModel"+ className="flex items-center space-x-2"+ >+ <Eye className="h-4 w-4" />+ <span>ocr model</span>+ </Label>+ <Select+ onValueChange={handleOcrModelChange}+ defaultValue={settings.ocrEngine}+ >+ <SelectTrigger>+ <SelectValue+ className="capitalize"+ placeholder="select ocr engine"+ />+ </SelectTrigger>+ <SelectContent className="capitalize">+ {renderOcrEngineOptions()}+ </SelectContent>+ </Select>+ </div>+ <div className="flex flex-col space-y-2">+ <Label htmlFor="fps" className="flex items-center space-x-2">+ <span>frames per second (fps)</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ adjust the recording frame rate. lower values save+ <br />+ resources, higher values provide smoother+ recordings, less likely to miss activity.+ <br />+ (we do not use resources if your screen does not+ change much)+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex items-center space-x-4">+ <Slider+ id="fps"+ min={0.1}+ max={10}+ step={0.1}+ value={[settings.fps]}+ onValueChange={handleFpsChange}+ className="flex-grow"+ />+ <span className="w-12 text-right">+ {settings.fps.toFixed(1)}+ </span>+ </div>+ </div>+ <div className="space-y-6">+ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="ignoredWindows"+ className="flex items-center space-x-2"+ >+ <span>ignored windows</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ windows to ignore during screen recording+ (case-insensitive), example:+ <br />+ - "bit" will ignore+ "Bitwarden" and "bittorrent"+ <br />- "incognito" will ignore tabs,+ windows that contains the word+ "incognito"+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <MultiSelect+ options={createWindowOptions(+ windowItems,+ settings.ignoredWindows+ )}+ defaultValue={settings.ignoredWindows}+ onValueChange={handleIgnoredWindowsChange}+ placeholder="add windows to ignore"+ variant="default"+ modalPopover={true}+ animation={2}+ allowCustomValues={true}+ validateCustomValue={(value) => value.length >= 2}+ />+ </div>++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="includedWindows"+ className="flex items-center space-x-2"+ >+ <span>included windows</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ windows to include during screen recording+ (case-insensitive), example:+ <br />+ - "chrome" will match "Google+ Chrome"+ <br />- "bitwarden" will match+ "Bitwarden" and "bittorrent"+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <MultiSelect+ options={createWindowOptions(+ windowItems,+ settings.includedWindows+ )}+ defaultValue={settings.includedWindows}+ onValueChange={handleIncludedWindowsChange}+ placeholder="add window to include"+ variant="default"+ modalPopover={true}+ animation={2}+ allowCustomValues={true}+ validateCustomValue={(value) => value.length >= 2}+ />+ </div>+ </div>++ {/* */}+ </div>+ <Separator className="my-6" />+ </>+ )}+ </div>++ <h4 className="text-lg font-semibold my-4">audio</h4>++ <div className="space-y-6">+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">disable audio recording</h4>+ <p className="text-sm text-muted-foreground">+ useful if you don't need audio or if you have memory/cpu+ issues+ </p>+ </div>+ <Switch+ id="disableAudio"+ checked={settings.disableAudio}+ onCheckedChange={handleDisableAudioChange}+ />+ </div>++ {!settings.disableAudio && (+ <>+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">+ enable realtime audio transcription+ </h4>+ <p className="text-sm text-muted-foreground">+ transcribe audio in real-time as you speak (dev preview) -{" "}+ <a+ href="https://github.com/mediar-ai/screenpipe/blob/main/screenpipe-js/examples/basic-transcription/index.ts"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary hover:underline"+ >+ view example+ </a>+ </p>+ </div>+ <div className="flex items-center gap-2">+ <Switch+ id="enableRealtimeAudio"+ checked={settings.enableRealtimeAudioTranscription}+ onCheckedChange={(checked) =>+ handleSettingsChange(+ {+ enableRealtimeAudioTranscription: checked,+ },+ true+ )+ }+ />+ </div>+ </div>++ {settings.enableRealtimeAudioTranscription && (+ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="realtimeAudioTranscriptionEngine"+ className="flex items-center space-x-2"+ >+ <Mic className="h-4 w-4" />+ <span>realtime transcription model</span>+ </Label>+ <Select+ onValueChange={(value) =>+ handleAudioTranscriptionModelChange(value, true)+ }+ value={settings.realtimeAudioTranscriptionEngine}+ >+ <SelectTrigger>+ <SelectValue placeholder="select realtime transcription engine" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="screenpipe-cloud">+ <div className="flex items-center justify-between w-full space-x-2">+ <span>screenpipe cloud</span>+ <div className="flex items-center gap-2">+ <Badge variant="secondary">cloud</Badge>+ {!settings.user?.cloud_subscribed && (+ <Badge variant="outline" className="text-xs">+ get screenpipe cloud+ </Badge>+ )}+ </div>+ </div>+ </SelectItem>+ <SelectItem value="deepgram">+ <div className="flex items-center justify-between w-full space-x-2">+ <span>deepgram</span>+ <Badge variant="secondary">cloud</Badge>+ </div>+ </SelectItem>+ </SelectContent>+ </Select>+ </div>+ )}++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="audioTranscriptionModel"+ className="flex items-center space-x-2"+ >+ <Mic className="h-4 w-4" />+ <span>audio transcription model</span>+ </Label>+ <Select+ onValueChange={handleAudioTranscriptionModelChange}+ value={settings.audioTranscriptionEngine}+ >+ <SelectTrigger>+ <SelectValue placeholder="select audio transcription engine" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="screenpipe-cloud">+ <div className="flex items-center justify-between w-full space-x-2">+ <span>screenpipe cloud</span>+ <div className="flex items-center gap-2">+ <Badge variant="secondary">cloud</Badge>+ {!settings.user?.cloud_subscribed && (+ <Badge variant="outline" className="text-xs">+ get screenpipe cloud+ </Badge>+ )}+ </div>+ </div>+ </SelectItem>+ <SelectItem value="deepgram">+ <div className="flex items-center justify-between w-full space-x-2">+ <span>deepgram</span>+ <Badge variant="secondary">cloud</Badge>+ </div>+ </SelectItem>+ <SelectItem value="whisper-tiny">whisper-tiny</SelectItem>+ <SelectItem value="whisper-tiny-quantized">+ whisper-tiny-quantized+ </SelectItem>+ <SelectItem value="whisper-large">whisper-large</SelectItem>+ <SelectItem value="whisper-large-quantized">+ whisper-large-quantized+ </SelectItem>+ <SelectItem value="whisper-large-v3-turbo">+ whisper-large-turbo+ </SelectItem>+ <SelectItem value="whisper-large-v3-turbo-quantized">+ whisper-large-turbo-quantized+ </SelectItem>+ </SelectContent>+ </Select>+ </div>++ {settings.audioTranscriptionEngine === "deepgram" && (+ <div className="mt-2">+ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="deepgramApiKey"+ className="flex items-center gap-2"+ >+ <Key className="h-4 w-4" />+ <span>api key</span>+ </Label>+ <div className="flex-grow relative">+ <Input+ id="deepgramApiKey"+ type={showApiKey ? "text" : "password"}+ value={settings.deepgramApiKey}+ onChange={(e) => {+ const newValue = e.target.value;+ handleSettingsChange(+ {+ deepgramApiKey: newValue,+ },+ true+ );+ }}+ className="pr-10 w-full"+ placeholder="enter your Deepgram API key"+ autoCorrect="off"+ autoCapitalize="off"+ autoComplete="off"+ />+ <Button+ type="button"+ variant="ghost"+ size="icon"+ className="absolute right-0 top-0 h-full"+ onClick={() => setShowApiKey(!showApiKey)}+ >+ {showApiKey ? (+ <EyeOff className="h-4 w-4" />+ ) : (+ <Eye className="h-4 w-4" />+ )}+ </Button>+ </div>+ </div>+ <p className="text-sm text-muted-foreground text-left mt-1">+ don't have an api key? get one from{" "}+ <a+ href="https://console.deepgram.com/"+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary hover:underline"+ >+ deepgram's website+ </a>{" "}+ or use screenpipe cloud+ </p>+ </div>+ )}++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="audioDevices"+ className="flex items-center space-x-2"+ >+ <Mic className="h-4 w-4" />+ <span>audio devices</span>+ </Label>+ <Popover+ open={openAudioDevices}+ onOpenChange={setOpenAudioDevices}+ modal={true}+ >+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ aria-expanded={openAudioDevices}+ className="w-full justify-between"+ >+ {settings.audioDevices.length > 0+ ? `${settings.audioDevices.length} device(s) selected`+ : "select audio devices"}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-full p-0">+ <Command>+ <CommandInput placeholder="search audio devices..." />+ <CommandList>+ <CommandEmpty>no audio device found.</CommandEmpty>+ <CommandGroup>+ {availableAudioDevices.map((device) => (+ <CommandItem+ key={device.name}+ value={device.name}+ onSelect={() =>+ handleAudioDeviceChange(device.name)+ }+ >+ <div className="flex items-center">+ <Check+ className={cn(+ "mr-2 h-4 w-4",+ settings.audioDevices.includes(device.name)+ ? "opacity-100"+ : "opacity-0"+ )}+ />+ <span+ style={{+ userSelect: "none",+ WebkitUserSelect: "none",+ MozUserSelect: "none",+ msUserSelect: "none",+ }}+ >+ {device.name}{" "}+ {device.is_default ? "(default)" : ""}+ </span>+ </div>+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ </div>++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="languages"+ className="flex items-center space-x-2"+ >+ <Languages className="h-4 w-4" />+ <span>languages</span>+ </Label>+ <Popover open={openLanguages} onOpenChange={setOpenLanguages}>+ <PopoverTrigger asChild>+ <Button+ variant="outline"+ role="combobox"+ aria-expanded={openLanguages}+ className="w-full justify-between"+ >+ {settings.languages.length > 0+ ? `${settings.languages.join(", ")}`+ : "select languages"}+ <ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />+ </Button>+ </PopoverTrigger>+ <PopoverContent className="w-full p-0">+ <Command>+ <CommandInput placeholder="search languages..." />+ <CommandList>+ <CommandEmpty>no language found.</CommandEmpty>+ <CommandGroup>+ {Object.entries(Language).map(([language, id]) => (+ <CommandItem+ key={language}+ value={language}+ onSelect={() => handleLanguageChange(id)}+ >+ <div className="flex items-center">+ <Check+ className={cn(+ "mr-2 h-4 w-4",+ settings.languages.includes(id)+ ? "opacity-100"+ : "opacity-0"+ )}+ />+ {/* not selectable */}+ <span+ style={{+ userSelect: "none",+ WebkitUserSelect: "none",+ MozUserSelect: "none",+ msUserSelect: "none",+ }}+ >+ {language}+ </span>+ </div>+ </CommandItem>+ ))}+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ </div>++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="vadSensitivity"+ className="flex items-center space-x-2"+ >+ <span>voice activity detection sensitivity</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ adjust the voice activity detection sensitivity.+ <br />+ low: more sensitive, catches most speech but may have+ more false positives.+ <br />+ medium: balanced sensitivity.+ <br />+ high (recommended): less sensitive, may miss some+ speech but reduces false positives.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex items-center space-x-4">+ <Slider+ id="vadSensitivity"+ min={0}+ max={2}+ step={1}+ value={[vadSensitivityToNumber(settings.vadSensitivity)]}+ onValueChange={handleVadSensitivityChange}+ className="flex-grow"+ />+ <span className="w-16 text-right">+ {settings.vadSensitivity}+ </span>+ </div>+ <div className="flex justify-between text-xs text-gray-500">+ <span>low</span>+ <span>medium</span>+ <span>high</span>+ </div>+ </div>++ <div className="flex flex-col space-y-2">+ <Label+ htmlFor="audioChunkDuration"+ className="flex items-center space-x-2"+ >+ <span>audio chunk duration (seconds)</span>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger>+ <HelpCircle className="h-4 w-4 cursor-default" />+ </TooltipTrigger>+ <TooltipContent side="right">+ <p>+ adjust the duration of each audio chunk.+ <br />+ shorter durations may lower resource usage spikes,+ <br />+ while longer durations may increase transcription+ quality.+ <br />+ deepgram in general works better than whisper if you+ want higher quality transcription.+ </p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </Label>+ <div className="flex items-center space-x-4">+ <Slider+ id="audioChunkDuration"+ min={5}+ max={3000}+ step={1}+ value={[settings.audioChunkDuration]}+ onValueChange={handleAudioChunkDurationChange}+ className="flex-grow"+ />+ <span className="w-12 text-right">+ {settings.audioChunkDuration} s+ </span>+ </div>+ </div>+ </>+ )}+ </div>++ <Separator className="my-6" />++ <h4 className="text-lg font-semibold my-4">misc</h4>++ <div className="space-y-8 py-4">+ <div className="space-y-6">+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">+ remove personal information (pii)+ </h4>+ <p className="text-sm text-muted-foreground">+ removes sensitive data like credit cards, emails, and phone+ numbers from ocr text+ </p>+ </div>+ <div className="flex items-center gap-2">+ <Badge variant="secondary">experimental</Badge>+ <Switch+ id="piiRemoval"+ checked={settings.usePiiRemoval}+ onCheckedChange={handlePiiRemovalChange}+ />+ </div>+ </div>++ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">enable telemetry</h4>+ <p className="text-sm text-muted-foreground">+ help improve screenpipe with anonymous usage data+ </p>+ </div>+ <Switch+ id="analytics-toggle"+ checked={settings.analyticsEnabled}+ onCheckedChange={handleAnalyticsToggle}+ />+ </div>++ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">use chinese mirror</h4>+ <p className="text-sm text-muted-foreground">+ alternative download source for hugging face models in+ mainland china+ </p>+ </div>+ <Switch+ id="chinese-mirror-toggle"+ checked={settings.useChineseMirror}+ onCheckedChange={handleChineseMirrorToggle}+ />+ </div>++ {isMacOS && (+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">enable ui monitoring</h4>+ <p className="text-sm text-muted-foreground">+ monitor ui elements for better search context (requires+ accessibility permission)+ </p>+ </div>+ <div className="flex items-center gap-2">+ <Switch+ id="ui-monitoring-toggle"+ checked={settings.enableUiMonitoring}+ onCheckedChange={handleUiMonitoringToggle}+ />+ </div>+ </div>+ )}++ <div className="space-y-2">+ <div className="flex items-center gap-2 mb-2">+ <Folder className="h-5 w-5" />+ <h3 className="text-lg font-semibold">data directory</h3>+ </div>++ {!dataDirInputVisible ? (+ <Button+ variant="outline"+ role="combobox"+ className="w-full justify-between"+ onClick={handleDataDirChange}+ >+ <div className="flex gap-4">+ {!!settings.dataDir+ ? "change directory"+ : "select directory"}+ <span className="text-muted-foreground">+ {settings.dataDir === settings.dataDir+ ? `current at: ${+ settings.dataDir || "default directory"+ }`+ : `change to: ${+ settings.dataDir || "default directory"+ }`}+ </span>+ </div>+ <ChevronsUpDown className="h-4 w-4 opacity-50" />+ </Button>+ ) : (+ <Input+ id="dataDir"+ type="text"+ autoFocus={true}+ value={settings.dataDir}+ onChange={handleDataDirInputChange}+ onBlur={handleDataDirInputBlur}+ onKeyDown={handleDataDirInputKeyDown}+ />+ )}+ </div>++ {/* */}+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/openrewind/components/settings/shortcut-row.tsx b/openrewind/components/settings/shortcut-row.tsxnew file mode 100644index 000000000..682da4529--- /dev/null+++ b/openrewind/components/settings/shortcut-row.tsx@@ -0,0 +1,276 @@+import React, { useEffect, useState } from "react";+import { Settings, Shortcut, useSettings } from "@/lib/hooks/use-settings";+import { useProfiles } from "@/lib/hooks/use-profiles";+import { parseKeyboardShortcut } from "@/lib/utils";+import { Switch } from "@/components/ui/switch";+import { toast } from "@/components/ui/use-toast";+import { cn } from "@/lib/utils";+import { Pencil } from "lucide-react";+import { invoke } from "@tauri-apps/api/core";+import hotkeys from "hotkeys-js";++interface ShortcutRowProps {+ shortcut: string;+ title: string;+ description: string;+ type: "global" | "profile" | "pipe";+ value?: string;+}++enum ShortcutState {+ ENABLED = "enabled",+ DISABLED = "disabled",+ UNASSIGNED = "unassigned",+}++const ShortcutRow = ({+ shortcut,+ title,+ description,+ type,+ value,+}: ShortcutRowProps) => {+ const [isRecording, setIsRecording] = useState(false);+ const { settings, updateSettings } = useSettings();+ const { profileShortcuts, updateProfileShortcut } = useProfiles();++ useEffect(() => {+ if (!isRecording) return;++ const handleKeyDown = (event: KeyboardEvent) => {+ event.preventDefault();++ const MODIFIER_KEYS = ["SUPER", "CTRL", "ALT", "SHIFT"] as const;+ const KEY_CODE_MAP: Record<number, string> = {+ 91: "SUPER",+ 93: "SUPER",+ 16: "SHIFT",+ 17: "CTRL",+ 18: "ALT",+ };++ const pressedKeys = hotkeys+ .getPressedKeyCodes()+ .map((code) => KEY_CODE_MAP[code] || String.fromCharCode(code))+ .filter((value, index, self) => self.indexOf(value) === index);++ const modifiers = pressedKeys.filter((k) =>+ MODIFIER_KEYS.includes(k as any)+ );+ const normalKeys = pressedKeys.filter(+ (k) => !MODIFIER_KEYS.includes(k as any)+ );+ const finalKeys = [...modifiers, ...normalKeys];++ if (normalKeys.length > 0) {+ handleEnableShortcut(finalKeys.join("+"));+ setIsRecording(false);+ }+ };++ hotkeys.filter = () => true;+ hotkeys("*", handleKeyDown);++ return () => {+ setIsRecording(false);+ hotkeys.unbind("*");+ hotkeys.filter = (event) => {+ const target = (event.target || event.srcElement) as any;+ return !(+ target.isContentEditable ||+ target.tagName === "INPUT" ||+ target.tagName === "TEXTAREA"+ );+ };+ };+ }, [isRecording]);++ const syncShortcuts = async (updatedShortcuts: {+ showScreenpipeShortcut: string;+ startRecordingShortcut: string;+ stopRecordingShortcut: string;+ startAudioShortcut: string;+ stopAudioShortcut: string;+ profileShortcuts: Record<string, string>;+ pipeShortcuts: Record<string, string>;+ }) => {+ console.log("syncing shortcuts:", {+ showShortcut: updatedShortcuts.showScreenpipeShortcut,+ startShortcut: updatedShortcuts.startRecordingShortcut,+ stopShortcut: updatedShortcuts.stopRecordingShortcut,+ startAudioShortcut: updatedShortcuts.startAudioShortcut,+ stopAudioShortcut: updatedShortcuts.stopAudioShortcut,+ profileShortcuts: updatedShortcuts.profileShortcuts,+ pipeShortcuts: updatedShortcuts.pipeShortcuts,+ });+ // wait 1 second+ await new Promise((resolve) => setTimeout(resolve, 1000));+ await invoke("update_global_shortcuts", {+ showShortcut: updatedShortcuts.showScreenpipeShortcut,+ startShortcut: updatedShortcuts.startRecordingShortcut,+ stopShortcut: updatedShortcuts.stopRecordingShortcut,+ startAudioShortcut: updatedShortcuts.startAudioShortcut,+ stopAudioShortcut: updatedShortcuts.stopAudioShortcut,+ profileShortcuts: updatedShortcuts.profileShortcuts,+ pipeShortcuts: updatedShortcuts.pipeShortcuts,+ });++ return true;+ };++ const handleEnableShortcut = async (keys: string) => {+ try {+ toast({+ title: "shortcut enabled",+ description: `${shortcut.replace(/_/g, " ")} enabled`,+ });++ // Remove from disabled shortcuts if it exists+ updateSettings({+ disabledShortcuts: settings.disabledShortcuts.filter(+ (s) => s !== shortcut+ ),+ });++ switch (type) {+ case "global":+ updateSettings({ [shortcut]: keys });+ await syncShortcuts({+ ...settings,+ [shortcut]: keys,+ profileShortcuts,+ pipeShortcuts: settings.pipeShortcuts,+ });+ break;+ case "profile":+ const profileId = shortcut.replace("profile_", "");+ updateProfileShortcut({+ profile: profileId,+ shortcut: keys,+ });+ await syncShortcuts({+ ...settings,+ profileShortcuts: {+ ...profileShortcuts,+ [profileId]: keys,+ },+ pipeShortcuts: settings.pipeShortcuts,+ });+ break;+ case "pipe":+ const pipeId = shortcut.replace("pipe_", "");+ updateSettings({+ pipeShortcuts: {+ ...settings.pipeShortcuts,+ [pipeId]: keys,+ },+ });+ await syncShortcuts({+ ...settings,+ profileShortcuts,+ pipeShortcuts: {+ ...settings.pipeShortcuts,+ [pipeId]: keys,+ },+ });+ break;+ }+ } catch (error) {+ console.error("error updating shortcut", error);+ toast({+ title: "error updating shortcut",+ description:+ "failed to register shortcut. please try a different combination.",+ variant: "destructive",+ });+ }+ };++ const handleDisableShortcut = async () => {+ toast({+ title: "shortcut disabled",+ description: `${shortcut.replace(/_/g, " ")} disabled`,+ });+ updateSettings({+ disabledShortcuts: Array.from(+ new Set([...settings.disabledShortcuts, shortcut as Shortcut])+ ),+ });++ await syncShortcuts({+ ...settings,+ profileShortcuts,+ pipeShortcuts: settings.pipeShortcuts,+ });+ };++ const isValueEmpty = (v: string | undefined): boolean =>+ !v || v.trim() === "";++ const currentKeys = isValueEmpty(value)+ ? ["Unassigned"]+ : parseKeyboardShortcut(value || "").split("+");++ const getShortcutState = (): ShortcutState => {+ if (isValueEmpty(value)) return ShortcutState.UNASSIGNED;+ return settings.disabledShortcuts.includes(shortcut as Shortcut)+ ? ShortcutState.DISABLED+ : ShortcutState.ENABLED;+ };++ return (+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h4 className="font-medium">{title}</h4>+ <p className="text-sm text-muted-foreground">{description}</p>+ </div>+ <div className="flex items-center gap-4">+ <button+ onClick={() => setIsRecording(true)}+ className={cn(+ "relative min-w-[140px] rounded-md border px-3 py-2 text-sm",+ "bg-muted/50 hover:bg-muted/70 transition-colors",+ "focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-ring",+ isRecording && "border-primary",+ !value && "text-muted-foreground"+ )}+ >+ {isRecording ? (+ <span className="animate-pulse">recording...</span>+ ) : (+ <span className="flex items-center justify-between gap-2">+ {currentKeys.map((key, i) => (+ <kbd+ key={i}+ className={cn(+ "px-1 rounded",+ value ? "bg-background/50" : "bg-transparent"+ )}+ >+ {key}+ </kbd>+ ))}+ <Pencil className="h-3 w-3 opacity-50" />+ </span>+ )}+ </button>++ <Switch+ checked={getShortcutState() === ShortcutState.ENABLED}+ disabled={getShortcutState() === ShortcutState.UNASSIGNED}+ onCheckedChange={async (checked) => {+ if (checked && value) {+ console.log("re-enabling shortcut", value);+ await handleEnableShortcut(value);+ } else {+ console.log("disabling shortcut", shortcut);+ await handleDisableShortcut();+ }+ }}+ />+ </div>+ </div>+ );+};++export default ShortcutRow;diff --git a/openrewind/components/settings/shortcut-section.tsx b/openrewind/components/settings/shortcut-section.tsxnew file mode 100644index 000000000..2ca00bd7b--- /dev/null+++ b/openrewind/components/settings/shortcut-section.tsx@@ -0,0 +1,128 @@+import React, { useEffect, useState } from "react";+import { useSettings } from "@/lib/hooks/use-settings";+import { useProfiles } from "@/lib/hooks/use-profiles";+import { PipeApi } from "@/lib/api";+import ShortcutRow from "./shortcut-row";++const ShortcutSection = () => {+ const [pipes, setPipes] = useState<+ { id: string; source: string; enabled: boolean }[]+ >([]);+ const { settings } = useSettings();+ const { profiles, profileShortcuts } = useProfiles();++ useEffect(() => {+ const loadPipes = async () => {+ try {+ const pipeApi = new PipeApi();+ const pipeList = await pipeApi.listPipes();+ setPipes(+ pipeList.map((p) => ({+ id: p.id,+ source: p.source,+ enabled: p.enabled,+ }))+ );+ } catch (error) {+ console.error("failed to load pipes:", error);+ }+ };+ loadPipes();+ }, []);++ return (+ <div className="w-full space-y-6 py-4">+ <h1 className="text-2xl font-bold">shortcuts</h1>++ <div className="space-y-6">+ <ShortcutRow+ type="global"+ shortcut="showScreenpipeShortcut"+ title="toggle screenpipe overlay"+ description="global shortcut to show/hide the main interface"+ value={settings.showScreenpipeShortcut}+ />++ <ShortcutRow+ type="global"+ shortcut="startRecordingShortcut"+ title="start recording"+ description="global shortcut to start screen recording"+ value={settings.startRecordingShortcut}+ />++ <ShortcutRow+ type="global"+ shortcut="stopRecordingShortcut"+ title="stop recording"+ description="global shortcut to stop screen recording"+ value={settings.stopRecordingShortcut}+ />++ <ShortcutRow+ type="global"+ shortcut="startAudioShortcut"+ title="start audio recording"+ description="global shortcut to start audio recording"+ value={settings.startAudioShortcut}+ />++ <ShortcutRow+ type="global"+ shortcut="stopAudioShortcut"+ title="stop audio recording"+ description="global shortcut to stop audio recording"+ value={settings.stopAudioShortcut}+ />++ {profiles.length > 1 && (+ <>+ <div className="mt-8 mb-4">+ <h2 className="text-lg font-semibold">profile shortcuts</h2>+ <p className="text-sm text-muted-foreground">+ assign shortcuts to quickly switch between profiles+ </p>+ </div>++ {profiles.map((profile) => (+ <ShortcutRow+ key={profile}+ type="profile"+ shortcut={`profile_${profile}`}+ title={`switch to ${profile}`}+ description={`activate ${profile} profile`}+ value={profileShortcuts[profile]}+ />+ ))}+ </>+ )}++ {pipes.filter((p) => p.enabled).length > 0 && (+ <>+ <div className="mt-8 mb-4">+ <h2 className="text-lg font-semibold">pipe shortcuts</h2>+ <p className="text-sm text-muted-foreground">+ assign shortcuts to quickly trigger installed pipes+ </p>+ </div>++ {pipes+ .filter((p) => p.enabled)+ .map((pipe) => (+ <ShortcutRow+ key={pipe.id}+ type="pipe"+ shortcut={`pipe_${pipe.id}`}+ title={`trigger ${pipe.id} pipe`}+ description={`run pipe ${pipe.id}`}+ value={settings.pipeShortcuts[pipe.id]}+ />+ ))}+ </>+ )}+ </div>+ </div>+ );+};++export default ShortcutSection;diff --git a/openrewind/components/share-logs-button.tsx b/openrewind/components/share-logs-button.tsxnew file mode 100644index 000000000..a53254f43--- /dev/null+++ b/openrewind/components/share-logs-button.tsx@@ -0,0 +1,432 @@+import { Button } from "./ui/button";+import { useToast } from "./ui/use-toast";+import { Upload, Loader, Copy, X, Camera, Video } from "lucide-react";+import { readTextFile } from "@tauri-apps/plugin-fs";+import { invoke } from "@tauri-apps/api/core";+import { useState, useEffect } from "react";+import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { useSettings } from "@/lib/hooks/use-settings";+import { getVersion } from "@tauri-apps/api/app";+import {+ version as osVersion,+ platform as osPlatform,+} from "@tauri-apps/plugin-os";+import { Textarea } from "./ui/textarea";+import {+ Tooltip,+ TooltipContent,+ TooltipTrigger,+ TooltipProvider,+} from "./ui/tooltip";+import { useHealthCheck } from "@/lib/hooks/use-health-check";++interface LogFile {+ name: string;+ path: string;+ modified_at: number;+}++interface VideoChunk {+ device_name: string;+ file_path: string;+ id: number;+}++const ShareLinkDisplay = ({+ shareLink,+ onCopy,+ onClose,+}: {+ shareLink: string;+ onCopy: () => void;+ onClose: () => void;+}) => {+ return (+ <div className="flex items-center gap-2 bg-secondary/30 px-3 py-2 rounded-lg border border-secondary animate-in fade-in slide-in-from-top-4">+ <div className="flex items-center gap-2 flex-1">+ <div className="h-2 w-2 bg-green-500 rounded-full animate-pulse" />+ <span className="text-sm font-mono">{shareLink}</span>+ </div>+ <div className="flex items-center gap-1.5">+ <Button+ variant="ghost"+ size="icon"+ className="h-7 w-7 hover:bg-secondary/50 transition-colors"+ onClick={onCopy}+ title="Copy share link"+ >+ <Copy className="h-3.5 w-3.5" />+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-7 w-7 hover:bg-secondary/50 transition-colors text-muted-foreground"+ onClick={onClose}+ title="Dismiss"+ >+ <X className="h-3.5 w-3.5" />+ </Button>+ </div>+ </div>+ );+};++export const ShareLogsButton = ({+ showShareLink = true,+ onComplete,+}: {+ showShareLink?: boolean;+ onComplete?: () => void;+}) => {+ const { toast } = useToast();+ const { copyToClipboard } = useCopyToClipboard({ timeout: 3000 });+ const { settings } = useSettings();+ const [isSending, setIsSending] = useState(false);+ const [shareLink, setShareLink] = useState("");+ const [machineId, setMachineId] = useState("");+ const [feedbackText, setFeedbackText] = useState("");+ const [isLoadingVideo, setIsLoadingVideo] = useState(false);+ const [screenshot, setScreenshot] = useState<string | null>(null);+ const [mergedVideoPath, setMergedVideoPath] = useState<string | null>(null);+ const { health } = useHealthCheck();++ useEffect(() => {+ const loadMachineId = async () => {+ let id = localStorage.getItem("machineId");+ if (!id) {+ id = crypto.randomUUID();+ localStorage.setItem("machineId", id);+ }+ setMachineId(id);+ };+ loadMachineId();+ }, []);++ const getLogFiles = async () => {+ try {+ const logFiles = await invoke("get_log_files");+ return logFiles as LogFile[];+ } catch (error) {+ console.error("failed to get log files:", error);+ return [];+ }+ };++ const captureLastFiveMinutes = async () => {+ setIsLoadingVideo(true);+ try {+ // Fetch last video chunks+ const response = await fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ query: `+ SELECT * FROM video_chunks+ ORDER BY id DESC+ LIMIT 6+ `,+ }),+ });++ if (!response.ok) throw new Error("failed to fetch video chunks");+ const chunks = (await response.json()) as VideoChunk[];++ // Merge frames+ const mergeResponse = await fetch(+ "http://localhost:3030/experimental/frames/merge",+ {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ video_paths: chunks.map((c) => c.file_path),+ }),+ }+ );++ if (!mergeResponse.ok) throw new Error("failed to merge video chunks");+ const { video_path } = await mergeResponse.json();+ setMergedVideoPath(video_path);+ } catch (err) {+ console.error("failed to capture video:", err);+ toast({+ title: "video capture failed",+ description: "could not record last 5 minutes",+ variant: "destructive",+ });+ } finally {+ setIsLoadingVideo(false);+ }+ };++ const handleScreenshotUpload = async (+ e: React.ChangeEvent<HTMLInputElement>+ ) => {+ try {+ const file = e.target.files?.[0];+ if (!file) return;++ // Convert to data URL for preview+ const reader = new FileReader();+ reader.onload = (e) => {+ setScreenshot(e.target?.result as string);+ };+ reader.readAsDataURL(file);+ } catch (err) {+ console.error("Failed to select screenshot:", err);+ }+ };++ const sendLogs = async () => {+ const logFiles = await getLogFiles();+ if (!logFiles.length) return;++ setIsSending(true);+ try {+ const BASE_URL = "https://screenpi.pe";+ const identifier = settings.user?.id || machineId;+ const type = settings.user?.id ? "user" : "machine";++ // Get all log contents+ const logContents = await Promise.all(+ logFiles.map(async (file) => ({+ name: file.name,+ content: await readTextFile(file.path),+ }))+ );++ const consoleLog = localStorage.getItem("console_logs") || "";++ const signedRes = await fetch(`${BASE_URL}/api/logs`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ identifier,+ type,+ }),+ });++ const {+ data: {+ signedUrl,+ path,+ signedUrlScreenshot,+ signedUrlVideo,+ screenshotPath,+ videoPath,+ },+ } = await signedRes.json();++ const combinedLogs =+ logContents+ .map((log) => `\n=== ${log.name} ===\n${log.content}`)+ .join("\n\n") ++ "\n\n=== Browser Console Logs ===\n" ++ consoleLog;++ await fetch(signedUrl, {+ method: "PUT",+ body: combinedLogs,+ headers: { "Content-Type": "text/plain" },+ });++ // Upload screenshot if exists+ if (screenshot && signedUrlScreenshot) {+ // Convert base64 to blob+ const response = await fetch(screenshot);+ const blob = await response.blob();++ // Upload directly using fetch+ await fetch(signedUrlScreenshot, {+ method: "PUT",+ body: blob,+ headers: { "Content-Type": blob.type },+ });+ }++ // Upload video if exists+ if (mergedVideoPath && signedUrlVideo) {+ console.log({+ filePath: mergedVideoPath,+ signedUrl: signedUrlVideo,+ });++ const videoUploaded = await invoke("upload_file_to_s3", {+ filePath: mergedVideoPath,+ signedUrl: signedUrlVideo,+ });+ if (!videoUploaded) throw new Error("Failed to upload video");+ }++ const os = osPlatform();+ const os_version = osVersion();+ const app_version = await getVersion();++ const confirmRes = await fetch(`${BASE_URL}/api/logs/confirm`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({+ path,+ identifier,+ type,+ os,+ os_version,+ app_version,+ feedback_text: feedbackText,+ screenshot_url: screenshotPath,+ video_url: videoPath,+ }),+ });++ const {+ data: { id },+ } = await confirmRes.json();+ setShareLink(`${BASE_URL}/logs/${id}`);+ } catch (err) {+ console.error("log sharing failed:", err);+ toast({+ title: "sharing failed",+ description: String(err),+ variant: "destructive",+ });+ } finally {+ if (!showShareLink) {+ toast({+ title: "feedback sent",+ description: "thanks for your feedback!",+ });+ }+ if (onComplete) onComplete();+ setIsSending(false);+ }+ };+ return (+ <TooltipProvider>+ <div className="flex flex-col gap-6 w-full max-w-2xl">+ {!shareLink ? (+ <>+ <Textarea+ placeholder="describe your feedback or issue..."+ value={feedbackText}+ onChange={(e) => setFeedbackText(e.target.value)}+ className="min-h-[120px] resize-none rounded-xl bg-secondary/5 placeholder:text-muted-foreground/50 focus:border-secondary/30 focus:ring-0 transition-colors"+ />++ <div className="flex flex-wrap items-center gap-3">+ <label className="cursor-pointer flex-none">+ <input+ type="file"+ accept="image/*"+ className="hidden"+ onChange={handleScreenshotUpload}+ disabled={!!screenshot}+ />+ <Button+ variant={screenshot ? "secondary" : "outline"}+ size="sm"+ className={`gap-2 h-9 px-4 rounded-full transition-all ${+ screenshot+ ? "bg-emerald-500/10 text-emerald-500 border-emerald-500/30 hover:bg-emerald-500/20"+ : ""+ }`}+ disabled={!!screenshot}+ asChild+ >+ <span>+ <Camera className="h-3.5 w-3.5" />+ <span>screenshot</span>+ </span>+ </Button>+ </label>++ <Tooltip delayDuration={200}>+ <TooltipTrigger asChild>+ <Button+ variant={mergedVideoPath ? "secondary" : "outline"}+ size="sm"+ onClick={captureLastFiveMinutes}+ className={`gap-2 h-9 px-4 rounded-full transition-all ${+ mergedVideoPath+ ? "bg-emerald-500/10 text-emerald-500 border-emerald-500/30 hover:bg-emerald-500/20"+ : ""+ }`}+ disabled={isLoadingVideo || health?.status === "error"}+ >+ {isLoadingVideo ? (+ <Loader className="h-3.5 w-3.5 animate-spin" />+ ) : (+ <Video className="h-3.5 w-3.5" />+ )}+ <span>recording</span>+ <span className="ml-1 text-xs text-muted-foreground/70">+ 5m+ </span>+ </Button>+ </TooltipTrigger>+ <TooltipContent+ side="bottom"+ className="text-xs bg-secondary/80 backdrop-blur-sm border-secondary/30"+ >+ attach last 5 minutes of screen recording+ </TooltipContent>+ </Tooltip>+ </div>++ {screenshot && (+ <div className="relative w-48 aspect-video rounded-xl overflow-hidden bg-secondary/10 border border-secondary/20">+ {/* eslint-disable-next-line @next/next/no-img-element */}+ <img+ src={screenshot}+ alt="Screenshot preview"+ className="object-cover w-full h-full"+ />+ <Button+ variant="ghost"+ size="icon"+ className="absolute top-2 right-2 h-7 w-7 rounded-full bg-background/80 hover:bg-background/95 backdrop-blur-sm"+ onClick={() => setScreenshot(null)}+ >+ <X className="h-3.5 w-3.5" />+ </Button>+ </div>+ )}++ <Button+ variant="default"+ size="sm"+ onClick={sendLogs}+ disabled={isSending || !feedbackText.trim()}+ className="gap-2 group relative h-10 px-5 rounded-full"+ >+ {isSending ? (+ <>+ <Loader className="h-3.5 w-3.5 animate-spin" />+ <span>sending feedback...</span>+ </>+ ) : (+ <>+ <Upload className="h-3.5 w-3.5 transition-transform group-hover:-translate-y-0.5" />+ <span>send feedback</span>+ </>+ )}+ </Button>+ </>+ ) : (+ <>+ {showShareLink && (+ <ShareLinkDisplay+ shareLink={shareLink}+ onCopy={() => copyToClipboard(shareLink)}+ onClose={() => {+ setShareLink("");+ setFeedbackText("");+ setScreenshot(null);+ setMergedVideoPath(null);+ }}+ />+ )}+ </>+ )}+ </div>+ </TooltipProvider>+ );+};diff --git a/openrewind/components/spinner.tsx b/openrewind/components/spinner.tsxnew file mode 100644index 000000000..68e47ccbd--- /dev/null+++ b/openrewind/components/spinner.tsx@@ -0,0 +1,16 @@+"use client";++export const spinner = (+ <svg+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5"+ viewBox="0 0 24 24"+ strokeLinecap="round"+ strokeLinejoin="round"+ xmlns="http://www.w3.org/2000/svg"+ className="size-5 animate-spin stroke-zinc-400"+ >+ <path d="M12 3v3m6.366-.366-2.12 2.12M21 12h-3m.366 6.366-2.12-2.12M12 21v-3m-6.366.366 2.12-2.12M3 12h3m-.366-6.366 2.12 2.12"></path>+ </svg>+);diff --git a/openrewind/components/sql-autocomplete-input.tsx b/openrewind/components/sql-autocomplete-input.tsxnew file mode 100644index 000000000..55807bebf--- /dev/null+++ b/openrewind/components/sql-autocomplete-input.tsx@@ -0,0 +1,150 @@+import React, { useState, useRef, useCallback, useEffect } from "react";+import { useSqlAutocomplete } from "@/lib/hooks/use-sql-autocomplete";+import { Command } from "cmdk";+import { Input } from "@/components/ui/input";+import { Loader2, Search, X } from "lucide-react";+import { cn } from "@/lib/utils";++interface SqlAutocompleteInputProps {+ id: string;+ placeholder: string;+ value: string;+ onChange: (value: string) => void;+ type: "app" | "window";+ icon?: React.ReactNode;+ className?: string;+ onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;+}++export function SqlAutocompleteInput({+ id,+ placeholder,+ value,+ onChange,+ type,+ icon,+ className,+ onKeyDown,+}: SqlAutocompleteInputProps) {+ const { items, isLoading } = useSqlAutocomplete(type);+ const [open, setOpen] = useState(false);+ const [inputValue, setInputValue] = useState(value);+ const inputRef = useRef<HTMLInputElement>(null);+ const commandRef = useRef<HTMLDivElement>(null);++ // update local state when prop changes+ useEffect(() => {+ setInputValue(value);+ }, [value]);++ const handleSelect = (selectedValue: string) => {+ onChange(selectedValue);+ setInputValue(selectedValue);+ setOpen(false);+ inputRef.current?.focus();+ };++ const handleInputChange = useCallback(+ (e: React.ChangeEvent<HTMLInputElement>) => {+ const newValue = e.target.value;+ setInputValue(newValue);+ onChange(newValue);+ },+ [onChange]+ );++ const handleClearInput = useCallback(() => {+ setInputValue("");+ onChange("");+ inputRef.current?.focus();+ }, [onChange]);++ useEffect(() => {+ const handleClickOutside = (event: MouseEvent) => {+ if (+ commandRef.current &&+ !commandRef.current.contains(event.target as Node)+ ) {+ setOpen(false);+ }+ };++ document.addEventListener("mousedown", handleClickOutside);+ return () => {+ document.removeEventListener("mousedown", handleClickOutside);+ };+ }, []);++ return (+ <div className={cn("relative", className)} ref={commandRef}>+ <div className="absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400 z-10 flex items-center">+ {icon}+ <span className="w-2" />+ </div>+ <Command className="relative w-full" shouldFilter={false}>+ <div className="relative">+ <Input+ ref={inputRef}+ id={id}+ type="text"+ placeholder={placeholder}+ value={inputValue}+ onChange={handleInputChange}+ onFocus={() => setOpen(true)}+ className={cn("pr-8 w-full", icon ? "pl-7" : "pl-3")}+ autoCorrect="off"+ aria-autocomplete="none"+ onKeyDown={onKeyDown}+ />+ {inputValue && (+ <button+ onClick={handleClearInput}+ className="absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-gray-600"+ >+ <X className="h-4 w-4" />+ </button>+ )}+ </div>+ {open && (+ <Command.List className="absolute z-20 w-full bg-white border border-gray-300 rounded-md mt-1 max-h-60 overflow-auto shadow-lg text-sm">+ <div className="flex items-center px-3 py-2 border-b border-gray-200">+ <Search className="mr-2 h-4 w-4 text-gray-400" />+ <Command.Input+ placeholder="search..."+ value={inputValue}+ onValueChange={setInputValue}+ className="border-none focus:ring-0 outline-none w-full"+ />+ </div>+ {isLoading ? (+ <Command.Loading>+ <div className="px-4 py-2 text-gray-500 flex items-center">+ <Loader2 className="mr-2 h-4 w-4 animate-spin" />+ loading...+ </div>+ </Command.Loading>+ ) : (+ items+ .filter((item) =>+ item.name.toLowerCase().includes(inputValue.toLowerCase())+ )+ .map((item: any) => (+ <Command.Item+ key={item.name}+ value={item.name}+ onSelect={handleSelect}+ className="px-4 py-2 hover:bg-gray-100 cursor-pointer border-b border-gray-200 last:border-b-0"+ >+ {item.name} ({item.count})+ </Command.Item>+ ))+ )}+ {!isLoading && items.length === 0 && (+ <div className="px-4 py-2 text-gray-500">no results found</div>+ )}+ </Command.List>+ )}+ </Command>+ </div>+ );+}diff --git a/openrewind/components/status/permission-buttons.tsx b/openrewind/components/status/permission-buttons.tsxnew file mode 100644index 000000000..b092eaeab--- /dev/null+++ b/openrewind/components/status/permission-buttons.tsx@@ -0,0 +1,182 @@+import React, { useEffect, useState } from "react";+import { Button } from "@/components/ui/button";+import { Check, Lock, Settings, X } from "lucide-react";+import { toast } from "@/components/ui/use-toast";+import { invoke } from "@tauri-apps/api/core";+import { usePlatform } from "@/lib/hooks/use-platform";+import { useSettings } from "@/lib/hooks/use-settings";+import localforage from "localforage";++// You can add this to a types.ts file in your lib directory+export enum OSPermissionStatus {+ NotNeeded = "notNeeded",+ Empty = "empty",+ Granted = "granted",+ Denied = "denied",+}++export interface OSPermissionsCheck {+ screenRecording: OSPermissionStatus;+ microphone: OSPermissionStatus;+ accessibility: OSPermissionStatus;+}++interface PermissionButtonsProps {+ type: "screen" | "audio" | "accessibility";+}++export const PermissionButtons: React.FC<PermissionButtonsProps> = ({+ type,+}) => {+ const { settings } = useSettings();+ const [permissions, setPermissions] = useState<OSPermissionsCheck | null>(+ null+ );+ const { isMac: isMacOS } = usePlatform();++ useEffect(() => {+ const checkPermissions = async () => {+ if (isMacOS) {+ try {+ const perms = await invoke<OSPermissionsCheck>(+ "do_permissions_check",+ {+ initialCheck: true,+ }+ );+ setPermissions(perms);+ } catch (error) {+ console.error("Failed to check permissions:", error);+ }+ }+ };++ // Poll permissions every 1 second+ const intervalId = setInterval(() => {+ checkPermissions();+ }, 1000);++ // Initial check+ checkPermissions();++ // Cleanup interval on unmount+ return () => clearInterval(intervalId);+ }, [isMacOS]);++ const handlePermissionButton = async () => {+ try {+ const permissionType =+ type === "screen"+ ? "screenRecording"+ : type === "audio"+ ? "microphone"+ : "accessibility";++ await invoke("request_permission", {+ permission: permissionType,+ });++ // Refresh permissions after request+ const perms = await invoke<OSPermissionsCheck>("do_permissions_check", {+ initialCheck: false,+ });+ setPermissions(perms);++ // If screen recording permission was requested, set flag and prompt for restart+ if (type === "screen") {+ await localforage.setItem("screenPermissionRestartPending", true);++ toast({+ title: "restart required",+ description:+ "please restart the app to apply screen recording permission",+ duration: 5000,+ });+ }+ } catch (error) {+ console.error(`Failed to request ${type} permission:`, error);+ toast({+ title: "error",+ description: `failed to request ${type} permission`,+ variant: "destructive",+ duration: 3000,+ });+ }+ };++ const handleOpenPermissionSettings = async () => {+ try {+ const permissionType =+ type === "screen"+ ? "screenRecording"+ : type === "audio"+ ? "microphone"+ : "accessibility";++ await invoke("open_permission_settings", {+ permission: permissionType,+ });+ } catch (error) {+ console.error(`failed to open ${type} permission settings:`, error);+ toast({+ title: "error",+ description: `failed to open ${type} permission settings`,+ variant: "destructive",+ duration: 3000,+ });+ }+ };++ if (!isMacOS) return null;++ const isPermitted = (status: OSPermissionStatus) =>+ status === OSPermissionStatus.Granted ||+ status === OSPermissionStatus.NotNeeded;++ const permissionStatus =+ type === "screen"+ ? permissions?.screenRecording+ : type === "audio"+ ? permissions?.microphone+ : permissions?.accessibility;++ const isDisabled = type === "audio" && settings.disableAudio;++ return (+ <div className="flex items-center gap-2">+ {permissions && (+ <span>+ {isPermitted(permissionStatus ?? OSPermissionStatus.Empty) ? (+ <Check className="h-4 w-4 text-green-500" />+ ) : (+ <X className="h-4 w-4 text-red-500" />+ )}+ </span>+ )}+ <Button+ variant="outline"+ className="text-sm justify-center w-[220px]"+ onClick={handlePermissionButton}+ disabled={isDisabled}+ >+ allow{" "}+ {type === "screen"+ ? "screen"+ : type === "audio"+ ? "audio"+ : "accessibility"}{" "}+ access+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="h-8 w-8"+ onClick={handleOpenPermissionSettings}+ title={`Open ${type} settings`}+ disabled={isDisabled}+ >+ <Settings className="h-4 w-4" />+ </Button>+ </div>+ );+};diff --git a/openrewind/components/store/credit-purchase-dialog.tsx b/openrewind/components/store/credit-purchase-dialog.tsxnew file mode 100644index 000000000..903d2e2f4--- /dev/null+++ b/openrewind/components/store/credit-purchase-dialog.tsx@@ -0,0 +1,126 @@+import React, { useState } from "react";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { open as openUrl } from "@tauri-apps/plugin-shell";+import { Loader2 } from "lucide-react";+import { useSettings } from "@/lib/hooks/use-settings";++interface CreditPurchaseDialogProps {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ requiredCredits: number;+ currentCredits: number;+ onCreditsUpdated?: () => void;+}++export function CreditPurchaseDialog({+ open,+ onOpenChange,+ requiredCredits,+ currentCredits,+ onCreditsUpdated,+}: CreditPurchaseDialogProps) {+ const { settings, loadUser } = useSettings();+ const [showRefreshHint, setShowRefreshHint] = useState(false);+ const [isLoading, setIsLoading] = useState(false);++ const handlePurchase = async (url: string) => {+ setIsLoading(true);+ await openUrl(+ `${url}?client_reference_id=${settings.user?.id}&metadata[user_id]=${settings.user?.id}`+ );+ setTimeout(async () => {+ await loadUser(settings.user?.token!, true);+ onCreditsUpdated?.();+ setShowRefreshHint(true);+ setIsLoading(false);+ }, 2000);+ };++ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="w-full max-w-[650px]">+ <DialogHeader>+ <DialogTitle>insufficient credits</DialogTitle>+ </DialogHeader>+ <div className="space-y-4">+ <p className="text-sm text-muted-foreground">+ you need {requiredCredits} credits but only have {currentCredits}+ </p>++ <div className="grid grid-cols-1 gap-3">+ <div className="rounded-lg border bg-card text-card-foreground shadow-sm">+ <div className="flex flex-col space-y-1.5 p-3">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Badge variant="secondary" className="px-1.5 text-xs">+ monthly+ </Badge>+ <span className="text-sm font-mono">+ 15 credits/m, unlimited screenpipe cloud, priority support+ </span>+ </div>+ <Button+ size="sm"+ variant="outline"+ onClick={() =>+ handlePurchase(+ `https://buy.stripe.com/5kA6p79qefweacg5kJ?client_reference_id=${settings.user?.id}&customer_email=${encodeURIComponent(settings.user?.email ?? '')}`+ )+ }+ disabled={isLoading}+ >+ {isLoading ? (+ <Loader2 className="h-4 w-4 animate-spin mr-2" />+ ) : null}+ $30/mo+ </Button>+ </div>+ </div>+ </div>++ <div className="rounded-lg border bg-card text-card-foreground shadow-sm">+ <div className="flex flex-col space-y-1.5 p-3">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Badge variant="secondary" className="px-1.5 text-xs">+ one-time+ </Badge>+ <span className="text-sm font-mono">50 credits</span>+ </div>+ <Button+ size="sm"+ variant="outline"+ onClick={() =>+ handlePurchase(+ `https://buy.stripe.com/eVaeVD45UbfYeswcNd?client_reference_id=${settings.user?.id}&customer_email=${encodeURIComponent(settings.user?.email ?? '')}`+ )+ }+ disabled={isLoading}+ >+ {isLoading ? (+ <Loader2 className="h-4 w-4 animate-spin mr-2" />+ ) : null}+ $50+ </Button>+ </div>+ </div>+ </div>+ </div>++ {showRefreshHint && (+ <p className="text-xs text-muted-foreground">+ if credits not updating, please refresh page+ </p>+ )}+ </div>+ </DialogContent>+ </Dialog>+ );+}diff --git a/openrewind/components/ui/accordion.tsx b/openrewind/components/ui/accordion.tsxnew file mode 100644index 000000000..24c788c2c--- /dev/null+++ b/openrewind/components/ui/accordion.tsx@@ -0,0 +1,58 @@+"use client"++import * as React from "react"+import * as AccordionPrimitive from "@radix-ui/react-accordion"+import { ChevronDown } from "lucide-react"++import { cn } from "@/lib/utils"++const Accordion = AccordionPrimitive.Root++const AccordionItem = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>+>(({ className, ...props }, ref) => (+ <AccordionPrimitive.Item+ ref={ref}+ className={cn("border-b", className)}+ {...props}+ />+))+AccordionItem.displayName = "AccordionItem"++const AccordionTrigger = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>+>(({ className, children, ...props }, ref) => (+ <AccordionPrimitive.Header className="flex">+ <AccordionPrimitive.Trigger+ ref={ref}+ className={cn(+ "flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",+ className+ )}+ {...props}+ >+ {children}+ <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />+ </AccordionPrimitive.Trigger>+ </AccordionPrimitive.Header>+))+AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName++const AccordionContent = React.forwardRef<+ React.ElementRef<typeof AccordionPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>+>(({ className, children, ...props }, ref) => (+ <AccordionPrimitive.Content+ ref={ref}+ className="overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"+ {...props}+ >+ <div className={cn("pb-4 pt-0", className)}>{children}</div>+ </AccordionPrimitive.Content>+))++AccordionContent.displayName = AccordionPrimitive.Content.displayName++export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }diff --git a/openrewind/components/ui/alert-dialog.tsx b/openrewind/components/ui/alert-dialog.tsxnew file mode 100644index 000000000..010910e7f--- /dev/null+++ b/openrewind/components/ui/alert-dialog.tsx@@ -0,0 +1,139 @@+import * as React from "react"+import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"++import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"++const AlertDialog = AlertDialogPrimitive.Root++const AlertDialogTrigger = AlertDialogPrimitive.Trigger++const AlertDialogPortal = AlertDialogPrimitive.Portal++const AlertDialogOverlay = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Overlay+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ ref={ref}+ />+))+AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName++const AlertDialogContent = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>+>(({ className, ...props }, ref) => (+ <AlertDialogPortal>+ <AlertDialogOverlay />+ <AlertDialogPrimitive.Content+ ref={ref}+ className={cn(+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ className+ )}+ {...props}+ />+ </AlertDialogPortal>+))+AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName++const AlertDialogHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-2 text-center sm:text-left",+ className+ )}+ {...props}+ />+)+AlertDialogHeader.displayName = "AlertDialogHeader"++const AlertDialogFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className+ )}+ {...props}+ />+)+AlertDialogFooter.displayName = "AlertDialogFooter"++const AlertDialogTitle = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Title+ ref={ref}+ className={cn("text-lg font-semibold", className)}+ {...props}+ />+))+AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName++const AlertDialogDescription = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+AlertDialogDescription.displayName =+ AlertDialogPrimitive.Description.displayName++const AlertDialogAction = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Action>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Action+ ref={ref}+ className={cn(buttonVariants(), className)}+ {...props}+ />+))+AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName++const AlertDialogCancel = React.forwardRef<+ React.ElementRef<typeof AlertDialogPrimitive.Cancel>,+ React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>+>(({ className, ...props }, ref) => (+ <AlertDialogPrimitive.Cancel+ ref={ref}+ className={cn(+ buttonVariants({ variant: "outline" }),+ "mt-2 sm:mt-0",+ className+ )}+ {...props}+ />+))+AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName++export {+ AlertDialog,+ AlertDialogPortal,+ AlertDialogOverlay,+ AlertDialogTrigger,+ AlertDialogContent,+ AlertDialogHeader,+ AlertDialogFooter,+ AlertDialogTitle,+ AlertDialogDescription,+ AlertDialogAction,+ AlertDialogCancel,+}\ No newline at end of filediff --git a/openrewind/components/ui/alert.tsx b/openrewind/components/ui/alert.tsxnew file mode 100644index 000000000..41fa7e056--- /dev/null+++ b/openrewind/components/ui/alert.tsx@@ -0,0 +1,59 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const alertVariants = cva(+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",+ {+ variants: {+ variant: {+ default: "bg-background text-foreground",+ destructive:+ "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++const Alert = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>+>(({ className, variant, ...props }, ref) => (+ <div+ ref={ref}+ role="alert"+ className={cn(alertVariants({ variant }), className)}+ {...props}+ />+))+Alert.displayName = "Alert"++const AlertTitle = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLHeadingElement>+>(({ className, ...props }, ref) => (+ <h5+ ref={ref}+ className={cn("mb-1 font-medium leading-none tracking-tight", className)}+ {...props}+ />+))+AlertTitle.displayName = "AlertTitle"++const AlertDescription = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLParagraphElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("text-sm [&_p]:leading-relaxed", className)}+ {...props}+ />+))+AlertDescription.displayName = "AlertDescription"++export { Alert, AlertTitle, AlertDescription }diff --git a/openrewind/components/ui/avatar.tsx b/openrewind/components/ui/avatar.tsxnew file mode 100644index 000000000..51e507ba9--- /dev/null+++ b/openrewind/components/ui/avatar.tsx@@ -0,0 +1,50 @@+"use client"++import * as React from "react"+import * as AvatarPrimitive from "@radix-ui/react-avatar"++import { cn } from "@/lib/utils"++const Avatar = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Root+ ref={ref}+ className={cn(+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",+ className+ )}+ {...props}+ />+))+Avatar.displayName = AvatarPrimitive.Root.displayName++const AvatarImage = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Image>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Image+ ref={ref}+ className={cn("aspect-square h-full w-full", className)}+ {...props}+ />+))+AvatarImage.displayName = AvatarPrimitive.Image.displayName++const AvatarFallback = React.forwardRef<+ React.ElementRef<typeof AvatarPrimitive.Fallback>,+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>+>(({ className, ...props }, ref) => (+ <AvatarPrimitive.Fallback+ ref={ref}+ className={cn(+ "flex h-full w-full items-center justify-center rounded-full bg-muted",+ className+ )}+ {...props}+ />+))+AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName++export { Avatar, AvatarImage, AvatarFallback }diff --git a/openrewind/components/ui/badge.tsx b/openrewind/components/ui/badge.tsxnew file mode 100644index 000000000..5a5141348--- /dev/null+++ b/openrewind/components/ui/badge.tsx@@ -0,0 +1,36 @@+import * as React from "react"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const badgeVariants = cva(+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",+ {+ variants: {+ variant: {+ default:+ "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",+ secondary:+ "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",+ destructive:+ "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",+ outline: "text-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++export interface BadgeProps+ extends React.HTMLAttributes<HTMLDivElement>,+ VariantProps<typeof badgeVariants> {}++function Badge({ className, variant, ...props }: BadgeProps) {+ return (+ <div aria-label="health-status-badge" className={cn(badgeVariants({ variant }), className)} {...props} />+ )+}++export { Badge, badgeVariants }diff --git a/openrewind/components/ui/button.tsx b/openrewind/components/ui/button.tsxnew file mode 100644index 000000000..0ba427735--- /dev/null+++ b/openrewind/components/ui/button.tsx@@ -0,0 +1,56 @@+import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const buttonVariants = cva(+ "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ {+ variants: {+ variant: {+ default: "bg-primary text-primary-foreground hover:bg-primary/90",+ destructive:+ "bg-destructive text-destructive-foreground hover:bg-destructive/90",+ outline:+ "border border-input bg-background hover:bg-accent hover:text-accent-foreground",+ secondary:+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",+ ghost: "hover:bg-accent hover:text-accent-foreground",+ link: "text-primary underline-offset-4 hover:underline",+ },+ size: {+ default: "h-10 px-4 py-2",+ sm: "h-9 rounded-md px-3",+ lg: "h-11 rounded-md px-8",+ icon: "h-10 w-10",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++export interface ButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof buttonVariants> {+ asChild?: boolean+}++const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(+ ({ className, variant, size, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"+ return (+ <Comp+ className={cn(buttonVariants({ variant, size, className }))}+ ref={ref}+ {...props}+ />+ )+ }+)+Button.displayName = "Button"++export { Button, buttonVariants }diff --git a/openrewind/components/ui/calendar.tsx b/openrewind/components/ui/calendar.tsxnew file mode 100644index 000000000..2f0243457--- /dev/null+++ b/openrewind/components/ui/calendar.tsx@@ -0,0 +1,66 @@+"use client"++import * as React from "react"+import { ChevronLeft, ChevronRight } from "lucide-react"+import { DayPicker } from "react-day-picker"++import { cn } from "@/lib/utils"+import { buttonVariants } from "@/components/ui/button"++export type CalendarProps = React.ComponentProps<typeof DayPicker>++function Calendar({+ className,+ classNames,+ showOutsideDays = true,+ ...props+}: CalendarProps) {+ return (+ <DayPicker+ showOutsideDays={showOutsideDays}+ className={cn("p-3", className)}+ classNames={{+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",+ month: "space-y-4",+ caption: "flex justify-center pt-1 relative items-center",+ caption_label: "text-sm font-medium",+ nav: "space-x-1 flex items-center",+ nav_button: cn(+ buttonVariants({ variant: "outline" }),+ "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"+ ),+ nav_button_previous: "absolute left-1",+ nav_button_next: "absolute right-1",+ table: "w-full border-collapse space-y-1",+ head_row: "flex",+ head_cell:+ "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",+ row: "flex w-full mt-2",+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",+ day: cn(+ buttonVariants({ variant: "ghost" }),+ "h-9 w-9 p-0 font-normal aria-selected:opacity-100"+ ),+ day_range_end: "day-range-end",+ day_selected:+ "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",+ day_today: "bg-accent text-accent-foreground",+ day_outside:+ "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",+ day_disabled: "text-muted-foreground opacity-50",+ day_range_middle:+ "aria-selected:bg-accent aria-selected:text-accent-foreground",+ day_hidden: "invisible",+ ...classNames,+ }}+ components={{+ IconLeft: ({ ...props }) => <ChevronLeft className="h-4 w-4" />,+ IconRight: ({ ...props }) => <ChevronRight className="h-4 w-4" />,+ }}+ {...props}+ />+ )+}+Calendar.displayName = "Calendar"++export { Calendar }diff --git a/openrewind/components/ui/card.tsx b/openrewind/components/ui/card.tsxnew file mode 100644index 000000000..afa13ecfa--- /dev/null+++ b/openrewind/components/ui/card.tsx@@ -0,0 +1,79 @@+import * as React from "react"++import { cn } from "@/lib/utils"++const Card = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn(+ "rounded-lg border bg-card text-card-foreground shadow-sm",+ className+ )}+ {...props}+ />+))+Card.displayName = "Card"++const CardHeader = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex flex-col space-y-1.5 p-6", className)}+ {...props}+ />+))+CardHeader.displayName = "CardHeader"++const CardTitle = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLHeadingElement>+>(({ className, ...props }, ref) => (+ <h3+ ref={ref}+ className={cn(+ "text-2xl font-semibold leading-none tracking-tight",+ className+ )}+ {...props}+ />+))+CardTitle.displayName = "CardTitle"++const CardDescription = React.forwardRef<+ HTMLParagraphElement,+ React.HTMLAttributes<HTMLParagraphElement>+>(({ className, ...props }, ref) => (+ <p+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+CardDescription.displayName = "CardDescription"++const CardContent = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div ref={ref} className={cn("p-6 pt-0", className)} {...props} />+))+CardContent.displayName = "CardContent"++const CardFooter = React.forwardRef<+ HTMLDivElement,+ React.HTMLAttributes<HTMLDivElement>+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ className={cn("flex items-center p-6 pt-0", className)}+ {...props}+ />+))+CardFooter.displayName = "CardFooter"++export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }diff --git a/openrewind/components/ui/checkbox.tsx b/openrewind/components/ui/checkbox.tsxnew file mode 100644index 000000000..df61a1388--- /dev/null+++ b/openrewind/components/ui/checkbox.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as CheckboxPrimitive from "@radix-ui/react-checkbox"+import { Check } from "lucide-react"++import { cn } from "@/lib/utils"++const Checkbox = React.forwardRef<+ React.ElementRef<typeof CheckboxPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>+>(({ className, ...props }, ref) => (+ <CheckboxPrimitive.Root+ ref={ref}+ className={cn(+ "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",+ className+ )}+ {...props}+ >+ <CheckboxPrimitive.Indicator+ className={cn("flex items-center justify-center text-current")}+ >+ <Check className="h-4 w-4" />+ </CheckboxPrimitive.Indicator>+ </CheckboxPrimitive.Root>+))+Checkbox.displayName = CheckboxPrimitive.Root.displayName++export { Checkbox }diff --git a/openrewind/components/ui/codeblock.tsx b/openrewind/components/ui/codeblock.tsxnew file mode 100644index 000000000..e52893032--- /dev/null+++ b/openrewind/components/ui/codeblock.tsx@@ -0,0 +1,148 @@+// Inspired by Chatbot-UI and modified to fit the needs of this project+// @see https://github.com/mckaywrigley/chatbot-ui/blob/main/components/Markdown/CodeBlock.tsx++"use client";++import { FC, memo } from "react";+import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";+import { coldarkDark } from "react-syntax-highlighter/dist/cjs/styles/prism";++import { useCopyToClipboard } from "@/lib/hooks/use-copy-to-clipboard";+import { IconCheck, IconCopy, IconDownload } from "@/components/ui/icons";+import { Button } from "@/components/ui/button";++interface Props {+ language: string;+ value: string;+}++interface languageMap {+ [key: string]: string | undefined;+}++export const programmingLanguages: languageMap = {+ javascript: ".js",+ python: ".py",+ java: ".java",+ c: ".c",+ cpp: ".cpp",+ "c++": ".cpp",+ "c#": ".cs",+ ruby: ".rb",+ php: ".php",+ swift: ".swift",+ "objective-c": ".m",+ kotlin: ".kt",+ typescript: ".ts",+ go: ".go",+ perl: ".pl",+ rust: ".rs",+ scala: ".scala",+ haskell: ".hs",+ lua: ".lua",+ shell: ".sh",+ sql: ".sql",+ html: ".html",+ css: ".css",+ // add more file extensions here, make sure the key is same as language prop in CodeBlock.tsx component+};++export const generateRandomString = (length: number, lowercase = false) => {+ const chars = "ABCDEFGHJKLMNPQRSTUVWXY3456789"; // excluding similar looking characters like Z, 2, I, 1, O, 0+ let result = "";+ for (let i = 0; i < length; i++) {+ result += chars.charAt(Math.floor(Math.random() * chars.length));+ }+ return lowercase ? result.toLowerCase() : result;+};++const CodeBlock: FC<Props> = memo(({ language, value }) => {+ const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2000 });++ const downloadAsFile = () => {+ if (typeof window === "undefined") {+ return;+ }+ const fileExtension = programmingLanguages[language] || ".file";+ const suggestedFileName = `file-${generateRandomString(+ 3,+ true+ )}${fileExtension}`;+ const fileName = window.prompt("Enter file name", suggestedFileName);++ if (!fileName) {+ // User pressed cancel on prompt.+ return;+ }++ const blob = new Blob([value], { type: "text/plain" });+ const url = URL.createObjectURL(blob);+ const link = document.createElement("a");+ link.download = fileName;+ link.href = url;+ link.style.display = "none";+ document.body.appendChild(link);+ link.click();+ document.body.removeChild(link);+ URL.revokeObjectURL(url);+ };++ const onCopy = () => {+ if (isCopied) return;+ copyToClipboard(value);+ };++ return (+ <div className="relative w-full font-sans codeblock bg-zinc-950">+ <div className="flex items-center justify-between w-full px-6 py-2 pr-4 bg-zinc-800 text-zinc-100">+ <span className="text-xs lowercase">{language}</span>+ <div className="flex items-center space-x-1">+ <Button+ variant="ghost"+ className="hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0"+ onClick={downloadAsFile}+ size="icon"+ >+ <IconDownload />+ <span className="sr-only">Download</span>+ </Button>+ <Button+ variant="ghost"+ size="icon"+ className="text-xs hover:bg-zinc-800 focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-0"+ onClick={onCopy}+ >+ {isCopied ? <IconCheck /> : <IconCopy />}+ <span className="sr-only">Copy code</span>+ </Button>+ </div>+ </div>+ <SyntaxHighlighter+ language={language}+ style={coldarkDark}+ PreTag="div"+ showLineNumbers+ customStyle={{+ margin: 0,+ width: "100%",+ background: "transparent",+ padding: "1.5rem 1rem",+ }}+ lineNumberStyle={{+ userSelect: "none",+ }}+ codeTagProps={{+ style: {+ fontSize: "0.9rem",+ fontFamily: "var(--font-mono)",+ },+ }}+ >+ {value}+ </SyntaxHighlighter>+ </div>+ );+});+CodeBlock.displayName = "CodeBlock";++export { CodeBlock };diff --git a/openrewind/components/ui/collapsible.tsx b/openrewind/components/ui/collapsible.tsxnew file mode 100644index 000000000..9fa48946a--- /dev/null+++ b/openrewind/components/ui/collapsible.tsx@@ -0,0 +1,11 @@+"use client"++import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"++const Collapsible = CollapsiblePrimitive.Root++const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger++const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent++export { Collapsible, CollapsibleTrigger, CollapsibleContent }diff --git a/openrewind/components/ui/command.tsx b/openrewind/components/ui/command.tsxnew file mode 100644index 000000000..48c9a90a9--- /dev/null+++ b/openrewind/components/ui/command.tsx@@ -0,0 +1,155 @@+"use client";++import * as React from "react";+import { type DialogProps } from "@radix-ui/react-dialog";+import { Command as CommandPrimitive } from "cmdk";+import { Search } from "lucide-react";++import { cn } from "@/lib/utils";+import { Dialog, DialogContent } from "@/components/ui/dialog";++const Command = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>+>(({ className, ...props }, ref) => (+ <CommandPrimitive+ ref={ref}+ className={cn(+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",+ className+ )}+ {...props}+ />+));+Command.displayName = CommandPrimitive.displayName;++interface CommandDialogProps extends DialogProps {}++const CommandDialog = ({ children, ...props }: CommandDialogProps) => {+ return (+ <Dialog {...props}>+ <DialogContent className="overflow-hidden p-0 shadow-lg">+ <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">+ {children}+ </Command>+ </DialogContent>+ </Dialog>+ );+};++const CommandInput = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Input>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>+>(({ className, ...props }, ref) => (+ <div className="flex items-center border-b px-3" cmdk-input-wrapper="">+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />+ <CommandPrimitive.Input+ ref={ref}+ className={cn(+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ {...props}+ />+ </div>+));++CommandInput.displayName = CommandPrimitive.Input.displayName;++const CommandList = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.List>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.List+ ref={ref}+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}+ {...props}+ />+));++CommandList.displayName = CommandPrimitive.List.displayName;++const CommandEmpty = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Empty>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>+>((props, ref) => (+ <CommandPrimitive.Empty+ ref={ref}+ className="py-6 text-center text-sm"+ {...props}+ />+));++CommandEmpty.displayName = CommandPrimitive.Empty.displayName;++const CommandGroup = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Group>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Group+ ref={ref}+ className={cn(+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",+ className+ )}+ {...props}+ />+));++CommandGroup.displayName = CommandPrimitive.Group.displayName;++const CommandSeparator = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 h-px bg-border", className)}+ {...props}+ />+));+CommandSeparator.displayName = CommandPrimitive.Separator.displayName;++const CommandItem = React.forwardRef<+ React.ElementRef<typeof CommandPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>+>(({ className, ...props }, ref) => (+ <CommandPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled='true']:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",+ className+ )}+ {...props}+ />+));++CommandItem.displayName = CommandPrimitive.Item.displayName;++const CommandShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn(+ "ml-auto text-xs tracking-widest text-muted-foreground",+ className+ )}+ {...props}+ />+ );+};+CommandShortcut.displayName = "CommandShortcut";++export {+ Command,+ CommandDialog,+ CommandInput,+ CommandList,+ CommandEmpty,+ CommandGroup,+ CommandItem,+ CommandShortcut,+ CommandSeparator,+};diff --git a/openrewind/components/ui/dialog.tsx b/openrewind/components/ui/dialog.tsxnew file mode 100644index 000000000..152b6390c--- /dev/null+++ b/openrewind/components/ui/dialog.tsx@@ -0,0 +1,127 @@+"use client"++import * as React from "react"+import * as DialogPrimitive from "@radix-ui/react-dialog"+import { X } from "lucide-react"++import { cn } from "@/lib/utils"+import { hide } from "@tauri-apps/api/app"++const Dialog = DialogPrimitive.Root++const DialogTrigger = DialogPrimitive.Trigger++const DialogPortal = DialogPrimitive.Portal++const DialogClose = DialogPrimitive.Close++const DialogOverlay = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Overlay+ ref={ref}+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ />+))+DialogOverlay.displayName = DialogPrimitive.Overlay.displayName++const DialogContent = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {+ hideCloseButton?: boolean;+ }+>(({ className, children, hideCloseButton, ...props }, ref) => (+ <DialogPortal>+ <DialogOverlay />+ <DialogPrimitive.Content+ ref={ref}+ className={cn(+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",+ className+ )}+ {...props}+ >+ {children}+ {!hideCloseButton && (+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </DialogPrimitive.Close>+ )}+ </DialogPrimitive.Content>+ </DialogPortal>+))+DialogContent.displayName = DialogPrimitive.Content.displayName++const DialogHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-1.5 text-center sm:text-left",+ className+ )}+ {...props}+ />+)+DialogHeader.displayName = "DialogHeader"++const DialogFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className+ )}+ {...props}+ />+)+DialogFooter.displayName = "DialogFooter"++const DialogTitle = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Title+ ref={ref}+ className={cn(+ "text-lg font-semibold leading-none tracking-tight",+ className+ )}+ {...props}+ />+))+DialogTitle.displayName = DialogPrimitive.Title.displayName++const DialogDescription = React.forwardRef<+ React.ElementRef<typeof DialogPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>+>(({ className, ...props }, ref) => (+ <DialogPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+DialogDescription.displayName = DialogPrimitive.Description.displayName++export {+ Dialog,+ DialogPortal,+ DialogOverlay,+ DialogClose,+ DialogTrigger,+ DialogContent,+ DialogHeader,+ DialogFooter,+ DialogTitle,+ DialogDescription,+}diff --git a/openrewind/components/ui/dock.tsx b/openrewind/components/ui/dock.tsxnew file mode 100644index 000000000..2655d9979--- /dev/null+++ b/openrewind/components/ui/dock.tsx@@ -0,0 +1,128 @@+"use client";++import React, { PropsWithChildren, useRef } from "react";+import { cva, type VariantProps } from "class-variance-authority";+import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";++import { cn } from "@/lib/utils";++export interface DockProps extends VariantProps<typeof dockVariants> {+ className?: string;+ magnification?: number;+ distance?: number;+ direction?: "top" | "middle" | "bottom";+ children: React.ReactNode;+}++const DEFAULT_MAGNIFICATION = 60;+const DEFAULT_DISTANCE = 140;++const dockVariants = cva(+ "supports-backdrop-blur:bg-white/10 supports-backdrop-blur:dark:bg-black/10 mx-auto mt-8 flex h-[58px] w-max gap-2 rounded-2xl border p-2 backdrop-blur-md",+);++const Dock = React.forwardRef<HTMLDivElement, DockProps>(+ (+ {+ className,+ children,+ magnification = DEFAULT_MAGNIFICATION,+ distance = DEFAULT_DISTANCE,+ direction = "bottom",+ ...props+ },+ ref,+ ) => {+ const mouseX = useMotionValue(Infinity);++ const renderChildren = () => {+ return React.Children.map(children, (child) => {+ if (React.isValidElement(child) && child.type === DockIcon) {+ return React.cloneElement(child, {+ ...child.props,+ mouseX: mouseX,+ magnification: magnification,+ distance: distance,+ });+ }+ return child;+ });+ };++ return (+ <motion.div+ ref={ref}+ onMouseMove={(e) => mouseX.set(e.pageX)}+ onMouseLeave={() => mouseX.set(Infinity)}+ {...props}+ className={cn(dockVariants({ className }), {+ "items-start": direction === "top",+ "items-center": direction === "middle",+ "items-end": direction === "bottom",+ })}+ >+ {renderChildren()}+ </motion.div>+ );+ },+);++Dock.displayName = "Dock";++export interface DockIconProps {+ size?: number;+ magnification?: number;+ distance?: number;+ mouseX?: any;+ className?: string;+ children?: React.ReactNode;+ props?: PropsWithChildren;+}++const DockIcon = ({+ size,+ magnification = DEFAULT_MAGNIFICATION,+ distance = DEFAULT_DISTANCE,+ mouseX,+ className,+ children,+ ...props+}: DockIconProps) => {+ const ref = useRef<HTMLDivElement>(null);++ const distanceCalc = useTransform(mouseX, (val: number) => {+ const bounds = ref.current?.getBoundingClientRect() ?? { x: 0, width: 0 };++ return val - bounds.x - bounds.width / 2;+ });++ let widthSync = useTransform(+ distanceCalc,+ [-distance, 0, distance],+ [40, magnification, 40],+ );++ let width = useSpring(widthSync, {+ mass: 0.1,+ stiffness: 150,+ damping: 12,+ });++ return (+ <motion.div+ ref={ref}+ style={{ width }}+ className={cn(+ "flex aspect-square cursor-pointer items-center justify-center rounded-full",+ className,+ )}+ {...props}+ >+ {children}+ </motion.div>+ );+};++DockIcon.displayName = "DockIcon";++export { Dock, DockIcon, dockVariants };diff --git a/openrewind/components/ui/dropdown-menu.tsx b/openrewind/components/ui/dropdown-menu.tsxnew file mode 100644index 000000000..f69a0d64c--- /dev/null+++ b/openrewind/components/ui/dropdown-menu.tsx@@ -0,0 +1,200 @@+"use client"++import * as React from "react"+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"+import { Check, ChevronRight, Circle } from "lucide-react"++import { cn } from "@/lib/utils"++const DropdownMenu = DropdownMenuPrimitive.Root++const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger++const DropdownMenuGroup = DropdownMenuPrimitive.Group++const DropdownMenuPortal = DropdownMenuPrimitive.Portal++const DropdownMenuSub = DropdownMenuPrimitive.Sub++const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup++const DropdownMenuSubTrigger = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {+ inset?: boolean+ }+>(({ className, inset, children, ...props }, ref) => (+ <DropdownMenuPrimitive.SubTrigger+ ref={ref}+ className={cn(+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",+ inset && "pl-8",+ className+ )}+ {...props}+ >+ {children}+ <ChevronRight className="ml-auto h-4 w-4" />+ </DropdownMenuPrimitive.SubTrigger>+))+DropdownMenuSubTrigger.displayName =+ DropdownMenuPrimitive.SubTrigger.displayName++const DropdownMenuSubContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.SubContent+ ref={ref}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+DropdownMenuSubContent.displayName =+ DropdownMenuPrimitive.SubContent.displayName++const DropdownMenuContent = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <DropdownMenuPrimitive.Portal>+ <DropdownMenuPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+ </DropdownMenuPrimitive.Portal>+))+DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName++const DropdownMenuItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName++const DropdownMenuCheckboxItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>+>(({ className, children, checked, ...props }, ref) => (+ <DropdownMenuPrimitive.CheckboxItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ checked={checked}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.CheckboxItem>+))+DropdownMenuCheckboxItem.displayName =+ DropdownMenuPrimitive.CheckboxItem.displayName++const DropdownMenuRadioItem = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>+>(({ className, children, ...props }, ref) => (+ <DropdownMenuPrimitive.RadioItem+ ref={ref}+ className={cn(+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <DropdownMenuPrimitive.ItemIndicator>+ <Circle className="h-2 w-2 fill-current" />+ </DropdownMenuPrimitive.ItemIndicator>+ </span>+ {children}+ </DropdownMenuPrimitive.RadioItem>+))+DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName++const DropdownMenuLabel = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {+ inset?: boolean+ }+>(({ className, inset, ...props }, ref) => (+ <DropdownMenuPrimitive.Label+ ref={ref}+ className={cn(+ "px-2 py-1.5 text-sm font-semibold",+ inset && "pl-8",+ className+ )}+ {...props}+ />+))+DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName++const DropdownMenuSeparator = React.forwardRef<+ React.ElementRef<typeof DropdownMenuPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <DropdownMenuPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-muted", className)}+ {...props}+ />+))+DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName++const DropdownMenuShortcut = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLSpanElement>) => {+ return (+ <span+ className={cn("ml-auto text-xs tracking-widest opacity-60", className)}+ {...props}+ />+ )+}+DropdownMenuShortcut.displayName = "DropdownMenuShortcut"++export {+ DropdownMenu,+ DropdownMenuTrigger,+ DropdownMenuContent,+ DropdownMenuItem,+ DropdownMenuCheckboxItem,+ DropdownMenuRadioItem,+ DropdownMenuLabel,+ DropdownMenuSeparator,+ DropdownMenuShortcut,+ DropdownMenuGroup,+ DropdownMenuPortal,+ DropdownMenuSub,+ DropdownMenuSubContent,+ DropdownMenuSubTrigger,+ DropdownMenuRadioGroup,+}diff --git a/openrewind/components/ui/icons.tsx b/openrewind/components/ui/icons.tsxnew file mode 100644index 000000000..492377647--- /dev/null+++ b/openrewind/components/ui/icons.tsx@@ -0,0 +1,593 @@+"use client";++import * as React from "react";++import { cn } from "@/lib/utils";++function IconNextChat({+ className,+ inverted,+ ...props+}: React.ComponentProps<"svg"> & { inverted?: boolean }) {+ const id = React.useId();++ return (+ <svg+ viewBox="0 0 17 17"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <defs>+ <linearGradient+ id={`gradient-${id}-1`}+ x1="10.6889"+ y1="10.3556"+ x2="13.8445"+ y2="14.2667"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={inverted ? "white" : "black"} />+ <stop+ offset={1}+ stopColor={inverted ? "white" : "black"}+ stopOpacity={0}+ />+ </linearGradient>+ <linearGradient+ id={`gradient-${id}-2`}+ x1="11.7555"+ y1="4.8"+ x2="11.7376"+ y2="9.50002"+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor={inverted ? "white" : "black"} />+ <stop+ offset={1}+ stopColor={inverted ? "white" : "black"}+ stopOpacity={0}+ />+ </linearGradient>+ </defs>+ <path+ d="M1 16L2.58314 11.2506C1.83084 9.74642 1.63835 8.02363 2.04013 6.39052C2.4419 4.75741 3.41171 3.32057 4.776 2.33712C6.1403 1.35367 7.81003 0.887808 9.4864 1.02289C11.1628 1.15798 12.7364 1.8852 13.9256 3.07442C15.1148 4.26363 15.842 5.83723 15.9771 7.5136C16.1122 9.18997 15.6463 10.8597 14.6629 12.224C13.6794 13.5883 12.2426 14.5581 10.6095 14.9599C8.97637 15.3616 7.25358 15.1692 5.74942 14.4169L1 16Z"+ fill={inverted ? "black" : "white"}+ stroke={inverted ? "black" : "white"}+ strokeWidth={2}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ <mask+ id="mask0_91_2047"+ style={{ maskType: "alpha" }}+ maskUnits="userSpaceOnUse"+ x={1}+ y={0}+ width={16}+ height={16}+ >+ <circle cx={9} cy={8} r={8} fill={inverted ? "black" : "white"} />+ </mask>+ <g mask="url(#mask0_91_2047)">+ <circle cx={9} cy={8} r={8} fill={inverted ? "black" : "white"} />+ <path+ d="M14.2896 14.0018L7.146 4.8H5.80005V11.1973H6.87681V6.16743L13.4444 14.6529C13.7407 14.4545 14.0231 14.2369 14.2896 14.0018Z"+ fill={`url(#gradient-${id}-1)`}+ />+ <rect+ x="11.2222"+ y="4.8"+ width="1.06667"+ height="6.4"+ fill={`url(#gradient-${id}-2)`}+ />+ </g>+ </svg>+ );+}++function IconOpenAI({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="currentColor"+ viewBox="0 0 24 24"+ role="img"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <title>OpenAI icon</title>+ <path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" />+ </svg>+ );+}++function IconVercel({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ aria-label="Vercel logomark"+ role="img"+ viewBox="0 0 74 64"+ className={cn("size-4", className)}+ {...props}+ >+ <path+ d="M37.5896 0.25L74.5396 64.25H0.639648L37.5896 0.25Z"+ fill="currentColor"+ ></path>+ </svg>+ );+}++function IconGitHub({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ role="img"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <title>GitHub</title>+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />+ </svg>+ );+}++function IconSeparator({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="none"+ shapeRendering="geometricPrecision"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1"+ viewBox="0 0 24 24"+ aria-hidden="true"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M16.88 3.549L7.12 20.451"></path>+ </svg>+ );+}++function IconArrowDown({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m205.66 149.66-72 72a8 8 0 0 1-11.32 0l-72-72a8 8 0 0 1 11.32-11.32L120 196.69V40a8 8 0 0 1 16 0v156.69l58.34-58.35a8 8 0 0 1 11.32 11.32Z" />+ </svg>+ );+}++function IconArrowRight({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z" />+ </svg>+ );+}++function IconUser({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M230.92 212c-15.23-26.33-38.7-45.21-66.09-54.16a72 72 0 1 0-73.66 0c-27.39 8.94-50.86 27.82-66.09 54.16a8 8 0 1 0 13.85 8c18.84-32.56 52.14-52 89.07-52s70.23 19.44 89.07 52a8 8 0 1 0 13.85-8ZM72 96a56 56 0 1 1 56 56 56.06 56.06 0 0 1-56-56Z" />+ </svg>+ );+}++function IconPlus({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z" />+ </svg>+ );+}++function IconArrowElbow({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M200 32v144a8 8 0 0 1-8 8H67.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L67.31 168H184V32a8 8 0 0 1 16 0Z" />+ </svg>+ );+}++function IconSpinner({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4 animate-spin", className)}+ {...props}+ >+ <path d="M232 128a104 104 0 0 1-208 0c0-41 23.81-78.36 60.66-95.27a8 8 0 0 1 6.68 14.54C60.15 61.59 40 93.27 40 128a88 88 0 0 0 176 0c0-34.73-20.15-66.41-51.34-80.73a8 8 0 0 1 6.68-14.54C208.19 49.64 232 87 232 128Z" />+ </svg>+ );+}++function IconMessage({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 48H40a16 16 0 0 0-16 16v160a15.84 15.84 0 0 0 9.25 14.5A16.05 16.05 0 0 0 40 240a15.89 15.89 0 0 0 10.25-3.78.69.69 0 0 0 .13-.11L82.5 208H216a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16ZM40 224Zm176-32H82.5a16 16 0 0 0-10.3 3.75l-.12.11L40 224V64h176Z" />+ </svg>+ );+}++function IconTrash({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z" />+ </svg>+ );+}++function IconRefresh({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M197.67 186.37a8 8 0 0 1 0 11.29C196.58 198.73 170.82 224 128 224c-37.39 0-64.53-22.4-80-39.85V208a8 8 0 0 1-16 0v-48a8 8 0 0 1 8-8h48a8 8 0 0 1 0 16H55.44C67.76 183.35 93 208 128 208c36 0 58.14-21.46 58.36-21.68a8 8 0 0 1 11.31.05ZM216 40a8 8 0 0 0-8 8v23.85C192.53 54.4 165.39 32 128 32c-42.82 0-68.58 25.27-69.66 26.34a8 8 0 0 0 11.3 11.34C69.86 69.46 92 48 128 48c35 0 60.24 24.65 72.56 40H168a8 8 0 0 0 0 16h48a8 8 0 0 0 8-8V48a8 8 0 0 0-8-8Z" />+ </svg>+ );+}++function IconStop({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm24-120h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8Zm-8 48h-32v-32h32Z" />+ </svg>+ );+}++function IconSidebar({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16ZM40 56h40v144H40Zm176 144H96V56h120v144Z" />+ </svg>+ );+}++function IconMoon({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M233.54 142.23a8 8 0 0 0-8-2 88.08 88.08 0 0 1-109.8-109.8 8 8 0 0 0-10-10 104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88 104.84 104.84 0 0 0 37-52.91 8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104 106 106 0 0 0 14.92-1.06 89 89 0 0 1-26.02 31.4Z" />+ </svg>+ );+}++function IconSun({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64 64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48 48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z" />+ </svg>+ );+}++function IconCopy({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z" />+ </svg>+ );+}++function IconCheck({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z" />+ </svg>+ );+}++function IconDownload({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z" />+ </svg>+ );+}++function IconClose({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 256 256"+ fill="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path d="M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z" />+ </svg>+ );+}++function IconEdit({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ className={cn("size-4", className)}+ {...props}+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"+ />+ </svg>+ );+}++function IconShare({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="m237.66 106.35-80-80A8 8 0 0 0 144 32v40.35c-25.94 2.22-54.59 14.92-78.16 34.91-28.38 24.08-46.05 55.11-49.76 87.37a12 12 0 0 0 20.68 9.58c11-11.71 50.14-48.74 107.24-52V192a8 8 0 0 0 13.66 5.65l80-80a8 8 0 0 0 0-11.3ZM160 172.69V144a8 8 0 0 0-8-8c-28.08 0-55.43 7.33-81.29 21.8a196.17 196.17 0 0 0-36.57 26.52c5.8-23.84 20.42-46.51 42.05-64.86C99.41 99.77 127.75 88 152 88a8 8 0 0 0 8-8V51.32L220.69 112Z" />+ </svg>+ );+}++function IconUsers({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M117.25 157.92a60 60 0 1 0-66.5 0 95.83 95.83 0 0 0-47.22 37.71 8 8 0 1 0 13.4 8.74 80 80 0 0 1 134.14 0 8 8 0 0 0 13.4-8.74 95.83 95.83 0 0 0-47.22-37.71ZM40 108a44 44 0 1 1 44 44 44.05 44.05 0 0 1-44-44Zm210.14 98.7a8 8 0 0 1-11.07-2.33A79.83 79.83 0 0 0 172 168a8 8 0 0 1 0-16 44 44 0 1 0-16.34-84.87 8 8 0 1 1-5.94-14.85 60 60 0 0 1 55.53 105.64 95.83 95.83 0 0 1 47.22 37.71 8 8 0 0 1-2.33 11.07Z" />+ </svg>+ );+}++function IconExternalLink({+ className,+ ...props+}: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z" />+ </svg>+ );+}++function IconChevronUpDown({+ className,+ ...props+}: React.ComponentProps<"svg">) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className={cn("size-4", className)}+ viewBox="0 0 256 256"+ {...props}+ >+ <path d="M181.66 170.34a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32 0l-48-48a8 8 0 0 1 11.32-11.32L128 212.69l42.34-42.35a8 8 0 0 1 11.32 0Zm-96-84.68L128 43.31l42.34 42.35a8 8 0 0 0 11.32-11.32l-48-48a8 8 0 0 0-11.32 0l-48 48a8 8 0 0 0 11.32 11.32Z" />+ </svg>+ );+}++function IconLlama({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ fill="currentColor"+ viewBox="0 0 24 24"+ role="img"+ xmlns="http://www.w3.org/2000/svg"+ className={cn("size-4", className)}+ {...props}+ >+ <title>Llama3 icon</title>+ <circle+ cx="12"+ cy="12"+ r="10"+ stroke="currentColor"+ strokeWidth="2"+ fill="none"+ />+ <path+ d="M6 9l6 6 6-6"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ );+}++function IconCode({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ width="15"+ height="15"+ viewBox="0 0 15 15"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d="M9.96424 2.68571C10.0668 2.42931 9.94209 2.13833 9.6857 2.03577C9.4293 1.93322 9.13832 2.05792 9.03576 2.31432L5.03576 12.3143C4.9332 12.5707 5.05791 12.8617 5.3143 12.9642C5.5707 13.0668 5.86168 12.9421 5.96424 12.6857L9.96424 2.68571ZM3.85355 5.14646C4.04882 5.34172 4.04882 5.6583 3.85355 5.85356L2.20711 7.50001L3.85355 9.14646C4.04882 9.34172 4.04882 9.6583 3.85355 9.85356C3.65829 10.0488 3.34171 10.0488 3.14645 9.85356L1.14645 7.85356C0.951184 7.6583 0.951184 7.34172 1.14645 7.14646L3.14645 5.14646C3.34171 4.9512 3.65829 4.9512 3.85355 5.14646ZM11.1464 5.14646C11.3417 4.9512 11.6583 4.9512 11.8536 5.14646L13.8536 7.14646C14.0488 7.34172 14.0488 7.6583 13.8536 7.85356L11.8536 9.85356C11.6583 10.0488 11.3417 10.0488 11.1464 9.85356C10.9512 9.6583 10.9512 9.34172 11.1464 9.14646L12.7929 7.50001L11.1464 5.85356C10.9512 5.6583 10.9512 5.34172 11.1464 5.14646Z"+ fill="currentColor"+ fillRule="evenodd"+ clipRule="evenodd"+ ></path>+ </svg>+ );+}++function IconOllama({ className, ...props }: React.ComponentProps<"svg">) {+ return (+ <svg+ width="133"+ height="185"+ viewBox="0 0 133 185"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ xmlnsXlink="http://www.w3.org/1999/xlink"+ >+ <rect width="133" height="185" fill="url(#pattern0)" />+ <defs>+ <pattern+ id="pattern0"+ patternContentUnits="objectBoundingBox"+ width="1"+ height="1"+ >+ <use+ xlinkHref="#image0_406_1657"+ transform="matrix(0.00552486 0 0 0.00397193 0 -0.00840675)"+ />+ </pattern>+ <image+ id="image0_406_1657"+ width="181"+ height="256"+ xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALUAAAEACAYAAAD1IzfbAAAMQGlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnluSkEBoAQSkhN4EkRpASggt9I5gIyQBQokxEFTsyKKCa0FFBGzoqoiCFRA7YmdR7H2xoKKsiwW78iYFdN1XvjffN3f++8+Z/5w5d+beOwCoHeeIRDmoOgC5wnxxbLA/fVxyCp30FJAAARCBOjDncPNEzOjocADLUPv38u46QKTtFXup1j/7/2vR4PHzuAAg0RCn8fK4uRDvBwCv4YrE+QAQpbzZtHyRFMMKtMQwQIgXSXGGHNdIcZoc75bZxMeyIG4HQEmFwxFnAKB6CfL0Am4G1FDth9hRyBMIAVCjQ+yTmzuFB3EqxNbQRgSxVJ+R9oNOxt8004Y1OZyMYSyfi6woBQjyRDmcGf9nOv53yc2RDPmwhFUlUxwSK50zzNvN7ClhUqwCcZ8wLTIKYk2IPwh4MnuIUUqmJCRBbo8acPNYMGdAB2JHHicgDGIDiIOEOZHhCj4tXRDEhhiuEHS6IJ8dD7EuxIv4eYFxCpuN4imxCl9oU7qYxVTwZzlimV+pr/uS7ASmQv91Jp+t0MdUCzPjkyCmQGxeIEiMhFgVYoe87Lgwhc3YwkxW5JCNWBIrjd8c4li+MNhfro8VpIuDYhX2pbl5Q/PFNmYK2JEKvDc/Mz5Enh+sncuRxQ/ngl3iC5kJQzr8vHHhQ3Ph8QMC5XPHnvGFCXEKnQ+ifP9Y+VicIsqJVtjjpvycYClvCrFLXkGcYiyemA8XpFwfTxflR8fL48QLszih0fJ48OUgHLBAAKADCaxpYArIAoLOvuY+eCfvCQIcIAYZgA/sFczQiCRZjxBe40Ah+BMiPsgbHucv6+WDAsh/HWblV3uQLustkI3IBk8gzgVhIAfeS2SjhMPeEsFjyAj+4Z0DKxfGmwOrtP/f80Psd4YJmXAFIxnySFcbsiQGEgOIIcQgog2uj/vgXng4vPrB6oQzcI+heXy3JzwhdBEeEq4Rugm3JguKxD9FGQG6oX6QIhdpP+YCt4Sarrg/7g3VoTKug+sDe9wF+mHivtCzK2RZirilWaH/pP23GfzwNBR2ZEcySh5B9iNb/zxS1VbVdVhFmusf8yOPNW0436zhnp/9s37IPg+2YT9bYouwfdgZ7AR2DjuMNQM6dgxrwTqwI1I8vLoey1bXkLdYWTzZUEfwD39DT1aayTzHesdexy/yvnz+dOk7GrCmiGaIBRmZ+XQm/CLw6Wwh12EU3cnRyRkA6fdF/vp6EyP7biA6Hd+5BX8A4H1scHDw0Hcu9BgAe9zh9j/4nbNmwE+HMgBnD3Il4gI5h0svBPiWUIM7TQ8YATNgDefjBNyAF/ADgSAURIF4kAwmwegz4ToXg2lgFpgPSkAZWA5WgyqwAWwG28EusBc0g8PgBDgNLoBL4Bq4A1dPD3gB+sE78BlBEBJCRWiIHmKMWCB2iBPCQHyQQCQciUWSkVQkAxEiEmQWsgApQ8qRKmQTUofsQQ4iJ5BzSBdyC3mA9CKvkU8ohqqgWqghaomORhkoEw1D49GJaAY6FS1Ei9GlaCVai+5Em9AT6AX0GtqNvkAHMIApYzqYCWaPMTAWFoWlYOmYGJuDlWIVWC3WgLXC53wF68b6sI84EafhdNweruAQPAHn4lPxOfgSvArfjjfh7fgV/AHej38jUAkGBDuCJ4FNGEfIIEwjlBAqCFsJBwin4F7qIbwjEok6RCuiO9yLycQs4kziEuI6YiPxOLGL+Ig4QCKR9Eh2JG9SFIlDyieVkNaSdpKOkS6TekgflJSVjJWclIKUUpSESkVKFUo7lI4qXVZ6qvSZrE62IHuSo8g88gzyMvIWciv5IrmH/JmiQbGieFPiKVmU+ZRKSgPlFOUu5Y2ysrKpsodyjLJAeZ5ypfJu5bPKD5Q/qmiq2KqwVCaoSFSWqmxTOa5yS+UNlUq1pPpRU6j51KXUOupJ6n3qB1WaqoMqW5WnOle1WrVJ9bLqSzWymoUaU22SWqFahdo+tYtqfepkdUt1ljpHfY56tfpB9RvqAxo0jTEaURq5Gks0dmic03imSdK01AzU5GkWa27WPKn5iIbRzGgsGpe2gLaFdorWo0XUstJia2VplWnt0urU6tfW1HbRTtSerl2tfUS7WwfTsdRh6+ToLNPZq3Nd59MIwxHMEfwRi0c0jLg84r3uSF0/Xb5uqW6j7jXdT3p0vUC9bL0Ves169/RxfVv9GP1p+uv1T+n3jdQa6TWSO7J05N6Rtw1QA1uDWIOZBpsNOgwGDI0Mgw1FhmsNTxr2GekY+RllGa0yOmrUa0wz9jEWGK8yPmb8nK5NZ9Jz6JX0dnq/iYFJiInEZJNJp8lnUyvTBNMi00bTe2YUM4ZZutkqszazfnNj8wjzWeb15rctyBYMi0yLNRZnLN5bWlkmWS60bLZ8ZqVrxbYqtKq3umtNtfa1nmpda33VhmjDsMm2WWdzyRa1dbXNtK22vWiH2rnZCezW2XWNIozyGCUcVTvqhr2KPdO+wL7e/oGDjkO4Q5FDs8PL0eajU0avGH1m9DdHV8ccxy2Od8ZojgkdUzSmdcxrJ1snrlO101VnqnOQ81znFudXLnYufJf1Ljddaa4Rrgtd21y/urm7id0a3Hrdzd1T3WvcbzC0GNGMJYyzHgQPf4+5Hoc9Pnq6eeZ77vX8y8veK9trh9ezsVZj+WO3jH3kberN8d7k3e1D90n12ejT7Wviy/Gt9X3oZ+bH89vq95Rpw8xi7mS+9Hf0F/sf8H/P8mTNZh0PwAKCA0oDOgM1AxMCqwLvB5kGZQTVB/UHuwbPDD4eQggJC1kRcoNtyOay69j9oe6hs0Pbw1TC4sKqwh6G24aLw1sj0IjQiJURdyMtIoWRzVEgih21MupetFX01OhDMcSY6JjqmCexY2JnxZ6Jo8VNjtsR9y7eP35Z/J0E6wRJQluiWuKExLrE90kBSeVJ3eNGj5s97kKyfrIguSWFlJKYsjVlYHzg+NXjeya4TiiZcH2i1cTpE89N0p+UM+nIZLXJnMn7UgmpSak7Ur9woji1nIE0dlpNWj+XxV3DfcHz463i9fK9+eX8p+ne6eXpzzK8M1Zm9Gb6ZlZk9glYgirBq6yQrA1Z77OjsrdlD+Yk5TTmKuWm5h4Uagqzhe1TjKZMn9IlshOViLqnek5dPbVfHCbemofkTcxrydeCP/IdEmvJL5IHBT4F1QUfpiVO2zddY7pwescM2xmLZzwtDCr8bSY+kzuzbZbJrPmzHsxmzt40B5mTNqdtrtnc4rk984LnbZ9PmZ89//cix6LyorcLkha0FhsWzyt+9EvwL/UlqiXikhsLvRZuWIQvEizqXOy8eO3ib6W80vNljmUVZV+WcJec/3XMr5W/Di5NX9q5zG3Z+uXE5cLl11f4rtherlFeWP5oZcTKplX0VaWr3q6evPpchUvFhjWUNZI13ZXhlS1rzdcuX/ulKrPqWrV/dWONQc3imvfreOsur/db37DBcEPZhk8bBRtvbgre1FRrWVuxmbi5YPOTLYlbzvzG+K1uq/7Wsq1ftwm3dW+P3d5e515Xt8Ngx7J6tF5S37tzws5LuwJ2tTTYN2xq1Gks2w12S3Y/35O65/resL1t+xj7GvZb7K85QDtQ2oQ0zWjqb85s7m5Jbuk6GHqwrdWr9cAhh0PbDpscrj6ifWTZUcrR4qODxwqPDRwXHe87kXHiUdvktjsnx5282h7T3nkq7NTZ00GnT55hnjl21vvs4XOe5w6eZ5xvvuB2oanDtePA766/H+h062y66H6x5ZLHpdausV1HL/tePnEl4Mrpq+yrF65FXuu6nnD95o0JN7pv8m4+u5Vz69Xtgtuf78y7S7hbek/9XsV9g/u1f9j80djt1n3kQcCDjodxD+884j568Tjv8Zee4ifUJxVPjZ/WPXN6drg3qPfS8/HPe16IXnzuK/lT48+al9Yv9//l91dH/7j+nlfiV4Ovl7zRe7PtrcvbtoHogfvvct99fl/6Qe/D9o+Mj2c+JX16+nnaF9KXyq82X1u/hX27O5g7OCjiiDmyXwEMVjQ9HYDX2wCgJgNAg+czynj5+U9WEPmZVYbAf8LyM6KsuAHQAP/fY/rg380NAHZvgccvqK82AYBoKgDxHgB1dh6uQ2c12blSWojwHLAx6mtabhr4N0V+5vwh7p9bIFV1AT+3/wK5FXxP+8QO7QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAtaADAAQAAAABAAABAAAAAADcoAJxAAAjtklEQVR4Ae2dCbQlRXnHGVkGZN93GGAAQbawCIMKDw8uuKCiEdQYB4nHLKgkJ0gkRsbjFldCFvW4ADEoUTAQF8QgMKCDigSRVWaAGdZRZN9hgOT/u7x+9u3XXV31dfV9fe+t75xvum9Vfdu//reX6n53VlopSUIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEIgIZAQSAgkBBICCYGEQEKgiwjM6mJSyom8dpC+aHK7srbIU9LfSH8mXS5N0i4Cm8v9POkLpKtNhnpG25ull09u/2+yPW0qEFhP7cdLr5MCVpU+qz6I/WfS1aVJ4iEAnuAKvuBcNQe0M0/MF/OWpIAAR+L3Se+VukAs61smmyOlXT3rKLWhEPADx2XSMpxdbcwb85edUbU73rKVyr9E6gLNp+8s+UhHDBuXwA38fHB2jWEemc+xlr1U/Z1SF1AhfTfI13ZjjWh48eAFbiE4u8Yyn8zrWMo+qvo+qQsgS98d8rnTWCIaXjQ4gZcFZ5cN88r8jpXMVbW/k7qAadJ3i3xvMVaIhhcLPuDUBGeXLfPLPI+FrKkqr5a6AInR93PFmD0WiIYXCS7gEwNnlw/mmfkeefmyKnQBEbPvlJFH01YguMTE2eWL+R5peaWqq1v7dAEU2seDgkNHGtHw4sADXEKxtI5nvpn3kRQW9W+SWsGx2hFzjZFENLwocJipOWD+R04+oIqsxGxq9+GRQ9NWEDg0xdJqz/yPlLC4b3laaAWwaPeQ4m86UoiGF0P94FDEZlCfmX940Lo8r/UIzwU4VpsNBhSrLMzaahy5I0VZoY426geHmRLmHx6MhHAt9Vup9YjwqGzfJT1BuqKBn0dku7F0HIW6qd86B+AO/swD82H1Aw9G4tr6nQ1AeFq2r5Fm8g7tNFk9+YfM0ZhtqdtKRPAG90yYD+bF6g8+DL0sUgVWAD5WUv1nG/jjvYRVS3yOchP1Urd1DsC7KMyL1d+iorNh+8y7BdYjK38MUPZEkLbrpVZQ3yjbcRLqtWIFzlVzwPxY/MKHoX43Z4GxcMA6QlolLOZbAMXm3CqnI9pOvVaswLlKmB+r3wVVToeh/Rpj4VfLrm5l5iKj7ydlt6F0HIQ6qddCPvB1CfPDPFl8w4uhlLnK2lIwNtxl1wmPe9v0Xxd/GPrB0YoR+NZJE//wY+iEP++xAPqA7Hze7JqlcdYzwfeGDk1bwtRpmQNwBd86YZ6YL0sM+DF0YgX0qwGVvldjLYA+JrvnB8QZxqHUR50WfMDVV5gvS4yhO7CsokIfNBb7cl80NY6HCtZrxlcFxBnGodRnIRt4hjykYr4sceAHPBka2UeZWgrlz4BWDazyPGOszwTGGbbh1GeZA/AMEeaLebPEgifRhTvYNuRAo9MLZMcj2RA5J2RwbuxEbn8Ud631heLJfDFvFrHyxBmrLVLv54xa3fnj6q7Knh+oh6NEqOwlg3VCjYZkPHVRX6iAI3iGimXeiGHlSWh+UcZfJy+W05H1SZN1vfSQKNV2zwl1WfAHR4swb5Z48CS6tHGk5i0sCznvkd0SY4UXGu2G6kgRUKO1LiuOzBvzFyrwJPpbe22Q+gVK1HJX+0vZ8W23yE8tRrLZ12jXdTNrXVYcmTfmL1TgCXyJKhby1SVgOUrj88o6x47+yxx9rq7dXJ2efTyk2FrKnfyuUurn8+ZS/iZwk8mtNr0v7e+1Zf2YLb+NcYuUl4N+LeX0z3vPTcValxVH8mX+DjMkDl5XGewqTdog9Y6V0dwdTKpVlsvwNuk2gQ7majxvobE2GyLbazAv+7xM+hLpZlIf4QsAyZE5vX/7/3laH6+RLpRy88WWL0CIUA91hQr4gaNVrPNn5Ys1T5Pd12RluWnYwxTtD0bfM8bl6Ooju2jQR6SQzlKfxeZRxfov6duka0l9hHosscCviTB/lrjwpfPCmmVocc/KhlN1E/m4jEPjMv71jqD8Td97pJdLLb5j2jysHE6VzpNyxK8S6rHEBb8mwvwxj6GxrWvclbk+r7LH3rGFwfR3snncYJc3sS4PcSlRlG3V8Hnp7dIvSa2rCTKNJhypj5Zy3cuXjKP3qtKilNVTHFP22Ypf5ov5Yx5DxcIXZ4yukHqZM0u/zsV+w6aN4qYuEwjB6RBffy1dV9pFYXXjG1JuMI+R5smdr0dd3mLFLx9gWf6D5350UnvG9R7GL8mHnn4Y/5/eEaoHrmeMfbbsNpb+s5QbRkv+M21zo/J+k5TLEuqx5LOR7JoK82iJHfV/IIi9+rG5ERWWt5rKA3LwoDT06PpS2UCK9aXDKiyLQeaFUsscgNs90qZinUdyvqNp8Mw+NqlXyxwHbu8NHF81/C51hJI6W2Kr8jlM7RPGZMEthljn0cqb0pxjX1P7rtcWk7m72GD83GSd1RhyJMxi4WadRytvSsGPTWrrNy70AUNpMWq8s6ojtTsRiIWbdR6tvCktKjapS4N4ND7kMcZnCNfVScIRiIVbrHkMryBn0RVS35fLqcluLD9NchhG21i4xfLTCMPYN4qNkolgbD39RQjd54JlLW6+lkkflfJQgqdta0o3nNQdJj9rM+PSFdyiADFqpLYuKTUFk9PuxdJLpb+QXi3lsbZLWFPeRsrTynnSQ6R7SWkftMwUbq3UOWqk5gg5KOFUy9rwWVLI/JQ0RMj11knFD7KllHc3jpTy9t+gLg8HiZvKalcGBVq7VQzW+yKFe5sUAvKyE6+IhhJaJqXCKsQXpAdLd5J+Wmpd+5XpeEpXSM3bcDGk6UtRVTlwJPu+9EApR9AzpU9I25Sb5fwE6bbS46Sxlt3kaprEwi3WPE5LMKShK6Tm5imGWBf/XbF/qk7I/Drpz1wDW+rjRvMU6Y5SSB5r+U2upiQWbrHmcSoxy05sUj9jSUI2qxrtimYxrw2Xy/nbpQdJf14MNAOfOZpyObKz9HRpzFpj+bLOo5U3gmG6xCY1RLCI5SWcsjh7lzUa2s6QzW7Sb0pjTbghjVITjqpHS18pvb10RHhjLNys82jlTXilBoutZQMJQvVkQ6yiyTpquN8QO58rS3PcBA6L8GbhOdJ8DZZ9cAO/psI8WuLDm84KS4SWojgyNpUPyoEldmazRPa7Nk1iBuxZ1z5Ryik8q8WyBb+mwjxaYsObaBLVmbJ6WspDh9C7YN9vKjciu0s5zW0l5Qkdk8rTur+UWoVr5sOlw/gQAhJ9Qnqz9N+ls6UWYYVlNSmXpPjkBvUOKZcG10jvldaJ7zzm/cAXeBNNIERsWSyH3KmHyDIN3m7SYC1tebI2VzpHiq89Jvfpiy2XyCErG4A77MJ1Npcja7RQCL9HskzK01LOauzfJL1KSh+yVDqHnQDBF2vynZaLlR3f9BDlm8qR4kIpR4gQ2yZjeaQdelaRSafltcpuhbQJLiG23Id8RUpc5jHElrEXSzsvZyjD0MJmYvwy5blp59G0JfhXMpsJTC0x4UtUib2kR3JLo2bYjjOOZEdKeXtuFIVH7dHJ0hJQ0fnSBqm5Yem6fFQJcukxqsIR873S24agwGHgy0ovFpCW09CgbBYqv1WGYLJjpPhSOXlKOihsLXHgS+eFZTYe6VoKbNuGvOZIx0k+q2LbxtXqn/mAL0MhZypLa6Ft2n1uKNCLm+R6cscTwzZxtfqGJ9GljWvqdZWl9R2A6AXmHN6jfR5SjJs8oIK5h+iiwJW1uphYPiee+F0htX5z27Q7Pp/omO3PVr13dHReuGGHN52UTZTVr6VtEtPqm2u3jTuJ2uCS+khH54Y5hTfwp1OygbK5RmolXdt23+gUWjOTzFYK2+WVkGuVHzzqhPAN+6W0bWJa/QPWtp1AauaTOFYpPCm1Ytm2HTxqfMSe1RBnyPJD6S4N/bjMAXKJ9EopBL1FulzK00AuK1aX8ltsm0r5LY3tpStLeWrI2eN06cPSJM8hsK82b5aCF8KNJPgulbJKAq7IRlKudZnjnaW8VIYtN3dtyg1yfpj01jaDVPnmzarbpZAutvJS07el75BG/fFA+UtiR4CDxX7Sk6Rt3j/Bq4G/uUfAO6Wxycxrje+Rtn00UIgkDRHgLL+X9IvSR6SxuQC/BkZs1qCXRi6CZcDXSttYN5fbJC0jwKXKx6Vc5sUkNzxr/ZkHR9CrIibOt/FPpInMAmEEBAKeLuUvkWKRG761duaGeN+PlCxFf0W6njTJ6CFwiEri7btYxIZ3rRz4Phkpyfvk5w3SJKONwDoqj3e6YxEb/kWVl8tbjFMKS2zbR80sOesyAtxM8l43y6tNyQ3/4GEU4fFyjPcGLpCf1q6NolSanLSFwKvkOMZNJDyM8rrDd+So6bfsXPmYLU0yvggcqNLvlzblEnxsJBOybprEd+VjtUZZJONRQeAAFfKQtCmnJqyAQEQeWTZJ4CeyX8OaQLIbSQS4Lm76YhW8NB0o+cWjJoRmSYdF+SQJgSICx6ihCbewDf5FLv5ujBdbrIF5d2NPaZKEQBUCPF638gs7+Bn0941/1zDgu2WfJCHgQoC3K3la2ITY8NRLuAb+vdQajBtD1ieTJATqENhdA56QWrl2V12ArL/J9c4DcrJl5ihtEwIeCJykMVZSPy7b2qVijrD/2yDIcbJNkhAIQYDLkCVSK7HfXhdsnwbOb5StaZmlLqnUP/IIHKEKraS+uA6dUxo4P7LOeepPCFQgwBXCz6UWYj8ju+0q/PZ+X2650fF1smvl1cCqZFP7yCHwGlVkITU2lasgEw2cvku2SRICTRDgaM1bnBZi/7Iq8OeMDln+S4/Cq1BN7SEI/LkGW0jNa6n8rsk04RLC4vDkaZ5SQ0LAhgB/WGB9RZWl6D5hbdn6RwB/1OcpfUgINEPA+tcy3yyGPUoNlqP0YtlxLZQkIRALgcPlyMLF22XX42K2YjHPmBGPxEkgSUIgFgI/lqPHDM64pt4au4zUPHSxyPkWo2STEHAgAKEvdfS7uno8htQcsvdwjazoe1Ltl1X0peaEQBMEFhqNeUGqd6TmB0jWNjhhTdFymjCESiZjhsAiY70vxI4j9Y5GB7z4lCQh0AYC/Pgkq3Gh0uMypN421HJy/LVGu2SWEKhDgLXqZXWDSvq3oQ1Slz6JKTEoNvFWXpKEQFsIsFwcKhvKYOVV9I/1B2aWhkYc0fHcaO8g5c57VymnQB5moatKN53ccgDhlLpCyt/Xsb1zUpdoe72US7rsN+i0O9ayzFj9FpB6E6MxEzJI4cu3v3QLKWvjxOdFlgelgxbWQ/np4UOlB0l9/2oeYvOXGr3TpLZ8GYpyjxoulbJeyw8j8lBh0ALW+0n5YvKl5c+mfiEdJNa/VTyLcCBZ6TQpJAlRjjKDkr0U6FvSsr9lo42+3aRtywYKcKyUZUyOuCF4WccSh3jEJX7bAo51WDMfg5B3K4gFtwNJ7jSD8W0Ytiwc1T4mfVpaVxzk5k/Jeo9JtY0pLBN9VcryZV0ebfYTnzx6y1baxhRwA7+yA0exJuaDeWF+2pT5cl6M7fN5gqROMxgvxbBl+YL8+xSRH/OhiDlxfXy2lL+syMeY6X3yIS/yiyXgFloX89OmzJfz0JwYPyE1kfpWDFuUo+TbUhCn61c2zIs76C9KOSJZchiUDfmRJ/k2EfCyXk4xT23JfDm2YDlBQqcZjDlNtSUry/FNUktB2FwvtZ4a3yrbuxvEtubcxI58ydsi4ARe1vjME/PVhlivqV9KMqdJLUWt0UYl8jnfmE++hkMCc+Nu/8wIcfM5DHqf/EOXZ8GpaZ7z5aMNOUlOLbnN5Zt6nzEjlntiC/mcGMEpS22+wh0/S4Ntnkp9c2kyjvypg3p8JQSnKp/Ml/XMWOWT9s1cnY6+Fauo817HAFfXdurk9BNTWBvdMYJD1rJ9hOvJb0v5M6Kmwg0crw5cJeWUvlTKWuud0uyadZb2IQAHBCYNDLnhY5kMMjY9lYPdIulbpD+S1okvTi4/xGTefuEaZOibY7DBZDmkZmHdIjvJ6AKLocPmxY6+2F1HyuHXpas1cAxpz5WeJ71E+pDUR24pGcQX62Dpq6VvkFqPVPjhjzf+VMqa8yCEeYtNar4socIB+imMXia1XLt8CePIskD+LLkUbT5bkxdHshXGWKw6nCM9TNr0yCoXpYJf/BOHeMX6fD5TH3W6BJx8fNWNWeAKYuhbWzaWpdQrs1hbaqcu6bL+KzIHEbcLjLkU83uzIyeuI580xIEkp0rnSgcpxCOu5UtIndRbJeBUxM7yeUFVAGP7wca8uJTsCdd5D0hDi+EwzzcqpnxAzkLzKI6nlrUqktpZ7fcbYvxYNm08yatIs7SZ+ORRrLfuM/VSd5mAk2XuizGZt5jyITkrxvD5fFI+iZ8Ynbwu7yTC/kuMeeQL5oFEmTxfjddI82Pr9nmB511SvvhdEPIgH/Kqyz3fT93UXybglR9r2WfeYspCObPk8cZ8Ep83Ool9Xf085fEbYy6A8Jh0O2mZ/KsaQ4C6WuMtNytlsWO3kRf5hdRD/WUCXuAW4is/lvli3mLJBnLEVUA+hu8+l9JTYr224u5/lSkvcXZeLze+ReTHPSu7oytSOEjt9OfHu/bP09jYl1YVqZmbyY88XXXk+6gfHMoE3ELwyftlvmIKueT9++4vLSaxsRosd5sEfE3RWYTP/yQfvsUwjgl5f0VcvnQhR7WzNb7JMl9FGq00kyf5+mIFDlUHIfALJTbzFFsulEPfevLjTi9L5Aqjs/8uc9awjdPZJ6Q+X7SnNe44R7xj1Jcv3rV/vsYOC6GzksmXvF115fvAo0rAETzz48v2mRfmJ+Zlh9yttJPUZ87LcnobDoqyQA1lg+vaAGFu0VmkzwfKDxNWBfS16puQVglHpZuldTXQf4N0XekwCnmTv0+d4FF1tKb2CSm4lvliHpgP5qUN4bq/LG5dG9fgU28rzspltqf2r8p9Dtn9qga/O8QgcCwJz5PuIeXI9IR00aRyyqwS7hXOqurMtbOeu7/017m2Ydtl/niqN9sj8T/WGC5bqoQj8IsndXVtIQ2XLj+T3ittQzaTU75wVas0rpgXqPMVZQMg+HXSum9FWT9Fc+romvxICZXlW2z7cKTEeUT9N9LTpF+WvlXKlzAvc/RhgZQxX5AeIo0l1FGsrewzuHRN/kUJleXq0+a6pFrphAaOz+0YSnzzqy5b8kDdqnEcjZrK5nKwWJr3zf6N0ldLIfzJ0iel+TGcaT4ijSHUQT15/2X74AI+XZFdlAgHxrJc69oekR2XX5VCoUXQ65zm+w+v9Dz4Dt8bxL+IlNoZ8pPHIr8Pce+u6d83Uh7Uk49dte88ukXKxccNlzoXe+ZcVsupPkG+0SDAnbKdumD3CdbiGJ86HlB8yzVcWdr3q7EMdN+2D5Y5NbRRD3XVxQWfLsixSqIuV1f/Pj5FMIgji8uRq4/LEL59My0+qx5e33LPQkIfXRcxPNEzjs8w6ir6L34Gn5kWbm6bPM28KKSAkCdVRbD4jD0PdGZK1lRgny8mqyOx5JtyVIaFTxu57hcrEfmhrrq4xASnmZJNFPg30ro8Xf2HhiT/Ig32IYUr4LXysX5I0Ihjd5UvV25ZX8ybpW0Uk9cGMt8hW+78Ywp1+cTnSDkTspGCXi/1ybFqzELZz5IGybc0usqhb/vXgyLGGzzhkXsb663cxS/xiJ3hx4HjZOnK0thCfVmcqu1E7KAe/iDiD6RVOfm0g9sBHrGmDZmjlkelPkGqxrB0NFc6aJlQwKqcsva2HrSwdHeKdEVNDjepv433ZuS2J9SX1Vq1nXhu6ED/3c0jr6p8s/b/aJLx30dI4P1NEjDaTnjkvdDo29fsSEcOrBKt4evIOG6h7DISVG0njL6bmMGHqnx82u+T/eauBOpWKT4j46ZHtKq/unDlNYi+LVoO8nuH/+Xqe9zRH6Or7fqsOTblw/EKDH6VUkdqnvK8U8rWKnz7Bi1cc9XJ1hrQxrVsFpfTbJVwI9tmbHxTX5344FTnI7S/CR9+pWCn1gWsIzX2T0iD7zJzgWdiPfSOXPyqXR4pQ662ZG+HYy49XKR3mHp1UZfPo38fnLwCBgxqwgcwi/KOUdP1V1YEBi0cqfgy1l2jHddiYrzV5or/1hZjU5crNn3g0+bZoqo8+MAZoi6/qn742EheIGufl4KqEuDp4kzJ5QpclVfWflmLyS2tiT+/xdjUldVYtQWfmRJ4UZVXXTt8hJdm+Zos64JU9T8o2znmyM0NPycXVbnl212XCU2y+G5N/Ikmzh221JOvr2offGZK5igw/KjKra4dXppkM1n5nMKrEnifKWo8Ix6hVuWWb4d8bcieclo1cWerr8l9iivfui9TVjv4zKTAjyyX0C28hJ/B8mFZhAbLxrMMuEpwxLgGxP+tNMvJtW3rIQjLV1+U/o/0+9LvSd8rXVXahlCHq86sD1y6MD/wJMspdAs/g4QbiNukoYGy8a8Iitbe4E971nCXxpm++e2lHuyZ/KkjmwPXFly6IPDElaerD34G3ei+ukGwC2Xb1qlVroNkW41mjd0FTta3SOOeH+S9O4PJm/yzWlxb8Ni2I6nDE/jiytfVB0+95UyNdDlz9R3kHWUwA78SUMv5GjtsxCZf8nbNSb4PPLok8CWfX8g+PPWStTTqEWmI82zsZbLrylE6K3YL7TwUUA81bJoZd3xLnuSb4V+3BQfw6JLAl5Aa8jXCU/haK2/RiLxhyD62XRSfhxH5OnnhaKZXB+pwJD/yzOddtw8OXZTWOXeGqq4Dp6z/Ltmt1kXElBOvA1wsLcu7qu1ZjWc9tGtHbfI5VUp+VbmXtV+s8T6vRWjYwAXewJ+yvOva4KtTVlGvz8vlZYE+5fQ8852cdi3APSy7f5TO9Gmb+ORBPmX4u9qoe6bzVwpOgT+uGqr64Cu8rZQD1FNlXNfOyyZdl/2VoPUPH56SLQ9NjpAO6maSOMQjLvHr5qCsn3qpu+sCf8ry92mDt5Vi/aOAa+WxazeIVUUepo4npD5gVY15TPYXSBdIXyvdTtq0fuzxg78FUvwTpyoHn3bqpN5hEOqHRz51FcfA2ykpHrZZXrFI9oKKxXbQNj9UwDdIvyO1HnHXkO2hk6pNT7jG5TTPkZGX2MF2SymTxePy+6XrS9eVMinc5PFyDn/FsaaUy4OY17x8Id4kPV86DAIm8OiFhmTh7cfL7AA0ZOkr/22ZV+aw422cki3X2Pm6u7pPXcNwyVGkCDyyYApvSw8IuxodcgQKelyp8V0RjqSXSC1AdtWGeqhrGAUewScLtvC3J3l27501Bm5/ovHPBNp0ZTiXAC+Tnijl+nOYhfypg3qoaxgFHsEni0zxN0/q3S2eZLPIaNcVM4D8pHRP6XldSSowD/Imf+oY1gNMVrKVT6X85bVIy2H/kCybEdlypBuWSxLyJN9REvhk4SH8nSaL1RLqjDt+7uhHUQ5QUWdImy6rhWJaN558yIv8RlHgE7yqw6HYD3/7ZJY+PSUtDqz7fHufl9H8sJ7KOlr6Xan1Ra86HOv6iUt88iCfURd4VYdJsR/+wuMpYa20OMjn80VTHsZjZ7bKPFh6gpR17hukloOBC1v84Rf/xCEeccdJ4JULo6o+eDz1zHwzI2L8Htw4yZMq9pJJzerm6ACYG05q1h66vVcG6HIpkzbOAq8OMQAAj5fz1AvZ6LlN8L93BFuMngEE5GEHmiQOAlZe9XicLen1DtuGfIZ1PdRQajIZIAJWXvV4nJE624bmfU+oQRqfEPBAwMqrHo8zMq/sEahsCC/qJEkIxEbAyqsejzNSb2HMihunJAmB2AhYedXjcUZq65GaH0VJkhCIjYCVV31HamtSq1oNk11CwIFAI15lR2pebLeIddXEEivZjA8CVl71eJyRutHd5vhgnSodEAIZL0PD9XicGVufYG0aGjWNTwh4IGDlVY/HGakf8ghUNsT6JLLMV2pLCGQIWHnV43FGauvlx9ZZFmmbEIiIgJVXvDsz9ceK1vcWto9YSHKVEMgQsPKqtxSYHal5M8wiO1mMkk1CoAYBK6+mvQgFy7nQDtEnNL7RmmJNcal7/BCAT/AqhIeMnXpgkx2pgc7ybjQvr++GcZKEQCQE4JPljyKm+Jsn9XXGpA4w2iWzhEAZAlY+TfE3BqkPKssstSUEjAhY+TRF6nzcefoQeh3D+Lul+S9H3mfaTwiEIACP4JOFh/B3mvCjh5YLdBIodTgtQmpICLgRsB5Y4S387Un+CPu4Wq6cbA/dHBFqkMYnBEoQsPII3sLfnuRJTYP1Jw+Okq31nexeIumfsUcA/sAjizh5y0W65XoGm7b+11hLkclm+BDw/d96y/jpvLnkJxN4fl5mWNc2rD+uOHzTP5oZw586jpX1w1d465TT1VtmXNfGr23u7vScOhMC5QjAG/hTx7Gy/tPLXfa38n+ElBn7tJ3V7yp9Sgh4IQBvfPhVNga+1grP3rOfvipz4mrj27Z/bYQ0ICHwBwTgi/UoDU+93z36lAa7yOvqu1y2aSVEICSpRQCewBcXn1x98NRbttfIp6Uuh66+v/WOlAaOMwLwxMUjVx/8hKdBco5Gu5y6+vhh8L2DoqXB44YA/IAnLh65+uBnsBwgC5fTur6bZb9BcNRkMA4IwAv4UcchVz/8NMn5snI5rus70xQ1GY06AvCijjuufnhplv1kab0zJalnpfzvskkSAhkC8AFeuEjr6oOP8LKRnCFrV5C6vsWNoifjUUMAPtRxxtUPHxsL/3sqP63qClTXt3PjLJKDUUAAHtRxxdUPD2v/N9/iW3plwN2pxhPLOgLa0t8xBoA1wkOb8gAewscoAvkvkrq+Ra6++VGySE6GHQF44OKJqw/++RyE/QbJGRf2S6VWYT0ySUKgCQ/gHzyMJk3edeXbt220TJKjYUZgayUPH6wKD6PI6vKyRGpN5FdRskhORgUB+GDlEjyEj43lffJgTQK7wxtnkByMEgLwoQmf4GMjmS3rO6TWJBY1ip6MRxUBeGHlFHyEl2Z5hyytwbE70Bw5GY4yAvCiCa/gpVmafKO+Y46aDMcBAfhhJbb5CoCnPyyhWAI/JTvrz7HKNMkYIAA/4ImFX/ASfpaKazH7KFnMKrWqb/w3DVlcPyyNGGME4Ac8sQi8hJ/BcpUsLN+i5bJbOzhaMhhHBOAJfLHwDH4GCYvk1kuP44MipcHjjgB8sZAafm4TAt4xxkD8ntmGIYHS2LFHAL7AGwux4ek0qbqmnpg20q/hBxp2r9/QNCoh0EMAvsAbi0yEGC3TYMs3x3TxHpJYGjuSCMAbC9+W+aKxiTHACtmt7xskjUsI5BCAN/DHQmz42idllx/79o3w/3Clht7vPzyNTAhMIQBv4I9FpvG1jNS7WzzL5lKjXTJLCICAlT/T+FpG6l2NGPPzUUkSAlYErPyZxtcyUu9izOoKo10ySwiAgJU/Xny9RwFCL9gfkk3ZF4RkkyQEfBCAP/AolHvwtU+KRFxDvZaHJ/xvozzhSZIQsCIAf6b+19oAJ/AV3k5JkdRbTfWE7dwYNjyNTgiUImDlUR9vi6TevDRUfePt9UPSiIRALQJWHvXxtkjqdWrDlg/gT2ySJASaImDlUR9vi6TeyJjVfUa7ZJYQyCNg5VEfb4ukzgcI2b8rZHAamxCoQCAKj4qkXrciWF1zWvmoQyj1+yBg5VEfb4uktr6QZD1t+BSaxowPAlYe9fG2SGorfCyaJ0kINEUgCo+KpOZpjkU2sBglm4RAAQErj/p4WyT1tEeOhaBVH9ep6kjtCYEABKw86uNtkdSPBiSQH7p2/kPaTwgYEbD++GMfb4uk7juMByS2acDYNDQhUIXAllUdNe19vC2Smt9gsAg/qZAkIdAUgW2MDvp4WyR137VJQIAdAsamoQmBKgSsPOrjbZHU1mfv0/6kpirr1J4QcCBg5ZGTt/xG2QNSrlFC9GmN71sA1+ckCYEQBOAPPArhHWPha99vPhaP1Ay6QRoqK8vg5aFGaXxCIIcA/IFHoQJf4e2UFElNR/AP7016Sz9kMwVr2jEgYOWPF1/nK6HQUwDjH5bOliZJCIQiAG/gj4V3832CzTE6J6E9fQKkMQmBAgLwxkJobOYUfJX+BfgyDbquONDzc98fQHrapGEJAStvrhd0y4rwlV1TM+as4kCPz89ozE0e49KQhEARAXgDf0Ll22UG/w9yreSQIAJvAgAAAABJRU5ErkJggg=="+ />+ </defs>+ </svg>+ );+}++export {+ IconOllama,+ IconEdit,+ IconNextChat,+ IconOpenAI,+ IconVercel,+ IconGitHub,+ IconSeparator,+ IconArrowDown,+ IconArrowRight,+ IconUser,+ IconPlus,+ IconArrowElbow,+ IconSpinner,+ IconMessage,+ IconTrash,+ IconRefresh,+ IconStop,+ IconSidebar,+ IconMoon,+ IconSun,+ IconCopy,+ IconCheck,+ IconDownload,+ IconClose,+ IconShare,+ IconUsers,+ IconExternalLink,+ IconChevronUpDown,+ IconLlama,+ IconCode,+};diff --git a/openrewind/components/ui/input.tsx b/openrewind/components/ui/input.tsxnew file mode 100644index 000000000..5b1a01aff--- /dev/null+++ b/openrewind/components/ui/input.tsx@@ -0,0 +1,32 @@+import * as React from "react";+import { cn } from "@/lib/utils";++export interface InputProps+ extends React.InputHTMLAttributes<HTMLInputElement> {}++const Input = React.forwardRef<HTMLInputElement, InputProps>(+ ({ className, type, onKeyDown, ...props }, ref) => {+ const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {+ if (e.key === '/') {+ e.stopPropagation();+ }+ onKeyDown?.(e);+ };++ return (+ <input+ type={type}+ className={cn(+ "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ ref={ref}+ onKeyDown={handleKeyDown}+ {...props}+ />+ );+ }+);+Input.displayName = "Input";++export { Input };diff --git a/openrewind/components/ui/label.tsx b/openrewind/components/ui/label.tsxnew file mode 100644index 000000000..534182176--- /dev/null+++ b/openrewind/components/ui/label.tsx@@ -0,0 +1,26 @@+"use client"++import * as React from "react"+import * as LabelPrimitive from "@radix-ui/react-label"+import { cva, type VariantProps } from "class-variance-authority"++import { cn } from "@/lib/utils"++const labelVariants = cva(+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"+)++const Label = React.forwardRef<+ React.ElementRef<typeof LabelPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &+ VariantProps<typeof labelVariants>+>(({ className, ...props }, ref) => (+ <LabelPrimitive.Root+ ref={ref}+ className={cn(labelVariants(), className)}+ {...props}+ />+))+Label.displayName = LabelPrimitive.Root.displayName++export { Label }diff --git a/openrewind/components/ui/multi-select.tsx b/openrewind/components/ui/multi-select.tsxnew file mode 100644index 000000000..ed4ff069d--- /dev/null+++ b/openrewind/components/ui/multi-select.tsx@@ -0,0 +1,481 @@+// src/components/multi-select.tsx++import * as React from "react";+import { cva, type VariantProps } from "class-variance-authority";+import {+ CheckIcon,+ XCircle,+ ChevronDown,+ XIcon,+ WandSparkles,+} from "lucide-react";++import { cn } from "@/lib/utils";+import { Separator } from "@/components/ui/separator";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import {+ Popover,+ PopoverContent,+ PopoverTrigger,+} from "@/components/ui/popover";+import {+ Command,+ CommandEmpty,+ CommandGroup,+ CommandInput,+ CommandItem,+ CommandList,+ CommandSeparator,+} from "@/components/ui/command";++/**+ * Variants for the multi-select component to handle different styles.+ * Uses class-variance-authority (cva) to define different styles based on "variant" prop.+ */+const multiSelectVariants = cva(+ "m-1 transition ease-in-out delay-150 hover:-translate-y-1 hover:scale-110 duration-300",+ {+ variants: {+ variant: {+ default:+ "border-foreground/10 text-foreground bg-card hover:bg-card/80",+ secondary:+ "border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",+ destructive:+ "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",+ inverted: "inverted",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+);++/**+ * Props for MultiSelect component+ */+interface MultiSelectProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement>,+ VariantProps<typeof multiSelectVariants> {+ /**+ * An array of option objects to be displayed in the multi-select component.+ * Each option object has a label, value, and an optional icon.+ */+ options: {+ /** The text to display for the option. */+ label: string;+ /** The unique value associated with the option. */+ value: string;+ /** Optional icon component to display alongside the option. */+ icon?: React.ComponentType<{ className?: string }>;+ }[];++ /**+ * Callback function triggered when the selected values change.+ * Receives an array of the new selected values.+ */+ onValueChange: (value: string[]) => void;++ /** The default selected values when the component mounts. */+ defaultValue?: string[];++ /**+ * Placeholder text to be displayed when no values are selected.+ * Optional, defaults to "Select options".+ */+ placeholder?: string;++ /**+ * Animation duration in seconds for the visual effects (e.g., bouncing badges).+ * Optional, defaults to 0 (no animation).+ */+ animation?: number;++ /**+ * Maximum number of items to display. Extra selected items will be summarized.+ * Optional, defaults to 3.+ */+ maxCount?: number;++ /**+ * The modality of the popover. When set to true, interaction with outside elements+ * will be disabled and only popover content will be visible to screen readers.+ * Optional, defaults to false.+ */+ modalPopover?: boolean;++ /**+ * If true, renders the multi-select component as a child of another component.+ * Optional, defaults to false.+ */+ asChild?: boolean;++ /**+ * Additional class names to apply custom styles to the multi-select component.+ * Optional, can be used to add custom styles.+ */+ className?: string;++ /** Allow users to enter custom values not in the options list */+ allowCustomValues?: boolean;++ /** Optional validation function for custom values */+ validateCustomValue?: (value: string) => boolean;+}++export const MultiSelect = React.forwardRef<+ HTMLButtonElement,+ MultiSelectProps+>(+ (+ {+ options,+ onValueChange,+ variant,+ defaultValue = [],+ placeholder = "Select options",+ animation = 0,+ maxCount = 3,+ modalPopover = false,+ asChild = false,+ className,+ allowCustomValues = false,+ validateCustomValue = () => true,+ ...props+ },+ ref+ ) => {+ const [selectedValues, setSelectedValues] =+ React.useState<string[]>(defaultValue);+ const [isPopoverOpen, setIsPopoverOpen] = React.useState(false);+ const [isAnimating, setIsAnimating] = React.useState(false);+ const [inputValue, setInputValue] = React.useState("");++ // Add state to track custom values+ const [customOptions, setCustomOptions] = React.useState<+ Array<{+ label: string;+ value: string;+ icon?: React.ComponentType<{ className?: string }>;+ }>+ >([]);++ // Combine regular and custom options for rendering+ const allOptions = [...options, ...customOptions];++ const addCustomValue = (value: string) => {+ if (+ value &&+ validateCustomValue(value) &&+ !selectedValues.includes(value) &&+ !allOptions.some((opt) => opt.value === value)+ ) {+ const newSelectedValues = [...selectedValues, value];+ setSelectedValues(newSelectedValues);+ onValueChange(newSelectedValues);+ setInputValue("");+ }+ };++ const handleInputKeyDown = (+ event: React.KeyboardEvent<HTMLInputElement>+ ) => {+ if (event.key === "Enter") {+ if (allowCustomValues) {+ addCustomValue(inputValue);+ }+ setIsPopoverOpen(true);+ } else if (event.key === "Backspace" && !event.currentTarget.value) {+ const newSelectedValues = [...selectedValues];+ newSelectedValues.pop();+ setSelectedValues(newSelectedValues);+ onValueChange(newSelectedValues);+ }+ };++ const toggleOption = (option: string) => {+ const newSelectedValues = selectedValues.includes(option)+ ? selectedValues.filter((value) => value !== option)+ : [...selectedValues, option];+ setSelectedValues(newSelectedValues);+ onValueChange(newSelectedValues);+ };++ const handleClear = () => {+ setSelectedValues([]);+ onValueChange([]);+ };++ const handleTogglePopover = () => {+ setIsPopoverOpen((prev) => !prev);+ };++ const clearExtraOptions = () => {+ const newSelectedValues = selectedValues.slice(0, maxCount);+ setSelectedValues(newSelectedValues);+ onValueChange(newSelectedValues);+ };++ const toggleAll = () => {+ if (selectedValues.length === options.length) {+ handleClear();+ } else {+ const allValues = options.map((option) => option.value);+ setSelectedValues(allValues);+ onValueChange(allValues);+ }+ };++ // Add handler for input changes+ const handleInputChange = (value: string) => {+ setInputValue(value);+ };++ // Add custom filtering logic+ const filterOptions = (value: string) => {+ return allOptions.filter((option) => {+ const searchTerm = value.toLowerCase().trim();+ const label = option.label.toLowerCase();+ const optionValue = option.value.toLowerCase();++ // Only return exact matches or substrings+ return label.includes(searchTerm) || optionValue.includes(searchTerm);+ });+ };++ return (+ <Popover+ open={isPopoverOpen}+ onOpenChange={setIsPopoverOpen}+ modal={modalPopover}+ >+ <PopoverTrigger asChild>+ <Button+ ref={ref}+ {...props}+ onClick={handleTogglePopover}+ className={cn(+ "flex w-full p-1 rounded-md border min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",+ className+ )}+ >+ {selectedValues.length > 0 ? (+ <div className="flex justify-between items-center w-full">+ <div className="flex flex-wrap items-center">+ {selectedValues.slice(0, maxCount).map((value) => {+ const option = options.find((o) => o.value === value);+ const IconComponent = option?.icon;+ return (+ <Badge+ key={value}+ className={cn(+ isAnimating ? "animate-bounce" : "",+ multiSelectVariants({ variant })+ )}+ style={{ animationDuration: `${animation}s` }}+ >+ {IconComponent && (+ <IconComponent className="h-4 w-4 mr-2" />+ )}+ {option?.label}+ <XCircle+ className="ml-2 h-4 w-4 cursor-pointer"+ onClick={(event) => {+ event.stopPropagation();+ toggleOption(value);+ }}+ />+ </Badge>+ );+ })}+ {selectedValues.length > maxCount && (+ <Badge+ className={cn(+ "bg-transparent text-foreground border-foreground/1 hover:bg-transparent",+ isAnimating ? "animate-bounce" : "",+ multiSelectVariants({ variant })+ )}+ style={{ animationDuration: `${animation}s` }}+ >+ {`+ ${selectedValues.length - maxCount} more`}+ <XCircle+ className="ml-2 h-4 w-4 cursor-pointer"+ onClick={(event) => {+ event.stopPropagation();+ clearExtraOptions();+ }}+ />+ </Badge>+ )}+ </div>+ <div className="flex items-center justify-between">+ <XIcon+ className="h-4 mx-2 cursor-pointer text-muted-foreground"+ onClick={(event) => {+ event.stopPropagation();+ handleClear();+ }}+ />+ <Separator+ orientation="vertical"+ className="flex min-h-6 h-full"+ />+ <ChevronDown className="h-4 mx-2 cursor-pointer text-muted-foreground" />+ </div>+ </div>+ ) : (+ <div className="flex items-center justify-between w-full mx-auto">+ <span className="text-sm text-muted-foreground mx-3">+ {placeholder}+ </span>+ <ChevronDown className="h-4 cursor-pointer text-muted-foreground mx-2" />+ </div>+ )}+ </Button>+ </PopoverTrigger>+ <PopoverContent+ className="w-[var(--radix-popover-trigger-width)] p-0"+ align="start"+ onEscapeKeyDown={() => setIsPopoverOpen(false)}+ >+ <Command+ className="w-full"+ filter={(value, search) => {+ if (!search) return 1;+ return filterOptions(search).some((opt) => opt.value === value)+ ? 1+ : 0;+ }}+ >+ <CommandInput+ placeholder="Search..."+ onKeyDown={handleInputKeyDown}+ value={inputValue}+ onValueChange={handleInputChange}+ />+ <CommandList>+ <CommandEmpty>+ {allowCustomValues ? (+ <CommandItem onSelect={() => addCustomValue(inputValue)}>+ Add "{inputValue}"+ </CommandItem>+ ) : (+ "No results found."+ )}+ </CommandEmpty>+ <CommandGroup>+ <CommandItem+ key="all"+ onSelect={toggleAll}+ className="cursor-pointer"+ >+ <div+ className={cn(+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",+ selectedValues.length === allOptions.length+ ? "bg-primary text-primary-foreground"+ : "opacity-50 [&_svg]:invisible"+ )}+ >+ <CheckIcon className="h-4 w-4" />+ </div>+ <span>(Select All)</span>+ </CommandItem>++ {/* Show selected items first */}+ {allOptions+ .filter((option) => selectedValues.includes(option.value))+ .map((option) => (+ <CommandItem+ key={option.value}+ onSelect={() => toggleOption(option.value)}+ className="cursor-pointer w-full"+ >+ <div+ className={cn(+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",+ selectedValues.includes(option.value)+ ? "bg-primary text-primary-foreground"+ : "opacity-50 [&_svg]:invisible"+ )}+ >+ <CheckIcon className="h-4 w-4" />+ </div>+ {option.icon && (+ <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />+ )}+ <span>{option.label}</span>+ {!options.find((o) => o.value === option.value) && (+ <Badge variant="outline" className="ml-2">+ custom+ </Badge>+ )}+ </CommandItem>+ ))}++ {allOptions+ .filter((option) => !selectedValues.includes(option.value))+ .map((option) => (+ <CommandItem+ key={option.value}+ onSelect={() => toggleOption(option.value)}+ className="cursor-pointer w-full"+ >+ <div+ className={cn(+ "mr-2 flex h-4 w-4 items-center justify-center rounded-sm border border-primary",+ selectedValues.includes(option.value)+ ? "bg-primary text-primary-foreground"+ : "opacity-50 [&_svg]:invisible"+ )}+ >+ <CheckIcon className="h-4 w-4" />+ </div>+ {option.icon && (+ <option.icon className="mr-2 h-4 w-4 text-muted-foreground" />+ )}+ <span>{option.label}</span>+ {!options.find((o) => o.value === option.value) && (+ <Badge variant="outline" className="ml-2">+ custom+ </Badge>+ )}+ </CommandItem>+ ))}+ </CommandGroup>+ <CommandSeparator />+ <CommandGroup>+ <div className="flex items-center justify-between">+ {selectedValues.length > 0 && (+ <>+ <CommandItem+ onSelect={handleClear}+ className="flex-1 justify-center cursor-pointer"+ >+ Clear+ </CommandItem>+ <Separator+ orientation="vertical"+ className="flex min-h-6 h-full"+ />+ </>+ )}+ <CommandItem+ onSelect={() => setIsPopoverOpen(false)}+ className="flex-1 justify-center cursor-pointer max-w-full"+ >+ Close+ </CommandItem>+ </div>+ </CommandGroup>+ </CommandList>+ </Command>+ </PopoverContent>+ </Popover>+ );+ }+);++MultiSelect.displayName = "MultiSelect";diff --git a/openrewind/components/ui/popover.tsx b/openrewind/components/ui/popover.tsxnew file mode 100644index 000000000..a0ec48bee--- /dev/null+++ b/openrewind/components/ui/popover.tsx@@ -0,0 +1,31 @@+"use client"++import * as React from "react"+import * as PopoverPrimitive from "@radix-ui/react-popover"++import { cn } from "@/lib/utils"++const Popover = PopoverPrimitive.Root++const PopoverTrigger = PopoverPrimitive.Trigger++const PopoverContent = React.forwardRef<+ React.ElementRef<typeof PopoverPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>+>(({ className, align = "center", sideOffset = 4, ...props }, ref) => (+ <PopoverPrimitive.Portal>+ <PopoverPrimitive.Content+ ref={ref}+ align={align}+ sideOffset={sideOffset}+ className={cn(+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+ </PopoverPrimitive.Portal>+))+PopoverContent.displayName = PopoverPrimitive.Content.displayName++export { Popover, PopoverTrigger, PopoverContent }diff --git a/openrewind/components/ui/progress.tsx b/openrewind/components/ui/progress.tsxnew file mode 100644index 000000000..5c87ea486--- /dev/null+++ b/openrewind/components/ui/progress.tsx@@ -0,0 +1,28 @@+"use client"++import * as React from "react"+import * as ProgressPrimitive from "@radix-ui/react-progress"++import { cn } from "@/lib/utils"++const Progress = React.forwardRef<+ React.ElementRef<typeof ProgressPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>+>(({ className, value, ...props }, ref) => (+ <ProgressPrimitive.Root+ ref={ref}+ className={cn(+ "relative h-4 w-full overflow-hidden rounded-full bg-secondary",+ className+ )}+ {...props}+ >+ <ProgressPrimitive.Indicator+ className="h-full w-full flex-1 bg-primary transition-all"+ style={{ transform: `translateX(-${100 - (value || 0)}%)` }}+ />+ </ProgressPrimitive.Root>+))+Progress.displayName = ProgressPrimitive.Root.displayName++export { Progress }diff --git a/openrewind/components/ui/rainbow-button.tsx b/openrewind/components/ui/rainbow-button.tsxnew file mode 100644index 000000000..299fb03de--- /dev/null+++ b/openrewind/components/ui/rainbow-button.tsx@@ -0,0 +1,33 @@+import React from "react";++import { cn } from "@/lib/utils";+interface RainbowButtonProps+ extends React.ButtonHTMLAttributes<HTMLButtonElement> {}++export function RainbowButton({+ children,+ className,+ ...props+}: RainbowButtonProps) {+ return (+ <button+ className={cn(+ "group relative inline-flex h-11 animate-rainbow cursor-pointer items-center justify-center rounded-xl border-0 bg-[length:200%] px-8 py-2 font-medium text-primary-foreground transition-colors [background-clip:padding-box,border-box,border-box] [background-origin:border-box] [border:calc(0.08*1rem)_solid_transparent] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",++ // before styles+ "before:absolute before:bottom-[-20%] before:left-1/2 before:z-0 before:h-1/5 before:w-3/5 before:-translate-x-1/2 before:animate-rainbow before:bg-[linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))] before:bg-[length:200%] before:[filter:blur(calc(0.8*1rem))]",++ // light mode colors+ "bg-[linear-gradient(#121213,#121213),linear-gradient(#121213_50%,rgba(18,18,19,0.6)_80%,rgba(18,18,19,0)),linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))]",++ // dark mode colors+ "dark:bg-[linear-gradient(#fff,#fff),linear-gradient(#fff_50%,rgba(255,255,255,0.6)_80%,rgba(0,0,0,0)),linear-gradient(90deg,hsl(var(--color-1)),hsl(var(--color-5)),hsl(var(--color-3)),hsl(var(--color-4)),hsl(var(--color-2)))]",++ className,+ )}+ {...props}+ >+ {children}+ </button>+ );+}diff --git a/openrewind/components/ui/resizable.tsx b/openrewind/components/ui/resizable.tsxnew file mode 100644index 000000000..f4bc5586b--- /dev/null+++ b/openrewind/components/ui/resizable.tsx@@ -0,0 +1,45 @@+"use client"++import { GripVertical } from "lucide-react"+import * as ResizablePrimitive from "react-resizable-panels"++import { cn } from "@/lib/utils"++const ResizablePanelGroup = ({+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (+ <ResizablePrimitive.PanelGroup+ className={cn(+ "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",+ className+ )}+ {...props}+ />+)++const ResizablePanel = ResizablePrimitive.Panel++const ResizableHandle = ({+ withHandle,+ className,+ ...props+}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {+ withHandle?: boolean+}) => (+ <ResizablePrimitive.PanelResizeHandle+ className={cn(+ "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",+ className+ )}+ {...props}+ >+ {withHandle && (+ <div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">+ <GripVertical className="h-2.5 w-2.5" />+ </div>+ )}+ </ResizablePrimitive.PanelResizeHandle>+)++export { ResizablePanelGroup, ResizablePanel, ResizableHandle }diff --git a/openrewind/components/ui/scroll-area.tsx b/openrewind/components/ui/scroll-area.tsxnew file mode 100644index 000000000..0b4a48d87--- /dev/null+++ b/openrewind/components/ui/scroll-area.tsx@@ -0,0 +1,48 @@+"use client"++import * as React from "react"+import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"++import { cn } from "@/lib/utils"++const ScrollArea = React.forwardRef<+ React.ElementRef<typeof ScrollAreaPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>+>(({ className, children, ...props }, ref) => (+ <ScrollAreaPrimitive.Root+ ref={ref}+ className={cn("relative overflow-hidden", className)}+ {...props}+ >+ <ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">+ {children}+ </ScrollAreaPrimitive.Viewport>+ <ScrollBar />+ <ScrollAreaPrimitive.Corner />+ </ScrollAreaPrimitive.Root>+))+ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName++const ScrollBar = React.forwardRef<+ React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>+>(({ className, orientation = "vertical", ...props }, ref) => (+ <ScrollAreaPrimitive.ScrollAreaScrollbar+ ref={ref}+ orientation={orientation}+ className={cn(+ "flex touch-none select-none transition-colors",+ orientation === "vertical" &&+ "h-full w-2.5 border-l border-l-transparent p-[1px]",+ orientation === "horizontal" &&+ "h-2.5 flex-col border-t border-t-transparent p-[1px]",+ className+ )}+ {...props}+ >+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />+ </ScrollAreaPrimitive.ScrollAreaScrollbar>+))+ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName++export { ScrollArea, ScrollBar }diff --git a/openrewind/components/ui/select.tsx b/openrewind/components/ui/select.tsxnew file mode 100644index 000000000..cbe5a36b6--- /dev/null+++ b/openrewind/components/ui/select.tsx@@ -0,0 +1,160 @@+"use client"++import * as React from "react"+import * as SelectPrimitive from "@radix-ui/react-select"+import { Check, ChevronDown, ChevronUp } from "lucide-react"++import { cn } from "@/lib/utils"++const Select = SelectPrimitive.Root++const SelectGroup = SelectPrimitive.Group++const SelectValue = SelectPrimitive.Value++const SelectTrigger = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>+>(({ className, children, ...props }, ref) => (+ <SelectPrimitive.Trigger+ ref={ref}+ className={cn(+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",+ className+ )}+ {...props}+ >+ {children}+ <SelectPrimitive.Icon asChild>+ <ChevronDown className="h-4 w-4 opacity-50" />+ </SelectPrimitive.Icon>+ </SelectPrimitive.Trigger>+))+SelectTrigger.displayName = SelectPrimitive.Trigger.displayName++const SelectScrollUpButton = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.ScrollUpButton+ ref={ref}+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronUp className="h-4 w-4" />+ </SelectPrimitive.ScrollUpButton>+))+SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName++const SelectScrollDownButton = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.ScrollDownButton+ ref={ref}+ className={cn(+ "flex cursor-default items-center justify-center py-1",+ className+ )}+ {...props}+ >+ <ChevronDown className="h-4 w-4" />+ </SelectPrimitive.ScrollDownButton>+))+SelectScrollDownButton.displayName =+ SelectPrimitive.ScrollDownButton.displayName++const SelectContent = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>+>(({ className, children, position = "popper", ...props }, ref) => (+ <SelectPrimitive.Portal>+ <SelectPrimitive.Content+ ref={ref}+ className={cn(+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ position === "popper" &&+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",+ className+ )}+ position={position}+ {...props}+ >+ <SelectScrollUpButton />+ <SelectPrimitive.Viewport+ className={cn(+ "p-1",+ position === "popper" &&+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"+ )}+ >+ {children}+ </SelectPrimitive.Viewport>+ <SelectScrollDownButton />+ </SelectPrimitive.Content>+ </SelectPrimitive.Portal>+))+SelectContent.displayName = SelectPrimitive.Content.displayName++const SelectLabel = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Label>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.Label+ ref={ref}+ className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}+ {...props}+ />+))+SelectLabel.displayName = SelectPrimitive.Label.displayName++const SelectItem = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Item>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>+>(({ className, children, ...props }, ref) => (+ <SelectPrimitive.Item+ ref={ref}+ className={cn(+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ className+ )}+ {...props}+ >+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">+ <SelectPrimitive.ItemIndicator>+ <Check className="h-4 w-4" />+ </SelectPrimitive.ItemIndicator>+ </span>++ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>+ </SelectPrimitive.Item>+))+SelectItem.displayName = SelectPrimitive.Item.displayName++const SelectSeparator = React.forwardRef<+ React.ElementRef<typeof SelectPrimitive.Separator>,+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>+>(({ className, ...props }, ref) => (+ <SelectPrimitive.Separator+ ref={ref}+ className={cn("-mx-1 my-1 h-px bg-muted", className)}+ {...props}+ />+))+SelectSeparator.displayName = SelectPrimitive.Separator.displayName++export {+ Select,+ SelectGroup,+ SelectValue,+ SelectTrigger,+ SelectContent,+ SelectLabel,+ SelectItem,+ SelectSeparator,+ SelectScrollUpButton,+ SelectScrollDownButton,+}diff --git a/openrewind/components/ui/separator.tsx b/openrewind/components/ui/separator.tsxnew file mode 100644index 000000000..12d81c4a8--- /dev/null+++ b/openrewind/components/ui/separator.tsx@@ -0,0 +1,31 @@+"use client"++import * as React from "react"+import * as SeparatorPrimitive from "@radix-ui/react-separator"++import { cn } from "@/lib/utils"++const Separator = React.forwardRef<+ React.ElementRef<typeof SeparatorPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>+>(+ (+ { className, orientation = "horizontal", decorative = true, ...props },+ ref+ ) => (+ <SeparatorPrimitive.Root+ ref={ref}+ decorative={decorative}+ orientation={orientation}+ className={cn(+ "shrink-0 bg-border",+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",+ className+ )}+ {...props}+ />+ )+)+Separator.displayName = SeparatorPrimitive.Root.displayName++export { Separator }diff --git a/openrewind/components/ui/sheet.tsx b/openrewind/components/ui/sheet.tsxnew file mode 100644index 000000000..a37f17ba0--- /dev/null+++ b/openrewind/components/ui/sheet.tsx@@ -0,0 +1,140 @@+"use client"++import * as React from "react"+import * as SheetPrimitive from "@radix-ui/react-dialog"+import { cva, type VariantProps } from "class-variance-authority"+import { X } from "lucide-react"++import { cn } from "@/lib/utils"++const Sheet = SheetPrimitive.Root++const SheetTrigger = SheetPrimitive.Trigger++const SheetClose = SheetPrimitive.Close++const SheetPortal = SheetPrimitive.Portal++const SheetOverlay = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Overlay>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Overlay+ className={cn(+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",+ className+ )}+ {...props}+ ref={ref}+ />+))+SheetOverlay.displayName = SheetPrimitive.Overlay.displayName++const sheetVariants = cva(+ "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",+ {+ variants: {+ side: {+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",+ bottom:+ "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",+ right:+ "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm",+ },+ },+ defaultVariants: {+ side: "right",+ },+ }+)++interface SheetContentProps+ extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,+ VariantProps<typeof sheetVariants> {}++const SheetContent = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Content>,+ SheetContentProps+>(({ side = "right", className, children, ...props }, ref) => (+ <SheetPortal>+ <SheetOverlay />+ <SheetPrimitive.Content+ ref={ref}+ className={cn(sheetVariants({ side }), className)}+ {...props}+ >+ {children}+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">+ <X className="h-4 w-4" />+ <span className="sr-only">Close</span>+ </SheetPrimitive.Close>+ </SheetPrimitive.Content>+ </SheetPortal>+))+SheetContent.displayName = SheetPrimitive.Content.displayName++const SheetHeader = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col space-y-2 text-center sm:text-left",+ className+ )}+ {...props}+ />+)+SheetHeader.displayName = "SheetHeader"++const SheetFooter = ({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) => (+ <div+ className={cn(+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",+ className+ )}+ {...props}+ />+)+SheetFooter.displayName = "SheetFooter"++const SheetTitle = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Title>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Title+ ref={ref}+ className={cn("text-lg font-semibold text-foreground", className)}+ {...props}+ />+))+SheetTitle.displayName = SheetPrimitive.Title.displayName++const SheetDescription = React.forwardRef<+ React.ElementRef<typeof SheetPrimitive.Description>,+ React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>+>(({ className, ...props }, ref) => (+ <SheetPrimitive.Description+ ref={ref}+ className={cn("text-sm text-muted-foreground", className)}+ {...props}+ />+))+SheetDescription.displayName = SheetPrimitive.Description.displayName++export {+ Sheet,+ SheetPortal,+ SheetOverlay,+ SheetTrigger,+ SheetClose,+ SheetContent,+ SheetHeader,+ SheetFooter,+ SheetTitle,+ SheetDescription,+}diff --git a/openrewind/components/ui/sidebar.tsx b/openrewind/components/ui/sidebar.tsxnew file mode 100644index 000000000..cb0e31450--- /dev/null+++ b/openrewind/components/ui/sidebar.tsx@@ -0,0 +1,763 @@+"use client"++import * as React from "react"+import { Slot } from "@radix-ui/react-slot"+import { VariantProps, cva } from "class-variance-authority"+import { PanelLeft } from "lucide-react"++import { useIsMobile } from "@/lib/hooks/use-mobile"+import { cn } from "@/lib/utils"+import { Button } from "@/components/ui/button"+import { Input } from "@/components/ui/input"+import { Separator } from "@/components/ui/separator"+import { Sheet, SheetContent } from "@/components/ui/sheet"+import { Skeleton } from "@/components/ui/skeleton"+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from "@/components/ui/tooltip"++const SIDEBAR_COOKIE_NAME = "sidebar:state"+const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7+const SIDEBAR_WIDTH = "16rem"+const SIDEBAR_WIDTH_MOBILE = "18rem"+const SIDEBAR_WIDTH_ICON = "3rem"+const SIDEBAR_KEYBOARD_SHORTCUT = "b"++type SidebarContext = {+ state: "expanded" | "collapsed"+ open: boolean+ setOpen: (open: boolean) => void+ openMobile: boolean+ setOpenMobile: (open: boolean) => void+ isMobile: boolean+ toggleSidebar: () => void+}++const SidebarContext = React.createContext<SidebarContext | null>(null)++function useSidebar() {+ const context = React.useContext(SidebarContext)+ if (!context) {+ throw new Error("useSidebar must be used within a SidebarProvider.")+ }++ return context+}++const SidebarProvider = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div"> & {+ defaultOpen?: boolean+ open?: boolean+ onOpenChange?: (open: boolean) => void+ }+>(+ (+ {+ defaultOpen = true,+ open: openProp,+ onOpenChange: setOpenProp,+ className,+ style,+ children,+ ...props+ },+ ref+ ) => {+ const isMobile = useIsMobile()+ const [openMobile, setOpenMobile] = React.useState(false)++ // This is the internal state of the sidebar.+ // We use openProp and setOpenProp for control from outside the component.+ const [_open, _setOpen] = React.useState(defaultOpen)+ const open = openProp ?? _open+ const setOpen = React.useCallback(+ (value: boolean | ((value: boolean) => boolean)) => {+ const openState = typeof value === "function" ? value(open) : value+ if (setOpenProp) {+ setOpenProp(openState)+ } else {+ _setOpen(openState)+ }++ // This sets the cookie to keep the sidebar state.+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`+ },+ [setOpenProp, open]+ )++ // Helper to toggle the sidebar.+ const toggleSidebar = React.useCallback(() => {+ return isMobile+ ? setOpenMobile((open) => !open)+ : setOpen((open) => !open)+ }, [isMobile, setOpen, setOpenMobile])++ // Adds a keyboard shortcut to toggle the sidebar.+ React.useEffect(() => {+ const handleKeyDown = (event: KeyboardEvent) => {+ if (+ event.key === SIDEBAR_KEYBOARD_SHORTCUT &&+ (event.metaKey || event.ctrlKey)+ ) {+ event.preventDefault()+ toggleSidebar()+ }+ }++ window.addEventListener("keydown", handleKeyDown)+ return () => window.removeEventListener("keydown", handleKeyDown)+ }, [toggleSidebar])++ // We add a state so that we can do data-state="expanded" or "collapsed".+ // This makes it easier to style the sidebar with Tailwind classes.+ const state = open ? "expanded" : "collapsed"++ const contextValue = React.useMemo<SidebarContext>(+ () => ({+ state,+ open,+ setOpen,+ isMobile,+ openMobile,+ setOpenMobile,+ toggleSidebar,+ }),+ [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]+ )++ return (+ <SidebarContext.Provider value={contextValue}>+ <TooltipProvider delayDuration={0}>+ <div+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH,+ "--sidebar-width-icon": SIDEBAR_WIDTH_ICON,+ ...style,+ } as React.CSSProperties+ }+ className={cn(+ "group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",+ className+ )}+ ref={ref}+ {...props}+ >+ {children}+ </div>+ </TooltipProvider>+ </SidebarContext.Provider>+ )+ }+)+SidebarProvider.displayName = "SidebarProvider"++const Sidebar = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div"> & {+ side?: "left" | "right"+ variant?: "sidebar" | "floating" | "inset"+ collapsible?: "offcanvas" | "icon" | "none"+ }+>(+ (+ {+ side = "left",+ variant = "sidebar",+ collapsible = "offcanvas",+ className,+ children,+ ...props+ },+ ref+ ) => {+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar()++ if (collapsible === "none") {+ return (+ <div+ className={cn(+ "flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",+ className+ )}+ ref={ref}+ {...props}+ >+ {children}+ </div>+ )+ }++ if (isMobile) {+ return (+ <Sheet open={openMobile} onOpenChange={setOpenMobile} {...props}>+ <SheetContent+ data-sidebar="sidebar"+ data-mobile="true"+ className="w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"+ style={+ {+ "--sidebar-width": SIDEBAR_WIDTH_MOBILE,+ } as React.CSSProperties+ }+ side={side}+ >+ <div className="flex h-full w-full flex-col">{children}</div>+ </SheetContent>+ </Sheet>+ )+ }++ return (+ <div+ ref={ref}+ className="group peer hidden md:block text-sidebar-foreground"+ data-state={state}+ data-collapsible={state === "collapsed" ? collapsible : ""}+ data-variant={variant}+ data-side={side}+ >+ {/* This is what handles the sidebar gap on desktop */}+ <div+ className={cn(+ "duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear",+ "group-data-[collapsible=offcanvas]:w-0",+ "group-data-[side=right]:rotate-180",+ variant === "floating" || variant === "inset"+ ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]"+ : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"+ )}+ />+ <div+ className={cn(+ "duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",+ side === "left"+ ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"+ : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",+ // Adjust the padding for floating and inset variants.+ variant === "floating" || variant === "inset"+ ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]"+ : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",+ className+ )}+ {...props}+ >+ <div+ data-sidebar="sidebar"+ className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"+ >+ {children}+ </div>+ </div>+ </div>+ )+ }+)+Sidebar.displayName = "Sidebar"++const SidebarTrigger = React.forwardRef<+ React.ElementRef<typeof Button>,+ React.ComponentProps<typeof Button>+>(({ className, onClick, ...props }, ref) => {+ const { toggleSidebar } = useSidebar()++ return (+ <Button+ ref={ref}+ data-sidebar="trigger"+ variant="ghost"+ size="icon"+ className={cn("h-7 w-7", className)}+ onClick={(event) => {+ onClick?.(event)+ toggleSidebar()+ }}+ {...props}+ >+ <PanelLeft />+ <span className="sr-only">Toggle Sidebar</span>+ </Button>+ )+})+SidebarTrigger.displayName = "SidebarTrigger"++const SidebarRail = React.forwardRef<+ HTMLButtonElement,+ React.ComponentProps<"button">+>(({ className, ...props }, ref) => {+ const { toggleSidebar } = useSidebar()++ return (+ <button+ ref={ref}+ data-sidebar="rail"+ aria-label="Toggle Sidebar"+ tabIndex={-1}+ onClick={toggleSidebar}+ title="Toggle Sidebar"+ className={cn(+ "absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",+ "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",+ "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar",+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",+ className+ )}+ {...props}+ />+ )+})+SidebarRail.displayName = "SidebarRail"++const SidebarInset = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"main">+>(({ className, ...props }, ref) => {+ return (+ <main+ ref={ref}+ className={cn(+ "relative flex min-h-svh flex-1 flex-col bg-background",+ "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",+ className+ )}+ {...props}+ />+ )+})+SidebarInset.displayName = "SidebarInset"++const SidebarInput = React.forwardRef<+ React.ElementRef<typeof Input>,+ React.ComponentProps<typeof Input>+>(({ className, ...props }, ref) => {+ return (+ <Input+ ref={ref}+ data-sidebar="input"+ className={cn(+ "h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",+ className+ )}+ {...props}+ />+ )+})+SidebarInput.displayName = "SidebarInput"++const SidebarHeader = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => {+ return (+ <div+ ref={ref}+ data-sidebar="header"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ )+})+SidebarHeader.displayName = "SidebarHeader"++const SidebarFooter = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => {+ return (+ <div+ ref={ref}+ data-sidebar="footer"+ className={cn("flex flex-col gap-2 p-2", className)}+ {...props}+ />+ )+})+SidebarFooter.displayName = "SidebarFooter"++const SidebarSeparator = React.forwardRef<+ React.ElementRef<typeof Separator>,+ React.ComponentProps<typeof Separator>+>(({ className, ...props }, ref) => {+ return (+ <Separator+ ref={ref}+ data-sidebar="separator"+ className={cn("mx-2 w-auto bg-sidebar-border", className)}+ {...props}+ />+ )+})+SidebarSeparator.displayName = "SidebarSeparator"++const SidebarContent = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => {+ return (+ <div+ ref={ref}+ data-sidebar="content"+ className={cn(+ "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",+ className+ )}+ {...props}+ />+ )+})+SidebarContent.displayName = "SidebarContent"++const SidebarGroup = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => {+ return (+ <div+ ref={ref}+ data-sidebar="group"+ className={cn("relative flex w-full min-w-0 flex-col p-2", className)}+ {...props}+ />+ )+})+SidebarGroup.displayName = "SidebarGroup"++const SidebarGroupLabel = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div"> & { asChild?: boolean }+>(({ className, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "div"++ return (+ <Comp+ ref={ref}+ data-sidebar="group-label"+ className={cn(+ "duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",+ className+ )}+ {...props}+ />+ )+})+SidebarGroupLabel.displayName = "SidebarGroupLabel"++const SidebarGroupAction = React.forwardRef<+ HTMLButtonElement,+ React.ComponentProps<"button"> & { asChild?: boolean }+>(({ className, asChild = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ ref={ref}+ data-sidebar="group-action"+ className={cn(+ "absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 after:md:hidden",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+})+SidebarGroupAction.displayName = "SidebarGroupAction"++const SidebarGroupContent = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ data-sidebar="group-content"+ className={cn("w-full text-sm", className)}+ {...props}+ />+))+SidebarGroupContent.displayName = "SidebarGroupContent"++const SidebarMenu = React.forwardRef<+ HTMLUListElement,+ React.ComponentProps<"ul">+>(({ className, ...props }, ref) => (+ <ul+ ref={ref}+ data-sidebar="menu"+ className={cn("flex w-full min-w-0 flex-col gap-1", className)}+ {...props}+ />+))+SidebarMenu.displayName = "SidebarMenu"++const SidebarMenuItem = React.forwardRef<+ HTMLLIElement,+ React.ComponentProps<"li">+>(({ className, ...props }, ref) => (+ <li+ ref={ref}+ data-sidebar="menu-item"+ className={cn("group/menu-item relative", className)}+ {...props}+ />+))+SidebarMenuItem.displayName = "SidebarMenuItem"++const sidebarMenuButtonVariants = cva(+ "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",+ {+ variants: {+ variant: {+ default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",+ outline:+ "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]",+ },+ size: {+ default: "h-8 text-sm",+ sm: "h-7 text-xs",+ lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0",+ },+ },+ defaultVariants: {+ variant: "default",+ size: "default",+ },+ }+)++const SidebarMenuButton = React.forwardRef<+ HTMLButtonElement,+ React.ComponentProps<"button"> & {+ asChild?: boolean+ isActive?: boolean+ tooltip?: string | React.ComponentProps<typeof TooltipContent>+ } & VariantProps<typeof sidebarMenuButtonVariants>+>(+ (+ {+ asChild = false,+ isActive = false,+ variant = "default",+ size = "default",+ tooltip,+ className,+ ...props+ },+ ref+ ) => {+ const Comp = asChild ? Slot : "button"+ const { isMobile, state } = useSidebar()++ const button = (+ <Comp+ ref={ref}+ data-sidebar="menu-button"+ data-size={size}+ data-active={isActive}+ className={cn(sidebarMenuButtonVariants({ variant, size }), className)}+ {...props}+ />+ )++ if (!tooltip) {+ return button+ }++ if (typeof tooltip === "string") {+ tooltip = {+ children: tooltip,+ }+ }++ return (+ <Tooltip>+ <TooltipTrigger asChild>{button}</TooltipTrigger>+ <TooltipContent+ side="right"+ align="center"+ hidden={state !== "collapsed" || isMobile}+ {...tooltip}+ />+ </Tooltip>+ )+ }+)+SidebarMenuButton.displayName = "SidebarMenuButton"++const SidebarMenuAction = React.forwardRef<+ HTMLButtonElement,+ React.ComponentProps<"button"> & {+ asChild?: boolean+ showOnHover?: boolean+ }+>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {+ const Comp = asChild ? Slot : "button"++ return (+ <Comp+ ref={ref}+ data-sidebar="menu-action"+ className={cn(+ "absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",+ // Increases the hit area of the button on mobile.+ "after:absolute after:-inset-2 after:md:hidden",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ showOnHover &&+ "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",+ className+ )}+ {...props}+ />+ )+})+SidebarMenuAction.displayName = "SidebarMenuAction"++const SidebarMenuBadge = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div">+>(({ className, ...props }, ref) => (+ <div+ ref={ref}+ data-sidebar="menu-badge"+ className={cn(+ "absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none",+ "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",+ "peer-data-[size=sm]/menu-button:top-1",+ "peer-data-[size=default]/menu-button:top-1.5",+ "peer-data-[size=lg]/menu-button:top-2.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+))+SidebarMenuBadge.displayName = "SidebarMenuBadge"++const SidebarMenuSkeleton = React.forwardRef<+ HTMLDivElement,+ React.ComponentProps<"div"> & {+ showIcon?: boolean+ }+>(({ className, showIcon = false, ...props }, ref) => {+ // Random width between 50 to 90%.+ const width = React.useMemo(() => {+ return `${Math.floor(Math.random() * 40) + 50}%`+ }, [])++ return (+ <div+ ref={ref}+ data-sidebar="menu-skeleton"+ className={cn("rounded-md h-8 flex gap-2 px-2 items-center", className)}+ {...props}+ >+ {showIcon && (+ <Skeleton+ className="size-4 rounded-md"+ data-sidebar="menu-skeleton-icon"+ />+ )}+ <Skeleton+ className="h-4 flex-1 max-w-[--skeleton-width]"+ data-sidebar="menu-skeleton-text"+ style={+ {+ "--skeleton-width": width,+ } as React.CSSProperties+ }+ />+ </div>+ )+})+SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton"++const SidebarMenuSub = React.forwardRef<+ HTMLUListElement,+ React.ComponentProps<"ul">+>(({ className, ...props }, ref) => (+ <ul+ ref={ref}+ data-sidebar="menu-sub"+ className={cn(+ "mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+))+SidebarMenuSub.displayName = "SidebarMenuSub"++const SidebarMenuSubItem = React.forwardRef<+ HTMLLIElement,+ React.ComponentProps<"li">+>(({ ...props }, ref) => <li ref={ref} {...props} />)+SidebarMenuSubItem.displayName = "SidebarMenuSubItem"++const SidebarMenuSubButton = React.forwardRef<+ HTMLAnchorElement,+ React.ComponentProps<"a"> & {+ asChild?: boolean+ size?: "sm" | "md"+ isActive?: boolean+ }+>(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {+ const Comp = asChild ? Slot : "a"++ return (+ <Comp+ ref={ref}+ data-sidebar="menu-sub-button"+ data-size={size}+ data-active={isActive}+ className={cn(+ "flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",+ "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",+ size === "sm" && "text-xs",+ size === "md" && "text-sm",+ "group-data-[collapsible=icon]:hidden",+ className+ )}+ {...props}+ />+ )+})+SidebarMenuSubButton.displayName = "SidebarMenuSubButton"++export {+ Sidebar,+ SidebarContent,+ SidebarFooter,+ SidebarGroup,+ SidebarGroupAction,+ SidebarGroupContent,+ SidebarGroupLabel,+ SidebarHeader,+ SidebarInput,+ SidebarInset,+ SidebarMenu,+ SidebarMenuAction,+ SidebarMenuBadge,+ SidebarMenuButton,+ SidebarMenuItem,+ SidebarMenuSkeleton,+ SidebarMenuSub,+ SidebarMenuSubButton,+ SidebarMenuSubItem,+ SidebarProvider,+ SidebarRail,+ SidebarSeparator,+ SidebarTrigger,+ useSidebar,+}diff --git a/openrewind/components/ui/skeleton.tsx b/openrewind/components/ui/skeleton.tsxnew file mode 100644index 000000000..01b8b6d4f--- /dev/null+++ b/openrewind/components/ui/skeleton.tsx@@ -0,0 +1,15 @@+import { cn } from "@/lib/utils"++function Skeleton({+ className,+ ...props+}: React.HTMLAttributes<HTMLDivElement>) {+ return (+ <div+ className={cn("animate-pulse rounded-md bg-muted", className)}+ {...props}+ />+ )+}++export { Skeleton }diff --git a/openrewind/components/ui/slider.tsx b/openrewind/components/ui/slider.tsxnew file mode 100644index 000000000..c31c2b3bc--- /dev/null+++ b/openrewind/components/ui/slider.tsx@@ -0,0 +1,28 @@+"use client"++import * as React from "react"+import * as SliderPrimitive from "@radix-ui/react-slider"++import { cn } from "@/lib/utils"++const Slider = React.forwardRef<+ React.ElementRef<typeof SliderPrimitive.Root>,+ React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>+>(({ className, ...props }, ref) => (+ <SliderPrimitive.Root+ ref={ref}+ className={cn(+ "relative flex w-full touch-none select-none items-center",+ className+ )}+ {...props}+ >+ <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">+ <SliderPrimitive.Range className="absolute h-full bg-primary" />+ </SliderPrimitive.Track>+ <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />+ </SliderPrimitive.Root>+))+Slider.displayName = SliderPrimitive.Root.displayName++export { Slider }diff --git a/openrewind/components/ui/sonner.tsx b/openrewind/components/ui/sonner.tsxnew file mode 100644index 000000000..452f4d9f0--- /dev/null+++ b/openrewind/components/ui/sonner.tsx@@ -0,0 +1,31 @@+"use client"++import { useTheme } from "next-themes"+import { Toaster as Sonner } from "sonner"++type ToasterProps = React.ComponentProps<typeof Sonner>++const Toaster = ({ ...props }: ToasterProps) => {+ const { theme = "system" } = useTheme()++ return (+ <Sonner+ theme={theme as ToasterProps["theme"]}+ className="toaster group"+ toastOptions={{+ classNames: {+ toast:+ "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",+ description: "group-[.toast]:text-muted-foreground",+ actionButton:+ "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",+ cancelButton:+ "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",+ },+ }}+ {...props}+ />+ )+}++export { Toaster }diff --git a/openrewind/components/ui/switch.tsx b/openrewind/components/ui/switch.tsxnew file mode 100644index 000000000..bc69cf2db--- /dev/null+++ b/openrewind/components/ui/switch.tsx@@ -0,0 +1,29 @@+"use client"++import * as React from "react"+import * as SwitchPrimitives from "@radix-ui/react-switch"++import { cn } from "@/lib/utils"++const Switch = React.forwardRef<+ React.ElementRef<typeof SwitchPrimitives.Root>,+ React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>+>(({ className, ...props }, ref) => (+ <SwitchPrimitives.Root+ className={cn(+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",+ className+ )}+ {...props}+ ref={ref}+ >+ <SwitchPrimitives.Thumb+ className={cn(+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"+ )}+ />+ </SwitchPrimitives.Root>+))+Switch.displayName = SwitchPrimitives.Root.displayName++export { Switch }diff --git a/openrewind/components/ui/tabs.tsx b/openrewind/components/ui/tabs.tsxnew file mode 100644index 000000000..26eb10912--- /dev/null+++ b/openrewind/components/ui/tabs.tsx@@ -0,0 +1,55 @@+"use client"++import * as React from "react"+import * as TabsPrimitive from "@radix-ui/react-tabs"++import { cn } from "@/lib/utils"++const Tabs = TabsPrimitive.Root++const TabsList = React.forwardRef<+ React.ElementRef<typeof TabsPrimitive.List>,+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>+>(({ className, ...props }, ref) => (+ <TabsPrimitive.List+ ref={ref}+ className={cn(+ "inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",+ className+ )}+ {...props}+ />+))+TabsList.displayName = TabsPrimitive.List.displayName++const TabsTrigger = React.forwardRef<+ React.ElementRef<typeof TabsPrimitive.Trigger>,+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>+>(({ className, ...props }, ref) => (+ <TabsPrimitive.Trigger+ ref={ref}+ className={cn(+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",+ className+ )}+ {...props}+ />+))+TabsTrigger.displayName = TabsPrimitive.Trigger.displayName++const TabsContent = React.forwardRef<+ React.ElementRef<typeof TabsPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>+>(({ className, ...props }, ref) => (+ <TabsPrimitive.Content+ ref={ref}+ className={cn(+ "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",+ className+ )}+ {...props}+ />+))+TabsContent.displayName = TabsPrimitive.Content.displayName++export { Tabs, TabsList, TabsTrigger, TabsContent }diff --git a/openrewind/components/ui/textarea.tsx b/openrewind/components/ui/textarea.tsxnew file mode 100644index 000000000..9f9a6dc56--- /dev/null+++ b/openrewind/components/ui/textarea.tsx@@ -0,0 +1,24 @@+import * as React from "react"++import { cn } from "@/lib/utils"++export interface TextareaProps+ extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}++const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(+ ({ className, ...props }, ref) => {+ return (+ <textarea+ className={cn(+ "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ className+ )}+ ref={ref}+ {...props}+ />+ )+ }+)+Textarea.displayName = "Textarea"++export { Textarea }diff --git a/openrewind/components/ui/toast.tsx b/openrewind/components/ui/toast.tsxnew file mode 100644index 000000000..521b94b07--- /dev/null+++ b/openrewind/components/ui/toast.tsx@@ -0,0 +1,129 @@+"use client"++import * as React from "react"+import * as ToastPrimitives from "@radix-ui/react-toast"+import { cva, type VariantProps } from "class-variance-authority"+import { X } from "lucide-react"++import { cn } from "@/lib/utils"++const ToastProvider = ToastPrimitives.Provider++const ToastViewport = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Viewport>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Viewport+ ref={ref}+ className={cn(+ "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",+ className+ )}+ {...props}+ />+))+ToastViewport.displayName = ToastPrimitives.Viewport.displayName++const toastVariants = cva(+ "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",+ {+ variants: {+ variant: {+ default: "border bg-background text-foreground",+ destructive:+ "destructive group border-destructive bg-destructive text-destructive-foreground",+ },+ },+ defaultVariants: {+ variant: "default",+ },+ }+)++const Toast = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Root>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &+ VariantProps<typeof toastVariants>+>(({ className, variant, ...props }, ref) => {+ return (+ <ToastPrimitives.Root+ ref={ref}+ className={cn(toastVariants({ variant }), className)}+ {...props}+ />+ )+})+Toast.displayName = ToastPrimitives.Root.displayName++const ToastAction = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Action>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Action+ ref={ref}+ className={cn(+ "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",+ className+ )}+ {...props}+ />+))+ToastAction.displayName = ToastPrimitives.Action.displayName++const ToastClose = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Close>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Close+ ref={ref}+ className={cn(+ "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",+ className+ )}+ toast-close=""+ {...props}+ >+ <X className="h-4 w-4" />+ </ToastPrimitives.Close>+))+ToastClose.displayName = ToastPrimitives.Close.displayName++const ToastTitle = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Title>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Title+ ref={ref}+ className={cn("text-sm font-semibold", className)}+ {...props}+ />+))+ToastTitle.displayName = ToastPrimitives.Title.displayName++const ToastDescription = React.forwardRef<+ React.ElementRef<typeof ToastPrimitives.Description>,+ React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>+>(({ className, ...props }, ref) => (+ <ToastPrimitives.Description+ ref={ref}+ className={cn("text-sm opacity-90", className)}+ {...props}+ />+))+ToastDescription.displayName = ToastPrimitives.Description.displayName++type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>++type ToastActionElement = React.ReactElement<typeof ToastAction>++export {+ type ToastProps,+ type ToastActionElement,+ ToastProvider,+ ToastViewport,+ Toast,+ ToastTitle,+ ToastDescription,+ ToastClose,+ ToastAction,+}diff --git a/openrewind/components/ui/toaster.tsx b/openrewind/components/ui/toaster.tsxnew file mode 100644index 000000000..e2233852a--- /dev/null+++ b/openrewind/components/ui/toaster.tsx@@ -0,0 +1,35 @@+"use client"++import {+ Toast,+ ToastClose,+ ToastDescription,+ ToastProvider,+ ToastTitle,+ ToastViewport,+} from "@/components/ui/toast"+import { useToast } from "@/components/ui/use-toast"++export function Toaster() {+ const { toasts } = useToast()++ return (+ <ToastProvider>+ {toasts.map(function ({ id, title, description, action, ...props }) {+ return (+ <Toast key={id} {...props}>+ <div className="grid gap-1">+ {title && <ToastTitle>{title}</ToastTitle>}+ {description && (+ <ToastDescription>{description}</ToastDescription>+ )}+ </div>+ {action}+ <ToastClose />+ </Toast>+ )+ })}+ <ToastViewport />+ </ToastProvider>+ )+}diff --git a/openrewind/components/ui/tooltip.tsx b/openrewind/components/ui/tooltip.tsxnew file mode 100644index 000000000..30fc44d90--- /dev/null+++ b/openrewind/components/ui/tooltip.tsx@@ -0,0 +1,30 @@+"use client"++import * as React from "react"+import * as TooltipPrimitive from "@radix-ui/react-tooltip"++import { cn } from "@/lib/utils"++const TooltipProvider = TooltipPrimitive.Provider++const Tooltip = TooltipPrimitive.Root++const TooltipTrigger = TooltipPrimitive.Trigger++const TooltipContent = React.forwardRef<+ React.ElementRef<typeof TooltipPrimitive.Content>,+ React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>+>(({ className, sideOffset = 4, ...props }, ref) => (+ <TooltipPrimitive.Content+ ref={ref}+ sideOffset={sideOffset}+ className={cn(+ "z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ className+ )}+ {...props}+ />+))+TooltipContent.displayName = TooltipPrimitive.Content.displayName++export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }diff --git a/openrewind/components/ui/use-toast.ts b/openrewind/components/ui/use-toast.tsnew file mode 100644index 000000000..02e111d81--- /dev/null+++ b/openrewind/components/ui/use-toast.ts@@ -0,0 +1,194 @@+"use client"++// Inspired by react-hot-toast library+import * as React from "react"++import type {+ ToastActionElement,+ ToastProps,+} from "@/components/ui/toast"++const TOAST_LIMIT = 1+const TOAST_REMOVE_DELAY = 1000000++type ToasterToast = ToastProps & {+ id: string+ title?: React.ReactNode+ description?: React.ReactNode+ action?: ToastActionElement+}++const actionTypes = {+ ADD_TOAST: "ADD_TOAST",+ UPDATE_TOAST: "UPDATE_TOAST",+ DISMISS_TOAST: "DISMISS_TOAST",+ REMOVE_TOAST: "REMOVE_TOAST",+} as const++let count = 0++function genId() {+ count = (count + 1) % Number.MAX_SAFE_INTEGER+ return count.toString()+}++type ActionType = typeof actionTypes++type Action =+ | {+ type: ActionType["ADD_TOAST"]+ toast: ToasterToast+ }+ | {+ type: ActionType["UPDATE_TOAST"]+ toast: Partial<ToasterToast>+ }+ | {+ type: ActionType["DISMISS_TOAST"]+ toastId?: ToasterToast["id"]+ }+ | {+ type: ActionType["REMOVE_TOAST"]+ toastId?: ToasterToast["id"]+ }++interface State {+ toasts: ToasterToast[]+}++const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()++const addToRemoveQueue = (toastId: string) => {+ if (toastTimeouts.has(toastId)) {+ return+ }++ const timeout = setTimeout(() => {+ toastTimeouts.delete(toastId)+ dispatch({+ type: "REMOVE_TOAST",+ toastId: toastId,+ })+ }, TOAST_REMOVE_DELAY)++ toastTimeouts.set(toastId, timeout)+}++export const reducer = (state: State, action: Action): State => {+ switch (action.type) {+ case "ADD_TOAST":+ return {+ ...state,+ toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),+ }++ case "UPDATE_TOAST":+ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === action.toast.id ? { ...t, ...action.toast } : t+ ),+ }++ case "DISMISS_TOAST": {+ const { toastId } = action++ // ! Side effects ! - This could be extracted into a dismissToast() action,+ // but I'll keep it here for simplicity+ if (toastId) {+ addToRemoveQueue(toastId)+ } else {+ state.toasts.forEach((toast) => {+ addToRemoveQueue(toast.id)+ })+ }++ return {+ ...state,+ toasts: state.toasts.map((t) =>+ t.id === toastId || toastId === undefined+ ? {+ ...t,+ open: false,+ }+ : t+ ),+ }+ }+ case "REMOVE_TOAST":+ if (action.toastId === undefined) {+ return {+ ...state,+ toasts: [],+ }+ }+ return {+ ...state,+ toasts: state.toasts.filter((t) => t.id !== action.toastId),+ }+ }+}++const listeners: Array<(state: State) => void> = []++let memoryState: State = { toasts: [] }++function dispatch(action: Action) {+ memoryState = reducer(memoryState, action)+ listeners.forEach((listener) => {+ listener(memoryState)+ })+}++type Toast = Omit<ToasterToast, "id">++function toast({ ...props }: Toast) {+ const id = genId()++ const update = (props: ToasterToast) =>+ dispatch({+ type: "UPDATE_TOAST",+ toast: { ...props, id },+ })+ const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })++ dispatch({+ type: "ADD_TOAST",+ toast: {+ ...props,+ id,+ open: true,+ onOpenChange: (open) => {+ if (!open) dismiss()+ },+ },+ })++ return {+ id: id,+ dismiss,+ update,+ }+}++function useToast() {+ const [state, setState] = React.useState<State>(memoryState)++ React.useEffect(() => {+ listeners.push(setState)+ return () => {+ const index = listeners.indexOf(setState)+ if (index > -1) {+ listeners.splice(index, 1)+ }+ }+ }, [state])++ return {+ ...state,+ toast,+ dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),+ }+}++export { useToast, toast }diff --git a/openrewind/components/update-notification.tsx b/openrewind/components/update-notification.tsxnew file mode 100644index 000000000..27b0e5c6d--- /dev/null+++ b/openrewind/components/update-notification.tsx@@ -0,0 +1,68 @@+import React, { useEffect, useState } from "react";+import { sendNotification } from "@tauri-apps/plugin-notification";+import { platform } from "@tauri-apps/plugin-os";++const UpdateNotification: React.FC<{ checkIntervalHours: number }> = ({+ checkIntervalHours = 3,+}) => {+ useEffect(() => {+ const checkForUpdates = async () => {+ const lastCheckTime = localStorage.getItem("lastUpdateCheckTime");+ const currentTime = Date.now();++ if (+ !lastCheckTime ||+ currentTime - parseInt(lastCheckTime) > checkIntervalHours * 3600000+ ) {+ const os = platform();+ const releasePageUrl =+ "https://web.crabnebula.cloud/mediar/screenpipe/releases";++ try {+ const response = await fetch(releasePageUrl);+ const html = await response.text();++ // Extract download links+ const links =+ html.match(+ /https:\/\/cdn\.crabnebula\.app\/download\/mediar\/screenpipe\/latest[^\s"']*/g+ ) || [];++ let downloadLink = "";+ if (os === "windows") {+ downloadLink =+ links.find((link) => link.includes("nsis-x86_64")) || "";+ } else if (os === "macos") {+ // For macOS, we can't determine ARM vs Intel, so we'll provide both options+ const armLink =+ links.find((link) => link.includes("aarch64.dmg")) || "";+ const intelLink =+ links.find((link) => link.includes("x64.dmg")) || "";+ downloadLink = `ARM: ${armLink}\nIntel: ${intelLink}`;+ }++ if (downloadLink) {+ sendNotification({+ title: "Screenpipe Update Available",+ body: `A new version of Screenpipe is available. Click to download:\n${downloadLink}`,+ // icon: "update-icon", // Replace with your update icon+ });+ }+ } catch (error) {+ console.error("Error checking for updates:", error);+ }++ localStorage.setItem("lastUpdateCheckTime", currentTime.toString());+ }+ };++ checkForUpdates();+ const interval = setInterval(checkForUpdates, checkIntervalHours * 3600000);++ return () => clearInterval(interval);+ }, [checkIntervalHours]);++ return null;+};++export default UpdateNotification;diff --git a/openrewind/components/updater.tsx b/openrewind/components/updater.tsxnew file mode 100644index 000000000..bea1c8932--- /dev/null+++ b/openrewind/components/updater.tsx@@ -0,0 +1,57 @@+import { check } from "@tauri-apps/plugin-updater";+import { ask, message } from "@tauri-apps/plugin-dialog";+import { relaunch } from "@tauri-apps/plugin-process";+import { invoke } from "@tauri-apps/api/core";+import { platform } from "@tauri-apps/plugin-os";++export async function checkForAppUpdates({ toast }: { toast: any }) {+ const update = await check();++ if (update?.available) {+ const yes = await ask(+ `+Update to ${update.version} is available!+Release notes: ${update.body}+ `,+ {+ title: "Update Now!",+ kind: "info",+ okLabel: "Update",+ cancelLabel: "Cancel",+ }+ );++ if (yes) {+ // on windows only - TODO shouldnt be necessary+ const os = platform();+ if (os === "windows") {+ await invoke("stop_screenpipe");+ }++ const toastId = toast({+ title: "Updating...",+ description: "Downloading and installing update",+ duration: Infinity,+ });++ try {+ await update.downloadAndInstall();+ toast({+ id: toastId,+ title: "Update complete",+ description: "Relaunching application",+ duration: 3000,+ });+ await relaunch();+ } catch (error) {+ toast({+ id: toastId,+ title: "Update failed",+ description: "An error occurred during the update",+ variant: "destructive",+ duration: 5000,+ });+ }+ }+ }+}diff --git a/openrewind/e2e/record.js b/openrewind/e2e/record.jsnew file mode 100644index 000000000..5ae5cfb7d--- /dev/null+++ b/openrewind/e2e/record.js@@ -0,0 +1,146 @@+/* eslint-disable no-console */+const { spawn } = require('child_process');+const path = require('node:path');++function fileName(title) {+ return encodeURIComponent(title.trim().replace(/\s+/g, '-'));+}++class TestRecorder {+ ffmpeg;+ isRecording = false;+ stopPromise = null;+ stopResolve = null;++ constructor() {}++ stop() {+ if (!this.isRecording || !this.ffmpeg) {+ return Promise.resolve();+ }++ // If we already have a stop operation in progress, return that promise+ if (this.stopPromise) {+ return this.stopPromise;+ }++ // Create a new promise for this stop operation+ this.stopPromise = new Promise((resolve) => {+ this.stopResolve = resolve;++ // Set a timeout to force kill if graceful shutdown doesn't work+ const forceKillTimeout = setTimeout(() => {+ console.log('[ffmpeg] Force killing ffmpeg process after timeout');+ this.ffmpeg.kill('SIGKILL');+ }, 5000);++ // Handle the close event to resolve the promise+ this.ffmpeg.once('close', (code, signal) => {+ clearTimeout(forceKillTimeout);+ this.isRecording = false;+ this.ffmpeg = null;+ this.stopPromise = null;+ this.stopResolve = null;+ resolve();+ });++ // On Windows, sending 'q' to stdin is more reliable than SIGINT+ // This tells ffmpeg to quit gracefully and finalize the output file+ console.log('[ffmpeg] Sending quit command for graceful shutdown');+ try {+ this.ffmpeg.stdin.write('q');+ } catch (err) {+ console.log('[ffmpeg] Failed to send quit command, falling back to SIGINT');+ this.ffmpeg.kill('SIGINT');+ }+ });++ return this.stopPromise;+ }++ start(test, videoPath) {+ if (!videoPath || !test) {+ throw new Error('Cannot start recording without a test and path for the video file.');+ }++ // If we're already recording, stop the previous recording first+ if (this.isRecording) {+ console.log('[ffmpeg] Stopping previous recording before starting a new one');+ this.stop().then(() => this._startRecording(test, videoPath));+ } else {+ this._startRecording(test, videoPath);+ }+ }++ _startRecording(test, videoPath) {+ const parsedPath = path.join(+ videoPath,+ `${fileName(test.parent)}-${fileName(test.title)}.mp4`+ );++ console.log(`[ffmpeg] Starting recording: ${parsedPath}`);++ const isWindows = process.platform === 'win32';+ const ffmpegArgs = isWindows ? [+ '-f',+ 'gdigrab',+ '-framerate',+ '30',+ '-i',+ 'desktop',+ '-loglevel',+ 'error',+ '-y',+ '-pix_fmt',+ 'yuv420p',+ '-thread_queue_size',+ '1024',+ parsedPath+ ] : [+ '-f',+ 'x11grab',+ '-video_size',+ '1920x1080',+ '-i',+ process.env.DISPLAY || ':0.0',+ '-loglevel',+ 'error',+ '-y',+ '-pix_fmt',+ 'yuv420p',+ '-thread_queue_size',+ '1024',+ parsedPath+ ];++ this.ffmpeg = spawn('ffmpeg', ffmpegArgs);++ this.isRecording = true;++ function logBuffer(buffer, prefix) {+ const lines = buffer.toString().trim().split('\n');+ lines.forEach(function (line) {+ console.log(prefix + line);+ });+ }++ this.ffmpeg.stdout.on('data', (data) => {+ logBuffer(data, '[ffmpeg:stdout] ');+ });++ this.ffmpeg.stderr.on('data', (data) => {+ logBuffer(data, '[ffmpeg:error] ');+ });++ this.ffmpeg.on('close', (code, signal) => {+ if (code) {+ console.log(`[ffmpeg] exited with code ${code}: ${parsedPath}`);+ }+ if (signal) {+ console.log(`[ffmpeg] received signal ${signal}: ${parsedPath}`);+ }+ });+ }+}++module.exports = { TestRecorder };\ No newline at end of filediff --git a/openrewind/e2e/terminator-e2e/mocha.global.js b/openrewind/e2e/terminator-e2e/mocha.global.jsnew file mode 100644index 000000000..8228e44f5--- /dev/null+++ b/openrewind/e2e/terminator-e2e/mocha.global.js@@ -0,0 +1,51 @@+const { spawn, execSync } = require('child_process');+const fs = require('fs');+const path = require('path');++let appProcess;+let terminatorProcess;++function findExecutablePath() {+ const paths = [+ path.join(__dirname, '../../src-tauri/target/release/screenpipe-app.exe'),+ path.join(__dirname, '../../src-tauri/target/x86_64-pc-windows-msvc/release/screenpipe-app.exe')+ ];+ for (const p of paths) {+ if (fs.existsSync(p)) return p;+ }+ throw new Error('could not find screenpipe-app.exe in any of the expected locations');+}++function findTerminatorServerPath() {+ const serverPath = path.join(__dirname, 'terminator-server-windows-x86_64', 'server.exe');+ if (fs.existsSync(serverPath)) return serverPath;+ throw new Error('could not find terminator server exe in expected location');+}++function killProcess(proc) {+ if (!proc) return;+ const pid = proc.pid;+ if (process.platform === 'win32') {+ try {+ execSync(`taskkill /PID ${pid} /T /F`);+ } catch (e) { /* ignore */ }+ } else {+ try {+ process.kill(-pid);+ } catch (e) { /* ignore */ }+ }+}++exports.mochaHooks = {+ async beforeAll() {+ const exePath = findExecutablePath();+ const terminatorPath = findTerminatorServerPath();+ appProcess = spawn(exePath, [], { stdio: 'ignore', detached: true });+ terminatorProcess = spawn(terminatorPath, [], { stdio: 'ignore', detached: true });+ await new Promise(res => setTimeout(res, 4000));+ },+ afterAll() {+ killProcess(appProcess);+ killProcess(terminatorProcess);+ }+};\ No newline at end of filediff --git a/openrewind/e2e/terminator-e2e/screenpipe.spec.js b/openrewind/e2e/terminator-e2e/screenpipe.spec.jsnew file mode 100644index 000000000..bc9e07426--- /dev/null+++ b/openrewind/e2e/terminator-e2e/screenpipe.spec.js@@ -0,0 +1,66 @@+const { DesktopUseClient, ApiError} = require('desktop-use');++function delay(ms) {+ return new Promise(resolve => setTimeout(resolve, ms));+}++describe('Screenpipe App Health Status', function() {+ this.timeout(150000); // Models download can take a while++ let client;++ before(() => {+ client = new DesktopUseClient();+ });++ it('should open Screenpipe and verify health status', async () => {+ try {++ const mainWindow = client.locator('window:Screenpipe');+ const rootWebArea = mainWindow.locator('role:Document');++ const skipOnboarding = rootWebArea.locator('Name:skip onboarding');+ await skipOnboarding.click();+ await delay(3000);++ const closeChangelogs = rootWebArea.locator('Name:Close');+ await closeChangelogs.click();+ await delay(3000);++ // const healthMenu = rootWebArea.locator('classname:inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent cursor-pointer bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground');+ const healthMenu = rootWebArea.locator('Name:health-status-badge');+ await healthMenu.click();+ await delay(3000);++ async function getHealthStatusText() {+ // const textGroup = rootWebArea.locator('Name:text-sm mb-4 font-semibold');+ const textGroup = rootWebArea.locator('Name:status-message-text');+ const text_element = textGroup.locator('role:Text');+ const attributes = await text_element.getAttributes();+ return attributes.properties?.Name || '';+ }++ const desiredText = 'STRING(screenpipe is running smoothly)';+ let healthStatusText = null;+ for (let i = 0; i < 30; i++) { // Try for up to 30 seconds+ healthStatusText = await getHealthStatusText();+ if (healthStatusText === desiredText) {+ console.log(healthStatusText);+ break;+ }+ await delay(1000);+ }++ if (healthStatusText !== desiredText) {+ throw new Error(`Health status did not match. Got: ${healthStatusText}`);+ }++ } catch (e) {+ if (e instanceof ApiError) {+ throw new Error(`API Status: ${e}`);+ } else {+ throw new Error(`Unexpected error: ${e}`);+ }+ }+ });+});diff --git a/openrewind/e2e/tests/health-check.js b/openrewind/e2e/tests/health-check.jsnew file mode 100644index 000000000..34b7561bd--- /dev/null+++ b/openrewind/e2e/tests/health-check.js@@ -0,0 +1,109 @@+describe('Project', () => {+ it('Health check', async () => {+ // Wait for app to load+ await browser.waitUntil(+ async () => {+ const readyState = await browser.execute(() => document.readyState);+ return readyState === 'complete';+ },+ {+ timeout: 10000,+ timeoutMsg: 'app did not load in time'+ }+ );++ // On Linux, WebdriverIO is not able to click on buttons, so we need to use JavaScript+ const isLinux = await browser.execute(() => {+ // Check if we're on Linux using userAgent+ const userAgent = navigator.userAgent.toLowerCase();+ return userAgent.includes('linux') && !userAgent.includes('android');+ });++ // Wait for the skip onboarding button to be visible+ const button = await $('button.text-muted-foreground*=skip onboarding');+ await button.waitForDisplayed({ timeout: 10000 });++ if (isLinux) {+ // Use JavaScript click directly with a valid CSS selector on Linux+ await browser.execute(() => {+ const buttons = document.querySelectorAll('button');+ for (const btn of buttons) {+ if (btn.textContent.includes('skip onboarding')) {+ btn.click();+ break;+ }+ }+ });+ } else {+ // Use native WebdriverIO click on Windows+ await button.waitForClickable({ timeout: 10000 });+ await button.click();+ }++ // Add a small delay to ensure UI has time to respond+ await browser.pause(500);++ // Close the dialog - wait for the close button to be visible+ const dialogCloseButton = await $('button.absolute.right-4.top-4 svg.lucide-x');+ await dialogCloseButton.waitForDisplayed({ timeout: 10000 });++ if (isLinux) {+ // Use JavaScript click directly with a valid CSS selector on Linux+ await browser.execute(() => {+ const closeButtons = document.querySelectorAll('button svg.lucide-x');+ for (const btn of closeButtons) {+ if (btn.closest('button.absolute.right-4.top-4')) {+ btn.closest('button').click();+ break;+ }+ }+ });+ } else {+ // Use native WebdriverIO click on Windows+ await dialogCloseButton.waitForClickable({ timeout: 10000 });+ await dialogCloseButton.click();+ }++ // Add a small delay to ensure UI has time to respond+ await browser.pause(500);++ // Click badge - wait for it to be visible+ const badge = await $('div.cursor-pointer.bg-transparent');+ await badge.waitForDisplayed({ timeout: 10000 });++ if (isLinux) {+ // Use JavaScript click directly with a valid CSS selector on Linux+ await browser.execute(() => {+ const badges = document.querySelectorAll('div.cursor-pointer.bg-transparent');+ if (badges.length > 0) {+ badges[0].click();+ }+ });+ } else {+ // Use native WebdriverIO click on Windows+ await badge.waitForClickable({ timeout: 10000 });+ await badge.click();+ }++ // Add a small delay to ensure UI has time to respond+ await browser.pause(500);++ // Wait until the status message is correct+ await browser.waitUntil(+ async () => {+ const statusElement = await $('div.flex-grow p.text-sm');+ const statusMessage = await statusElement.getText();+ return statusMessage.includes('screenpipe is running smoothly');+ },+ {+ timeout: 60000, // maximum wait time (1 minute)+ timeoutMsg: 'status message did not update in time'+ }+ );++ // Verify the status message+ const statusElement = await $('div.flex-grow p.text-sm');+ const statusMessage = await statusElement.getText();+ expect(statusMessage).toContain('screenpipe is running smoothly');+ });+});diff --git a/openrewind/e2e/utils.js b/openrewind/e2e/utils.jsnew file mode 100644index 000000000..eaaeefb4c--- /dev/null+++ b/openrewind/e2e/utils.js@@ -0,0 +1,7 @@+async function findAndClick(selector) {+ const button = await $(selector);+ await button.isClickable();+ await button.click();+}++module.exports = { findAndClick };\ No newline at end of filediff --git a/openrewind/e2e/videos/.keep b/openrewind/e2e/videos/.keepnew file mode 100644index 000000000..e69de29bbdiff --git a/openrewind/lib/actions/get-start-date.ts b/openrewind/lib/actions/get-start-date.tsnew file mode 100644index 000000000..2f92d0af2--- /dev/null+++ b/openrewind/lib/actions/get-start-date.ts@@ -0,0 +1,82 @@+"use server";++import { isAfter } from "date-fns";++export async function getStartDate() {+ try {+ const videoChunkQuery = `+ SELECT+ f.timestamp,+ f.offset_index,+ ot.text,+ ot.app_name,+ ot.window_name,+ vc.device_name as screen_device,+ vc.file_path as video_path+ FROM frames f+ JOIN video_chunks vc ON f.video_chunk_id = vc.id+ LEFT JOIN ocr_text ot ON f.id = ot.frame_id+ ORDER BY f.timestamp ASC, f.offset_index ASC+ LIMIT 1++`;++ const audioChunkQuery = `+ SELECT+ at.timestamp,+ at.transcription,+ at.device as audio_device,+ at.is_input_device,+ ac.file_path as audio_path+ FROM audio_transcriptions at+ JOIN audio_chunks ac ON at.audio_chunk_id = ac.id+ ORDER BY at.timestamp ASC+ LIMIT 1+`;++ const videoFetch = fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ query: videoChunkQuery }),+ });++ const audioFetch = fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ query: audioChunkQuery }),+ });++ const [videoData, audioData] = await Promise.all([videoFetch, audioFetch]);++ if (!videoData.ok || !audioData.ok) {+ return {+ error: "error occured while getting data",+ video: await videoData.json(),+ audio: await audioData.json(),+ query: {+ videoChunkQuery,+ audioChunkQuery,+ },+ };+ }++ const video = (await videoData.json())[0];+ const audio = (await audioData.json())[0];++ const videoStart = new Date(video.timestamp);+ const audioStart = new Date(audio.timestamp);++ const videoGreater = isAfter(videoStart, audioStart);++ return !videoGreater ? videoStart : audioStart;+ } catch (e) {+ return {+ error: "errro occured",+ };+ }+}+diff --git a/openrewind/lib/actions/has-frames-date.ts b/openrewind/lib/actions/has-frames-date.tsnew file mode 100644index 000000000..2bf6d73d4--- /dev/null+++ b/openrewind/lib/actions/has-frames-date.ts@@ -0,0 +1,43 @@+"use server";++export async function hasFramesForDate(date: Date) {+ try {+ // Set up start and end of the day+ const startOfDay = new Date(date);+ startOfDay.setHours(0, 0, 0, 0);++ const endOfDay = new Date(date);+ endOfDay.setHours(23, 59, 59, 999);++ const query = `+ SELECT COUNT(*) as frame_count+ FROM frames f+ WHERE f.timestamp >= '${startOfDay.toISOString()}'+ AND f.timestamp <= '${endOfDay.toISOString()}'+ LIMIT 1+ `;++ const response = await fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ query }),+ });++ if (!response.ok) {+ return {+ error: "Error occurred while checking frames",+ details: await response.json(),+ };+ }++ const result = await response.json();+ return result[0]?.frame_count > 0;+ } catch (e) {+ return {+ error: "Error occurred while checking frames",+ details: e,+ };+ }+}diff --git a/openrewind/lib/actions/video-actions.ts b/openrewind/lib/actions/video-actions.tsnew file mode 100644index 000000000..449e64b64--- /dev/null+++ b/openrewind/lib/actions/video-actions.ts@@ -0,0 +1,48 @@+"use server";++import { readFile } from "node:fs/promises";+import { resolve } from "node:path";++export async function getMediaFile(+ filePath: string,+): Promise<{ data: string; mimeType: string }> {+ try {+ const absolutePath = resolve(filePath);+ const buffer = await readFile(absolutePath);+ // convert to base64+ const data = buffer.toString("base64");++ const getMimeType = (path: string): string => {+ const ext = path.split(".").pop()?.toLowerCase();+ const isAudio =+ path.toLowerCase().includes("input") ||+ path.toLowerCase().includes("output");++ switch (ext) {+ case "mp4":+ return "video/mp4";+ case "webm":+ return "video/webm";+ case "ogg":+ return "video/ogg";+ case "mp3":+ return "audio/mpeg";+ case "wav":+ return "audio/wav";+ default:+ return isAudio ? "audio/mpeg" : "video/mp4";+ }+ };++ return {+ data,+ mimeType: getMimeType(filePath),+ };+ } catch (error) {+ console.error("failed to read media file:", error);+ throw new Error(+ `failed to read media file: ${error instanceof Error ? error.message : "unknown error"}`,+ );+ }+}+diff --git a/openrewind/lib/api/index.ts b/openrewind/lib/api/index.tsnew file mode 100644index 000000000..04b6d6270--- /dev/null+++ b/openrewind/lib/api/index.ts@@ -0,0 +1,111 @@+interface PipeCron {+ path: string;+ schedule: string;+}++interface PipeConfig {+ crons: PipeCron[];+ is_nextjs: boolean;+ source: string;+}++interface Pipe {+ config: PipeConfig;+ enabled: boolean;+ id: string;+ port: number | null;+ source: string;+}++interface PipeListResponse {+ data: Pipe[];+ success: boolean;+}++interface PipeShortcut {+ pipeId: string;+ shortcut: string;+}++export class PipeApi {+ private baseUrl: string;++ constructor(baseUrl: string = "http://localhost:3030") {+ this.baseUrl = baseUrl;+ }++ async listPipes(): Promise<Pipe[]> {+ try {+ const response = await fetch(`${this.baseUrl}/pipes/list`);+ if (!response.ok) {+ throw new Error(`failed to fetch pipes: ${response.statusText}`);+ }+ const data: PipeListResponse = await response.json();+ if (!data.success) {+ throw new Error("failed to list pipes: api returned success: false");+ }+ return data.data;+ } catch (error) {+ console.error("error listing pipes:", error);+ throw error;+ }+ }++ async startAudio(deviceName: string): Promise<void> {+ try {+ const type = deviceName.includes("(input)") ? "Input" : "Output";+ const name = deviceName.replaceAll("(input)", "").replaceAll("(output)", "").trim();+ const response = await fetch(`${this.baseUrl}/audio/start`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ device_name: name,+ device_type: type,+ }),+ });++ if (!response.ok) {+ throw new Error(`failed to start audio: ${response.statusText}`);+ }++ const data = await response.json();+ if (!data.success) {+ throw new Error(`failed to start audio: ${data.message}`);+ }+ } catch (error) {+ console.error("error starting audio:", error);+ throw error;+ }+ }++ async stopAudio(deviceName: string): Promise<void> {+ try {+ const type = deviceName.includes("(input)") ? "Input" : "Output";+ const name = deviceName.replaceAll("(input)", "").replaceAll("(output)", "").trim();+ const response = await fetch(`${this.baseUrl}/audio/stop`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ device_name: name,+ device_type: type,+ }),+ });++ if (!response.ok) {+ throw new Error(`failed to stop audio: ${response.statusText}`);+ }++ const data = await response.json();+ if (!data.success) {+ throw new Error(`failed to stop audio: ${data.message}`);+ }+ } catch (error) {+ console.error("error stopping audio:", error);+ throw error;+ }+ }+}diff --git a/openrewind/lib/api/store/index.ts b/openrewind/lib/api/store/index.tsnew file mode 100644index 000000000..f1b04db63--- /dev/null+++ b/openrewind/lib/api/store/index.ts@@ -0,0 +1,361 @@+import { invoke } from "@tauri-apps/api/core";+import localforage from "localforage";++export interface PipeStorePlugin {+ id: string;+ name: string;+ description: string | null;+ is_paid: boolean | null;+ price: number | null;+ status: string | null;+ created_at: string | null;+ source_code: string | null;+ developer_accounts: {+ developer_name: string;+ };+ plugin_analytics: {+ downloads_count: number | null;+ };+}++export interface PipeDownloadResponse {+ download_url: string;+ file_hash: string;+ file_size: number;+}++export enum PipeDownloadError {+ PURCHASE_REQUIRED = "purchase required",+ DOWNLOAD_FAILED = "failed to download pipe",+}++type PurchaseHistoryResponse = PurchaseHistoryItem[];++export interface PurchaseHistoryItem {+ id: string;+ amount_paid: number;+ currency: string;+ stripe_payment_status: string;+ created_at: string;+ refunded_at: string | null;+ plugin_id: string;+ plugin_name: string;+ plugin_description: string;+ developer_name: string;+}++interface PurchaseUrlResponse {+ data: {+ checkout_url?: string;+ used_credits?: boolean;+ payment_successful?: boolean;+ already_purchased?: boolean;+ };+}++export interface CheckUpdateResponse {+ has_update: boolean;+ current_version: string;+ latest_version: string;+ latest_file_hash: string;+ latest_file_size: number;+}++export interface CheckUpdatesRequest {+ plugins: Array<{+ pipe_id: string;+ version: string;+ }>;+}++export interface CheckUpdatesResponse {+ results: Array<+ | {+ pipe_id: string;+ has_update: boolean;+ current_version: string;+ latest_version: string;+ latest_file_hash: string;+ latest_file_size: number;+ }+ | {+ pipe_id: string;+ error: string;+ status: number;+ }+ >;+}++interface CacheEntry<T> {+ data: T;+ timestamp: number;+}++export class PipeApi {+ private baseUrl: string;+ private authToken: string;+ private cacheTTL = 60000; // 60 seconds cache++ private constructor(authToken: string) {+ this.baseUrl = "https://screenpi.pe";+ this.authToken = authToken;+ }++ static async create(authToken: string): Promise<PipeApi> {+ const api = new PipeApi(authToken);+ await api.init(authToken);+ return api;+ }++ private async init(authToken: string) {+ try {+ const BASE_URL = await invoke("get_env", { name: "BASE_URL_PRIVATE" });+ if (BASE_URL) {+ this.baseUrl = BASE_URL as string;+ }+ this.authToken = authToken;+ } catch (error) {+ console.error("error initializing base url:", error);+ }+ }++ private async getCached<T>(key: string): Promise<T | null> {+ try {+ const entry = await localforage.getItem<CacheEntry<T>>(`pipe_api_${key}`);+ if (!entry) return null;++ if (Date.now() - entry.timestamp > this.cacheTTL) {+ await localforage.removeItem(`pipe_api_${key}`);+ return null;+ }++ return entry.data;+ } catch (error) {+ console.warn("cache read error:", error);+ return null;+ }+ }++ private async setCache<T>(key: string, data: T) {+ try {+ await localforage.setItem(`pipe_api_${key}`, {+ data,+ timestamp: Date.now(),+ });+ } catch (error) {+ console.warn("cache write error:", error);+ }+ }++ async getUserPurchaseHistory(): Promise<PurchaseHistoryResponse> {+ try {+ const response = await fetch(+ `${this.baseUrl}/api/plugins/user-purchase-history`,+ {+ headers: {+ Authorization: `Bearer ${this.authToken}`,+ },+ }+ );+ if (!response.ok) {+ const { error } = (await response.json()) as { error: string };+ throw new Error(`failed to fetch purchase history: ${error}`);+ }++ return (await response.json()) as PurchaseHistoryResponse;+ } catch (error) {+ console.error("error getting purchase history:", error);+ throw error;+ }+ }++ async listStorePlugins(): Promise<PipeStorePlugin[]> {+ const cacheKey = "store-plugins";+ const cached = await this.getCached<PipeStorePlugin[]>(cacheKey);+ if (cached) return cached;++ try {+ const response = await fetch(`${this.baseUrl}/api/plugins/registry`, {+ headers: {+ Authorization: `Bearer ${this.authToken}`,+ },+ });+ if (!response.ok) {+ const { error } = await response.json();+ throw new Error(`failed to fetch plugins: ${error}`);+ }+ const data: PipeStorePlugin[] = await response.json();+ await this.setCache(cacheKey, data);+ return data;+ } catch (error) {+ console.error("error listing pipes:", error);+ throw error;+ }+ }++ async purchasePipe(pipeId: string): Promise<PurchaseUrlResponse> {+ try {+ const response = await fetch(`${this.baseUrl}/api/plugins/purchase`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${this.authToken}`,+ },+ body: JSON.stringify({ pipe_id: pipeId }),+ });+ if (!response.ok) {+ const { error } = await response.json();+ throw new Error(`failed to purchase pipe: ${error}`);+ }+ const data = (await response.json()) as PurchaseUrlResponse;+ console.log("purchase data", data);+ return data;+ } catch (error) {+ console.error("error purchasing pipe:", error);+ throw error;+ }+ }++ async downloadPipe(pipeId: string): Promise<PipeDownloadResponse> {+ try {+ const response = await fetch(`${this.baseUrl}/api/plugins/download`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${this.authToken}`,+ },+ body: JSON.stringify({ pipe_id: pipeId }),+ });++ if (!response.ok) {+ const { error } = (await response.json()) as { error: string };+ throw new Error(error!, {+ cause:+ response.status === 403+ ? PipeDownloadError.PURCHASE_REQUIRED+ : PipeDownloadError.DOWNLOAD_FAILED,+ });+ }+ const data = (await response.json()) as PipeDownloadResponse;+ return data;+ } catch (error) {+ console.warn("error downloading pipe:", error);+ throw error;+ }+ }++ async checkUpdate(+ pipeId: string,+ version: string+ ): Promise<CheckUpdateResponse> {+ const cacheKey = `update_${pipeId}_${version}`;+ const cached = await this.getCached<CheckUpdateResponse>(cacheKey);+ if (cached) return cached;++ try {+ const response = await fetch(`${this.baseUrl}/api/plugins/check-update`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${this.authToken}`,+ },+ body: JSON.stringify({ pipe_id: pipeId, version }),+ });++ if (!response.ok) {+ const { error } = await response.json();+ throw new Error(`failed to check for updates: ${error}`);+ }++ const data = await response.json();+ await this.setCache(cacheKey, data);+ return data;+ } catch (error) {+ console.error("error checking for updates:", error);+ throw error;+ }+ }++ async checkUpdates(+ plugins: Array<{ pipe_id: string; version: string }>+ ): Promise<CheckUpdatesResponse> {+ // Filter out local plugins+ const localPlugins = plugins.filter(p => p.pipe_id.includes('_local'));+ const remotePlugins = plugins.filter(p => !p.pipe_id.includes('_local'));++ if (localPlugins.length > 0) {+ console.log(`[pipe-update] filtered out ${localPlugins.length} local plugins:`, localPlugins);+ }+++ // If no remote plugins, return empty result+ if (remotePlugins.length === 0) {+ console.log("[pipe-update] no remote plugins to check for updates");+ return {+ results: []+ };+ }++ // Create a cache key based on remote plugin IDs and versions+ const cacheKey = `updates_${remotePlugins+ .map((p) => `${p.pipe_id}_${p.version}`)+ .join("_")}`;+ const cached = await this.getCached<CheckUpdatesResponse>(cacheKey);+ if (cached) {+ console.log("[pipe-update] returning cached update results");+ return cached;+ }++ try {+ console.log(`[pipe-update] sending update check request to server for ${remotePlugins.length} plugins`);+ const response = await fetch(`${this.baseUrl}/api/plugins/check-updates`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${this.authToken}`,+ },+ body: JSON.stringify({ plugins: remotePlugins }),+ });++ if (!response.ok) {+ const errorData = await response.json();+ console.error(`[pipe-update] server returned ${response.status}: ${JSON.stringify(errorData)}`);+ throw new Error(`failed to check for updates: ${errorData.error}`);+ }++ const data = await response.json();+ console.log("[pipe-update] received update check response:", data);++ // Add back information about local plugins+ if (localPlugins.length > 0) {+ console.log("[pipe-update] adding local plugin info to response");+ const localResults = localPlugins.map(p => ({+ pipe_id: p.pipe_id,+ error: "Local plugin cannot be checked for updates",+ status: 404+ }));++ // If data.results exists, add local results to it+ if (data.results) {+ data.results = [...data.results, ...localResults];+ }+ }++ await this.setCache(cacheKey, data);+ return data;+ } catch (error) {+ console.error("error checking for updates:", error);+ throw error;+ }+ }++ // method to force refresh cache if needed+ async clearCache() {+ const keys = await localforage.keys();+ await Promise.all(+ keys+ .filter((key) => key.startsWith("pipe_api_"))+ .map((key) => localforage.removeItem(key))+ );+ }+}diff --git a/openrewind/lib/hooks/use-ai-provider.tsx b/openrewind/lib/hooks/use-ai-provider.tsxnew file mode 100644index 000000000..56bf7b5c6--- /dev/null+++ b/openrewind/lib/hooks/use-ai-provider.tsx@@ -0,0 +1,96 @@+import { useState, useEffect } from "react";+import type { Settings } from "@screenpipe/js";++interface AIProviderStatus {+ isAvailable: boolean;+ error: string;+}++export function useAiProvider(+ settings: Partial<Settings> | null | undefined,+): AIProviderStatus {+ const [status, setStatus] = useState<AIProviderStatus>({+ isAvailable: true,+ error: "",+ });++ useEffect(() => {+ const checkAiProvider = async () => {+ try {+ if (!settings) {+ setStatus({+ isAvailable: false,+ error: "no settings found",+ });+ return;+ }++ if (!settings.aiProviderType) {+ setStatus({ isAvailable: false, error: "no ai-provider is set" });+ return;+ }+ switch (settings.aiProviderType) {+ case "openai":+ if (!settings.openaiApiKey) {+ setStatus({+ isAvailable: false,+ error: "openai api key not configured",+ });+ return;+ }+ break;++ case "native-ollama":+ try {+ const response = await fetch("http://localhost:11434/api/tags");+ if (!response.ok) throw new Error();+ } catch {+ setStatus({+ isAvailable: false,+ error: "ollama not running on port 11434",+ });+ return;+ }+ break;++ case "screenpipe-cloud":+ if (!settings.user?.token) {+ setStatus({+ isAvailable: false,+ error: "login required for screenpipe cloud",+ });+ return;+ }+ break;++ case "custom":+ if (!settings.aiUrl) {+ setStatus({+ isAvailable: false,+ error: "custom ai url not configured",+ });+ return;+ }+ break;+ }++ setStatus({ isAvailable: true, error: "" });+ } catch (error) {+ setStatus({+ isAvailable: false,+ error: "failed to check ai provider",+ });+ }+ };++ checkAiProvider();+ }, [+ settings?.aiProviderType,+ settings?.openaiApiKey,+ settings?.aiUrl,+ settings?.user?.token,+ ]);++ return status;+}+diff --git a/openrewind/lib/hooks/use-app-version.tsx b/openrewind/lib/hooks/use-app-version.tsxnew file mode 100644index 000000000..69f2543e0--- /dev/null+++ b/openrewind/lib/hooks/use-app-version.tsx@@ -0,0 +1,12 @@+import { getVersion } from "@tauri-apps/api/app";+import { useEffect, useState } from "react";++export function useAppVersion() {+ const [version, setVersion] = useState<string | null>(null);++ useEffect(() => {+ getVersion().then(setVersion);+ }, []);++ return version;+}diff --git a/openrewind/lib/hooks/use-changelog-dialog.tsx b/openrewind/lib/hooks/use-changelog-dialog.tsxnew file mode 100644index 000000000..099d5f304--- /dev/null+++ b/openrewind/lib/hooks/use-changelog-dialog.tsx@@ -0,0 +1,56 @@+import React, {+ createContext,+ useContext,+ useState,+ useEffect,+ ReactNode,+} from "react";+import localforage from "localforage";+import { useAppVersion } from "./use-app-version";++interface ChangelogDialogContextType {+ showChangelogDialog: boolean;+ setShowChangelogDialog: (show: boolean) => void;+}++const ChangelogDialogContext = createContext<+ ChangelogDialogContextType | undefined+>(undefined);++export const ChangelogDialogProvider: React.FC<{ children: ReactNode }> = ({+ children,+}) => {+ const [showChangelogDialog, setShowChangelogDialog] = useState(false);+ const version = useAppVersion();++ useEffect(() => {+ const checkChangelogStatus = async () => {+ const versionSeen = await localforage.getItem<string>("versionSeen");++ if (version && (!versionSeen || versionSeen !== version)) {+ setShowChangelogDialog(true);+ await localforage.setItem("versionSeen", version);+ }+ };++ checkChangelogStatus();+ }, [version]);++ return (+ <ChangelogDialogContext.Provider+ value={{ showChangelogDialog, setShowChangelogDialog }}+ >+ {children}+ </ChangelogDialogContext.Provider>+ );+};++export const useChangelogDialog = (): ChangelogDialogContextType => {+ const context = useContext(ChangelogDialogContext);+ if (context === undefined) {+ throw new Error(+ "useChangelogDialog must be used within a ChangelogDialogProvider"+ );+ }+ return context;+};diff --git a/openrewind/lib/hooks/use-copy-to-clipboard.tsx b/openrewind/lib/hooks/use-copy-to-clipboard.tsxnew file mode 100644index 000000000..ac5077b98--- /dev/null+++ b/openrewind/lib/hooks/use-copy-to-clipboard.tsx@@ -0,0 +1,38 @@+"use client";++import { toast } from "@/components/ui/use-toast";+import * as React from "react";++export interface useCopyToClipboardProps {+ timeout?: number;+}++export function useCopyToClipboard({+ timeout = 2000,+}: useCopyToClipboardProps) {+ const [isCopied, setIsCopied] = React.useState<boolean>(false);++ const copyToClipboard = (value: string) => {+ if (typeof window === "undefined" || !navigator.clipboard?.writeText) {+ return;+ }++ if (!value) {+ return;+ }++ navigator.clipboard.writeText(value).then(() => {+ setIsCopied(true);+ toast({+ title: "Copied to clipboard",+ duration: 2000,+ });++ setTimeout(() => {+ setIsCopied(false);+ }, timeout);+ });+ };++ return { isCopied, copyToClipboard };+}diff --git a/openrewind/lib/hooks/use-current-frame.tsx b/openrewind/lib/hooks/use-current-frame.tsxnew file mode 100644index 000000000..2928fd584--- /dev/null+++ b/openrewind/lib/hooks/use-current-frame.tsx@@ -0,0 +1,25 @@+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { useEffect, useRef, useState } from "react";+import { useTimelineStore } from "./use-timeline-store";++export const useCurrentFrame = (setCurrentIndex: (index: number) => void) => {+ const [currentFrame, setCurrentFrame] =+ useState<StreamTimeSeriesResponse | null>(null);++ const { frames, isLoading } = useTimelineStore();+ const lastFramesLen = useRef<number>(0);++ useEffect(() => {+ if (!currentFrame && frames.length) {+ setCurrentFrame(frames[lastFramesLen.current]);+ setCurrentIndex(lastFramesLen.current);+ }+ lastFramesLen.current = frames.length;+ }, [isLoading, frames]);++ return {+ currentFrame,+ setCurrentFrame,+ };+};+diff --git a/openrewind/lib/hooks/use-debounce.tsx b/openrewind/lib/hooks/use-debounce.tsxnew file mode 100644index 000000000..ba49720b5--- /dev/null+++ b/openrewind/lib/hooks/use-debounce.tsx@@ -0,0 +1,17 @@+import { useState, useEffect } from "react";++export function useDebounce<T>(value: T, delay: number): T {+ const [debouncedValue, setDebouncedValue] = useState<T>(value);++ useEffect(() => {+ const handler = setTimeout(() => {+ setDebouncedValue(value);+ }, delay);++ return () => {+ clearTimeout(handler);+ };+ }, [value, delay]);++ return debouncedValue;+}diff --git a/openrewind/lib/hooks/use-health-check.tsx b/openrewind/lib/hooks/use-health-check.tsxnew file mode 100644index 000000000..e7fb157e6--- /dev/null+++ b/openrewind/lib/hooks/use-health-check.tsx@@ -0,0 +1,159 @@+import { useState, useEffect, useCallback, useRef } from "react";+import { debounce } from "lodash";++interface HealthCheckResponse {+ status: string;+ status_code: number;+ last_frame_timestamp: string | null;+ last_audio_timestamp: string | null;+ last_ui_timestamp: string | null;+ frame_status: string;+ audio_status: string;+ ui_status: string;+ message: string;+ verbose_instructions?: string | null;+ device_status_details?: string | null;+}++function isHealthChanged(+ oldHealth: HealthCheckResponse | null,+ newHealth: HealthCheckResponse+): boolean {+ if (!oldHealth) return true;+ return (+ oldHealth.status !== newHealth.status ||+ oldHealth.status_code !== newHealth.status_code ||+ oldHealth.last_frame_timestamp !== newHealth.last_frame_timestamp ||+ oldHealth.last_audio_timestamp !== newHealth.last_audio_timestamp ||+ oldHealth.last_ui_timestamp !== newHealth.last_ui_timestamp ||+ oldHealth.frame_status !== newHealth.frame_status ||+ oldHealth.audio_status !== newHealth.audio_status ||+ oldHealth.ui_status !== newHealth.ui_status ||+ oldHealth.message !== newHealth.message+ );+}++interface HealthCheckHook {+ health: HealthCheckResponse | null;+ isServerDown: boolean;+ isLoading: boolean;+ fetchHealth: () => Promise<void>;+ debouncedFetchHealth: () => Promise<void>;+}++export function useHealthCheck() {+ const [health, setHealth] = useState<HealthCheckResponse | null>(null);+ const [isServerDown, setIsServerDown] = useState(false);+ const [isLoading, setIsLoading] = useState(true);+ const healthRef = useRef(health);+ const wsRef = useRef<WebSocket | null>(null);+ const previousHealthStatus = useRef<string | null>(null);+ const unhealthyTransitionsRef = useRef<number>(0);+ const retryIntervalRef = useRef<NodeJS.Timeout | null>(null);++ const fetchHealth = useCallback(async () => {+ if (wsRef.current) {+ wsRef.current.close();+ }++ const ws = new WebSocket("ws://127.0.0.1:3030/ws/health");+ wsRef.current = ws;++ ws.onopen = () => {+ setIsLoading(false);+ if (retryIntervalRef.current) {+ clearInterval(retryIntervalRef.current);+ retryIntervalRef.current = null;+ }+ };++ ws.onmessage = (event) => {+ const data: HealthCheckResponse = JSON.parse(event.data);+ if (isHealthChanged(healthRef.current, data)) {+ setHealth(data);+ healthRef.current = data;+ }++ if (+ data.status === "unhealthy" &&+ previousHealthStatus.current === "healthy"+ ) {+ unhealthyTransitionsRef.current += 1;+ }++ previousHealthStatus.current = data.status;+ };++ ws.onerror = (event) => {+ const error = event as ErrorEvent;+ const errorHealth: HealthCheckResponse = {+ status: "error",+ status_code: 500,+ last_frame_timestamp: null,+ last_audio_timestamp: null,+ last_ui_timestamp: null,+ frame_status: "error",+ audio_status: "error",+ ui_status: "error",+ message: error.message,+ };+ setHealth(errorHealth);+ setIsServerDown(true);+ setIsLoading(false);+ if (!retryIntervalRef.current) {+ retryIntervalRef.current = setInterval(fetchHealth, 2000);+ }+ };++ ws.onclose = () => {+ const errorHealth: HealthCheckResponse = {+ status: "error",+ status_code: 500,+ last_frame_timestamp: null,+ last_audio_timestamp: null,+ last_ui_timestamp: null,+ frame_status: "error",+ audio_status: "error",+ ui_status: "error",+ message: "WebSocket connection closed",+ };+ setHealth(errorHealth);+ setIsServerDown(true);+ if (!retryIntervalRef.current) {+ retryIntervalRef.current = setInterval(fetchHealth, 2000);+ }+ };+ }, []);++ const debouncedFetchHealth = useCallback(() => {+ return new Promise<void>((resolve) => {+ debounce(() => {+ if (wsRef.current && wsRef.current.readyState === WebSocket.OPEN) {+ fetchHealth().then(resolve);+ } else {+ resolve();+ }+ }, 1000)();+ });+ }, [fetchHealth]);++ useEffect(() => {+ fetchHealth();+ return () => {+ if (wsRef.current) {+ wsRef.current.close();+ }+ if (retryIntervalRef.current) {+ clearInterval(retryIntervalRef.current);+ }+ };+ }, [fetchHealth]);++ return {+ health,+ isServerDown,+ isLoading,+ fetchHealth,+ debouncedFetchHealth,+ } as HealthCheckHook;+}diff --git a/openrewind/lib/hooks/use-interval.tsx b/openrewind/lib/hooks/use-interval.tsxnew file mode 100644index 000000000..d32aa8faa--- /dev/null+++ b/openrewind/lib/hooks/use-interval.tsx@@ -0,0 +1,16 @@+import { useEffect, useRef } from 'react';++export function useInterval(callback: () => void, delay: number | null) {+ const savedCallback = useRef(callback);++ useEffect(() => {+ savedCallback.current = callback;+ }, [callback]);++ useEffect(() => {+ if (delay !== null) {+ const id = setInterval(() => savedCallback.current(), delay);+ return () => clearInterval(id);+ }+ }, [delay]);+}\ No newline at end of filediff --git a/openrewind/lib/hooks/use-keyword-params.tsx b/openrewind/lib/hooks/use-keyword-params.tsxnew file mode 100644index 000000000..d84c605d9--- /dev/null+++ b/openrewind/lib/hooks/use-keyword-params.tsx@@ -0,0 +1,7 @@+import { useQueryStates } from "nuqs";+import { queryParser } from "../utils";++export const useKeywordParams = () => {+ return useQueryStates(queryParser, { throttleMs: 100 });+};+diff --git a/openrewind/lib/hooks/use-keyword-search-store.tsx b/openrewind/lib/hooks/use-keyword-search-store.tsxnew file mode 100644index 000000000..d1e04e558--- /dev/null+++ b/openrewind/lib/hooks/use-keyword-search-store.tsx@@ -0,0 +1,296 @@+import { create } from "zustand";++export interface SearchMatch {+ frame_id: number;+ timestamp: string;+ text_positions: Array<{+ text: string;+ confidence: number;+ bounds: {+ left: number;+ top: number;+ width: number;+ height: number;+ };+ }>;+ app_name: string;+ window_name: string;+ confidence: number;+ text: string;+ url: string;+}++export interface SearchRequest {+ query: string;+ params: {+ offset?: number;+ limit?: number;+ start_time?: string;+ end_time?: string;+ fuzzy_match?: boolean;+ order?: "ascending" | "descending";+ app_names?: string[];+ };+}++export interface KeywordSearchState {+ searchResults: SearchMatch[];+ currentResultIndex: number;+ isSearching: boolean;+ searchQuery: string;+ error: string | null;+ lastRequest: SearchRequest | null;+ activeRequestId: string | null;+ currentAbortController: AbortController | null;++ searchKeywords: (+ query: string,+ options?: {+ limit?: number;+ offset?: number;+ include_context?: boolean;+ start_time?: Date;+ end_time?: Date;+ fuzzy_match?: boolean;+ order?: "ascending" | "descending";+ app_names?: string[];+ },+ signal?: AbortSignal,+ ) => Promise<void>;+ setCurrentResultIndex: (index: number) => void;+ resetSearch: () => void;+ nextResult: () => void;+ previousResult: () => void;+}++const fuzzy_default = false;+const offset_default = 0;++export const useKeywordSearchStore = create<KeywordSearchState>((set, get) => ({+ searchResults: [],+ currentResultIndex: -1,+ isSearching: false,+ searchQuery: "",+ error: null,+ lastRequest: null,+ activeRequestId: null,+ currentAbortController: null,++ searchKeywords: async (query, options = {}, signal?: AbortSignal) => {+ if (query.length === 0) return;++ const searchSignature = JSON.stringify({+ query,+ offset: options.offset || offset_default,+ limit: options.limit,+ start_time: options.start_time?.toISOString(),+ end_time: options.end_time?.toISOString(),+ fuzzy_match: options.fuzzy_match ?? fuzzy_default,+ order: options.order ?? "descending",+ app_names: options.app_names ?? [],+ });++ const { lastRequest } = get();+ if (+ lastRequest &&+ JSON.stringify({+ query: lastRequest.query,+ ...lastRequest.params,+ }) === searchSignature+ ) {+ return;+ }++ const { currentAbortController } = get();+ if (currentAbortController) {+ currentAbortController.abort();+ }++ const abortController = new AbortController();+ set({ currentAbortController: abortController });++ const combinedSignal = signal ? new AbortController() : abortController;++ if (signal) {+ signal.addEventListener("abort", () => combinedSignal.abort());+ abortController.signal.addEventListener("abort", () =>+ combinedSignal.abort(),+ );+ }++ const requestId = Math.random().toString(36).substring(7);+ const isInitialSearch = !options.offset || options.offset === 0;++ if (isInitialSearch) {+ set({+ searchResults: [],+ currentResultIndex: -1,+ activeRequestId: requestId,+ isSearching: true,+ error: null,+ });+ } else {+ set((state) => ({+ ...state,+ activeRequestId: requestId,+ isSearching: true,+ error: null,+ }));+ }++ const { searchResults } = get();++ const searchRequest: SearchRequest = {+ query,+ params: {+ offset: options.offset || offset_default,+ limit: options.limit,+ start_time: options.start_time?.toISOString(),+ end_time: options.end_time?.toISOString(),+ fuzzy_match: options.fuzzy_match ?? fuzzy_default,+ order: options.order ?? "descending",+ app_names: options.app_names ?? [],+ },+ };++ try {+ const params = new URLSearchParams({+ query,+ offset: (options.offset ?? 0).toString(),+ include_context: (options.include_context ?? false).toString(),+ fuzzy_match: (options.fuzzy_match ?? fuzzy_default).toString(),+ });++ if (options.app_names) {+ params.append("app_names", options.app_names.join(","));+ }++ if (options.start_time) {+ params.append("start_time", options.start_time.toISOString());+ }++ if (options.end_time) {+ const now = new Date();+ const end = options.end_time;++ if (+ end.getDate() === now.getDate() &&+ end.getMonth() === now.getMonth() &&+ end.getFullYear() === now.getFullYear()+ ) {+ const fiveMinutesAgo = new Date(now.getTime() - 10 * 60000);+ params.append("end_time", fiveMinutesAgo.toISOString());+ } else {+ params.append("end_time", end.toISOString());+ }+ } else {+ const now = new Date();+ const fiveMinutesAgo = new Date(now.getTime() - 10 * 60000);+ fiveMinutesAgo.setSeconds(0, 0);+ params.append("end_time", fiveMinutesAgo.toISOString());+ }++ if (options.order) {+ params.append("order", options.order);+ }++ if (options.limit) {+ params.append("limit", options.limit.toString());+ }++ const response = await fetch(+ `http://localhost:3030/search/keyword?${params}`,+ { signal: combinedSignal.signal },+ );++ if (!response.ok) {+ throw new Error("Search request failed");+ }++ const results = await response.json();++ if (get().activeRequestId === requestId) {+ if (!isInitialSearch) {+ const existingFrameIds = new Set(+ searchResults.map((r) => r.frame_id),+ );+ const uniqueNewResults = results.filter(+ (result: SearchMatch) => !existingFrameIds.has(result.frame_id),+ );++ set({+ searchResults: [...searchResults, ...uniqueNewResults],+ currentResultIndex: get().currentResultIndex,+ searchQuery: query,+ isSearching: false,+ lastRequest: searchRequest,+ currentAbortController: null,+ });+ } else {+ set({+ searchResults: results,+ currentResultIndex: results.length > 0 ? 0 : -1,+ searchQuery: query,+ isSearching: false,+ lastRequest: searchRequest,+ currentAbortController: null,+ });+ }+ }+ } catch (error) {+ if (error instanceof Error && error.name === "AbortError") {+ return;+ }++ if (get().activeRequestId === requestId) {+ set({+ error: error instanceof Error ? error.message : "Search failed",+ isSearching: false,+ currentAbortController: null,+ });+ }+ }+ },++ setCurrentResultIndex: (index) => {+ set({ currentResultIndex: index });+ },++ resetSearch: () => {+ const { currentAbortController } = get();+ if (currentAbortController) {+ currentAbortController.abort();+ }++ set({+ searchResults: [],+ currentResultIndex: -1,+ isSearching: false,+ searchQuery: "",+ error: null,+ lastRequest: null,+ activeRequestId: null,+ currentAbortController: null,+ });+ },++ nextResult: () => {+ const { searchResults, currentResultIndex } = get();+ if (searchResults.length === 0) return;++ const nextIndex = (currentResultIndex + 1) % searchResults.length;+ set({ currentResultIndex: nextIndex });+ },++ previousResult: () => {+ const { searchResults, currentResultIndex } = get();+ if (searchResults.length === 0) return;++ const prevIndex =+ currentResultIndex - 1 < 0+ ? searchResults.length - 1+ : currentResultIndex - 1;+ set({ currentResultIndex: prevIndex });+ },+}));+diff --git a/openrewind/lib/hooks/use-mobile.tsx b/openrewind/lib/hooks/use-mobile.tsxnew file mode 100644index 000000000..2b0fe1dfe--- /dev/null+++ b/openrewind/lib/hooks/use-mobile.tsx@@ -0,0 +1,19 @@+import * as React from "react"++const MOBILE_BREAKPOINT = 768++export function useIsMobile() {+ const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined)++ React.useEffect(() => {+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)+ const onChange = () => {+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ }+ mql.addEventListener("change", onChange)+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)+ return () => mql.removeEventListener("change", onChange)+ }, [])++ return !!isMobile+}diff --git a/openrewind/lib/hooks/use-onboarding.tsx b/openrewind/lib/hooks/use-onboarding.tsxnew file mode 100644index 000000000..bf051c55b--- /dev/null+++ b/openrewind/lib/hooks/use-onboarding.tsx@@ -0,0 +1,59 @@+import { useSettings } from "./use-settings";+import localforage from "localforage";+import { create } from "zustand";+import { useEffect } from "react";++// Define the store state type+interface OnboardingState {+ showOnboarding: boolean;+ setShowOnboarding: (show: boolean) => void;+ initialized: boolean;+}++// Create the Zustand store+export const useOnboardingStore = create<OnboardingState>((set) => ({+ showOnboarding: false,+ initialized: false,+ setShowOnboarding: (show: boolean) => {+ set({ showOnboarding: show });+ localforage.setItem("showOnboarding", show);+ },+}));++// Initialize the store with persisted data+const initializeOnboarding = async () => {+ // Only initialize once+ if (useOnboardingStore.getState().initialized) {+ return;+ }++ const persistedValue = await localforage.getItem("showOnboarding");++ if (persistedValue === null || persistedValue === undefined) {+ // First time user, show onboarding+ useOnboardingStore.setState({+ showOnboarding: true,+ initialized: true,+ });+ } else {+ // Returning user, respect the stored value+ useOnboardingStore.setState({+ showOnboarding: persistedValue === true,+ initialized: true,+ });+ }+};++// Custom hook that combines store with initialization logic+export const useOnboarding = () => {+ const { showOnboarding, setShowOnboarding } = useOnboardingStore();+ const { settings } = useSettings();++ useEffect(() => {+ initializeOnboarding();+ }, [settings]);++ return { showOnboarding, setShowOnboarding };+};++// No longer need the OnboardingProvider componentdiff --git a/openrewind/lib/hooks/use-pipes.tsx b/openrewind/lib/hooks/use-pipes.tsxnew file mode 100644index 000000000..a6ab43c62--- /dev/null+++ b/openrewind/lib/hooks/use-pipes.tsx@@ -0,0 +1,343 @@+import { useState, useEffect } from "react";++export type Pipe = {+ enabled: boolean;+ name: string;+ downloads: number;+ version: string;+ author: string;+ authorLink: string;+ repository: string;+ lastUpdate: string;+ description: string;+ fullDescription: string;+ mainFile?: string;+ config?: Record<string, any>;+};++const CACHE_DURATION = 60 * 60 * 1000; // 1 hour in milliseconds++const fetchWithCache = async (url: string) => {+ const cacheKey = `cache_${url}`;+ const cachedData = localStorage.getItem(cacheKey);++ if (cachedData) {+ const { data, timestamp } = JSON.parse(cachedData);+ if (Date.now() - timestamp < CACHE_DURATION) {+ return data;+ }+ }++ try {+ const response = await fetch(url);+ if (response.status === 403) {+ throw new Error("Rate limit exceeded");+ }+ if (!response.ok) {+ throw new Error(`HTTP error! status: ${response.status}`);+ }+ const data = await response.json();+ localStorage.setItem(+ cacheKey,+ JSON.stringify({ data, timestamp: Date.now() })+ );+ return data;+ } catch (error) {+ console.error(`Error fetching ${url}:`, error);+ if (cachedData) {+ console.log("Returning stale cached data");+ return JSON.parse(cachedData).data;+ }+ throw error;+ }+};++const convertHtmlToMarkdown = (html: string) => {+ const convertedHtml = html.replace(+ /<img\s+(?:[^>]*?\s+)?src="([^"]*)"(?:\s+(?:[^>]*?\s+)?alt="([^"]*)")?\s*\/?>/g,+ (match, src, alt) => {+ return ``;+ }+ );+ return convertedHtml.replace(/<[^>]*>/g, "");+};++const fetchReadme = async (fullName: string) => {+ try {+ const data = await fetchWithCache(+ `https://api.github.com/repos/${fullName}/readme`+ );+ const decodedContent = atob(data.content);+ return convertHtmlToMarkdown(decodedContent);+ } catch (error) {+ console.error("error fetching readme:", error);+ return "";+ }+};++const fetchLatestRelease = async (fullName: string) => {+ try {+ const data = await fetchWithCache(+ `https://api.github.com/repos/${fullName}/releases/latest`+ );+ return data.tag_name;+ } catch (error) {+ console.error("error fetching latest release:", error);+ return "";+ }+};++const fetchSubdirContents = async (+ repoName: string,+ branch: string,+ path: string+) => {+ try {+ return await fetchWithCache(+ `https://api.github.com/repos/${repoName}/contents/${path}?ref=${branch}`+ );+ } catch (error) {+ console.error(`Error fetching subdirectory contents: ${error}`);+ throw error;+ }+};++const fetchFileContent = async (+ repoName: string,+ branch: string,+ path: string+) => {+ try {+ const data = await fetchWithCache(+ `https://api.github.com/repos/${repoName}/contents/${path}?ref=${branch}`+ );+ return atob(data.content);+ } catch (error) {+ console.error(`Error fetching file content: ${error}`);+ throw error;+ }+};++const fetchPipeConfig = async (+ repoFullName: string,+ branch: string,+ subDir: string+): Promise<Record<string, any> | undefined> => {+ try {+ const configPath = subDir ? `${subDir}/pipe.json` : "pipe.json";+ const configContent = await fetchFileContent(+ repoFullName,+ branch,+ configPath+ );+ return JSON.parse(configContent);+ } catch (error) {+ console.error("Error fetching pipe config:", error);+ return undefined;+ }+};++export const usePipes = (initialRepoUrls: string[]) => {+ const [pipes, setPipes] = useState<Pipe[]>([]);+ const [loading, setLoading] = useState(true);+ const [error, setError] = useState<string | null>(null);+ const [repoUrls, setRepoUrls] = useState<string[]>(initialRepoUrls);++ const fetchPipeData = async (repoUrl: string): Promise<Pipe | null> => {+ console.log("fetchPipeData", repoUrl);+ try {+ const urlParts = repoUrl.split("/");+ const isSubdir = urlParts.length > 5;+ const repoOwner = urlParts[3];+ const repoName = urlParts[4];+ const repoFullName = `${repoOwner}/${repoName}`;+ const branch = isSubdir ? urlParts[6] : "main";+ const subDir = isSubdir ? urlParts.slice(7).join("/") : "";+ console.log("urlParts", urlParts);+ console.log("isSubdir", isSubdir);+ console.log("repoFullName", repoFullName);+ console.log("branch", branch);+ console.log("subDir", subDir);+ console.log("repoOwner", repoOwner);+ console.log("repoName", repoName);+ console.log(`Fetching repo data for ${repoFullName}`);+ const repoData = await fetchWithCache(+ `https://api.github.com/repos/${repoFullName}`+ );++ let pipeConfig: Record<string, any> | undefined;++ if (isSubdir) {+ console.log(+ `Fetching subdirectory contents for ${repoFullName}/${subDir}`+ );+ const contents = await fetchSubdirContents(+ repoFullName,+ branch,+ subDir+ );+ console.log("contents", contents);+ if (!contents || !Array.isArray(contents)) return null;++ const jsFiles = contents.filter(+ (file: any) => file.name.endsWith(".js") || file.name.endsWith(".ts")+ );+ const hasJsFile = jsFiles.length > 0;+ const readmeFile = contents.find(+ (file: any) => file.name.toLowerCase() === "readme.md"+ );++ if (!hasJsFile || !readmeFile) return null;+ console.log(`Fetching README content for ${repoFullName}/${subDir}`);+ const readmeContent = await fetchFileContent(+ repoFullName,+ branch,+ `${subDir}/${readmeFile.name}`+ );++ const mainFile =+ jsFiles.find((file: any) => file.name === "pipe.ts") || jsFiles[0];+ const mainFileUrl = mainFile+ ? `https://raw.githubusercontent.com/${repoFullName}/${branch}/${subDir}/${mainFile.name}`+ : undefined;++ console.log(`Fetching latest release for ${repoFullName}`);++ console.log(`Fetching pipe config for ${repoFullName}/${subDir}`);+ pipeConfig = await fetchPipeConfig(repoFullName, branch, subDir).catch(+ (error) => {+ console.warn("Error fetching pipe config:", error);+ return undefined;+ }+ );++ return {+ enabled: false,+ name: subDir.split("/").pop() || repoData.name,+ downloads: repoData.stargazers_count,+ version: await fetchLatestRelease(repoFullName),+ author: repoData.owner.login,+ authorLink: repoData.owner.html_url,+ repository: `${repoData.html_url}/tree/${branch}/${subDir}`,+ lastUpdate: repoData.updated_at,+ description: repoData.description,+ fullDescription: readmeContent+ ? convertHtmlToMarkdown(readmeContent)+ : "",+ mainFile: mainFileUrl,+ config: pipeConfig,+ };+ } else {+ console.log(`Fetching README for ${repoFullName}`);+ const fullDescription = await fetchReadme(repoFullName);++ console.log(`Fetching latest release for ${repoFullName}`);+ const version = await fetchLatestRelease(repoFullName);++ console.log(`Fetching pipe config for ${repoFullName}`);+ pipeConfig = await fetchPipeConfig(repoFullName, branch, "");++ return {+ enabled: false,+ name: repoData.name,+ downloads: repoData.stargazers_count,+ version,+ author: repoData.owner.login,+ authorLink: repoData.owner.html_url,+ repository: repoData.html_url,+ lastUpdate: repoData.updated_at,+ description: repoData.description,+ fullDescription,+ config: pipeConfig,+ };+ }+ } catch (error) {+ console.error(`Error processing ${repoUrl}:`, error);+ return null;+ }+ };++ useEffect(() => {+ let isMounted = true;++ const fetchPipes = async () => {+ if (!isMounted) return;++ setLoading(true);+ setError(null);++ try {+ const pipePromises = repoUrls.map(fetchPipeData);+ const fetchedPipes = (await Promise.all(pipePromises)).filter(+ Boolean+ ) as Pipe[];++ if (isMounted) {+ setPipes(fetchedPipes);+ }+ } catch (error) {+ console.error("Error in fetchPipes:", error);+ if (isMounted && !error) {+ setError("Failed to fetch pipes");+ }+ } finally {+ if (isMounted && loading) {+ setLoading(false);+ }+ }++ // get pipes from local api /pipes/list and add them to the list+ const localPipes = await fetch(`http://localhost:3030/pipes/list`).then(+ (res) => res.json()+ );+ // console.log("localPipes", localPipes);+ setPipes([+ ...pipes,+ ...localPipes.map((pipe: any) => ({+ ...pipe,+ name: pipe.id,+ })),+ ]);+ };++ fetchPipes();++ return () => {+ isMounted = false;+ };+ }, [repoUrls]);++ const addCustomPipe = async (newRepoUrl: string) => {+ setError(null);++ // Check if the URL already exists+ if (repoUrls.includes(newRepoUrl)) {+ setError("This pipe is already in the list.");+ return;+ }++ try {+ const newPipe = await fetchPipeData(newRepoUrl);+ console.log("newPipe", newPipe);+ if (newPipe) {+ // Check if a pipe with the same name already exists+ if (pipes.some((pipe) => pipe.name === newPipe.name)) {+ setError("A pipe with this name already exists.");+ return;+ }++ setRepoUrls((prevUrls) => [...prevUrls, newRepoUrl]);+ setPipes((prevPipes) => [...prevPipes, newPipe]);+ } else {+ throw new Error("Failed to fetch pipe data");+ }+ } catch (error) {+ console.error("Error adding custom pipe:", error);+ setError(+ error instanceof Error ? error.message : "Failed to add custom pipe"+ );+ }+ };++ return { pipes, loading, error, addCustomPipe };+};diff --git a/openrewind/lib/hooks/use-pipesv2.tsx b/openrewind/lib/hooks/use-pipesv2.tsxnew file mode 100644index 000000000..673d2c620--- /dev/null+++ b/openrewind/lib/hooks/use-pipesv2.tsx@@ -0,0 +1,27 @@+import { useState, useEffect } from "react";++export type Pipe = {+ enabled: boolean;+ name: string;+ source: string;+ fullDescription: string;+ config?: Record<string, any>;+};++const convertHtmlToMarkdown = (html: string) => {+ const convertedHtml = html.replace(+ /<img\s+(?:[^>]*?\s+)?src="([^"]*)"(?:\s+(?:[^>]*?\s+)?alt="([^"]*)")?\s*\/?>/g,+ (match, src, alt) => {+ return ``;+ }+ );+ return convertedHtml.replace(/<[^>]*>/g, "");+};++export const usePipes = (initialRepoUrls: string[]) => {+ const [pipes, setPipes] = useState<Pipe[]>([]);+ const [loading, setLoading] = useState(true);+ const [error, setError] = useState<string | null>(null);++ return { pipes, loading, error };+};diff --git a/openrewind/lib/hooks/use-platform.tsx b/openrewind/lib/hooks/use-platform.tsxnew file mode 100644index 000000000..c5ce15538--- /dev/null+++ b/openrewind/lib/hooks/use-platform.tsx@@ -0,0 +1,69 @@+import { getVersion } from "@tauri-apps/api/app";+import { OsType, type } from "@tauri-apps/plugin-os";+import { create } from "zustand";++type PlatformState = {+ platform: OsType | "unknown";+ version: string;+ isMac: boolean;+ isWindows: boolean;+ isLinux: boolean;+ isLoading: boolean;+ error: string | null;+ init: () => Promise<void>;+};++const usePlatformStore = create<PlatformState>((set) => ({+ platform: "unknown",+ version: "",+ isMac: false,+ isWindows: false,+ isLinux: false,+ isLoading: true,+ error: null,+ init: async () => {+ try {+ // check if we're in a tauri environment+ if (typeof type !== "function") {+ set({+ isLoading: false,+ error: "not in tauri environment",+ platform: "unknown",+ });+ return;+ }++ const platform = type();+ const version = await getVersion();++ set({+ platform,+ version,+ isMac: platform === "macos",+ isWindows: platform === "windows",+ isLinux: platform === "linux",+ isLoading: false,+ });+ } catch (error) {+ set({+ isLoading: false,+ error: error instanceof Error ? error.message : "unknown error",+ });+ }+ },+}));++// initialize the store on first import+let initialized = false;++export function usePlatform() {+ const store = usePlatformStore();++ // initialize only once+ if (!initialized) {+ initialized = true;+ store.init();+ }++ return store;+}diff --git a/openrewind/lib/hooks/use-profiles.tsx b/openrewind/lib/hooks/use-profiles.tsxnew file mode 100644index 000000000..524ff64ec--- /dev/null+++ b/openrewind/lib/hooks/use-profiles.tsx@@ -0,0 +1,236 @@+import { Action, action, persist } from "easy-peasy";+import { LazyStore } from "@tauri-apps/plugin-store";+import { localDataDir } from "@tauri-apps/api/path";+import { flattenObject, FlattenObjectKeys, unflattenObject } from "../utils";+import { createContextStore } from "easy-peasy";+import { createDefaultSettingsObject, Settings } from "./use-settings";+import { remove } from "@tauri-apps/plugin-fs";+export interface ProfilesModel {+ activeProfile: string;+ profiles: string[];+ shortcuts: {+ [profileName: string]: string;+ };+ setActiveProfile: Action<ProfilesModel, string>;+ createProfile: Action<+ ProfilesModel,+ {+ profileName: string;+ currentSettings: Settings;+ }+ >;+ deleteProfile: Action<ProfilesModel, string>;+ updateShortcut: Action<ProfilesModel, { profile: string; shortcut: string }>;+}++let profilesStorePromise: Promise<LazyStore> | null = null;++/**+ * @warning Do not change autoSave to true, it causes race conditions+ */+const getProfilesStore = async () => {+ if (!profilesStorePromise) {+ profilesStorePromise = (async () => {+ const dir = await localDataDir();+ console.log(dir, "dir");+ return new LazyStore(`${dir}/screenpipe/profiles.bin`, {+ autoSave: false,+ });+ })();+ }+ return profilesStorePromise;+};++const profilesStorage = {+ getItem: async (_key: string) => {+ await new Promise((resolve) => setTimeout(resolve, 2000));+ const tauriStore = await getProfilesStore();+ const allKeys = await tauriStore.keys();+ const values: Record<string, any> = {};++ for (const k of allKeys) {+ values[k] = await tauriStore.get(k);+ }++ return unflattenObject(values);+ },++ setItem: async (_key: string, value: any) => {+ const tauriStore = await getProfilesStore();+ const flattenedValue = flattenObject(value);++ const existingKeys = await tauriStore.keys();+ for (const key of existingKeys) {+ await tauriStore.delete(key);+ }++ for (const [key, val] of Object.entries(flattenedValue)) {+ await tauriStore.set(key, val);+ }++ await tauriStore.save();+ },+ removeItem: async (_key: string) => {+ const tauriStore = await getProfilesStore();+ const keys = await tauriStore.keys();+ for (const key of keys) {+ await tauriStore.delete(key);+ }+ await tauriStore.save();+ },+};++const copyProfileSettings = async (+ profileName: string,+ currentSettings: Settings+) => {+ try {+ const dir = await localDataDir();+ const fileName = `store-${profileName}.bin`;++ console.log(`copying profile settings to ${fileName}`);++ const store = new LazyStore(`${dir}/screenpipe/${fileName}`, {+ autoSave: false,+ });++ // Start with default settings+ const defaultSettings = createDefaultSettingsObject();+ const flattenedDefaults = flattenObject(defaultSettings);++ // Define keys to copy from current settings+ const keysToCopy: FlattenObjectKeys<Settings>[] = [+ // Account related+ "user.token",+ "user.id",+ "user.email",+ "user.name",+ "user.image",+ "user.clerk_id",+ "user.credits.amount",++ // AI related+ "aiProviderType",+ "aiUrl",+ "aiModel",+ "aiMaxContextChars",+ "openaiApiKey",++ // Shortcuts+ "showScreenpipeShortcut",+ "startRecordingShortcut",+ "stopRecordingShortcut",+ "disabledShortcuts",+ ] as const;++ // Copy specific keys from current settings+ const flattenedCurrentSettings = flattenObject(currentSettings);+ for (const key of keysToCopy) {+ const value = flattenedCurrentSettings[key];+ if (value !== undefined) {+ await store.set(key, value);+ }+ }++ // Set all other keys to defaults+ for (const [key, value] of Object.entries(flattenedDefaults)) {+ if (!keysToCopy.includes(key as FlattenObjectKeys<Settings>)) {+ await store.set(key, value);+ }+ }++ await store.save();+ console.log(`successfully copied profile settings to ${fileName}`);+ } catch (err) {+ console.error(`failed to copy profile settings: ${err}`);+ throw new Error(`failed to copy profile settings: ${err}`);+ }+};++const deleteProfileFile = async (profile: string) => {+ try {+ const dir = await localDataDir();+ const file = profile === "default" ? "store.bin" : `store-${profile}.bin`;+ await remove(`${dir}/screenpipe/${file}`);+ } catch (err) {+ console.error(`failed to delete profile file: ${err}`);+ throw new Error(`failed to delete profile file: ${err}`);+ }+};++export const profilesStore = createContextStore<ProfilesModel>(+ persist(+ {+ activeProfile: "default",+ profiles: ["default"],+ shortcuts: {},+ setActiveProfile: action((state, payload) => {+ state.activeProfile = payload;+ }),+ updateShortcut: action((state, { profile, shortcut }) => {+ if (shortcut === '') {+ delete state.shortcuts[profile];+ } else {+ state.shortcuts[profile] = shortcut;+ }+ }),+ createProfile: action((state, payload) => {+ state.profiles.push(payload.profileName);+ copyProfileSettings(payload.profileName, payload.currentSettings).catch(+ (err) =>+ console.error(+ `failed to create profile ${payload.profileName}: ${err}`+ )+ );+ }),+ deleteProfile: action((state, payload) => {+ if (payload === "default") {+ console.error("cannot delete default profile");+ return;+ }+ state.profiles = state.profiles.filter(+ (profile) => profile !== payload+ );+ deleteProfileFile(payload).catch((err) =>+ console.error(`failed to delete profile ${payload}: ${err}`)+ );+ }),+ },+ {+ storage: profilesStorage,+ }+ )+);++export const useProfiles = () => {+ const { profiles, activeProfile, shortcuts } = profilesStore.useStoreState(+ (state) => ({+ activeProfile: state.activeProfile,+ profiles: state.profiles,+ shortcuts: state.shortcuts,+ })+ );++ const setActiveProfile = profilesStore.useStoreActions(+ (actions) => actions.setActiveProfile+ );+ const createProfile = profilesStore.useStoreActions(+ (actions) => actions.createProfile+ );+ const deleteProfile = profilesStore.useStoreActions(+ (actions) => actions.deleteProfile+ );+ const updateShortcut = profilesStore.useStoreActions(+ (actions) => actions.updateShortcut+ );++ return {+ profiles,+ activeProfile,+ profileShortcuts: shortcuts,+ setActiveProfile,+ createProfile,+ deleteProfile,+ updateProfileShortcut: updateShortcut,+ };+};diff --git a/openrewind/lib/hooks/use-scroll-anchor.tsx b/openrewind/lib/hooks/use-scroll-anchor.tsxnew file mode 100644index 000000000..3f968f8a0--- /dev/null+++ b/openrewind/lib/hooks/use-scroll-anchor.tsx@@ -0,0 +1,87 @@+import { useCallback, useEffect, useRef, useState } from "react";++export const useScrollAnchor = () => {+ const messagesRef = useRef<HTMLDivElement>(null);+ const scrollRef = useRef<HTMLDivElement>(null);+ const visibilityRef = useRef<HTMLDivElement>(null);++ const [isAtBottom, setIsAtBottom] = useState(true);+ const [isVisible, setIsVisible] = useState(false);++ const scrollToBottom = useCallback(() => {+ if (messagesRef.current) {+ messagesRef.current.scrollIntoView({+ block: "end",+ behavior: "smooth",+ });+ }+ }, []);++ useEffect(() => {+ if (messagesRef.current) {+ if (isAtBottom && !isVisible) {+ messagesRef.current.scrollIntoView({+ block: "end",+ });+ }+ }+ }, [isAtBottom, isVisible]);++ useEffect(() => {+ const { current } = scrollRef;++ if (current) {+ const handleScroll = (event: Event) => {+ const target = event.target as HTMLDivElement;+ const offset = 25;+ const isAtBottom =+ target.scrollTop + target.clientHeight >=+ target.scrollHeight - offset;++ setIsAtBottom(isAtBottom);+ };++ current.addEventListener("scroll", handleScroll, {+ passive: true,+ });++ return () => {+ current.removeEventListener("scroll", handleScroll);+ };+ }+ }, []);++ useEffect(() => {+ if (visibilityRef.current) {+ let observer = new IntersectionObserver(+ (entries) => {+ entries.forEach((entry) => {+ if (entry.isIntersecting) {+ setIsVisible(true);+ } else {+ setIsVisible(false);+ }+ });+ },+ {+ rootMargin: "0px 0px -150px 0px",+ }+ );++ observer.observe(visibilityRef.current);++ return () => {+ observer.disconnect();+ };+ }+ });++ return {+ messagesRef,+ scrollRef,+ visibilityRef,+ scrollToBottom,+ isAtBottom,+ isVisible,+ };+};diff --git a/openrewind/lib/hooks/use-settings-dialog.ts b/openrewind/lib/hooks/use-settings-dialog.tsnew file mode 100644index 000000000..3fe4484eb--- /dev/null+++ b/openrewind/lib/hooks/use-settings-dialog.ts@@ -0,0 +1,11 @@+import { create } from "zustand";++interface SettingsDialogStore {+ isOpen: boolean;+ setIsOpen: (open: boolean) => void;+}++export const useSettingsDialog = create<SettingsDialogStore>((set) => ({+ isOpen: false,+ setIsOpen: (open) => set({ isOpen: open }),+}));diff --git a/openrewind/lib/hooks/use-settings.tsx b/openrewind/lib/hooks/use-settings.tsxnew file mode 100644index 000000000..2b165a7a4--- /dev/null+++ b/openrewind/lib/hooks/use-settings.tsx@@ -0,0 +1,493 @@+import { homeDir } from "@tauri-apps/api/path";+import { platform } from "@tauri-apps/plugin-os";+import { Pipe } from "./use-pipes";+import { Language } from "@/lib/language";+import {+ action,+ Action,+ persist,+ PersistStorage,+ createContextStore,+} from "easy-peasy";+import { LazyStore, LazyStore as TauriStore } from "@tauri-apps/plugin-store";+import { localDataDir } from "@tauri-apps/api/path";+import { flattenObject, unflattenObject } from "../utils";+import { useEffect } from "react";+import posthog from "posthog-js";+import localforage from "localforage";++export type VadSensitivity = "low" | "medium" | "high";++export type AIProviderType =+ | "native-ollama"+ | "openai"+ | "custom"+ | "embedded"+ | "screenpipe-cloud";++export type EmbeddedLLMConfig = {+ enabled: boolean;+ model: string;+ port: number;+};++export enum Shortcut {+ SHOW_SCREENPIPE = "show_screenpipe",+ START_RECORDING = "start_recording",+ STOP_RECORDING = "stop_recording",+}++export type User = {+ id?: string;+ email?: string;+ name?: string;+ image?: string;+ token?: string;+ clerk_id?: string;+ api_key?: string;+ credits?: {+ amount: number;+ };+ stripe_connected?: boolean;+ stripe_account_status?: "active" | "pending";+ github_username?: string;+ bio?: string;+ website?: string;+ contact?: string;+ cloud_subscribed?: boolean;+};++export type AIPreset = {+ id: string;+ maxContextChars: number;+ url: string;+ model: string;+ defaultPreset: boolean;+ prompt: string;+ //provider: AIProviderType;+} & (+ | {+ provider: "openai";+ apiKey: string;+ }+ | {+ provider: "native-ollama";+ }+ | {+ provider: "screenpipe-cloud";+ }+ | {+ provider: "custom";+ apiKey?: string;+ }+);++export type Settings = {+ openaiApiKey: string;+ deepgramApiKey: string;+ isLoading: boolean;+ aiModel: string;+ installedPipes: Pipe[];+ userId: string;+ customPrompt: string;+ devMode: boolean;+ audioTranscriptionEngine: string;+ ocrEngine: string;+ monitorIds: string[];+ audioDevices: string[];+ usePiiRemoval: boolean;+ restartInterval: number;+ port: number;+ dataDir: string;+ disableAudio: boolean;+ ignoredWindows: string[];+ includedWindows: string[];+ aiProviderType: AIProviderType;+ aiUrl: string;+ aiMaxContextChars: number;+ fps: number;+ vadSensitivity: VadSensitivity;+ analyticsEnabled: boolean;+ audioChunkDuration: number; // new field+ useChineseMirror: boolean; // Add this line+ embeddedLLM: EmbeddedLLMConfig;+ languages: Language[];+ enableBeta: boolean;+ isFirstTimeUser: boolean;+ autoStartEnabled: boolean;+ enableFrameCache: boolean; // Add this line+ enableUiMonitoring: boolean; // Add this line+ platform: string; // Add this line+ disabledShortcuts: Shortcut[];+ user: User;+ showScreenpipeShortcut: string;+ startRecordingShortcut: string;+ stopRecordingShortcut: string;+ startAudioShortcut: string;+ stopAudioShortcut: string;+ pipeShortcuts: Record<string, string>;+ enableRealtimeAudioTranscription: boolean;+ realtimeAudioTranscriptionEngine: string;+ disableVision: boolean;+ useAllMonitors: boolean;+ aiPresets: AIPreset[];+ enableRealtimeVision: boolean;+ autoUpdatePipes: boolean;+};++export const DEFAULT_PROMPT = `Rules:+- You can analyze/view/show/access videos to the user by putting .mp4 files in a code block (we'll render it) like this: \`/users/video.mp4\`, use the exact, absolute, file path from file_path property+- Do not try to embed video in links (e.g. [](.mp4) or https://.mp4) instead put the file_path in a code block using backticks+- Do not put video in multiline code block it will not render the video (e.g. \`\`\`bash\n.mp4\`\`\` IS WRONG) instead using inline code block with single backtick+- Always answer my question/intent, do not make up things+`;++const DEFAULT_SETTINGS: Settings = {+ aiPresets: [],+ openaiApiKey: "",+ deepgramApiKey: "", // for now we hardcode our key (dw about using it, we have bunch of credits)+ isLoading: true,+ aiModel: "gpt-4o",+ installedPipes: [],+ userId: "",+ customPrompt: `Rules:+- You can analyze/view/show/access videos to the user by putting .mp4 files in a code block (we'll render it) like this: \`/users/video.mp4\`, use the exact, absolute, file path from file_path property+- Do not try to embed video in links (e.g. [](.mp4) or https://.mp4) instead put the file_path in a code block using backticks+- Do not put video in multiline code block it will not render the video (e.g. \`\`\`bash\n.mp4\`\`\` IS WRONG) instead using inline code block with single backtick+- Always answer my question/intent, do not make up things+`,+ devMode: false,+ audioTranscriptionEngine: "whisper-large-v3-turbo",+ ocrEngine: "default",+ monitorIds: ["default"],+ audioDevices: ["default"],+ usePiiRemoval: false,+ restartInterval: 0,+ port: 3030,+ dataDir: "default",+ disableAudio: false,+ ignoredWindows: [],+ includedWindows: [],+ aiProviderType: "openai",+ aiUrl: "https://api.openai.com/v1",+ aiMaxContextChars: 512000,+ fps: 0.5,+ vadSensitivity: "high",+ analyticsEnabled: true,+ audioChunkDuration: 30, // default to 10 seconds+ useChineseMirror: false, // Add this line+ languages: [],+ embeddedLLM: {+ enabled: false,+ model: "llama3.2:1b-instruct-q4_K_M",+ port: 11434,+ },+ enableBeta: false,+ isFirstTimeUser: true,+ autoStartEnabled: true,+ enableFrameCache: true, // Add this line+ enableUiMonitoring: false, // Change from true to false+ platform: "unknown", // Add this line+ disabledShortcuts: [],+ user: {},+ showScreenpipeShortcut: "Super+Alt+S",+ startRecordingShortcut: "Super+Alt+U", // Super+Alt+R is used on windows by Xbox Game Bar+ stopRecordingShortcut: "Super+Alt+X",+ startAudioShortcut: "",+ stopAudioShortcut: "",+ pipeShortcuts: {},+ enableRealtimeAudioTranscription: false,+ realtimeAudioTranscriptionEngine: "deepgram",+ disableVision: false,+ useAllMonitors: false,+ enableRealtimeVision: true,+ autoUpdatePipes: false, // Default to false for auto-updating pipes+};++const DEFAULT_IGNORED_WINDOWS_IN_ALL_OS = [+ "bit",+ "VPN",+ "Trash",+ "Private",+ "Incognito",+ "Wallpaper",+ "Settings",+ "Keepass",+ "Recorder",+ "Vaults",+ "OBS Studio",+ "screenpipe",+];++const DEFAULT_IGNORED_WINDOWS_PER_OS: Record<string, string[]> = {+ macos: [+ ".env",+ "Item-0",+ "App Icon Window",+ "Battery",+ "Shortcuts",+ "WiFi",+ "BentoBox",+ "Clock",+ "Dock",+ "DeepL",+ "Control Center",+ ],+ windows: ["Nvidia", "Control Panel", "System Properties"],+ linux: ["Info center", "Discover", "Parted"],+};++// Model definition+export interface StoreModel {+ settings: Settings;+ setSettings: Action<StoreModel, Partial<Settings>>;+ resetSettings: Action<StoreModel>;+ resetSetting: Action<StoreModel, keyof Settings>;+}++export function createDefaultSettingsObject(): Settings {+ let defaultSettings = { ...DEFAULT_SETTINGS };+ try {+ const currentPlatform = platform();++ const ocrModel =+ currentPlatform === "macos"+ ? "apple-native"+ : currentPlatform === "windows"+ ? "windows-native"+ : "tesseract";++ defaultSettings.ocrEngine = ocrModel;+ defaultSettings.fps = currentPlatform === "macos" ? 0.5 : 1;+ defaultSettings.platform = currentPlatform;++ defaultSettings.ignoredWindows = [+ ...DEFAULT_IGNORED_WINDOWS_IN_ALL_OS,+ ...(DEFAULT_IGNORED_WINDOWS_PER_OS[currentPlatform] ?? []),+ ];++ return defaultSettings;+ } catch (e) {+ return DEFAULT_SETTINGS;+ }+}++// Create a singleton store instance+let storePromise: Promise<LazyStore> | null = null;++/**+ * @warning Do not change autoSave to true, it causes race conditions+ */+export const getStore = async () => {+ if (!storePromise) {+ storePromise = (async () => {+ const dir = await localDataDir();+ const profilesStore = new TauriStore(`${dir}/screenpipe/profiles.bin`, {+ autoSave: false,+ });+ const activeProfile =+ (await profilesStore.get("activeProfile")) || "default";+ const file =+ activeProfile === "default"+ ? `store.bin`+ : `store-${activeProfile}.bin`;+ console.log("activeProfile", activeProfile, file);+ return new TauriStore(`${dir}/screenpipe/${file}`, {+ autoSave: false,+ });+ })();+ }+ return storePromise;+};++const tauriStorage: PersistStorage = {+ getItem: async (_key: string) => {+ const tauriStore = await getStore();+ const allKeys = await tauriStore.keys();+ const values: Record<string, any> = {};++ for (const k of allKeys) {+ values[k] = await tauriStore.get(k);+ }++ return { settings: unflattenObject(values) };+ },+ setItem: async (_key: string, value: any) => {+ const tauriStore = await getStore();++ delete value.settings.customSettings;+ const flattenedValue = flattenObject(value.settings);++ // Only delete keys that are present in the new settings+ for (const key of Object.keys(flattenedValue)) {+ await tauriStore.delete(key);+ }++ // Set new flattened values+ for (const [key, val] of Object.entries(flattenedValue)) {+ if (!key || !key.length) continue;+ const defaultValue =+ key in DEFAULT_SETTINGS ? DEFAULT_SETTINGS[key as keyof Settings] : "";+ await tauriStore.set(key, val === undefined ? defaultValue : val);+ }++ await tauriStore.save();+ },+ removeItem: async (_key: string) => {+ const tauriStore = await getStore();+ const keys = await tauriStore.keys();+ for (const key of keys) {+ await tauriStore.delete(key);+ }+ await tauriStore.save();+ },+};++export const store = createContextStore<StoreModel>(+ persist(+ {+ settings: createDefaultSettingsObject(),+ setSettings: action((state, payload) => {+ console.log(state, payload);+ state.settings = {+ ...state.settings,+ ...payload,+ };+ }),+ resetSettings: action((state) => {+ state.settings = createDefaultSettingsObject();+ }),+ resetSetting: action((state, key) => {+ const defaultValue = createDefaultSettingsObject()[key];+ (state.settings as any)[key] = defaultValue;+ }),+ },+ {+ storage: tauriStorage,+ mergeStrategy: "mergeDeep",+ },+ ),+);++export function useSettings() {+ const settings = store.useStoreState((state) => state.settings);+ const setSettings = store.useStoreActions((actions) => actions.setSettings);+ const resetSettings = store.useStoreActions(+ (actions) => actions.resetSettings,+ );+ const resetSetting = store.useStoreActions((actions) => actions.resetSetting);++ useEffect(() => {+ if (settings.user?.id) {+ posthog.identify(settings.user?.id, {+ email: settings.user?.email,+ name: settings.user?.name,+ github_username: settings.user?.github_username,+ website: settings.user?.website,+ contact: settings.user?.contact,+ });+ }+ }, [settings.user?.id]);++ const getDataDir = async () => {+ const homeDirPath = await homeDir();++ if (+ settings.dataDir !== "default" &&+ settings.dataDir &&+ settings.dataDir !== ""+ )+ return settings.dataDir;++ let p = "macos";+ try {+ p = platform();+ } catch (e) {}++ return p === "macos" || p === "linux"+ ? `${homeDirPath}/.screenpipe`+ : `${homeDirPath}\\.screenpipe`;+ };++ const loadUser = async (token: string, forceReload = false) => {+ try {+ // try to get from cache first (unless force reload)+ const cacheKey = `user_data_${token}`;+ if (!forceReload) {+ const cached = await localforage.getItem<{+ data: User;+ timestamp: number;+ }>(cacheKey);++ // use cache if less than 30s old+ if (cached && Date.now() - cached.timestamp < 30000) {+ setSettings({+ user: cached.data,+ });+ return;+ }+ }++ const response = await fetch(`https://screenpi.pe/api/user`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ token }),+ });++ if (!response.ok) {+ throw new Error("failed to verify token");+ }++ const data = await response.json();+ const userData = {+ ...data.user,+ } as User;++ // if user was not logged in, send posthog event app_login with email+ if (!settings.user?.id) {+ posthog.capture("app_login", {+ email: userData.email,+ });+ }++ // cache the result+ await localforage.setItem(cacheKey, {+ data: userData,+ timestamp: Date.now(),+ });++ setSettings({+ user: userData,+ });+ } catch (err) {+ console.error("failed to load user:", err);+ throw err;+ }+ };++ const reloadStore = async () => {+ const store = await getStore();+ await store.reload();++ const allKeys = await store.keys();+ const values: Record<string, any> = {};++ for (const k of allKeys) {+ values[k] = await store.get(k);+ }++ setSettings(unflattenObject(values));+ };++ return {+ settings,+ updateSettings: setSettings,+ resetSettings,+ reloadStore,+ loadUser,+ resetSetting,+ getDataDir,+ };+}diff --git a/openrewind/lib/hooks/use-sql-autocomplete.tsx b/openrewind/lib/hooks/use-sql-autocomplete.tsxnew file mode 100644index 000000000..7db3de855--- /dev/null+++ b/openrewind/lib/hooks/use-sql-autocomplete.tsx@@ -0,0 +1,61 @@+import { useState, useEffect, useCallback } from "react";++interface AutocompleteItem {+ name: string;+ count: number;+}++const CACHE_DURATION = 5 * 60 * 1000; // 5 minutes++const cache: Record<string, { data: AutocompleteItem[]; timestamp: number }> =+ {};++export function useSqlAutocomplete(type: "app" | "window") {+ const [items, setItems] = useState<AutocompleteItem[]>([]);+ const [isLoading, setIsLoading] = useState(false);++ const fetchItems = useCallback(async () => {+ setIsLoading(true);+ try {+ const cachedData = cache[type];+ if (cachedData && Date.now() - cachedData.timestamp < CACHE_DURATION) {+ setItems(cachedData.data);+ } else {+ const query = `+ SELECT ${+ type === "app" ? "ocr.app_name" : "ocr.window_name"+ } as name, COUNT(*) as count+ FROM ocr_text ocr+ JOIN frames f ON ocr.frame_id = f.id+ WHERE f.timestamp > datetime('now', '-7 days')+ GROUP BY ${type === "app" ? "ocr.app_name" : "ocr.window_name"}+ ORDER BY count DESC+ LIMIT 100+ `;+ const response = await fetch("http://localhost:3030/raw_sql", {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ query }),+ });+ if (!response.ok) {+ throw new Error(`HTTP error! status: ${response.status}`);+ }+ const result = await response.json();+ setItems(result);+ cache[type] = { data: result, timestamp: Date.now() };+ }+ } catch (error) {+ console.error("failed to fetch items:", error);+ } finally {+ setIsLoading(false);+ }+ }, [type]);++ useEffect(() => {+ fetchItems();+ }, [fetchItems]);++ return { items, isLoading };+}diff --git a/openrewind/lib/hooks/use-status-dialog.tsx b/openrewind/lib/hooks/use-status-dialog.tsxnew file mode 100644index 000000000..d5cffe03d--- /dev/null+++ b/openrewind/lib/hooks/use-status-dialog.tsx@@ -0,0 +1,15 @@+import { create } from "zustand";++type StatusDialogStore = {+ isOpen: boolean;+ open: () => void;+ close: () => void;+ toggle: () => void;+};++export const useStatusDialog = create<StatusDialogStore>((set) => ({+ isOpen: false,+ open: () => set({ isOpen: true }),+ close: () => set({ isOpen: false }),+ toggle: () => set((state) => ({ isOpen: !state.isOpen })),+}));diff --git a/openrewind/lib/hooks/use-timeline-data.tsx b/openrewind/lib/hooks/use-timeline-data.tsxnew file mode 100644index 000000000..1d4ffa070--- /dev/null+++ b/openrewind/lib/hooks/use-timeline-data.tsx@@ -0,0 +1,55 @@+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { useTimelineStore } from "./use-timeline-store";+import { useEffect } from "react";++export function useTimelineData(+ currentDate: Date,+ setCurFrame: (frame: StreamTimeSeriesResponse) => void,+) {+ const {+ frames,+ isLoading,+ error,+ message,+ connectWebSocket,+ fetchTimeRange,+ fetchNextDayData,+ websocket,+ } = useTimelineStore();++ useEffect(() => {+ // First establish WebSocket connection+ connectWebSocket();+ }, []); // Only connect once when component mounts++ useEffect(() => {+ // Only fetch data when WebSocket is connected+ if (websocket && websocket.readyState === WebSocket.OPEN) {+ const startTime = new Date(currentDate);+ startTime.setHours(0, 0, 0, 0);++ const endTime = new Date(currentDate);+ if (endTime.getDate() === new Date().getDate()) {+ endTime.setMinutes(endTime.getMinutes() - 5);+ } else {+ endTime.setHours(23, 59, 59, 999);+ }++ fetchTimeRange(startTime, endTime);++ // Set initial frame if available+ if (frames.length > 0) {+ setCurFrame(frames[0]);+ }+ }+ }, [websocket?.readyState]); // Depend on WebSocket connection state++ return {+ frames,+ isLoading,+ error,+ message,+ fetchNextDayData,+ };+}+diff --git a/openrewind/lib/hooks/use-timeline-selection.tsx b/openrewind/lib/hooks/use-timeline-selection.tsxnew file mode 100644index 000000000..3ada436d1--- /dev/null+++ b/openrewind/lib/hooks/use-timeline-selection.tsx@@ -0,0 +1,36 @@+import { createContext, useContext, useState, ReactNode } from "react";++interface TimelineSelection {+ start: Date;+ end: Date;+ frameIds: string[];+}++interface TimelineContextType {+ selectionRange: TimelineSelection | null;+ setSelectionRange: (range: TimelineSelection | null) => void;+}++const TimelineContext = createContext<TimelineContextType | null>(null);++export function TimelineProvider({ children }: { children: ReactNode }) {+ const [selectionRange, setSelectionRange] =+ useState<TimelineSelection | null>(null);++ return (+ <TimelineContext.Provider value={{ selectionRange, setSelectionRange }}>+ {children}+ </TimelineContext.Provider>+ );+}++export function useTimelineSelection() {+ const context = useContext(TimelineContext);+ if (!context) {+ throw new Error(+ "useTimelineSelection must be used within a TimelineProvider",+ );+ }+ return context;+}+diff --git a/openrewind/lib/hooks/use-timeline-store.tsx b/openrewind/lib/hooks/use-timeline-store.tsxnew file mode 100644index 000000000..85e7ba9d4--- /dev/null+++ b/openrewind/lib/hooks/use-timeline-store.tsx@@ -0,0 +1,235 @@+import { create } from "zustand";+import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";+import { hasFramesForDate } from "../actions/has-frames-date";+import { subDays } from "date-fns";++interface TimelineState {+ frames: StreamTimeSeriesResponse[];+ isLoading: boolean;+ error: string | null;+ message: string | null;+ currentDate: Date;+ websocket: WebSocket | null;+ sentRequests: Set<string>;++ // Actions+ setFrames: (frames: StreamTimeSeriesResponse[]) => void;+ setIsLoading: (isLoading: boolean) => void;+ setError: (error: string | null) => void;+ setMessage: (message: string | null) => void;+ setCurrentDate: (date: Date) => void;+ connectWebSocket: () => void;+ fetchTimeRange: (startTime: Date, endTime: Date) => void;+ fetchNextDayData: (date: Date) => void;+ hasDateBeenFetched: (date: Date) => boolean;+}++export const useTimelineStore = create<TimelineState>((set, get) => ({+ frames: [],+ isLoading: true,+ error: null,+ message: null,+ currentDate: new Date(),+ websocket: null,+ sentRequests: new Set<string>(),++ setFrames: (frames) => set({ frames }),+ setIsLoading: (isLoading) => set({ isLoading }),+ setError: (error) => set({ error }),+ setMessage: (message) => set({ message }),+ setCurrentDate: (date) => set({ currentDate: date }),++ hasDateBeenFetched: (date: Date) => {+ const { sentRequests } = get();+ const dateKey = `${date.getDate()}-${date.getMonth()}-${date.getFullYear()}`;+ return sentRequests.has(dateKey);+ },+ connectWebSocket: () => {+ const ws = new WebSocket("ws://localhost:3030/stream/frames");++ ws.onopen = () => {+ set({ websocket: ws, error: null, message: null, isLoading: true });+ console.log("WebSocket connection established");+ };++ ws.onmessage = (event) => {+ try {+ const data = JSON.parse(event.data);++ // Handle keep-alive messages+ if (data === "keep-alive-text") {+ set((state) => ({+ error: null,+ isLoading: false,+ message:+ state.message === "please wait..."+ ? state.message+ : "please wait...",+ }));+ return;+ }++ // Handle error messages+ if (data.error) {+ set({ error: data.error, isLoading: false });+ return;+ }++ // Handle batched frames+ if (Array.isArray(data)) {+ set((state) => {+ const newFrames = [...state.frames];+ const uniqueFrames = new Map();++ // First, add existing frames to the map+ newFrames.forEach((frame) => {+ uniqueFrames.set(frame.timestamp, frame);+ });++ // Add new frames to the map (this automatically handles duplicates)+ data.forEach((frame) => {+ uniqueFrames.set(frame.timestamp, frame);+ });++ // Convert map back to array and sort by timestamp+ const sortedFrames = Array.from(uniqueFrames.values()).sort(+ (a, b) =>+ new Date(b.timestamp).getTime() -+ new Date(a.timestamp).getTime(),+ );++ return {+ frames: sortedFrames,+ isLoading: false,+ message: null,+ error: null,+ };+ });+ return;+ }++ // Handle single frame (legacy support)+ if (data.timestamp && data.devices) {+ set((state) => {+ const timestamp = new Date(data.timestamp).getTime();++ // Check for duplicate+ if (+ state.frames.some(+ (f) => new Date(f.timestamp).getTime() === timestamp,+ )+ ) {+ return state;+ }++ // Use binary search to find insertion point+ const newFrames = [...state.frames];+ let left = 0;+ let right = newFrames.length;++ while (left < right) {+ const mid = Math.floor((left + right) / 2);+ const midTimestamp = new Date(newFrames[mid].timestamp).getTime();+ if (midTimestamp < timestamp) {+ right = mid;+ } else {+ left = mid + 1;+ }+ }++ newFrames.splice(left, 0, data);+ return {+ frames: newFrames,+ isLoading: false,+ message: null,+ error: null,+ };+ });+ }+ } catch (error) {+ console.error("Failed to parse frame data:", error);+ set({+ error: "Failed to parse server response",+ isLoading: false,+ });+ }+ };++ ws.onerror = (error) => {+ console.error("WebSocket error:", error);+ set({ error: "Connection error occurred", isLoading: false });+ };++ ws.onclose = () => {+ set({ message: "Connection closed", isLoading: false });+ // Attempt to reconnect after a delay+ setTimeout(() => get().connectWebSocket(), 5000);+ };+ },++ fetchTimeRange: async (startTime: Date, endTime: Date) => {+ const { websocket, sentRequests } = get();+ const requestKey = `${startTime.getDate()}-${startTime.getMonth()}-${startTime.getFullYear()}`;++ if (sentRequests.has(requestKey)) {+ console.log("Request already sent, skipping...");+ return;+ }++ if (websocket && websocket.readyState === WebSocket.OPEN) {+ console.log("sending");+ websocket.send(+ JSON.stringify({+ start_time: startTime.toISOString(),+ end_time: endTime.toISOString(),+ order: "descending",+ }),+ );++ set((state) => ({+ sentRequests: new Set(state.sentRequests).add(requestKey),+ }));+ }+ },++ fetchNextDayData: async (date: Date) => {+ const dateFramesLen = await hasFramesForDate(date);++ if (typeof dateFramesLen === "object" && dateFramesLen.error) {+ return;+ }++ if (!dateFramesLen) {+ date = subDays(date, 1);+ }++ const nextDay = new Date(date);+ nextDay.setDate(nextDay.getDate());+ nextDay.setHours(0, 0, 0, 0);++ const endTime = new Date(nextDay);+ endTime.setHours(23, 59, 59, 999);++ const { websocket, sentRequests } = get();+ const requestKey = `${nextDay.getDate()}-${nextDay.getMonth()}-${nextDay.getFullYear()}`;++ if (sentRequests.has(requestKey)) {+ console.log("Request already sent, skipping...");+ return;+ }++ if (websocket && websocket.readyState === WebSocket.OPEN) {+ websocket.send(+ JSON.stringify({+ start_time: nextDay.toISOString(),+ end_time: endTime.toISOString(),+ order: "descending",+ }),+ );+ set((state) => ({+ sentRequests: new Set(state.sentRequests).add(requestKey),+ }));+ }+ },+}));+diff --git a/openrewind/lib/hooks/use-timeline.selection.tsx b/openrewind/lib/hooks/use-timeline.selection.tsxnew file mode 100644index 000000000..3ada436d1--- /dev/null+++ b/openrewind/lib/hooks/use-timeline.selection.tsx@@ -0,0 +1,36 @@+import { createContext, useContext, useState, ReactNode } from "react";++interface TimelineSelection {+ start: Date;+ end: Date;+ frameIds: string[];+}++interface TimelineContextType {+ selectionRange: TimelineSelection | null;+ setSelectionRange: (range: TimelineSelection | null) => void;+}++const TimelineContext = createContext<TimelineContextType | null>(null);++export function TimelineProvider({ children }: { children: ReactNode }) {+ const [selectionRange, setSelectionRange] =+ useState<TimelineSelection | null>(null);++ return (+ <TimelineContext.Provider value={{ selectionRange, setSelectionRange }}>+ {children}+ </TimelineContext.Provider>+ );+}++export function useTimelineSelection() {+ const context = useContext(TimelineContext);+ if (!context) {+ throw new Error(+ "useTimelineSelection must be used within a TimelineProvider",+ );+ }+ return context;+}+diff --git a/openrewind/lib/language.ts b/openrewind/lib/language.tsnew file mode 100644index 000000000..c754a925d--- /dev/null+++ b/openrewind/lib/language.ts@@ -0,0 +1,77 @@+export enum Language {+ english = "english",+ chinese = "chinese",+ german = "german",+ spanish = "spanish",+ russian = "russian",+ korean = "korean",+ french = "french",+ japanese = "japanese",+ portuguese = "portuguese",+ turkish = "turkish",+ polish = "polish",+ catalan = "catalan",+ dutch = "dutch",+ arabic = "arabic",+ swedish = "swedish",+ italian = "italian",+ indonesian = "indonesian",+ hindi = "hindi",+ finnish = "finnish",+ hebrew = "hebrew",+ ukrainian = "ukrainian",+ greek = "greek",+ malay = "malay",+ czech = "czech",+ romanian = "romanian",+ danish = "danish",+ hungarian = "hungarian",+ norwegian = "norwegian",+ thai = "thai",+ urdu = "urdu",+ croatian = "croatian",+ bulgarian = "bulgarian",+ lithuanian = "lithuanian",+ latin = "latin",+ malayalam = "malayalam",+ welsh = "welsh",+ slovak = "slovak",+ persian = "persian",+ latvian = "latvian",+ bengali = "bengali",+ serbian = "serbian",+ azerbaijani = "azerbaijani",+ slovenian = "slovenian",+ estonian = "estonian",+ macedonian = "macedonian",+ nepali = "nepali",+ mongolian = "mongolian",+ bosnian = "bosnian",+ kazakh = "kazakh",+ albanian = "albanian",+ swahili = "swahili",+ galician = "galician",+ marathi = "marathi",+ punjabi = "punjabi",+ sinhala = "sinhala",+ khmer = "khmer",+ afrikaans = "afrikaans",+ belarusian = "belarusian",+ gujarati = "gujarati",+ amharic = "amharic",+ yiddish = "yiddish",+ lao = "lao",+ uzbek = "uzbek",+ faroese = "faroese",+ pashto = "pashto",+ maltese = "maltese",+ sanskrit = "sanskrit",+ luxembourgish = "luxembourgish",+ myanmar = "myanmar",+ tibetan = "tibetan",+ tagalog = "tagalog",+ assamese = "assamese",+ tatar = "tatar",+ hausa = "hausa",+ javanese = "javanese",+}diff --git a/openrewind/lib/shortcuts.ts b/openrewind/lib/shortcuts.tsnew file mode 100644index 000000000..17434ab7d--- /dev/null+++ b/openrewind/lib/shortcuts.ts@@ -0,0 +1,15 @@+import { invoke } from "@tauri-apps/api/core";+import { Shortcut } from "./hooks/use-settings";++export async function registerShortcuts({+ showScreenpipeShortcut,+ disabledShortcuts,+}: {+ showScreenpipeShortcut: string;+ disabledShortcuts: Shortcut[];+}) {+ invoke("update_show_screenpipe_shortcut", {+ new_shortcut: showScreenpipeShortcut,+ enabled: !disabledShortcuts.includes(Shortcut.SHOW_SCREENPIPE),+ });+}diff --git a/openrewind/lib/supabase/client.ts b/openrewind/lib/supabase/client.tsnew file mode 100644index 000000000..2c1d0ec1d--- /dev/null+++ b/openrewind/lib/supabase/client.ts@@ -0,0 +1,10 @@+// create supabase client++import { createClient } from "@supabase/supabase-js";++const supabase = createClient(+ "https://eshwntsgsputksqamckh.supabase.co",+ "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImVzaHdudHNnc3B1dGtzcWFtY2toIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzMwMDg5ODQsImV4cCI6MjA0ODU4NDk4NH0.t91Xc-BK_7hYpTxVIGNQRAolBVAZBs4POdcQXH8rLS4"+);++export default supabase;diff --git a/openrewind/lib/utils.ts b/openrewind/lib/utils.tsnew file mode 100644index 000000000..1305b2736--- /dev/null+++ b/openrewind/lib/utils.ts@@ -0,0 +1,213 @@+import { stat } from "@tauri-apps/plugin-fs";+import { platform } from "@tauri-apps/plugin-os";+import { twMerge } from "tailwind-merge";+import { ContentItem } from "@screenpipe/js";+import { clsx, type ClassValue } from "clsx";+import levenshtein from "js-levenshtein";+import {+ createSerializer,+ inferParserType,+ parseAsArrayOf,+ parseAsIsoDateTime,+ parseAsString,+} from "nuqs";+++export type FlattenObjectKeys<+ T extends Record<string, unknown>,+ Key = keyof T+> = Key extends string+ ? T[Key] extends Record<string, unknown> | undefined+ ? `${Key}.${FlattenObjectKeys<NonNullable<T[Key]>>}`+ : `${Key}`+ : never;++export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));+}+// Add this function to your existing utils.ts file+export function stripAnsiCodes(str: string): string {+ return str.replace(/\x1B\[[0-9;]*[JKmsu]/g, "");+}+export function toCamelCase(str: string): string {+ return str.replace(/([-_][a-z])/g, (group) =>+ group.toUpperCase().replace("-", "").replace("_", "")+ );+}++export function keysToCamelCase<T>(obj: any): T {+ if (Array.isArray(obj)) {+ return obj.map((v) => keysToCamelCase<T>(v)) as any;+ } else if (obj !== null && obj.constructor === Object) {+ return Object.keys(obj).reduce(+ (result, key) => ({+ ...result,+ [toCamelCase(key)]: keysToCamelCase(obj[key]),+ }),+ {}+ ) as T;+ }+ return obj;+}++export function encode(str: string): string {+ return encodeURIComponent(str).replace(/[!'()*]/g, (c) => {+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();+ });+}+export const convertHtmlToMarkdown = (html: string) => {+ const convertedHtml = html.replace(+ /<img\s+(?:[^>]*?\s+)?src="([^"]*)"(?:\s+(?:[^>]*?\s+)?alt="([^"]*)")?\s*\/?>/g,+ (match, src, alt) => {+ return ``;+ }+ );+ return convertedHtml.replace(/<[^>]*>/g, "");+};++export function getCliPath() {+ const os = platform();+ switch (os) {+ case "windows":+ return "%LOCALAPPDATA%\\screenpipe\\screenpipe.exe";+ case "macos":+ return "/Applications/screenpipe.app/Contents/MacOS/screenpipe";+ case "linux":+ return "/usr/local/bin/screenpipe";+ default:+ return "screenpipe";+ }+}++export function parseKeyboardShortcut(shortcut: string): string {+ if (typeof window !== "undefined") {+ const os = platform();++ const uniqueKeys = new Set(+ shortcut+ .toLowerCase()+ .split("+")+ .map((key) => key.trim())+ );++ return Array.from(uniqueKeys)+ .map((key) => {+ if (key === "super") {+ return os === "macos" ? "⌘" : "⊞";+ }+ if (key === "ctrl") return "⌃";+ if (key === "alt") return os === "macos" ? "⌥" : "Alt";+ if (key === "shift") return "⇧";+ return key.charAt(0).toUpperCase() + key.slice(1);+ })+ .join(" + ");+ }+ return "";+}+++export async function getFileSize(filePath: string): Promise<number> {+ const { size } = await stat(filePath);++ return size;+}++// Helper functions to flatten/unflatten objects+export const flattenObject = (obj: any, prefix = ""): Record<string, any> => {+ return Object.keys(obj).reduce((acc: Record<string, any>, k: string) => {+ const pre = prefix.length ? prefix + "." : "";+ if (+ typeof obj[k] === "object" &&+ obj[k] !== null &&+ !Array.isArray(obj[k])+ ) {+ Object.assign(acc, flattenObject(obj[k], pre + k));+ } else {+ acc[pre + k] = obj[k];+ }+ return acc;+ }, {});+};++export const unflattenObject = (obj: Record<string, any>): any => {+ const result: any = {};+ for (const key in obj) {+ const keys = key.split(".");+ let current = result;+ for (let i = 0; i < keys.length; i++) {+ const k = keys[i];+ if (i === keys.length - 1) {+ current[k] = obj[key];+ } else {+ current[k] = current[k] || {};+ current = current[k];+ }+ }+ }+ return result;+};+++export const removeDuplicateSelections = (+ results: ContentItem[],+ selectedResults: Set<number>,+ similarityThreshold: number = 0.9,+): Set<number> => {+ const newSelectedResults = new Set<number>();+ const seenContents: string[] = [];++ const getSimilarity = (str1: string, str2: string): number => {+ const maxLength = Math.max(str1.length, str2.length);+ const distance = levenshtein(str1, str2);+ return 1 - distance / maxLength;+ };++ const isDuplicate = (content: string): boolean => {+ return seenContents.some(+ (seenContent) =>+ getSimilarity(content, seenContent) >= similarityThreshold,+ );+ };++ Array.from(selectedResults).forEach((index) => {+ const item = results[index];+ if (!item || !item.type) return;++ let content = "";+ if (item.type === "OCR") content = item.content.text;+ else if (item.type === "Audio") content = item.content.transcription;+ else if (item.type === "UI") content = item.content.text;++ if (!isDuplicate(content)) {+ seenContents.push(content);+ newSelectedResults.add(index);+ }+ });++ return newSelectedResults;+};++export function stringToColor(str: string): string {+ let hash = 0;+ for (let i = 0; i < str.length; i++) {+ hash = str.charCodeAt(i) + ((hash << 5) - hash);+ }+ let color = "#";+ for (let i = 0; i < 3; i++) {+ const value = (hash >> (i * 8)) & 0xff;+ color += ("00" + value.toString(16)).substr(-2);+ }+ return color;+}++export const queryParser = {+ query: parseAsString,+ start_time: parseAsIsoDateTime,+ end_time: parseAsIsoDateTime,+ apps: parseAsArrayOf(parseAsString),+};++export const querySerializer = createSerializer(queryParser);++export type QueryParser = inferParserType<typeof queryParser>;+diff --git a/openrewind/next.config.mjs b/openrewind/next.config.mjsnew file mode 100644index 000000000..e5f94cb1d--- /dev/null+++ b/openrewind/next.config.mjs@@ -0,0 +1,9 @@+/** @type {import('next').NextConfig} */+const nextConfig = {+ output: 'export',+ images: {+ unoptimized: true,+ },+}+export default nextConfig;+diff --git a/openrewind/package-lock.json b/openrewind/package-lock.jsonnew file mode 100644index 000000000..7e11c872d--- /dev/null+++ b/openrewind/package-lock.json@@ -0,0 +1,10478 @@+{+ "name": "screenpipe-app",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "screenpipe-app",+ "dependencies": {+ "@ai-sdk/openai": "^0.0.39",+ "@clerk/nextjs": "^6.5.1",+ "@dnd-kit/core": "^6.1.0",+ "@opentelemetry/api": "^1.9.0",+ "@opentelemetry/context-zone": "^1.22.0",+ "@opentelemetry/exporter-trace-otlp-http": "^0.49.1",+ "@opentelemetry/instrumentation-fetch": "^0.53.0",+ "@opentelemetry/instrumentation-xml-http-request": "^0.53.0",+ "@opentelemetry/resources": "^1.26.0",+ "@opentelemetry/sdk-trace-base": "^1.22.0",+ "@opentelemetry/sdk-trace-web": "^1.22.0",+ "@radix-ui/react-accordion": "^1.2.0",+ "@radix-ui/react-avatar": "^1.1.0",+ "@radix-ui/react-checkbox": "^1.1.1",+ "@radix-ui/react-collapsible": "^1.1.0",+ "@radix-ui/react-dialog": "^1.1.2",+ "@radix-ui/react-dropdown-menu": "^2.1.1",+ "@radix-ui/react-icons": "^1.3.0",+ "@radix-ui/react-label": "^2.1.0",+ "@radix-ui/react-popover": "^1.1.2",+ "@radix-ui/react-progress": "^1.1.0",+ "@radix-ui/react-scroll-area": "^1.1.0",+ "@radix-ui/react-select": "^2.1.1",+ "@radix-ui/react-separator": "^1.1.0",+ "@radix-ui/react-slider": "^1.2.0",+ "@radix-ui/react-slot": "^1.1.0",+ "@radix-ui/react-switch": "^1.1.0",+ "@radix-ui/react-tabs": "^1.1.0",+ "@radix-ui/react-toast": "^1.2.1",+ "@radix-ui/react-tooltip": "^1.1.3",+ "@tauri-apps/api": "^2.1.1",+ "@tauri-apps/plugin-cli": "2.0.0",+ "@tauri-apps/plugin-dialog": "2.0.0",+ "@tauri-apps/plugin-fs": "2.0.0",+ "@tauri-apps/plugin-global-shortcut": "^2.0.0",+ "@tauri-apps/plugin-notification": "2.0.0",+ "@tauri-apps/plugin-os": "2.0.0",+ "@tauri-apps/plugin-process": "2.0.0",+ "@tauri-apps/plugin-shell": "2.0.0",+ "@tauri-apps/plugin-store": "^2.0.0",+ "@tauri-apps/plugin-updater": "2.0.0",+ "@types/js-levenshtein": "^1.1.3",+ "ai": "^3.3",+ "ansi-to-html": "^0.7.2",+ "class-variance-authority": "^0.7.0",+ "clsx": "^2.1.1",+ "cmdk": "1.0.0",+ "date-fns": "^3.6.0",+ "framer-motion": "^11.5.4",+ "js-levenshtein": "^1.1.6",+ "localforage": "^1.10.0",+ "lodash": "^4.17.21",+ "lucide-react": "^0.414.0",+ "next": "14.2.4",+ "ollama-ai-provider": "^0.11.0",+ "openai": "^4.56.0",+ "posthog-js": "^1.154.6",+ "react": "^18",+ "react-day-picker": "8.10.1",+ "react-dom": "^18",+ "react-markdown": "^9.0.1",+ "react-resizable-panels": "^2.1.6",+ "react-syntax-highlighter": "^15.5.0",+ "remark-gfm": "^4.0.0",+ "remark-math": "^6.0.0",+ "tailwind-merge": "^2.4.0",+ "tailwindcss-animate": "^1.0.7",+ "zod": "^3.23.8",+ "zod-to-json-schema": "^3.23.1"+ },+ "devDependencies": {+ "@tailwindcss/typography": "^0.5.13",+ "@tauri-apps/cli": "^2.1.0",+ "@types/lodash": "^4.17.7",+ "@types/node": "^20",+ "@types/react": "^18",+ "@types/react-dom": "^18",+ "@types/react-syntax-highlighter": "^15.5.13",+ "deps-analyzer": "^1.0.2",+ "eslint": "^8",+ "eslint-config-next": "14.2.4",+ "postcss": "^8",+ "tailwindcss": "^3.4.1",+ "typescript": "^5"+ }+ },+ "node_modules/@ai-sdk/openai": {+ "version": "0.0.39",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "0.0.13",+ "@ai-sdk/provider-utils": "1.0.4"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ }+ },+ "node_modules/@ai-sdk/provider": {+ "version": "0.0.13",+ "license": "Apache-2.0",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.4",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "0.0.13",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/provider-utils/node_modules/nanoid": {+ "version": "3.3.6",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/react": {+ "version": "0.0.42",+ "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-0.0.42.tgz",+ "integrity": "sha512-oiwXKLc5n7SwaTZWldMrpyJEWTgLh35NXuxQIGDGVHTIryxxMk9lgOQ+vQ8uri3WGMzGQQGRfwh8MTijJ8cN2A==",+ "dependencies": {+ "@ai-sdk/provider-utils": "1.0.10",+ "@ai-sdk/ui-utils": "0.0.30",+ "swr": "2.2.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "react": "^18 || ^19",+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "react": {+ "optional": true+ },+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/react/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/react/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/react/node_modules/nanoid": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/solid": {+ "version": "0.0.33",+ "resolved": "https://registry.npmjs.org/@ai-sdk/solid/-/solid-0.0.33.tgz",+ "integrity": "sha512-6AV4g6IrQ7bPcfQgwOjNMT50W2lljk/sgzJ3qx+Bt/lobvhA7khyW1RVYTnxx3OBdf4/qB1D2BAAbUrrm/na8A==",+ "dependencies": {+ "@ai-sdk/provider-utils": "1.0.10",+ "@ai-sdk/ui-utils": "0.0.30"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "solid-js": "^1.7.7"+ },+ "peerDependenciesMeta": {+ "solid-js": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/solid/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/solid/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/solid/node_modules/nanoid": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/svelte": {+ "version": "0.0.35",+ "resolved": "https://registry.npmjs.org/@ai-sdk/svelte/-/svelte-0.0.35.tgz",+ "integrity": "sha512-vbDmvcu2MRZvvxoOtCUH8ydKSaugaQkhiBtZRp/U1YvSIuzR7xUkYSf0EQ173kWBWsaoPO9PFava0WxF7k1q4g==",+ "dependencies": {+ "@ai-sdk/provider-utils": "1.0.10",+ "@ai-sdk/ui-utils": "0.0.30",+ "sswr": "2.1.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "svelte": "^3.0.0 || ^4.0.0"+ },+ "peerDependenciesMeta": {+ "svelte": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/svelte/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/svelte/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/svelte/node_modules/nanoid": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/ui-utils": {+ "version": "0.0.30",+ "resolved": "https://registry.npmjs.org/@ai-sdk/ui-utils/-/ui-utils-0.0.30.tgz",+ "integrity": "sha512-ifmYSQtSVdeY1XlOFirAdbgWVnSg5hYPhG8bEiNI9TvR1HFdMN/zZhxscjLyKXXAelf/ACYvUjwNQmCnWSurZQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "@ai-sdk/provider-utils": "1.0.10",+ "json-schema": "0.4.0",+ "secure-json-parse": "2.7.0",+ "zod-to-json-schema": "3.22.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/ui-utils/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/ui-utils/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/ui-utils/node_modules/nanoid": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@ai-sdk/ui-utils/node_modules/zod-to-json-schema": {+ "version": "3.22.5",+ "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.22.5.tgz",+ "integrity": "sha512-+akaPo6a0zpVCCseDed504KBJUQpEW5QZw7RMneNmKw+fGaML1Z9tUNLnHHAC8x6dzVRO1eB2oEMyZRnuBZg7Q==",+ "peerDependencies": {+ "zod": "^3.22.4"+ }+ },+ "node_modules/@ai-sdk/vue": {+ "version": "0.0.34",+ "resolved": "https://registry.npmjs.org/@ai-sdk/vue/-/vue-0.0.34.tgz",+ "integrity": "sha512-Nbht63i4NJrau5Yrf6dH6paH2mj/5CSmHopjA0IRHdOTvh3lKe382oZP2hLnN/xa575r25as67l7P/j/iq8ULQ==",+ "dependencies": {+ "@ai-sdk/provider-utils": "1.0.10",+ "@ai-sdk/ui-utils": "0.0.30",+ "swrv": "1.0.4"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "vue": "^3.3.4"+ },+ "peerDependenciesMeta": {+ "vue": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/vue/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@ai-sdk/vue/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/@ai-sdk/vue/node_modules/nanoid": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/@alloc/quick-lru": {+ "version": "5.2.0",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@ampproject/remapping": {+ "version": "2.3.0",+ "license": "Apache-2.0",+ "peer": true,+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.5",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "7.24.8",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "7.24.7",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "7.25.3",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/types": "^7.25.2"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@babel/runtime": {+ "version": "7.24.8",+ "license": "MIT",+ "dependencies": {+ "regenerator-runtime": "^0.14.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "7.25.2",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@babel/helper-string-parser": "^7.24.8",+ "@babel/helper-validator-identifier": "^7.24.7",+ "to-fast-properties": "^2.0.0"+ },+ "engines": {+ "node": ">=6.9.0"+ }+ },+ "node_modules/@clerk/backend": {+ "version": "1.18.0",+ "resolved": "https://registry.npmjs.org/@clerk/backend/-/backend-1.18.0.tgz",+ "integrity": "sha512-FIGBtr8qIgS+NbovKcLOIg8BsQj1JaykW3VKft3H83tONQD5Rg9ENXj/JX1HyZGC3ixLv5BUxu4bihQ78L/gJQ==",+ "dependencies": {+ "@clerk/shared": "2.17.0",+ "@clerk/types": "4.35.0",+ "cookie": "0.7.0",+ "snakecase-keys": "5.4.4",+ "tslib": "2.4.1"+ },+ "engines": {+ "node": ">=18.17.0"+ }+ },+ "node_modules/@clerk/backend/node_modules/tslib": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",+ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="+ },+ "node_modules/@clerk/clerk-react": {+ "version": "5.17.1",+ "resolved": "https://registry.npmjs.org/@clerk/clerk-react/-/clerk-react-5.17.1.tgz",+ "integrity": "sha512-j8WfJcd0NrD2hvtc3EF5IcWos3ajbKz2Bmv5do3VKYoj2JG1M6UbT2jDJ0Qv2gV8Cks51VNp+YuP89gX5ZNnrQ==",+ "dependencies": {+ "@clerk/shared": "2.17.0",+ "@clerk/types": "4.35.0",+ "tslib": "2.4.1"+ },+ "engines": {+ "node": ">=18.17.0"+ },+ "peerDependencies": {+ "react": "^18 || ^19.0.0-0",+ "react-dom": "^18 || ^19.0.0-0"+ }+ },+ "node_modules/@clerk/clerk-react/node_modules/tslib": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",+ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="+ },+ "node_modules/@clerk/nextjs": {+ "version": "6.5.1",+ "resolved": "https://registry.npmjs.org/@clerk/nextjs/-/nextjs-6.5.1.tgz",+ "integrity": "sha512-/FS1wRMOZvEF7azI+DX/DoQ3Q49oqjC3R4GgJzKnd1TIXZxhnPQbM1OvOnwBa7OEieieaXm+aPko+EYPYnSy9A==",+ "dependencies": {+ "@clerk/backend": "1.18.0",+ "@clerk/clerk-react": "5.17.1",+ "@clerk/shared": "2.17.0",+ "@clerk/types": "4.35.0",+ "crypto-js": "4.2.0",+ "ezheaders": "0.1.0",+ "server-only": "0.0.1",+ "tslib": "2.4.1"+ },+ "engines": {+ "node": ">=18.17.0"+ },+ "peerDependencies": {+ "next": "^13.5.4 || ^14.0.3 || ^15.0.0",+ "react": "^18 || ^19.0.0-0",+ "react-dom": "^18 || ^19.0.0-0"+ }+ },+ "node_modules/@clerk/nextjs/node_modules/tslib": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz",+ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA=="+ },+ "node_modules/@clerk/shared": {+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/@clerk/shared/-/shared-2.17.0.tgz",+ "integrity": "sha512-Jn/oBGjGfQQJIiMMf6Y0puC62R0rL1l/gLoPWnO6vNlCBzuFHGcsSTCWWDpmAXfyVwY7wJ7Dcq/B1UEsKeJ8zQ==",+ "hasInstallScript": true,+ "dependencies": {+ "@clerk/types": "4.35.0",+ "dequal": "2.0.3",+ "glob-to-regexp": "0.4.1",+ "js-cookie": "3.0.5",+ "std-env": "^3.7.0",+ "swr": "^2.2.0"+ },+ "engines": {+ "node": ">=18.17.0"+ },+ "peerDependencies": {+ "react": "^18 || ^19.0.0-0",+ "react-dom": "^18 || ^19.0.0-0"+ },+ "peerDependenciesMeta": {+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@clerk/types": {+ "version": "4.35.0",+ "resolved": "https://registry.npmjs.org/@clerk/types/-/types-4.35.0.tgz",+ "integrity": "sha512-sBSYCCIXcwI+JHQRqBtskw10+rQ1NcA9w1G6ndnS48F5C+if6xI9OpYaaDjhhvzLjBeZFydKAOhe35mgC7bmoA==",+ "dependencies": {+ "csstype": "3.1.1"+ },+ "engines": {+ "node": ">=18.17.0"+ }+ },+ "node_modules/@clerk/types/node_modules/csstype": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz",+ "integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw=="+ },+ "node_modules/@dnd-kit/accessibility": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/@dnd-kit/accessibility/-/accessibility-3.1.1.tgz",+ "integrity": "sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0"+ }+ },+ "node_modules/@dnd-kit/core": {+ "version": "6.2.0",+ "resolved": "https://registry.npmjs.org/@dnd-kit/core/-/core-6.2.0.tgz",+ "integrity": "sha512-KVK/CJmaYGTxTPU6P0+Oy4itgffTUa80B8317sXzfOr1qUzSL29jE7Th11llXiu2haB7B9Glpzo2CDElin+geQ==",+ "dependencies": {+ "@dnd-kit/accessibility": "^3.1.1",+ "@dnd-kit/utilities": "^3.2.2",+ "tslib": "^2.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@dnd-kit/utilities": {+ "version": "3.2.2",+ "resolved": "https://registry.npmjs.org/@dnd-kit/utilities/-/utilities-3.2.2.tgz",+ "integrity": "sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0"+ }+ },+ "node_modules/@eslint-community/eslint-utils": {+ "version": "4.4.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eslint-visitor-keys": "^3.3.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "peerDependencies": {+ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"+ }+ },+ "node_modules/@eslint-community/regexpp": {+ "version": "4.11.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.0.0 || ^14.0.0 || >=16.0.0"+ }+ },+ "node_modules/@eslint/eslintrc": {+ "version": "2.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^9.6.0",+ "globals": "^13.19.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.0",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/@eslint/js": {+ "version": "8.57.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ }+ },+ "node_modules/@floating-ui/core": {+ "version": "1.6.5",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/utils": "^0.2.5"+ }+ },+ "node_modules/@floating-ui/dom": {+ "version": "1.6.8",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/core": "^1.6.0",+ "@floating-ui/utils": "^0.2.5"+ }+ },+ "node_modules/@floating-ui/react-dom": {+ "version": "2.1.1",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/dom": "^1.0.0"+ },+ "peerDependencies": {+ "react": ">=16.8.0",+ "react-dom": ">=16.8.0"+ }+ },+ "node_modules/@floating-ui/utils": {+ "version": "0.2.5",+ "license": "MIT"+ },+ "node_modules/@humanwhocodes/config-array": {+ "version": "0.11.14",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@humanwhocodes/object-schema": "^2.0.2",+ "debug": "^4.3.1",+ "minimatch": "^3.0.5"+ },+ "engines": {+ "node": ">=10.10.0"+ }+ },+ "node_modules/@humanwhocodes/module-importer": {+ "version": "1.0.1",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.22"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }+ },+ "node_modules/@humanwhocodes/object-schema": {+ "version": "2.0.3",+ "dev": true,+ "license": "BSD-3-Clause"+ },+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "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/strip-ansi": {+ "version": "7.1.0",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/strip-ansi/node_modules/ansi-regex": {+ "version": "6.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.5",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/set-array": "^1.2.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.24"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/set-array": {+ "version": "1.2.1",+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.0",+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.25",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@next/env": {+ "version": "14.2.4",+ "license": "MIT"+ },+ "node_modules/@next/eslint-plugin-next": {+ "version": "14.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "glob": "10.3.10"+ }+ },+ "node_modules/@next/swc-darwin-arm64": {+ "version": "14.2.4",+ "cpu": [+ "arm64"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-darwin-x64": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.4.tgz",+ "integrity": "sha512-QVadW73sWIO6E2VroyUjuAxhWLZWEpiFqHdZdoQ/AMpN9YWGuHV8t2rChr0ahy+irKX5mlDU7OY68k3n4tAZTg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-gnu": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.4.tgz",+ "integrity": "sha512-KT6GUrb3oyCfcfJ+WliXuJnD6pCpZiosx2X3k66HLR+DMoilRb76LpWPGb4tZprawTtcnyrv75ElD6VncVamUQ==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-arm64-musl": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.4.tgz",+ "integrity": "sha512-Alv8/XGSs/ytwQcbCHwze1HmiIkIVhDHYLjczSVrf0Wi2MvKn/blt7+S6FJitj3yTlMwMxII1gIJ9WepI4aZ/A==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-gnu": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.4.tgz",+ "integrity": "sha512-ze0ShQDBPCqxLImzw4sCdfnB3lRmN3qGMB2GWDRlq5Wqy4G36pxtNOo2usu/Nm9+V2Rh/QQnrRc2l94kYFXO6Q==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-linux-x64-musl": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.4.tgz",+ "integrity": "sha512-8dwC0UJoc6fC7PX70csdaznVMNr16hQrTDAMPvLPloazlcaWfdPogq+UpZX6Drqb1OBlwowz8iG7WR0Tzk/diQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-arm64-msvc": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.4.tgz",+ "integrity": "sha512-jxyg67NbEWkDyvM+O8UDbPAyYRZqGLQDTPwvrBBeOSyVWW/jFQkQKQ70JDqDSYg1ZDdl+E3nkbFbq8xM8E9x8A==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-ia32-msvc": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.4.tgz",+ "integrity": "sha512-twrmN753hjXRdcrZmZttb/m5xaCBFa48Dt3FbeEItpJArxriYDunWxJn+QFXdJ3hPkm4u7CKxncVvnmgQMY1ag==",+ "cpu": [+ "ia32"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@next/swc-win32-x64-msvc": {+ "version": "14.2.4",+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.4.tgz",+ "integrity": "sha512-tkLrjBzqFTP8DVrAAQmZelEahfR9OxWpFR++vAI9FBhCiIxtwHwBHC23SBHCTURBtwB4kc/x44imVOnkKGNVGg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@nodelib/fs.scandir": {+ "version": "2.1.5",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "2.0.5",+ "run-parallel": "^1.1.9"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.stat": {+ "version": "2.0.5",+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@nodelib/fs.walk": {+ "version": "1.2.8",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.scandir": "2.1.5",+ "fastq": "^1.6.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/@opentelemetry/api": {+ "version": "1.9.0",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@opentelemetry/api-logs": {+ "version": "0.49.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.49.1.tgz",+ "integrity": "sha512-kaNl/T7WzyMUQHQlVq7q0oV4Kev6+0xFwqzofryC66jgGMacd0QH5TwfpbUwSTby+SdAdprAe5UKMvBw4tKS5Q==",+ "dependencies": {+ "@opentelemetry/api": "^1.0.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/context-zone": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/context-zone/-/context-zone-1.26.0.tgz",+ "integrity": "sha512-ckBEUKo7jZnZ2jARcntv365413cTe9Ra7uMQWvdk10K3tWOUsLnBG8dSMRbkaA+XL9hWGrZ1MMI8UXrwnbp0FA==",+ "dependencies": {+ "@opentelemetry/context-zone-peer-dep": "1.26.0",+ "zone.js": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/context-zone-peer-dep": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/context-zone-peer-dep/-/context-zone-peer-dep-1.26.0.tgz",+ "integrity": "sha512-Mgdy0WsHR52h5AnN2nhZJrelDK6unOFr8aSn3ToETk6DLSOijayOi0M0SZM72qhWr7iFrJ1oxGEIK8uzVaSC8Q==",+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0",+ "zone.js": "^0.10.2 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0"+ }+ },+ "node_modules/@opentelemetry/core": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.26.0.tgz",+ "integrity": "sha512-1iKxXXE8415Cdv0yjG3G6hQnB5eVEsJce3QaawX8SjDn0mAS0ZM8fAbZZJD4ajvhC15cePvosSCut404KrIIvQ==",+ "dependencies": {+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http": {+ "version": "0.49.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.49.1.tgz",+ "integrity": "sha512-KOLtZfZvIrpGZLVvblKsiVQT7gQUZNKcUUH24Zz6Xbi7LJb9Vt6xtUZFYdR5IIjvt47PIqBKDWUQlU0o1wAsRw==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/otlp-exporter-base": "0.49.1",+ "@opentelemetry/otlp-transformer": "0.49.1",+ "@opentelemetry/resources": "1.22.0",+ "@opentelemetry/sdk-trace-base": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.0.0"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/core": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.22.0.tgz",+ "integrity": "sha512-0VoAlT6x+Xzik1v9goJ3pZ2ppi6+xd3aUfg4brfrLkDBHRIVjMP0eBHrKrhB+NKcDyMAg8fAbGL3Npg/F6AwWA==",+ "dependencies": {+ "@opentelemetry/semantic-conventions": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/otlp-transformer": {+ "version": "0.49.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.49.1.tgz",+ "integrity": "sha512-Z+koA4wp9L9e3jkFacyXTGphSWTbOKjwwXMpb0CxNb0kjTHGUxhYRN8GnkLFsFo5NbZPjP07hwAqeEG/uCratQ==",+ "dependencies": {+ "@opentelemetry/api-logs": "0.49.1",+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/resources": "1.22.0",+ "@opentelemetry/sdk-logs": "0.49.1",+ "@opentelemetry/sdk-metrics": "1.22.0",+ "@opentelemetry/sdk-trace-base": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.3.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-logs": {+ "version": "0.49.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.49.1.tgz",+ "integrity": "sha512-gCzYWsJE0h+3cuh3/cK+9UwlVFyHvj3PReIOCDOmdeXOp90ZjKRoDOJBc3mvk1LL6wyl1RWIivR8Rg9OToyesw==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/resources": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.4.0 <1.9.0",+ "@opentelemetry/api-logs": ">=0.39.1"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-metrics": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.22.0.tgz",+ "integrity": "sha512-k6iIx6H3TZ+BVMr2z8M16ri2OxWaljg5h8ihGJxi/KQWcjign6FEaEzuigXt5bK9wVEhqAcWLCfarSftaNWkkg==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/resources": "1.22.0",+ "lodash.merge": "^4.6.2"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.3.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/resources": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.22.0.tgz",+ "integrity": "sha512-+vNeIFPH2hfcNL0AJk/ykJXoUCtR1YaDUZM+p3wZNU4Hq98gzq+7b43xbkXjadD9VhWIUQqEwXyY64q6msPj6A==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/semantic-conventions": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/sdk-trace-base": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.22.0.tgz",+ "integrity": "sha512-pfTuSIpCKONC6vkTpv6VmACxD+P1woZf4q0K46nSUvXFvOFqjBYKFaAMkKD3M1mlKUUh0Oajwj35qNjMl80m1Q==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0",+ "@opentelemetry/resources": "1.22.0",+ "@opentelemetry/semantic-conventions": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/instrumentation": {+ "version": "0.53.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.53.0.tgz",+ "integrity": "sha512-DMwg0hy4wzf7K73JJtl95m/e0boSoWhH07rfvHvYzQtBD3Bmv0Wc1x733vyZBqmFm8OjJD0/pfiUg1W3JjFX0A==",+ "dependencies": {+ "@opentelemetry/api-logs": "0.53.0",+ "@types/shimmer": "^1.2.0",+ "import-in-the-middle": "^1.8.1",+ "require-in-the-middle": "^7.1.1",+ "semver": "^7.5.2",+ "shimmer": "^1.2.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.3.0"+ }+ },+ "node_modules/@opentelemetry/instrumentation-fetch": {+ "version": "0.53.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-fetch/-/instrumentation-fetch-0.53.0.tgz",+ "integrity": "sha512-Sayp/Oypr0lyTgOKide/Dz4ovqDWPdmazapCMyfsVpXpV9zrH2kbdO2vAKUMx9vF98vxsqcxXucf4z54WXWZ8A==",+ "dependencies": {+ "@opentelemetry/core": "1.26.0",+ "@opentelemetry/instrumentation": "0.53.0",+ "@opentelemetry/sdk-trace-web": "1.26.0",+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.0.0"+ }+ },+ "node_modules/@opentelemetry/instrumentation-fetch/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/instrumentation-xml-http-request": {+ "version": "0.53.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation-xml-http-request/-/instrumentation-xml-http-request-0.53.0.tgz",+ "integrity": "sha512-vkALs8zdEUU3GnGvq1rzP0RK3+Fsk2jyzY6X/a+ibbo/miCmmeQNHX+fBRNs/3Offquj19M0qD+olNU9CJloqg==",+ "dependencies": {+ "@opentelemetry/core": "1.26.0",+ "@opentelemetry/instrumentation": "0.53.0",+ "@opentelemetry/sdk-trace-web": "1.26.0",+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.0.0"+ }+ },+ "node_modules/@opentelemetry/instrumentation-xml-http-request/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/instrumentation/node_modules/@opentelemetry/api-logs": {+ "version": "0.53.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.53.0.tgz",+ "integrity": "sha512-8HArjKx+RaAI8uEIgcORbZIPklyh1YLjPSBus8hjRmvLi6DeFzgOcdZ7KwPabKj8mXF8dX0hyfAyGfycz0DbFw==",+ "dependencies": {+ "@opentelemetry/api": "^1.0.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/instrumentation/node_modules/semver": {+ "version": "7.6.3",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",+ "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@opentelemetry/otlp-exporter-base": {+ "version": "0.49.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.49.1.tgz",+ "integrity": "sha512-z6sHliPqDgJU45kQatAettY9/eVF58qVPaTuejw9YWfSRqid9pXPYeegDCSdyS47KAUgAtm+nC28K3pfF27HWg==",+ "dependencies": {+ "@opentelemetry/core": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.0.0"+ }+ },+ "node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.22.0.tgz",+ "integrity": "sha512-0VoAlT6x+Xzik1v9goJ3pZ2ppi6+xd3aUfg4brfrLkDBHRIVjMP0eBHrKrhB+NKcDyMAg8fAbGL3Npg/F6AwWA==",+ "dependencies": {+ "@opentelemetry/semantic-conventions": "1.22.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.9.0"+ }+ },+ "node_modules/@opentelemetry/resources": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.26.0.tgz",+ "integrity": "sha512-CPNYchBE7MBecCSVy0HKpUISEeJOniWqcHaAHpmasZ3j9o6V3AyBzhRc90jdmemq0HOxDr6ylhUbDhBqqPpeNw==",+ "dependencies": {+ "@opentelemetry/core": "1.26.0",+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/resources/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-base": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.26.0.tgz",+ "integrity": "sha512-olWQldtvbK4v22ymrKLbIcBi9L2SpMO84sCPY54IVsJhP9fRsxJT194C/AVaAuJzLE30EdhhM1VmvVYR7az+cw==",+ "dependencies": {+ "@opentelemetry/core": "1.26.0",+ "@opentelemetry/resources": "1.26.0",+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-web": {+ "version": "1.26.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-web/-/sdk-trace-web-1.26.0.tgz",+ "integrity": "sha512-sxeKPcG/gUyxZ8iB8X1MI8/grfSCGgo1n2kxOE73zjVaO9yW/7JuVC3gqUaWRjtZ6VD/V3lo2/ZSwMlm6n2mdg==",+ "dependencies": {+ "@opentelemetry/core": "1.26.0",+ "@opentelemetry/sdk-trace-base": "1.26.0",+ "@opentelemetry/semantic-conventions": "1.27.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-web/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.27.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.27.0.tgz",+ "integrity": "sha512-sAay1RrB+ONOem0OZanAR1ZI/k7yDpnOQSQmTMuGImUQb2y8EbSaCJ94FQluM74xoU03vlb2d2U90hZluL6nQg==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.22.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.22.0.tgz",+ "integrity": "sha512-CAOgFOKLybd02uj/GhCdEeeBjOS0yeoDeo/CA7ASBSmenpZHAKGB3iDm/rv3BQLcabb/OprDEsSQ1y0P8A7Siw==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@radix-ui/number": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.0.tgz",+ "integrity": "sha512-V3gRzhVNU1ldS5XhAPTom1fOIo4ccrjjJgmE+LI2h/WaFpHmx0MQApT+KZHnx8abG6Avtfcz4WoEciMnpFT3HQ=="+ },+ "node_modules/@radix-ui/primitive": {+ "version": "1.1.0",+ "license": "MIT"+ },+ "node_modules/@radix-ui/react-accordion": {+ "version": "1.2.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collapsible": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-arrow": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-avatar": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-checkbox": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-checkbox/-/react-checkbox-1.1.1.tgz",+ "integrity": "sha512-0i/EKJ222Afa1FE0C6pNJxDq1itzcl3HChE9DwskA4th4KRse8ojx8a1nVcOjwJdbpDLcz7uol77yYnQNMHdKw==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-previous": "1.1.0",+ "@radix-ui/react-use-size": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collapsible": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-collection": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-slot": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-compose-refs": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-context": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.2.tgz",+ "integrity": "sha512-Yj4dZtqa2o+kG61fzB0H2qUvmwBA2oyQroGLyNtBj1beo1khoQ3q1a2AO8rrQYjd8256CO9+N8L9tvsS+bnIyA==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.1",+ "@radix-ui/react-focus-guards": "1.1.1",+ "@radix-ui/react-focus-scope": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-portal": "1.1.2",+ "@radix-ui/react-presence": "1.1.1",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-slot": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "aria-hidden": "^1.1.1",+ "react-remove-scroll": "2.6.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.1.tgz",+ "integrity": "sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.1.tgz",+ "integrity": "sha512-QSxg29lfr/xcev6kSz7MAlmDnzbP1eI/Dwn3Tp1ip0KT5CUELsxkekFEMVBEoykI3oV39hKT4TKZzBNMbcTZYQ==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-escape-keydown": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.1.tgz",+ "integrity": "sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.2.tgz",+ "integrity": "sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.1.tgz",+ "integrity": "sha512-IeFXVi4YS1K0wVZzXNrbaaUvIJ3qdY+/Ih4eHFhWA9SwGR9UDX7Ck8abvL57C4cv3wwMvUE0OG69Qc3NCcTe/A==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.6.0.tgz",+ "integrity": "sha512-I2U4JVEsQenxDAKaVa3VZ/JeJZe0/2DxPWL8Tj8yLKctQJQiZM52pn/GWFpSp8dftjM3pSAHVJZscAnC/y+ySQ==",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.6",+ "react-style-singleton": "^2.2.1",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.0",+ "use-sidecar": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-direction": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-escape-keydown": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-dropdown-menu": {+ "version": "2.1.1",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-menu": "2.1.1",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-focus-scope": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-icons": {+ "version": "1.3.0",+ "license": "MIT",+ "peerDependencies": {+ "react": "^16.x || ^17.x || ^18.x"+ }+ },+ "node_modules/@radix-ui/react-id": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-label": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-menu": {+ "version": "2.1.1",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-dismissable-layer": "1.1.0",+ "@radix-ui/react-focus-guards": "1.1.0",+ "@radix-ui/react-focus-scope": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-popper": "1.2.0",+ "@radix-ui/react-portal": "1.1.1",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-roving-focus": "1.1.0",+ "@radix-ui/react-slot": "1.1.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "aria-hidden": "^1.1.1",+ "react-remove-scroll": "2.5.7"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.1.2.tgz",+ "integrity": "sha512-u2HRUyWW+lOiA2g0Le0tMmT55FGOEWHwPFt1EPfbLly7uXQExFo5duNKqG2DzmFXIdqOeNd+TpE8baHWJCyP9w==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.1",+ "@radix-ui/react-focus-guards": "1.1.1",+ "@radix-ui/react-focus-scope": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-popper": "1.2.0",+ "@radix-ui/react-portal": "1.1.2",+ "@radix-ui/react-presence": "1.1.1",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-slot": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "aria-hidden": "^1.1.1",+ "react-remove-scroll": "2.6.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-context": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.1.tgz",+ "integrity": "sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.1.tgz",+ "integrity": "sha512-QSxg29lfr/xcev6kSz7MAlmDnzbP1eI/Dwn3Tp1ip0KT5CUELsxkekFEMVBEoykI3oV39hKT4TKZzBNMbcTZYQ==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-escape-keydown": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-guards": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.1.tgz",+ "integrity": "sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.2.tgz",+ "integrity": "sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.1.tgz",+ "integrity": "sha512-IeFXVi4YS1K0wVZzXNrbaaUvIJ3qdY+/Ih4eHFhWA9SwGR9UDX7Ck8abvL57C4cv3wwMvUE0OG69Qc3NCcTe/A==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.6.0.tgz",+ "integrity": "sha512-I2U4JVEsQenxDAKaVa3VZ/JeJZe0/2DxPWL8Tj8yLKctQJQiZM52pn/GWFpSp8dftjM3pSAHVJZscAnC/y+ySQ==",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.6",+ "react-style-singleton": "^2.2.1",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.0",+ "use-sidecar": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-popper": {+ "version": "1.2.0",+ "license": "MIT",+ "dependencies": {+ "@floating-ui/react-dom": "^2.0.0",+ "@radix-ui/react-arrow": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0",+ "@radix-ui/react-use-rect": "1.1.0",+ "@radix-ui/react-use-size": "1.1.0",+ "@radix-ui/rect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-portal": {+ "version": "1.1.1",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-presence": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-primitive": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-slot": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-progress": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-progress/-/react-progress-1.1.0.tgz",+ "integrity": "sha512-aSzvnYpP725CROcxAOEBVZZSIQVQdHgBr2QQFKySsaD14u8dNT0batuXI+AAGDdAHfXH8rbnHmjYFqVJ21KkRg==",+ "dependencies": {+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-roving-focus": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-scroll-area": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.1.0.tgz",+ "integrity": "sha512-9ArIZ9HWhsrfqS765h+GZuLoxaRHD/j0ZWOWilsCvYTpYJp8XwCqNG7Dt9Nu/TItKOdgLGkOPCodQvDc+UMwYg==",+ "dependencies": {+ "@radix-ui/number": "1.1.0",+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-select": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-select/-/react-select-2.1.1.tgz",+ "integrity": "sha512-8iRDfyLtzxlprOo9IicnzvpsO1wNCkuwzzCM+Z5Rb5tNOpCdMvcc2AkzX0Fz+Tz9v6NJ5B/7EEgyZveo4FBRfQ==",+ "dependencies": {+ "@radix-ui/number": "1.1.0",+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-dismissable-layer": "1.1.0",+ "@radix-ui/react-focus-guards": "1.1.0",+ "@radix-ui/react-focus-scope": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-popper": "1.2.0",+ "@radix-ui/react-portal": "1.1.1",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-slot": "1.1.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0",+ "@radix-ui/react-use-previous": "1.1.0",+ "@radix-ui/react-visually-hidden": "1.1.0",+ "aria-hidden": "^1.1.1",+ "react-remove-scroll": "2.5.7"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-separator": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slider": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slider/-/react-slider-1.2.0.tgz",+ "integrity": "sha512-dAHCDA4/ySXROEPaRtaMV5WHL8+JB/DbtyTbJjYkY0RXmKMO2Ln8DFZhywG5/mVQ4WqHDBc8smc14yPXPqZHYA==",+ "dependencies": {+ "@radix-ui/number": "1.1.0",+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0",+ "@radix-ui/react-use-previous": "1.1.0",+ "@radix-ui/react-use-size": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-slot": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-switch": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-previous": "1.1.0",+ "@radix-ui/react-use-size": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tabs": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tabs/-/react-tabs-1.1.0.tgz",+ "integrity": "sha512-bZgOKB/LtZIij75FSuPzyEti/XBhJH52ExgtdVqjCIh+Nx/FW+LhnbXtbCzIi34ccyMsyOja8T0thCzoHFXNKA==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-direction": "1.1.0",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-roving-focus": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-toast": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-toast/-/react-toast-1.2.1.tgz",+ "integrity": "sha512-5trl7piMXcZiCq7MW6r8YYmu0bK5qDpTWz+FdEPdKyft2UixkspheYbjbrLXVN5NGKHFbOP7lm8eD0biiSqZqg==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-collection": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.0",+ "@radix-ui/react-dismissable-layer": "1.1.0",+ "@radix-ui/react-portal": "1.1.1",+ "@radix-ui/react-presence": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0",+ "@radix-ui/react-visually-hidden": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-tooltip/-/react-tooltip-1.1.4.tgz",+ "integrity": "sha512-QpObUH/ZlpaO4YgHSaYzrLO2VuO+ZBFFgGzjMUPwtiYnAzzNNDPJeEGRrT7qNOrWm/Jr08M1vlp+vTHtnSQ0Uw==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-context": "1.1.1",+ "@radix-ui/react-dismissable-layer": "1.1.1",+ "@radix-ui/react-id": "1.1.0",+ "@radix-ui/react-popper": "1.2.0",+ "@radix-ui/react-portal": "1.1.2",+ "@radix-ui/react-presence": "1.1.1",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-slot": "1.1.0",+ "@radix-ui/react-use-controllable-state": "1.1.0",+ "@radix-ui/react-visually-hidden": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.1.tgz",+ "integrity": "sha512-UASk9zi+crv9WteK/NU4PLvOoL3OuE6BWVKNF6hPRBtYBDXQ2u5iu3O59zUlJiTVvkyuycnqrztsHVJwcK9K+Q==",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.1.tgz",+ "integrity": "sha512-QSxg29lfr/xcev6kSz7MAlmDnzbP1eI/Dwn3Tp1ip0KT5CUELsxkekFEMVBEoykI3oV39hKT4TKZzBNMbcTZYQ==",+ "dependencies": {+ "@radix-ui/primitive": "1.1.0",+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-callback-ref": "1.1.0",+ "@radix-ui/react-use-escape-keydown": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.2.tgz",+ "integrity": "sha512-WeDYLGPxJb/5EGBoedyJbT0MpoULmwnIPMJMSldkuiMsBAv7N1cRdsTWZWht9vpPOiN3qyiGAtbK2is47/uMFg==",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-presence": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.1.tgz",+ "integrity": "sha512-IeFXVi4YS1K0wVZzXNrbaaUvIJ3qdY+/Ih4eHFhWA9SwGR9UDX7Ck8abvL57C4cv3wwMvUE0OG69Qc3NCcTe/A==",+ "dependencies": {+ "@radix-ui/react-compose-refs": "1.1.0",+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-callback-ref": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-callback-ref": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-previous": {+ "version": "1.1.0",+ "license": "MIT",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-rect": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/rect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-use-size": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-use-layout-effect": "1.1.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/react-visually-hidden": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "@radix-ui/react-primitive": "2.0.0"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/@radix-ui/rect": {+ "version": "1.1.0",+ "license": "MIT"+ },+ "node_modules/@rushstack/eslint-patch": {+ "version": "1.10.3",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@swc/counter": {+ "version": "0.1.3",+ "license": "Apache-2.0"+ },+ "node_modules/@swc/helpers": {+ "version": "0.5.5",+ "license": "Apache-2.0",+ "dependencies": {+ "@swc/counter": "^0.1.3",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@tailwindcss/typography": {+ "version": "0.5.13",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "lodash.castarray": "^4.4.0",+ "lodash.isplainobject": "^4.0.6",+ "lodash.merge": "^4.6.2",+ "postcss-selector-parser": "6.0.10"+ },+ "peerDependencies": {+ "tailwindcss": ">=3.0.0 || insiders"+ }+ },+ "node_modules/@tauri-apps/api": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.1.1.tgz",+ "integrity": "sha512-fzUfFFKo4lknXGJq8qrCidkUcKcH2UHhfaaCNt4GzgzGaW2iS26uFOg4tS3H4P8D6ZEeUxtiD5z0nwFF0UN30A==",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ }+ },+ "node_modules/@tauri-apps/cli": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.1.0.tgz",+ "integrity": "sha512-K2VhcKqBhAeS5pNOVdnR/xQRU6jwpgmkSL2ejHXcl0m+kaTggT0WRDQnFtPq6NljA7aE03cvwsbCAoFG7vtkJw==",+ "dev": true,+ "bin": {+ "tauri": "tauri.js"+ },+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/tauri"+ },+ "optionalDependencies": {+ "@tauri-apps/cli-darwin-arm64": "2.1.0",+ "@tauri-apps/cli-darwin-x64": "2.1.0",+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.1.0",+ "@tauri-apps/cli-linux-arm64-gnu": "2.1.0",+ "@tauri-apps/cli-linux-arm64-musl": "2.1.0",+ "@tauri-apps/cli-linux-x64-gnu": "2.1.0",+ "@tauri-apps/cli-linux-x64-musl": "2.1.0",+ "@tauri-apps/cli-win32-arm64-msvc": "2.1.0",+ "@tauri-apps/cli-win32-ia32-msvc": "2.1.0",+ "@tauri-apps/cli-win32-x64-msvc": "2.1.0"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-arm64": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.1.0.tgz",+ "integrity": "sha512-ESc6J6CE8hl1yKH2vJ+ALF+thq4Be+DM1mvmTyUCQObvezNCNhzfS6abIUd3ou4x5RGH51ouiANeT3wekU6dCw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-darwin-x64": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.1.0.tgz",+ "integrity": "sha512-TasHS442DFs8cSH2eUQzuDBXUST4ECjCd0yyP+zZzvAruiB0Bg+c8A+I/EnqCvBQ2G2yvWLYG8q/LI7c87A5UA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.1.0.tgz",+ "integrity": "sha512-aP7ZBGNL4ny07Cbb6kKpUOSrmhcIK2KhjviTzYlh+pPhAptxnC78xQGD3zKQkTi2WliJLPmBYbOHWWQa57lQ9w==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.1.0.tgz",+ "integrity": "sha512-ZTdgD5gLeMCzndMT2f358EkoYkZ5T+Qy6zPzU+l5vv5M7dHVN9ZmblNAYYXmoOuw7y+BY4X/rZvHV9pcGrcanQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.1.0.tgz",+ "integrity": "sha512-NzwqjUCilhnhJzusz3d/0i0F1GFrwCQbkwR6yAHUxItESbsGYkZRJk0yMEWkg3PzFnyK4cWTlQJMEU52TjhEzA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.1.0.tgz",+ "integrity": "sha512-TyiIpMEtZxNOQmuFyfJwaaYbg3movSthpBJLIdPlKxSAB2BW0VWLY3/ZfIxm/G2YGHyREkjJvimzYE0i37PnMA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-linux-x64-musl": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.1.0.tgz",+ "integrity": "sha512-/dQd0TlaxBdJACrR72DhynWftzHDaX32eBtS5WBrNJ+nnNb+znM3gON6nJ9tSE9jgDa6n1v2BkI/oIDtypfUXw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.1.0.tgz",+ "integrity": "sha512-NdQJO7SmdYqOcE+JPU7bwg7+odfZMWO6g8xF9SXYCMdUzvM2Gv/AQfikNXz5yS7ralRhNFuW32i5dcHlxh4pDg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.1.0.tgz",+ "integrity": "sha512-f5h8gKT/cB8s1ticFRUpNmHqkmaLutT62oFDB7N//2YTXnxst7EpMIn1w+QimxTvTk2gcx6EcW6bEk/y2hZGzg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.1.0.tgz",+ "integrity": "sha512-P/+LrdSSb5Xbho1LRP4haBjFHdyPdjWvGgeopL96OVtrFpYnfC+RctB45z2V2XxqFk3HweDDxk266btjttfjGw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@tauri-apps/plugin-cli": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-cli/-/plugin-cli-2.0.0.tgz",+ "integrity": "sha512-glQmlL1IiCGEa1FHYa/PTPSeYhfu56omLRgHXWlJECDt6DbJyRuJWVgtkQfUxtqnVdYnnU+DGIGeiInoEqtjLw==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-dialog": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.0.0.tgz",+ "integrity": "sha512-ApNkejXP2jpPBSifznPPcHTXxu9/YaRW+eJ+8+nYwqp0lLUtebFHG4QhxitM43wwReHE81WAV1DQ/b+2VBftOA==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-fs": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-fs/-/plugin-fs-2.0.0.tgz",+ "integrity": "sha512-BNEeQQ5aH8J5SwYuWgRszVyItsmquRuzK2QRkVj8Z0sCsLnSvJFYI3JHRzzr3ltZGq1nMPtblrlZzuKqVzRawA==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-global-shortcut": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-global-shortcut/-/plugin-global-shortcut-2.0.0.tgz",+ "integrity": "sha512-pnB4CUwFVjg4twtBSxoLJ4uLFTYxsvOdC1zIbG581pYzhYatOl6mjB+ijD5SSXgiS/jNoqMcfkOF9PWAisurew==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-notification": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-notification/-/plugin-notification-2.0.0.tgz",+ "integrity": "sha512-6qEDYJS7mgXZWLXA0EFL+DVCJh8sJlzSoyw6B50pxhLPVFjc5Vr5DVzl5W3mUHaYhod5wsC984eQnlCCGqxYDA==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-os": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-os/-/plugin-os-2.0.0.tgz",+ "integrity": "sha512-M7hG/nNyQYTJxVG/UhTKhp9mpXriwWzrs9mqDreB8mIgqA3ek5nHLdwRZJWhkKjZrnDT4v9CpA9BhYeplTlAiA==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-process": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-process/-/plugin-process-2.0.0.tgz",+ "integrity": "sha512-OYzi0GnkrF4NAnsHZU7U3tjSoP0PbeAlO7T1Z+vJoBUH9sFQ1NSLqWYWQyf8hcb3gVWe7P1JggjiskO+LST1ug==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-shell": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-shell/-/plugin-shell-2.0.0.tgz",+ "integrity": "sha512-OpW2+ycgJLrEoZityWeWYk+6ZWP9VyiAfbO+N/O8VfLkqyOym8kXh7odKDfINx9RAotkSGBtQM4abyKfJDkcUg==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-store": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-store/-/plugin-store-2.0.0.tgz",+ "integrity": "sha512-l4xsbxAXrKGdBdYNNswrLfcRv3v1kOatdycOcVPYW+jKwkznCr1HEOrPXkPhXsZLSLyYmNXpgfOmdSZNmcykDg==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@tauri-apps/plugin-updater": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.0.0.tgz",+ "integrity": "sha512-N0cl71g7RPr7zK2Fe5aoIwzw14NcdLcz7XMGFWZVjprsqgDRWoxbnUkknyCQMZthjhGkppCd/wN2MIsUz+eAhQ==",+ "dependencies": {+ "@tauri-apps/api": "^2.0.0"+ }+ },+ "node_modules/@types/debug": {+ "version": "4.1.12",+ "license": "MIT",+ "dependencies": {+ "@types/ms": "*"+ }+ },+ "node_modules/@types/diff-match-patch": {+ "version": "1.0.36",+ "license": "MIT"+ },+ "node_modules/@types/estree": {+ "version": "1.0.5",+ "license": "MIT"+ },+ "node_modules/@types/estree-jsx": {+ "version": "1.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/@types/hast": {+ "version": "3.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/js-levenshtein": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.3.tgz",+ "integrity": "sha512-jd+Q+sD20Qfu9e2aEXogiO3vpOC1PYJOUdyN9gvs4Qrvkg4wF43L5OhqrPeokdv8TL0/mXoYfpkcoGZMNN2pkQ=="+ },+ "node_modules/@types/json5": {+ "version": "0.0.29",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/katex": {+ "version": "0.16.7",+ "license": "MIT"+ },+ "node_modules/@types/lodash": {+ "version": "4.17.7",+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.7.tgz",+ "integrity": "sha512-8wTvZawATi/lsmNu10/j2hk1KEP0IvjubqPE3cu1Xz7xfXXt5oCq3SNUz4fMIP4XGF9Ky+Ue2tBA3hcS7LSBlA==",+ "dev": true+ },+ "node_modules/@types/mdast": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "*"+ }+ },+ "node_modules/@types/ms": {+ "version": "0.7.34",+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "20.14.11",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/@types/node-fetch": {+ "version": "2.6.11",+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "form-data": "^4.0.0"+ }+ },+ "node_modules/@types/prop-types": {+ "version": "15.7.12",+ "license": "MIT"+ },+ "node_modules/@types/qs": {+ "version": "6.9.15",+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz",+ "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg=="+ },+ "node_modules/@types/react": {+ "version": "18.3.3",+ "license": "MIT",+ "dependencies": {+ "@types/prop-types": "*",+ "csstype": "^3.0.2"+ }+ },+ "node_modules/@types/react-dom": {+ "version": "18.3.0",+ "devOptional": true,+ "license": "MIT",+ "dependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/react-syntax-highlighter": {+ "version": "15.5.13",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/react": "*"+ }+ },+ "node_modules/@types/shimmer": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.2.0.tgz",+ "integrity": "sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg=="+ },+ "node_modules/@types/unist": {+ "version": "3.0.2",+ "license": "MIT"+ },+ "node_modules/@typescript-eslint/parser": {+ "version": "7.2.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "@typescript-eslint/scope-manager": "7.2.0",+ "@typescript-eslint/types": "7.2.0",+ "@typescript-eslint/typescript-estree": "7.2.0",+ "@typescript-eslint/visitor-keys": "7.2.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependencies": {+ "eslint": "^8.56.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/scope-manager": {+ "version": "7.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "7.2.0",+ "@typescript-eslint/visitor-keys": "7.2.0"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/types": {+ "version": "7.2.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree": {+ "version": "7.2.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "@typescript-eslint/types": "7.2.0",+ "@typescript-eslint/visitor-keys": "7.2.0",+ "debug": "^4.3.4",+ "globby": "^11.1.0",+ "is-glob": "^4.0.3",+ "minimatch": "9.0.3",+ "semver": "^7.5.4",+ "ts-api-utils": "^1.0.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {+ "version": "9.0.3",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch/node_modules/brace-expansion": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {+ "version": "7.6.3",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/@typescript-eslint/visitor-keys": {+ "version": "7.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typescript-eslint/types": "7.2.0",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^16.0.0 || >=18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/typescript-eslint"+ }+ },+ "node_modules/@ungap/structured-clone": {+ "version": "1.2.0",+ "license": "ISC"+ },+ "node_modules/@vue/compiler-core": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.37.tgz",+ "integrity": "sha512-ZDDT/KiLKuCRXyzWecNzC5vTcubGz4LECAtfGPENpo0nrmqJHwuWtRLxk/Sb9RAKtR9iFflFycbkjkY+W/PZUQ==",+ "peer": true,+ "dependencies": {+ "@babel/parser": "^7.24.7",+ "@vue/shared": "3.4.37",+ "entities": "^5.0.0",+ "estree-walker": "^2.0.2",+ "source-map-js": "^1.2.0"+ }+ },+ "node_modules/@vue/compiler-dom": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.37.tgz",+ "integrity": "sha512-rIiSmL3YrntvgYV84rekAtU/xfogMUJIclUMeIKEtVBFngOL3IeZHhsH3UaFEgB5iFGpj6IW+8YuM/2Up+vVag==",+ "peer": true,+ "dependencies": {+ "@vue/compiler-core": "3.4.37",+ "@vue/shared": "3.4.37"+ }+ },+ "node_modules/@vue/compiler-sfc": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.37.tgz",+ "integrity": "sha512-vCfetdas40Wk9aK/WWf8XcVESffsbNkBQwS5t13Y/PcfqKfIwJX2gF+82th6dOpnpbptNMlMjAny80li7TaCIg==",+ "peer": true,+ "dependencies": {+ "@babel/parser": "^7.24.7",+ "@vue/compiler-core": "3.4.37",+ "@vue/compiler-dom": "3.4.37",+ "@vue/compiler-ssr": "3.4.37",+ "@vue/shared": "3.4.37",+ "estree-walker": "^2.0.2",+ "magic-string": "^0.30.10",+ "postcss": "^8.4.40",+ "source-map-js": "^1.2.0"+ }+ },+ "node_modules/@vue/compiler-ssr": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.37.tgz",+ "integrity": "sha512-TyAgYBWrHlFrt4qpdACh8e9Ms6C/AZQ6A6xLJaWrCL8GCX5DxMzxyeFAEMfU/VFr4tylHm+a2NpfJpcd7+20XA==",+ "peer": true,+ "dependencies": {+ "@vue/compiler-dom": "3.4.37",+ "@vue/shared": "3.4.37"+ }+ },+ "node_modules/@vue/reactivity": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.37.tgz",+ "integrity": "sha512-UmdKXGx0BZ5kkxPqQr3PK3tElz6adTey4307NzZ3whZu19i5VavYal7u2FfOmAzlcDVgE8+X0HZ2LxLb/jgbYw==",+ "peer": true,+ "dependencies": {+ "@vue/shared": "3.4.37"+ }+ },+ "node_modules/@vue/runtime-core": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.37.tgz",+ "integrity": "sha512-MNjrVoLV/sirHZoD7QAilU1Ifs7m/KJv4/84QVbE6nyAZGQNVOa1HGxaOzp9YqCG+GpLt1hNDC4RbH+KtanV7w==",+ "peer": true,+ "dependencies": {+ "@vue/reactivity": "3.4.37",+ "@vue/shared": "3.4.37"+ }+ },+ "node_modules/@vue/runtime-dom": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.37.tgz",+ "integrity": "sha512-Mg2EwgGZqtwKrqdL/FKMF2NEaOHuH+Ks9TQn3DHKyX//hQTYOun+7Tqp1eo0P4Ds+SjltZshOSRq6VsU0baaNg==",+ "peer": true,+ "dependencies": {+ "@vue/reactivity": "3.4.37",+ "@vue/runtime-core": "3.4.37",+ "@vue/shared": "3.4.37",+ "csstype": "^3.1.3"+ }+ },+ "node_modules/@vue/server-renderer": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.37.tgz",+ "integrity": "sha512-jZ5FAHDR2KBq2FsRUJW6GKDOAG9lUTX8aBEGq4Vf6B/35I9fPce66BornuwmqmKgfiSlecwuOb6oeoamYMohkg==",+ "peer": true,+ "dependencies": {+ "@vue/compiler-ssr": "3.4.37",+ "@vue/shared": "3.4.37"+ },+ "peerDependencies": {+ "vue": "3.4.37"+ }+ },+ "node_modules/@vue/shared": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.37.tgz",+ "integrity": "sha512-nIh8P2fc3DflG8+5Uw8PT/1i17ccFn0xxN/5oE9RfV5SVnd7G0XEFRwakrnNFE/jlS95fpGXDVG5zDETS26nmg==",+ "peer": true+ },+ "node_modules/abort-controller": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "event-target-shim": "^5.0.0"+ },+ "engines": {+ "node": ">=6.5"+ }+ },+ "node_modules/acorn": {+ "version": "8.12.1",+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-import-attributes": {+ "version": "1.9.5",+ "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz",+ "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==",+ "peerDependencies": {+ "acorn": "^8"+ }+ },+ "node_modules/acorn-jsx": {+ "version": "5.3.2",+ "dev": true,+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"+ }+ },+ "node_modules/agentkeepalive": {+ "version": "4.5.0",+ "license": "MIT",+ "dependencies": {+ "humanize-ms": "^1.2.1"+ },+ "engines": {+ "node": ">= 8.0.0"+ }+ },+ "node_modules/ai": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/ai/-/ai-3.3.6.tgz",+ "integrity": "sha512-XrbjYyugNF0SlTEVAO8B7tlW6iW47+DYk1hkyGj0vwp93J0F19bdrtN6NbFJOzSHj/R4FGvGk0IPQz5A3Eq1IQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "@ai-sdk/provider-utils": "1.0.10",+ "@ai-sdk/react": "0.0.42",+ "@ai-sdk/solid": "0.0.33",+ "@ai-sdk/svelte": "0.0.35",+ "@ai-sdk/ui-utils": "0.0.30",+ "@ai-sdk/vue": "0.0.34",+ "@opentelemetry/api": "1.9.0",+ "eventsource-parser": "1.1.2",+ "json-schema": "0.4.0",+ "jsondiffpatch": "0.6.0",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0",+ "zod-to-json-schema": "3.22.5"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "openai": "^4.42.0",+ "react": "^18 || ^19",+ "sswr": "^2.1.0",+ "svelte": "^3.0.0 || ^4.0.0",+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "openai": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "sswr": {+ "optional": true+ },+ "svelte": {+ "optional": true+ },+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/ai/node_modules/@ai-sdk/provider": {+ "version": "0.0.18",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-0.0.18.tgz",+ "integrity": "sha512-LF4aUAKDTKIHa2e7ozwRJDMhUC9cs7t224sUilG1HfyFWyyh+01oPZwMob/hj111SozZkvXIukN0BIa+sXS0mw==",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/ai/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-1.0.10.tgz",+ "integrity": "sha512-xciXF2PorLQMNdhYe+n9CafVkXZANHURsME85RXjtAoZSs631l2t8Blqwz2C/pHUb9bxLdMRRuIEB4PnHLnHvQ==",+ "dependencies": {+ "@ai-sdk/provider": "0.0.18",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/ai/node_modules/nanoid": {+ "version": "3.3.6",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/ai/node_modules/zod-to-json-schema": {+ "version": "3.22.5",+ "license": "ISC",+ "peerDependencies": {+ "zod": "^3.22.4"+ }+ },+ "node_modules/ajv": {+ "version": "6.12.6",+ "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"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/epoberezkin"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/ansi-styles": {+ "version": "4.3.0",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/ansi-to-html": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/ansi-to-html/-/ansi-to-html-0.7.2.tgz",+ "integrity": "sha512-v6MqmEpNlxF+POuyhKkidusCHWWkaLcGRURzivcU3I9tv7k4JVhFcnukrM5Rlk2rUywdZuzYAZ+kbZqWCnfN3g==",+ "dependencies": {+ "entities": "^2.2.0"+ },+ "bin": {+ "ansi-to-html": "bin/ansi-to-html"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/ansi-to-html/node_modules/entities": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "license": "MIT"+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "5.0.2",+ "license": "MIT"+ },+ "node_modules/argparse": {+ "version": "2.0.1",+ "dev": true,+ "license": "Python-2.0"+ },+ "node_modules/aria-hidden": {+ "version": "1.2.4",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/aria-query": {+ "version": "5.1.3",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "deep-equal": "^2.0.5"+ }+ },+ "node_modules/array-buffer-byte-length": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.5",+ "is-array-buffer": "^3.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array-includes": {+ "version": "3.1.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "is-string": "^1.0.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array-union": {+ "version": "2.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/array.prototype.findlast": {+ "version": "1.2.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.findlastindex": {+ "version": "1.2.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flat": {+ "version": "1.3.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "define-properties": "^1.2.0",+ "es-abstract": "^1.22.1",+ "es-shim-unscopables": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.flatmap": {+ "version": "1.3.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "define-properties": "^1.2.0",+ "es-abstract": "^1.22.1",+ "es-shim-unscopables": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/array.prototype.toreversed": {+ "version": "1.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "define-properties": "^1.2.0",+ "es-abstract": "^1.22.1",+ "es-shim-unscopables": "^1.0.0"+ }+ },+ "node_modules/array.prototype.tosorted": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.3",+ "es-errors": "^1.3.0",+ "es-shim-unscopables": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/arraybuffer.prototype.slice": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.1",+ "call-bind": "^1.0.5",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.22.3",+ "es-errors": "^1.2.1",+ "get-intrinsic": "^1.2.3",+ "is-array-buffer": "^3.0.4",+ "is-shared-array-buffer": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/ast-types-flow": {+ "version": "0.0.8",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "license": "MIT"+ },+ "node_modules/available-typed-arrays": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/axe-core": {+ "version": "4.9.1",+ "dev": true,+ "license": "MPL-2.0",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/axobject-query": {+ "version": "3.1.1",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "deep-equal": "^2.0.5"+ }+ },+ "node_modules/bail": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "license": "MIT"+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/brace-expansion": {+ "version": "1.1.11",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/busboy": {+ "version": "1.6.0",+ "dependencies": {+ "streamsearch": "^1.1.0"+ },+ "engines": {+ "node": ">=10.16.0"+ }+ },+ "node_modules/call-bind": {+ "version": "1.0.7",+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "set-function-length": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/callsites": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/camelcase-css": {+ "version": "2.0.1",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/caniuse-lite": {+ "version": "1.0.30001642",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/browserslist"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "CC-BY-4.0"+ },+ "node_modules/ccount": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chalk": {+ "version": "4.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/character-entities": {+ "version": "1.2.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-html4": {+ "version": "2.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-entities-legacy": {+ "version": "1.1.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/character-reference-invalid": {+ "version": "1.1.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/chokidar": {+ "version": "3.6.0",+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/cjs-module-lexer": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz",+ "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA=="+ },+ "node_modules/class-variance-authority": {+ "version": "0.7.0",+ "license": "Apache-2.0",+ "dependencies": {+ "clsx": "2.0.0"+ },+ "funding": {+ "url": "https://joebell.co.uk"+ }+ },+ "node_modules/class-variance-authority/node_modules/clsx": {+ "version": "2.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/client-only": {+ "version": "0.0.1",+ "license": "MIT"+ },+ "node_modules/clsx": {+ "version": "2.1.1",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/cmdk": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/cmdk/-/cmdk-1.0.0.tgz",+ "integrity": "sha512-gDzVf0a09TvoJ5jnuPvygTB77+XdOSwEmJ88L6XPFPlv7T3RxbP9jgenfylrAMD0+Le1aO0nVjQUzl2g+vjz5Q==",+ "dependencies": {+ "@radix-ui/react-dialog": "1.0.5",+ "@radix-ui/react-primitive": "1.0.3"+ },+ "peerDependencies": {+ "react": "^18.0.0",+ "react-dom": "^18.0.0"+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/primitive": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.0.1.tgz",+ "integrity": "sha512-yQ8oGX2GVsEYMWGxcovu1uGWPCxV5BFfeeYxqPmuAzUyLT9qmaMXSAhXpb0WrspIeqYzdJpkh2vHModJPgRIaw==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-compose-refs": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.1.tgz",+ "integrity": "sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-context": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.0.1.tgz",+ "integrity": "sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-dialog": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.5.tgz",+ "integrity": "sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/primitive": "1.0.1",+ "@radix-ui/react-compose-refs": "1.0.1",+ "@radix-ui/react-context": "1.0.1",+ "@radix-ui/react-dismissable-layer": "1.0.5",+ "@radix-ui/react-focus-guards": "1.0.1",+ "@radix-ui/react-focus-scope": "1.0.4",+ "@radix-ui/react-id": "1.0.1",+ "@radix-ui/react-portal": "1.0.4",+ "@radix-ui/react-presence": "1.0.1",+ "@radix-ui/react-primitive": "1.0.3",+ "@radix-ui/react-slot": "1.0.2",+ "@radix-ui/react-use-controllable-state": "1.0.1",+ "aria-hidden": "^1.1.1",+ "react-remove-scroll": "2.5.5"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",+ "integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/primitive": "1.0.1",+ "@radix-ui/react-compose-refs": "1.0.1",+ "@radix-ui/react-primitive": "1.0.3",+ "@radix-ui/react-use-callback-ref": "1.0.1",+ "@radix-ui/react-use-escape-keydown": "1.0.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-focus-guards": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.0.1.tgz",+ "integrity": "sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-focus-scope": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz",+ "integrity": "sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.1",+ "@radix-ui/react-primitive": "1.0.3",+ "@radix-ui/react-use-callback-ref": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-id": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.0.1.tgz",+ "integrity": "sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-layout-effect": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-portal": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz",+ "integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-primitive": "1.0.3"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-presence": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.0.1.tgz",+ "integrity": "sha512-UXLW4UAbIY5ZjcvzjfRFo5gxva8QirC9hF7wRE4U5gz+TP0DbRk+//qyuAQ1McDxBt1xNMBTaciFGvEmJvAZCg==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.1",+ "@radix-ui/react-use-layout-effect": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-primitive": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-1.0.3.tgz",+ "integrity": "sha512-yi58uVyoAcK/Nq1inRY56ZSjKypBNKTa/1mcL8qdl6oJeEaDbOldlzrGn7P6Q3Id5d+SYNGc5AJgc4vGhjs5+g==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-slot": "1.0.2"+ },+ "peerDependencies": {+ "@types/react": "*",+ "@types/react-dom": "*",+ "react": "^16.8 || ^17.0 || ^18.0",+ "react-dom": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ },+ "@types/react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-slot": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.0.2.tgz",+ "integrity": "sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-compose-refs": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-use-callback-ref": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.1.tgz",+ "integrity": "sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-use-controllable-state": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.1.tgz",+ "integrity": "sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-callback-ref": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-use-escape-keydown": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.3.tgz",+ "integrity": "sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==",+ "dependencies": {+ "@babel/runtime": "^7.13.10",+ "@radix-ui/react-use-callback-ref": "1.0.1"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/@radix-ui/react-use-layout-effect": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.1.tgz",+ "integrity": "sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==",+ "dependencies": {+ "@babel/runtime": "^7.13.10"+ },+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.8 || ^17.0 || ^18.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/cmdk/node_modules/react-remove-scroll": {+ "version": "2.5.5",+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",+ "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.3",+ "react-style-singleton": "^2.2.1",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.0",+ "use-sidecar": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/code-red": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",+ "integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",+ "peer": true,+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.4.15",+ "@types/estree": "^1.0.1",+ "acorn": "^8.10.0",+ "estree-walker": "^3.0.3",+ "periscopic": "^3.1.0"+ }+ },+ "node_modules/code-red/node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "peer": true,+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "license": "MIT"+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/comma-separated-tokens": {+ "version": "2.0.3",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/commander": {+ "version": "4.1.1",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/cookie": {+ "version": "0.7.0",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.0.tgz",+ "integrity": "sha512-qCf+V4dtlNhSRXGAZatc1TasyFO6GjohcOul807YOb5ik3+kQSnb4d7iajeCL8QHaJ4uZEjCgiCJerKXwdRVlQ==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cross-spawn": {+ "version": "7.0.3",+ "license": "MIT",+ "dependencies": {+ "path-key": "^3.1.0",+ "shebang-command": "^2.0.0",+ "which": "^2.0.1"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/crypto-js": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",+ "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="+ },+ "node_modules/css-tree": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",+ "integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",+ "peer": true,+ "dependencies": {+ "mdn-data": "2.0.30",+ "source-map-js": "^1.0.1"+ },+ "engines": {+ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"+ }+ },+ "node_modules/cssesc": {+ "version": "3.0.0",+ "license": "MIT",+ "bin": {+ "cssesc": "bin/cssesc"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/csstype": {+ "version": "3.1.3",+ "license": "MIT"+ },+ "node_modules/damerau-levenshtein": {+ "version": "1.0.8",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/data-view-buffer": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.6",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/data-view-byte-length": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/data-view-byte-offset": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.6",+ "es-errors": "^1.3.0",+ "is-data-view": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/date-fns": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz",+ "integrity": "sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/kossnocorp"+ }+ },+ "node_modules/debug": {+ "version": "4.3.5",+ "license": "MIT",+ "dependencies": {+ "ms": "2.1.2"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decode-named-character-reference": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/decode-named-character-reference/node_modules/character-entities": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/deep-equal": {+ "version": "2.2.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.0",+ "call-bind": "^1.0.5",+ "es-get-iterator": "^1.1.3",+ "get-intrinsic": "^1.2.2",+ "is-arguments": "^1.1.1",+ "is-array-buffer": "^3.0.2",+ "is-date-object": "^1.0.5",+ "is-regex": "^1.1.4",+ "is-shared-array-buffer": "^1.0.2",+ "isarray": "^2.0.5",+ "object-is": "^1.1.5",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.4",+ "regexp.prototype.flags": "^1.5.1",+ "side-channel": "^1.0.4",+ "which-boxed-primitive": "^1.0.2",+ "which-collection": "^1.0.1",+ "which-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/deep-is": {+ "version": "0.1.4",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/define-data-property": {+ "version": "1.1.4",+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/define-properties": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.0.1",+ "has-property-descriptors": "^1.0.0",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/deps-analyzer": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/deps-analyzer/-/deps-analyzer-1.0.2.tgz",+ "integrity": "sha512-yTq6cuqVsVdnSeNgg1GfwiCvLXl219sv+YRwHmOSEsdMNsPLwkNq0/WdFtWdq5cA4QPAink+R591EzJ1R0ZVPw==",+ "dev": true,+ "dependencies": {+ "match-require": "^2.1.0"+ }+ },+ "node_modules/dequal": {+ "version": "2.0.3",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/detect-node-es": {+ "version": "1.1.0",+ "license": "MIT"+ },+ "node_modules/devlop": {+ "version": "1.1.0",+ "license": "MIT",+ "dependencies": {+ "dequal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/didyoumean": {+ "version": "1.2.2",+ "license": "Apache-2.0"+ },+ "node_modules/diff-match-patch": {+ "version": "1.0.5",+ "license": "Apache-2.0"+ },+ "node_modules/dir-glob": {+ "version": "3.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-type": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/dlv": {+ "version": "1.1.3",+ "license": "MIT"+ },+ "node_modules/doctrine": {+ "version": "3.0.0",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/dot-case": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",+ "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",+ "dependencies": {+ "no-case": "^3.0.4",+ "tslib": "^2.0.3"+ }+ },+ "node_modules/eastasianwidth": {+ "version": "0.2.0",+ "license": "MIT"+ },+ "node_modules/emoji-regex": {+ "version": "9.2.2",+ "license": "MIT"+ },+ "node_modules/enhanced-resolve": {+ "version": "5.17.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "tapable": "^2.2.0"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/entities": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-5.0.0.tgz",+ "integrity": "sha512-BeJFvFRJddxobhvEdm5GqHzRV/X+ACeuw0/BuuxsCh1EUZcAIz8+kYmBp/LrQuloy6K1f3a0M7+IhmZ7QnkISA==",+ "peer": true,+ "engines": {+ "node": ">=0.12"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/es-abstract": {+ "version": "1.23.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-buffer-byte-length": "^1.0.1",+ "arraybuffer.prototype.slice": "^1.0.3",+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.7",+ "data-view-buffer": "^1.0.1",+ "data-view-byte-length": "^1.0.1",+ "data-view-byte-offset": "^1.0.0",+ "es-define-property": "^1.0.0",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "es-set-tostringtag": "^2.0.3",+ "es-to-primitive": "^1.2.1",+ "function.prototype.name": "^1.1.6",+ "get-intrinsic": "^1.2.4",+ "get-symbol-description": "^1.0.2",+ "globalthis": "^1.0.3",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.0.3",+ "has-symbols": "^1.0.3",+ "hasown": "^2.0.2",+ "internal-slot": "^1.0.7",+ "is-array-buffer": "^3.0.4",+ "is-callable": "^1.2.7",+ "is-data-view": "^1.0.1",+ "is-negative-zero": "^2.0.3",+ "is-regex": "^1.1.4",+ "is-shared-array-buffer": "^1.0.3",+ "is-string": "^1.0.7",+ "is-typed-array": "^1.1.13",+ "is-weakref": "^1.0.2",+ "object-inspect": "^1.13.1",+ "object-keys": "^1.1.1",+ "object.assign": "^4.1.5",+ "regexp.prototype.flags": "^1.5.2",+ "safe-array-concat": "^1.1.2",+ "safe-regex-test": "^1.0.3",+ "string.prototype.trim": "^1.2.9",+ "string.prototype.trimend": "^1.0.8",+ "string.prototype.trimstart": "^1.0.8",+ "typed-array-buffer": "^1.0.2",+ "typed-array-byte-length": "^1.0.1",+ "typed-array-byte-offset": "^1.0.2",+ "typed-array-length": "^1.0.6",+ "unbox-primitive": "^1.0.2",+ "which-typed-array": "^1.1.15"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.0",+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.2.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-get-iterator": {+ "version": "1.1.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "get-intrinsic": "^1.1.3",+ "has-symbols": "^1.0.3",+ "is-arguments": "^1.1.1",+ "is-map": "^2.0.2",+ "is-set": "^2.0.2",+ "is-string": "^1.0.7",+ "isarray": "^2.0.5",+ "stop-iteration-iterator": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/es-iterator-helpers": {+ "version": "1.0.19",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.3",+ "es-errors": "^1.3.0",+ "es-set-tostringtag": "^2.0.3",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "globalthis": "^1.0.3",+ "has-property-descriptors": "^1.0.2",+ "has-proto": "^1.0.3",+ "has-symbols": "^1.0.3",+ "internal-slot": "^1.0.7",+ "iterator.prototype": "^1.1.2",+ "safe-array-concat": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.2.4",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-shim-unscopables": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.0"+ }+ },+ "node_modules/es-to-primitive": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.1.4",+ "is-date-object": "^1.0.1",+ "is-symbol": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/escape-string-regexp": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/eslint": {+ "version": "8.57.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@eslint-community/eslint-utils": "^4.2.0",+ "@eslint-community/regexpp": "^4.6.1",+ "@eslint/eslintrc": "^2.1.4",+ "@eslint/js": "8.57.0",+ "@humanwhocodes/config-array": "^0.11.14",+ "@humanwhocodes/module-importer": "^1.0.1",+ "@nodelib/fs.walk": "^1.2.8",+ "@ungap/structured-clone": "^1.2.0",+ "ajv": "^6.12.4",+ "chalk": "^4.0.0",+ "cross-spawn": "^7.0.2",+ "debug": "^4.3.2",+ "doctrine": "^3.0.0",+ "escape-string-regexp": "^4.0.0",+ "eslint-scope": "^7.2.2",+ "eslint-visitor-keys": "^3.4.3",+ "espree": "^9.6.1",+ "esquery": "^1.4.2",+ "esutils": "^2.0.2",+ "fast-deep-equal": "^3.1.3",+ "file-entry-cache": "^6.0.1",+ "find-up": "^5.0.0",+ "glob-parent": "^6.0.2",+ "globals": "^13.19.0",+ "graphemer": "^1.4.0",+ "ignore": "^5.2.0",+ "imurmurhash": "^0.1.4",+ "is-glob": "^4.0.0",+ "is-path-inside": "^3.0.3",+ "js-yaml": "^4.1.0",+ "json-stable-stringify-without-jsonify": "^1.0.1",+ "levn": "^0.4.1",+ "lodash.merge": "^4.6.2",+ "minimatch": "^3.1.2",+ "natural-compare": "^1.4.0",+ "optionator": "^0.9.3",+ "strip-ansi": "^6.0.1",+ "text-table": "^0.2.0"+ },+ "bin": {+ "eslint": "bin/eslint.js"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-config-next": {+ "version": "14.2.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@next/eslint-plugin-next": "14.2.4",+ "@rushstack/eslint-patch": "^1.3.3",+ "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",+ "eslint-import-resolver-node": "^0.3.6",+ "eslint-import-resolver-typescript": "^3.5.2",+ "eslint-plugin-import": "^2.28.1",+ "eslint-plugin-jsx-a11y": "^6.7.1",+ "eslint-plugin-react": "^7.33.2",+ "eslint-plugin-react-hooks": "^4.5.0 || 5.0.0-canary-7118f5dd7-20230705"+ },+ "peerDependencies": {+ "eslint": "^7.23.0 || ^8.0.0",+ "typescript": ">=3.3.1"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-import-resolver-node": {+ "version": "0.3.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7",+ "is-core-module": "^2.13.0",+ "resolve": "^1.22.4"+ }+ },+ "node_modules/eslint-import-resolver-node/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "node_modules/eslint-import-resolver-typescript": {+ "version": "3.6.1",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "debug": "^4.3.4",+ "enhanced-resolve": "^5.12.0",+ "eslint-module-utils": "^2.7.4",+ "fast-glob": "^3.3.1",+ "get-tsconfig": "^4.5.0",+ "is-core-module": "^2.11.0",+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": "^14.18.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/unts/projects/eslint-import-resolver-ts"+ },+ "peerDependencies": {+ "eslint": "*",+ "eslint-plugin-import": "*"+ }+ },+ "node_modules/eslint-module-utils": {+ "version": "2.8.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "debug": "^3.2.7"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependenciesMeta": {+ "eslint": {+ "optional": true+ }+ }+ },+ "node_modules/eslint-module-utils/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "node_modules/eslint-plugin-import": {+ "version": "2.29.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-includes": "^3.1.7",+ "array.prototype.findlastindex": "^1.2.3",+ "array.prototype.flat": "^1.3.2",+ "array.prototype.flatmap": "^1.3.2",+ "debug": "^3.2.7",+ "doctrine": "^2.1.0",+ "eslint-import-resolver-node": "^0.3.9",+ "eslint-module-utils": "^2.8.0",+ "hasown": "^2.0.0",+ "is-core-module": "^2.13.1",+ "is-glob": "^4.0.3",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.7",+ "object.groupby": "^1.0.1",+ "object.values": "^1.1.7",+ "semver": "^6.3.1",+ "tsconfig-paths": "^3.15.0"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8"+ }+ },+ "node_modules/eslint-plugin-import/node_modules/debug": {+ "version": "3.2.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.1"+ }+ },+ "node_modules/eslint-plugin-import/node_modules/doctrine": {+ "version": "2.1.0",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/eslint-plugin-jsx-a11y": {+ "version": "6.9.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "aria-query": "~5.1.3",+ "array-includes": "^3.1.8",+ "array.prototype.flatmap": "^1.3.2",+ "ast-types-flow": "^0.0.8",+ "axe-core": "^4.9.1",+ "axobject-query": "~3.1.1",+ "damerau-levenshtein": "^1.0.8",+ "emoji-regex": "^9.2.2",+ "es-iterator-helpers": "^1.0.19",+ "hasown": "^2.0.2",+ "jsx-ast-utils": "^3.3.5",+ "language-tags": "^1.0.9",+ "minimatch": "^3.1.2",+ "object.fromentries": "^2.0.8",+ "safe-regex-test": "^1.0.3",+ "string.prototype.includes": "^2.0.0"+ },+ "engines": {+ "node": ">=4.0"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"+ }+ },+ "node_modules/eslint-plugin-react": {+ "version": "7.34.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-includes": "^3.1.8",+ "array.prototype.findlast": "^1.2.5",+ "array.prototype.flatmap": "^1.3.2",+ "array.prototype.toreversed": "^1.1.2",+ "array.prototype.tosorted": "^1.1.4",+ "doctrine": "^2.1.0",+ "es-iterator-helpers": "^1.0.19",+ "estraverse": "^5.3.0",+ "hasown": "^2.0.2",+ "jsx-ast-utils": "^2.4.1 || ^3.0.0",+ "minimatch": "^3.1.2",+ "object.entries": "^1.1.8",+ "object.fromentries": "^2.0.8",+ "object.values": "^1.2.0",+ "prop-types": "^15.8.1",+ "resolve": "^2.0.0-next.5",+ "semver": "^6.3.1",+ "string.prototype.matchall": "^4.0.11",+ "string.prototype.repeat": "^1.0.0"+ },+ "engines": {+ "node": ">=4"+ },+ "peerDependencies": {+ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"+ }+ },+ "node_modules/eslint-plugin-react-hooks": {+ "version": "4.6.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"+ }+ },+ "node_modules/eslint-plugin-react/node_modules/doctrine": {+ "version": "2.1.0",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "esutils": "^2.0.2"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/eslint-plugin-react/node_modules/resolve": {+ "version": "2.0.0-next.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.13.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/eslint-scope": {+ "version": "7.2.2",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint-visitor-keys": {+ "version": "3.4.3",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/espree": {+ "version": "9.6.1",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "acorn": "^8.9.0",+ "acorn-jsx": "^5.3.2",+ "eslint-visitor-keys": "^3.4.1"+ },+ "engines": {+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/esquery": {+ "version": "1.6.0",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "estraverse": "^5.1.0"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/esrecurse": {+ "version": "4.3.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "estraverse": "^5.2.0"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estraverse": {+ "version": "5.3.0",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/estree-util-is-identifier-name": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/estree-walker": {+ "version": "2.0.2",+ "license": "MIT",+ "peer": true+ },+ "node_modules/esutils": {+ "version": "2.0.3",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/event-target-shim": {+ "version": "5.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/eventsource-parser": {+ "version": "1.1.2",+ "license": "MIT",+ "engines": {+ "node": ">=14.18"+ }+ },+ "node_modules/extend": {+ "version": "3.0.2",+ "license": "MIT"+ },+ "node_modules/ezheaders": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/ezheaders/-/ezheaders-0.1.0.tgz",+ "integrity": "sha512-U0wdCs2dS+IzFuxyHGyw1aWhiunW22sGqnyH4yQsovkgqUvO4YSbzQ5BQzV6HY4oFlNnK+TbFGJj8rvvX5aN7w==",+ "peerDependencies": {+ "next": "^13.5.4 || ^14 || ^15"+ }+ },+ "node_modules/fast-deep-equal": {+ "version": "3.1.3",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-glob": {+ "version": "3.3.2",+ "license": "MIT",+ "dependencies": {+ "@nodelib/fs.stat": "^2.0.2",+ "@nodelib/fs.walk": "^1.2.3",+ "glob-parent": "^5.1.2",+ "merge2": "^1.3.0",+ "micromatch": "^4.0.4"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/fast-json-stable-stringify": {+ "version": "2.1.0",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fast-levenshtein": {+ "version": "2.0.6",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/fastq": {+ "version": "1.17.1",+ "license": "ISC",+ "dependencies": {+ "reusify": "^1.0.4"+ }+ },+ "node_modules/fault": {+ "version": "1.0.4",+ "license": "MIT",+ "dependencies": {+ "format": "^0.2.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/fflate": {+ "version": "0.4.8",+ "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.8.tgz",+ "integrity": "sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA=="+ },+ "node_modules/file-entry-cache": {+ "version": "6.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flat-cache": "^3.0.4"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/find-up": {+ "version": "5.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "locate-path": "^6.0.0",+ "path-exists": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/flat-cache": {+ "version": "3.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "flatted": "^3.2.9",+ "keyv": "^4.5.3",+ "rimraf": "^3.0.2"+ },+ "engines": {+ "node": "^10.12.0 || >=12.0.0"+ }+ },+ "node_modules/flatted": {+ "version": "3.3.1",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/for-each": {+ "version": "0.3.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-callable": "^1.1.3"+ }+ },+ "node_modules/foreground-child": {+ "version": "3.2.1",+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.0",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/form-data": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data-encoder": {+ "version": "1.7.2",+ "license": "MIT"+ },+ "node_modules/format": {+ "version": "0.2.2",+ "engines": {+ "node": ">=0.4.x"+ }+ },+ "node_modules/formdata-node": {+ "version": "4.4.1",+ "license": "MIT",+ "dependencies": {+ "node-domexception": "1.0.0",+ "web-streams-polyfill": "4.0.0-beta.3"+ },+ "engines": {+ "node": ">= 12.20"+ }+ },+ "node_modules/formdata-node/node_modules/web-streams-polyfill": {+ "version": "4.0.0-beta.3",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/framer-motion": {+ "version": "11.5.4",+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.5.4.tgz",+ "integrity": "sha512-E+tb3/G6SO69POkdJT+3EpdMuhmtCh9EWuK4I1DnIC23L7tFPrl8vxP+LSovwaw6uUr73rUbpb4FgK011wbRJQ==",+ "dependencies": {+ "tslib": "^2.4.0"+ },+ "peerDependencies": {+ "@emotion/is-prop-valid": "*",+ "react": "^18.0.0",+ "react-dom": "^18.0.0"+ },+ "peerDependenciesMeta": {+ "@emotion/is-prop-valid": {+ "optional": true+ },+ "react": {+ "optional": true+ },+ "react-dom": {+ "optional": true+ }+ }+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/function.prototype.name": {+ "version": "1.1.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "define-properties": "^1.2.0",+ "es-abstract": "^1.22.1",+ "functions-have-names": "^1.2.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/functions-have-names": {+ "version": "1.2.3",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.2.4",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "has-proto": "^1.0.1",+ "has-symbols": "^1.0.3",+ "hasown": "^2.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-nonce": {+ "version": "1.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/get-symbol-description": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.5",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.7.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/glob": {+ "version": "10.3.10",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^2.3.5",+ "minimatch": "^9.0.1",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0",+ "path-scurry": "^1.10.1"+ },+ "bin": {+ "glob": "dist/esm/bin.mjs"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob-parent": {+ "version": "6.0.2",+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.3"+ },+ "engines": {+ "node": ">=10.13.0"+ }+ },+ "node_modules/glob-to-regexp": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz",+ "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="+ },+ "node_modules/glob/node_modules/minimatch": {+ "version": "9.0.5",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/glob/node_modules/minimatch/node_modules/brace-expansion": {+ "version": "2.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/globals": {+ "version": "13.24.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "type-fest": "^0.20.2"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/globalthis": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.2.1",+ "gopd": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/globby": {+ "version": "11.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/gopd": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "get-intrinsic": "^1.1.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.11",+ "license": "ISC"+ },+ "node_modules/graphemer": {+ "version": "1.4.0",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/has-bigints": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-flag": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/has-property-descriptors": {+ "version": "1.0.2",+ "license": "MIT",+ "dependencies": {+ "es-define-property": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-proto": {+ "version": "1.0.3",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.0.3",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hast-util-parse-selector": {+ "version": "2.2.5",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-to-jsx-runtime": {+ "version": "2.3.0",+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/unist": "^3.0.0",+ "comma-separated-tokens": "^2.0.0",+ "devlop": "^1.0.0",+ "estree-util-is-identifier-name": "^3.0.0",+ "hast-util-whitespace": "^3.0.0",+ "mdast-util-mdx-expression": "^2.0.0",+ "mdast-util-mdx-jsx": "^3.0.0",+ "mdast-util-mdxjs-esm": "^2.0.0",+ "property-information": "^6.0.0",+ "space-separated-tokens": "^2.0.0",+ "style-to-object": "^1.0.0",+ "unist-util-position": "^5.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hast-util-whitespace": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hastscript": {+ "version": "6.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^2.0.0",+ "comma-separated-tokens": "^1.0.0",+ "hast-util-parse-selector": "^2.0.0",+ "property-information": "^5.0.0",+ "space-separated-tokens": "^1.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/hastscript/node_modules/@types/hast": {+ "version": "2.3.10",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2"+ }+ },+ "node_modules/hastscript/node_modules/@types/hast/node_modules/@types/unist": {+ "version": "2.0.10",+ "license": "MIT"+ },+ "node_modules/hastscript/node_modules/comma-separated-tokens": {+ "version": "1.0.8",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/hastscript/node_modules/property-information": {+ "version": "5.6.0",+ "license": "MIT",+ "dependencies": {+ "xtend": "^4.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/hastscript/node_modules/space-separated-tokens": {+ "version": "1.1.5",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/highlight.js": {+ "version": "10.7.3",+ "license": "BSD-3-Clause",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/html-url-attributes": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/humanize-ms": {+ "version": "1.2.1",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.0.0"+ }+ },+ "node_modules/ignore": {+ "version": "5.3.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/immediate": {+ "version": "3.0.6",+ "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz",+ "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="+ },+ "node_modules/import-fresh": {+ "version": "3.3.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "parent-module": "^1.0.0",+ "resolve-from": "^4.0.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/import-in-the-middle": {+ "version": "1.11.2",+ "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.11.2.tgz",+ "integrity": "sha512-gK6Rr6EykBcc6cVWRSBR5TWf8nn6hZMYSRYqCcHa0l0d1fPK7JSYo6+Mlmck76jIX9aL/IZ71c06U2VpFwl1zA==",+ "dependencies": {+ "acorn": "^8.8.2",+ "acorn-import-attributes": "^1.9.5",+ "cjs-module-lexer": "^1.2.2",+ "module-details-from-path": "^1.0.3"+ }+ },+ "node_modules/imurmurhash": {+ "version": "0.1.4",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.19"+ }+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/inline-style-parser": {+ "version": "0.2.3",+ "license": "MIT"+ },+ "node_modules/internal-slot": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "hasown": "^2.0.0",+ "side-channel": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/invariant": {+ "version": "2.2.4",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.0.0"+ }+ },+ "node_modules/is-alphabetical": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-alphanumerical": {+ "version": "1.0.4",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^1.0.0",+ "is-decimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-arguments": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-array-buffer": {+ "version": "3.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "get-intrinsic": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-async-function": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-bigint": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-bigints": "^1.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-boolean-object": {+ "version": "1.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-callable": {+ "version": "1.2.7",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.15.0",+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-data-view": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-date-object": {+ "version": "1.0.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-decimal": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-finalizationregistry": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-generator-function": {+ "version": "1.0.10",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-hexadecimal": {+ "version": "1.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/is-map": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-negative-zero": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-number-object": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-path-inside": {+ "version": "3.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-plain-obj": {+ "version": "4.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-regex": {+ "version": "1.1.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-set": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-shared-array-buffer": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-string": {+ "version": "1.0.7",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-tostringtag": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-symbol": {+ "version": "1.0.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-typed-array": {+ "version": "1.1.13",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "which-typed-array": "^1.1.14"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakmap": {+ "version": "2.0.2",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakref": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-weakset": {+ "version": "2.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "get-intrinsic": "^1.2.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/isarray": {+ "version": "2.0.5",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/isexe": {+ "version": "2.0.0",+ "license": "ISC"+ },+ "node_modules/iterator.prototype": {+ "version": "1.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.2.1",+ "get-intrinsic": "^1.2.1",+ "has-symbols": "^1.0.3",+ "reflect.getprototypeof": "^1.0.4",+ "set-function-name": "^2.0.1"+ }+ },+ "node_modules/jackspeak": {+ "version": "2.3.6",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/jiti": {+ "version": "1.21.6",+ "license": "MIT",+ "bin": {+ "jiti": "bin/jiti.js"+ }+ },+ "node_modules/js-cookie": {+ "version": "3.0.5",+ "resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz",+ "integrity": "sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/js-levenshtein": {+ "version": "1.1.6",+ "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz",+ "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "license": "MIT"+ },+ "node_modules/js-yaml": {+ "version": "4.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "argparse": "^2.0.1"+ },+ "bin": {+ "js-yaml": "bin/js-yaml.js"+ }+ },+ "node_modules/json-buffer": {+ "version": "3.0.1",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-schema": {+ "version": "0.4.0",+ "license": "(AFL-2.1 OR BSD-3-Clause)"+ },+ "node_modules/json-schema-traverse": {+ "version": "0.4.1",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json-stable-stringify-without-jsonify": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/json5": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "minimist": "^1.2.0"+ },+ "bin": {+ "json5": "lib/cli.js"+ }+ },+ "node_modules/jsondiffpatch": {+ "version": "0.6.0",+ "license": "MIT",+ "dependencies": {+ "@types/diff-match-patch": "^1.0.36",+ "chalk": "^5.3.0",+ "diff-match-patch": "^1.0.5"+ },+ "bin": {+ "jsondiffpatch": "bin/jsondiffpatch.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/jsondiffpatch/node_modules/chalk": {+ "version": "5.3.0",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/jsx-ast-utils": {+ "version": "3.3.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-includes": "^3.1.6",+ "array.prototype.flat": "^1.3.1",+ "object.assign": "^4.1.4",+ "object.values": "^1.1.6"+ },+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/katex": {+ "version": "0.16.11",+ "funding": [+ "https://opencollective.com/katex",+ "https://github.com/sponsors/katex"+ ],+ "license": "MIT",+ "dependencies": {+ "commander": "^8.3.0"+ },+ "bin": {+ "katex": "cli.js"+ }+ },+ "node_modules/katex/node_modules/commander": {+ "version": "8.3.0",+ "license": "MIT",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/keyv": {+ "version": "4.5.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"+ }+ },+ "node_modules/language-subtag-registry": {+ "version": "0.3.23",+ "dev": true,+ "license": "CC0-1.0"+ },+ "node_modules/language-tags": {+ "version": "1.0.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "language-subtag-registry": "^0.3.20"+ },+ "engines": {+ "node": ">=0.10"+ }+ },+ "node_modules/levn": {+ "version": "0.4.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1",+ "type-check": "~0.4.0"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/lie": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz",+ "integrity": "sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==",+ "dependencies": {+ "immediate": "~3.0.5"+ }+ },+ "node_modules/lilconfig": {+ "version": "2.1.0",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "1.2.4",+ "license": "MIT"+ },+ "node_modules/localforage": {+ "version": "1.10.0",+ "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.10.0.tgz",+ "integrity": "sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==",+ "dependencies": {+ "lie": "3.1.1"+ }+ },+ "node_modules/locate-character": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",+ "integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",+ "peer": true+ },+ "node_modules/locate-path": {+ "version": "6.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-locate": "^5.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/lodash": {+ "version": "4.17.21",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",+ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="+ },+ "node_modules/lodash.castarray": {+ "version": "4.4.0",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isplainobject": {+ "version": "4.0.6",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.merge": {+ "version": "4.6.2",+ "license": "MIT"+ },+ "node_modules/longest-streak": {+ "version": "3.1.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/loose-envify": {+ "version": "1.4.0",+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^3.0.0 || ^4.0.0"+ },+ "bin": {+ "loose-envify": "cli.js"+ }+ },+ "node_modules/lower-case": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",+ "integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",+ "dependencies": {+ "tslib": "^2.0.3"+ }+ },+ "node_modules/lowlight": {+ "version": "1.20.0",+ "license": "MIT",+ "dependencies": {+ "fault": "^1.0.0",+ "highlight.js": "~10.7.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/lru-cache": {+ "version": "10.4.3",+ "license": "ISC"+ },+ "node_modules/lucide-react": {+ "version": "0.414.0",+ "license": "ISC",+ "peerDependencies": {+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ }+ },+ "node_modules/magic-string": {+ "version": "0.30.10",+ "license": "MIT",+ "peer": true,+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.4.15"+ }+ },+ "node_modules/map-obj": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz",+ "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/markdown-table": {+ "version": "3.0.3",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/match-require": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/match-require/-/match-require-2.1.0.tgz",+ "integrity": "sha512-GH3yLnQbQ2bFGY2aRqc0r78LI1yZvmO56lcKLJswjRDIv0EvwTf9xalrWT1m5W3ShHuTAj2T1P/dSNuW5ytuXQ==",+ "dev": true,+ "dependencies": {+ "uuid": "^3.0.0"+ }+ },+ "node_modules/mdast-util-find-and-replace": {+ "version": "3.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "escape-string-regexp": "^5.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {+ "version": "5.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mdast-util-from-markdown": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark": "^4.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-gfm-autolink-literal": "^2.0.0",+ "mdast-util-gfm-footnote": "^2.0.0",+ "mdast-util-gfm-strikethrough": "^2.0.0",+ "mdast-util-gfm-table": "^2.0.0",+ "mdast-util-gfm-task-list-item": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-autolink-literal": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.0.0",+ "mdast-util-find-and-replace": "^3.0.0",+ "micromark-util-character": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-footnote": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-strikethrough": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-table": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "markdown-table": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-gfm-task-list-item": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-math": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.1.0",+ "unist-util-remove-position": "^5.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-expression": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-jsx": {+ "version": "3.1.2",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "ccount": "^2.0.0",+ "devlop": "^1.1.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "parse-entities": "^4.0.0",+ "stringify-entities": "^4.0.0",+ "unist-util-remove-position": "^5.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities": {+ "version": "4.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^2.0.0",+ "character-entities": "^2.0.0",+ "character-entities-legacy": "^3.0.0",+ "character-reference-invalid": "^2.0.0",+ "decode-named-character-reference": "^1.0.0",+ "is-alphanumerical": "^2.0.0",+ "is-decimal": "^2.0.0",+ "is-hexadecimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/@types/unist": {+ "version": "2.0.10",+ "license": "MIT"+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/character-entities": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/character-reference-invalid": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/is-alphanumerical": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "is-alphabetical": "^2.0.0",+ "is-decimal": "^2.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/is-alphanumerical/node_modules/is-alphabetical": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/is-decimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdx-jsx/node_modules/parse-entities/node_modules/is-hexadecimal": {+ "version": "2.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/mdast-util-mdxjs-esm": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/estree-jsx": "^1.0.0",+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "devlop": "^1.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "mdast-util-to-markdown": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-phrasing": {+ "version": "4.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-hast": {+ "version": "13.2.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "@ungap/structured-clone": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "trim-lines": "^3.0.0",+ "unist-util-position": "^5.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-markdown": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "@types/unist": "^3.0.0",+ "longest-streak": "^3.0.0",+ "mdast-util-phrasing": "^4.0.0",+ "mdast-util-to-string": "^4.0.0",+ "micromark-util-decode-string": "^2.0.0",+ "unist-util-visit": "^5.0.0",+ "zwitch": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdast-util-to-string": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/mdn-data": {+ "version": "2.0.30",+ "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",+ "integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",+ "peer": true+ },+ "node_modules/merge2": {+ "version": "1.4.1",+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/micromark": {+ "version": "4.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "@types/debug": "^4.0.0",+ "debug": "^4.0.0",+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-core-commonmark": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "devlop": "^1.0.0",+ "micromark-factory-destination": "^2.0.0",+ "micromark-factory-label": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-factory-title": "^2.0.0",+ "micromark-factory-whitespace": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-html-tag-name": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-subtokenize": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-extension-gfm": {+ "version": "3.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-extension-gfm-autolink-literal": "^2.0.0",+ "micromark-extension-gfm-footnote": "^2.0.0",+ "micromark-extension-gfm-strikethrough": "^2.0.0",+ "micromark-extension-gfm-table": "^2.0.0",+ "micromark-extension-gfm-tagfilter": "^2.0.0",+ "micromark-extension-gfm-task-list-item": "^2.0.0",+ "micromark-util-combine-extensions": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-autolink-literal": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-footnote": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-core-commonmark": "^2.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-normalize-identifier": "^2.0.0",+ "micromark-util-sanitize-uri": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-strikethrough": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-classify-character": "^2.0.0",+ "micromark-util-resolve-all": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-table": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-tagfilter": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-gfm-task-list-item": {+ "version": "2.1.0",+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-extension-math": {+ "version": "3.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/katex": "^0.16.0",+ "devlop": "^1.0.0",+ "katex": "^0.16.0",+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/micromark-factory-destination": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-label": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-space": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-title": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-factory-whitespace": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-factory-space": "^2.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-character": {+ "version": "2.1.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-chunked": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-classify-character": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-combine-extensions": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-numeric-character-reference": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-decode-string": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decode-named-character-reference": "^1.0.0",+ "micromark-util-character": "^2.0.0",+ "micromark-util-decode-numeric-character-reference": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-encode": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-html-tag-name": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-normalize-identifier": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-resolve-all": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-sanitize-uri": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "micromark-util-character": "^2.0.0",+ "micromark-util-encode": "^2.0.0",+ "micromark-util-symbol": "^2.0.0"+ }+ },+ "node_modules/micromark-util-subtokenize": {+ "version": "2.0.1",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "devlop": "^1.0.0",+ "micromark-util-chunked": "^2.0.0",+ "micromark-util-symbol": "^2.0.0",+ "micromark-util-types": "^2.0.0"+ }+ },+ "node_modules/micromark-util-symbol": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromark-util-types": {+ "version": "2.0.0",+ "funding": [+ {+ "type": "GitHub Sponsors",+ "url": "https://github.com/sponsors/unifiedjs"+ },+ {+ "type": "OpenCollective",+ "url": "https://opencollective.com/unified"+ }+ ],+ "license": "MIT"+ },+ "node_modules/micromatch": {+ "version": "4.0.7",+ "license": "MIT",+ "dependencies": {+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"+ },+ "engines": {+ "node": ">=8.6"+ }+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/minimatch": {+ "version": "3.1.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.8",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.2",+ "license": "ISC",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/module-details-from-path": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.3.tgz",+ "integrity": "sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A=="+ },+ "node_modules/ms": {+ "version": "2.1.2",+ "license": "MIT"+ },+ "node_modules/mz": {+ "version": "2.7.0",+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.7",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/natural-compare": {+ "version": "1.4.0",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/next": {+ "version": "14.2.4",+ "license": "MIT",+ "dependencies": {+ "@next/env": "14.2.4",+ "@swc/helpers": "0.5.5",+ "busboy": "1.6.0",+ "caniuse-lite": "^1.0.30001579",+ "graceful-fs": "^4.2.11",+ "postcss": "8.4.31",+ "styled-jsx": "5.1.1"+ },+ "bin": {+ "next": "dist/bin/next"+ },+ "engines": {+ "node": ">=18.17.0"+ },+ "optionalDependencies": {+ "@next/swc-darwin-arm64": "14.2.4",+ "@next/swc-darwin-x64": "14.2.4",+ "@next/swc-linux-arm64-gnu": "14.2.4",+ "@next/swc-linux-arm64-musl": "14.2.4",+ "@next/swc-linux-x64-gnu": "14.2.4",+ "@next/swc-linux-x64-musl": "14.2.4",+ "@next/swc-win32-arm64-msvc": "14.2.4",+ "@next/swc-win32-ia32-msvc": "14.2.4",+ "@next/swc-win32-x64-msvc": "14.2.4"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.1.0",+ "@playwright/test": "^1.41.2",+ "react": "^18.2.0",+ "react-dom": "^18.2.0",+ "sass": "^1.3.0"+ },+ "peerDependenciesMeta": {+ "@opentelemetry/api": {+ "optional": true+ },+ "@playwright/test": {+ "optional": true+ },+ "sass": {+ "optional": true+ }+ }+ },+ "node_modules/next/node_modules/postcss": {+ "version": "8.4.31",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.6",+ "picocolors": "^1.0.0",+ "source-map-js": "^1.0.2"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/no-case": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",+ "integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",+ "dependencies": {+ "lower-case": "^2.0.2",+ "tslib": "^2.0.3"+ }+ },+ "node_modules/node-domexception": {+ "version": "1.0.0",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "github",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=10.5.0"+ }+ },+ "node_modules/node-fetch": {+ "version": "2.7.0",+ "license": "MIT",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-hash": {+ "version": "3.0.0",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.2",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object-is": {+ "version": "1.1.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object-keys": {+ "version": "1.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.assign": {+ "version": "4.1.5",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.5",+ "define-properties": "^1.2.1",+ "has-symbols": "^1.0.3",+ "object-keys": "^1.1.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.entries": {+ "version": "1.1.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.fromentries": {+ "version": "2.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/object.groupby": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/object.values": {+ "version": "1.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/ollama-ai-provider": {+ "version": "0.11.0",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "0.0.14",+ "@ai-sdk/provider-utils": "1.0.5",+ "partial-json": "0.1.7"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/ollama-ai-provider/node_modules/@ai-sdk/provider": {+ "version": "0.0.14",+ "license": "Apache-2.0",+ "dependencies": {+ "json-schema": "0.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/ollama-ai-provider/node_modules/@ai-sdk/provider-utils": {+ "version": "1.0.5",+ "license": "Apache-2.0",+ "dependencies": {+ "@ai-sdk/provider": "0.0.14",+ "eventsource-parser": "1.1.2",+ "nanoid": "3.3.6",+ "secure-json-parse": "2.7.0"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "zod": "^3.0.0"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/ollama-ai-provider/node_modules/@ai-sdk/provider-utils/node_modules/nanoid": {+ "version": "3.3.6",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/openai": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/openai/-/openai-4.59.0.tgz",+ "integrity": "sha512-3bn7FypMt2R1ZDuO0+GcXgBEnVFhIzrpUkb47pQRoYvyfdZ2fQXcuP14aOc4C8F9FvCtZ/ElzJmVzVqnP4nHNg==",+ "dependencies": {+ "@types/node": "^18.11.18",+ "@types/node-fetch": "^2.6.4",+ "@types/qs": "^6.9.15",+ "abort-controller": "^3.0.0",+ "agentkeepalive": "^4.2.1",+ "form-data-encoder": "1.7.2",+ "formdata-node": "^4.3.2",+ "node-fetch": "^2.6.7",+ "qs": "^6.10.3"+ },+ "bin": {+ "openai": "bin/cli"+ },+ "peerDependencies": {+ "zod": "^3.23.8"+ },+ "peerDependenciesMeta": {+ "zod": {+ "optional": true+ }+ }+ },+ "node_modules/openai/node_modules/@types/node": {+ "version": "18.19.42",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/optionator": {+ "version": "0.9.4",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "deep-is": "^0.1.3",+ "fast-levenshtein": "^2.0.6",+ "levn": "^0.4.1",+ "prelude-ls": "^1.2.1",+ "type-check": "^0.4.0",+ "word-wrap": "^1.2.5"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/p-limit": {+ "version": "3.1.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "yocto-queue": "^0.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/p-locate": {+ "version": "5.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "p-limit": "^3.0.2"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/package-json-from-dist": {+ "version": "1.0.0",+ "license": "BlueOak-1.0.0"+ },+ "node_modules/parent-module": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "callsites": "^3.0.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/parse-entities": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "character-entities": "^1.0.0",+ "character-entities-legacy": "^1.0.0",+ "character-reference-invalid": "^1.0.0",+ "is-alphanumerical": "^1.0.0",+ "is-decimal": "^1.0.0",+ "is-hexadecimal": "^1.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/partial-json": {+ "version": "0.1.7",+ "license": "MIT"+ },+ "node_modules/path-exists": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-key": {+ "version": "3.1.1",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "license": "MIT"+ },+ "node_modules/path-scurry": {+ "version": "1.11.1",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-type": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/periscopic": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",+ "integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",+ "peer": true,+ "dependencies": {+ "@types/estree": "^1.0.0",+ "estree-walker": "^3.0.0",+ "is-reference": "^3.0.0"+ }+ },+ "node_modules/periscopic/node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "peer": true,+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/periscopic/node_modules/is-reference": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",+ "integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",+ "peer": true,+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/picocolors": {+ "version": "1.0.1",+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pify": {+ "version": "2.3.0",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.6",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/possible-typed-array-names": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/postcss": {+ "version": "8.4.41",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.41.tgz",+ "integrity": "sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "dependencies": {+ "nanoid": "^3.3.7",+ "picocolors": "^1.0.1",+ "source-map-js": "^1.2.0"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-import": {+ "version": "15.1.0",+ "license": "MIT",+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },+ "node_modules/postcss-js": {+ "version": "4.0.1",+ "license": "MIT",+ "dependencies": {+ "camelcase-css": "^2.0.1"+ },+ "engines": {+ "node": "^12 || ^14 || >= 16"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.4.21"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "4.0.2",+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.0.0",+ "yaml": "^2.3.4"+ },+ "engines": {+ "node": ">= 14"+ },+ "peerDependencies": {+ "postcss": ">=8.0.9",+ "ts-node": ">=9.0.0"+ },+ "peerDependenciesMeta": {+ "postcss": {+ "optional": true+ },+ "ts-node": {+ "optional": true+ }+ }+ },+ "node_modules/postcss-load-config/node_modules/lilconfig": {+ "version": "3.1.2",+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/postcss-nested": {+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "postcss-selector-parser": "^6.0.11"+ },+ "engines": {+ "node": ">=12.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },+ "node_modules/postcss-nested/node_modules/postcss-selector-parser": {+ "version": "6.1.1",+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-selector-parser": {+ "version": "6.0.10",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postcss-value-parser": {+ "version": "4.2.0",+ "license": "MIT"+ },+ "node_modules/posthog-js": {+ "version": "1.155.0",+ "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.155.0.tgz",+ "integrity": "sha512-gxi72Qcp7Vnq6efe5gNxsq84zyEFd33NUmoLSgcbMPhxU30qgc89Aw/N2mRB4mGrD3Mq0rCnDJUzGFdN59nR0g==",+ "dependencies": {+ "fflate": "^0.4.8",+ "preact": "^10.19.3",+ "web-vitals": "^4.0.1"+ }+ },+ "node_modules/preact": {+ "version": "10.23.2",+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.23.2.tgz",+ "integrity": "sha512-kKYfePf9rzKnxOAKDpsWhg/ysrHPqT+yQ7UW4JjdnqjFIeNUnNcEJvhuA8fDenxAGWzUqtd51DfVg7xp/8T9NA==",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/preact"+ }+ },+ "node_modules/prelude-ls": {+ "version": "1.2.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/prismjs": {+ "version": "1.29.0",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/prop-types": {+ "version": "15.8.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.4.0",+ "object-assign": "^4.1.1",+ "react-is": "^16.13.1"+ }+ },+ "node_modules/property-information": {+ "version": "6.5.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/punycode": {+ "version": "2.3.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/qs": {+ "version": "6.13.0",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",+ "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",+ "dependencies": {+ "side-channel": "^1.0.6"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/queue-microtask": {+ "version": "1.2.3",+ "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"+ },+ "node_modules/react": {+ "version": "18.3.1",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/react-day-picker": {+ "version": "8.10.1",+ "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.10.1.tgz",+ "integrity": "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==",+ "funding": {+ "type": "individual",+ "url": "https://github.com/sponsors/gpbl"+ },+ "peerDependencies": {+ "date-fns": "^2.28.0 || ^3.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ }+ },+ "node_modules/react-dom": {+ "version": "18.3.1",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0",+ "scheduler": "^0.23.2"+ },+ "peerDependencies": {+ "react": "^18.3.1"+ }+ },+ "node_modules/react-is": {+ "version": "16.13.1",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/react-markdown": {+ "version": "9.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "devlop": "^1.0.0",+ "hast-util-to-jsx-runtime": "^2.0.0",+ "html-url-attributes": "^3.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "remark-parse": "^11.0.0",+ "remark-rehype": "^11.0.0",+ "unified": "^11.0.0",+ "unist-util-visit": "^5.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ },+ "peerDependencies": {+ "@types/react": ">=18",+ "react": ">=18"+ }+ },+ "node_modules/react-remove-scroll": {+ "version": "2.5.7",+ "license": "MIT",+ "dependencies": {+ "react-remove-scroll-bar": "^2.3.4",+ "react-style-singleton": "^2.2.1",+ "tslib": "^2.1.0",+ "use-callback-ref": "^1.3.0",+ "use-sidecar": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-remove-scroll-bar": {+ "version": "2.3.6",+ "license": "MIT",+ "dependencies": {+ "react-style-singleton": "^2.2.1",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-resizable-panels": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-2.1.7.tgz",+ "integrity": "sha512-JtT6gI+nURzhMYQYsx8DKkx6bSoOGFp7A3CwMrOb8y5jFHFyqwo9m68UhmXRw57fRVJksFn1TSlm3ywEQ9vMgA==",+ "peerDependencies": {+ "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc",+ "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"+ }+ },+ "node_modules/react-style-singleton": {+ "version": "2.2.1",+ "license": "MIT",+ "dependencies": {+ "get-nonce": "^1.0.0",+ "invariant": "^2.2.4",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/react-syntax-highlighter": {+ "version": "15.5.0",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.3.1",+ "highlight.js": "^10.4.1",+ "lowlight": "^1.17.0",+ "prismjs": "^1.27.0",+ "refractor": "^3.6.0"+ },+ "peerDependencies": {+ "react": ">= 0.14.0"+ }+ },+ "node_modules/read-cache": {+ "version": "1.0.0",+ "license": "MIT",+ "dependencies": {+ "pify": "^2.3.0"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/reflect.getprototypeof": {+ "version": "1.0.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.1",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4",+ "globalthis": "^1.0.3",+ "which-builtin-type": "^1.1.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/refractor": {+ "version": "3.6.0",+ "license": "MIT",+ "dependencies": {+ "hastscript": "^6.0.0",+ "parse-entities": "^2.0.0",+ "prismjs": "~1.27.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/refractor/node_modules/prismjs": {+ "version": "1.27.0",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/regenerator-runtime": {+ "version": "0.14.1",+ "license": "MIT"+ },+ "node_modules/regexp.prototype.flags": {+ "version": "1.5.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.6",+ "define-properties": "^1.2.1",+ "es-errors": "^1.3.0",+ "set-function-name": "^2.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/remark-gfm": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-gfm": "^3.0.0",+ "micromark-extension-gfm": "^3.0.0",+ "remark-parse": "^11.0.0",+ "remark-stringify": "^11.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-math": {+ "version": "6.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-math": "^3.0.0",+ "micromark-extension-math": "^3.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-parse": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-from-markdown": "^2.0.0",+ "micromark-util-types": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-rehype": {+ "version": "11.1.0",+ "license": "MIT",+ "dependencies": {+ "@types/hast": "^3.0.0",+ "@types/mdast": "^4.0.0",+ "mdast-util-to-hast": "^13.0.0",+ "unified": "^11.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/remark-stringify": {+ "version": "11.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/mdast": "^4.0.0",+ "mdast-util-to-markdown": "^2.0.0",+ "unified": "^11.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/require-in-the-middle": {+ "version": "7.4.0",+ "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.4.0.tgz",+ "integrity": "sha512-X34iHADNbNDfr6OTStIAHWSAvvKQRYgLO6duASaVf7J2VA3lvmNYboAHOuLC2huav1IwgZJtyEcJCKVzFxOSMQ==",+ "dependencies": {+ "debug": "^4.3.5",+ "module-details-from-path": "^1.0.3",+ "resolve": "^1.22.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.8",+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.13.0",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-from": {+ "version": "4.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "node_modules/reusify": {+ "version": "1.0.4",+ "license": "MIT",+ "engines": {+ "iojs": ">=1.0.0",+ "node": ">=0.10.0"+ }+ },+ "node_modules/rimraf": {+ "version": "3.0.2",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/rimraf/node_modules/glob": {+ "version": "7.2.3",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"+ },+ "engines": {+ "node": "*"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/run-parallel": {+ "version": "1.2.0",+ "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": {+ "queue-microtask": "^1.2.2"+ }+ },+ "node_modules/safe-array-concat": {+ "version": "1.1.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "get-intrinsic": "^1.2.4",+ "has-symbols": "^1.0.3",+ "isarray": "^2.0.5"+ },+ "engines": {+ "node": ">=0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/safe-regex-test": {+ "version": "1.0.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.6",+ "es-errors": "^1.3.0",+ "is-regex": "^1.1.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/scheduler": {+ "version": "0.23.2",+ "license": "MIT",+ "dependencies": {+ "loose-envify": "^1.1.0"+ }+ },+ "node_modules/secure-json-parse": {+ "version": "2.7.0",+ "license": "BSD-3-Clause"+ },+ "node_modules/semver": {+ "version": "6.3.1",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ }+ },+ "node_modules/server-only": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/server-only/-/server-only-0.0.1.tgz",+ "integrity": "sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA=="+ },+ "node_modules/set-function-length": {+ "version": "1.2.2",+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/set-function-name": {+ "version": "2.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-data-property": "^1.1.4",+ "es-errors": "^1.3.0",+ "functions-have-names": "^1.2.3",+ "has-property-descriptors": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/shebang-command": {+ "version": "2.0.0",+ "license": "MIT",+ "dependencies": {+ "shebang-regex": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shebang-regex": {+ "version": "3.0.0",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/shimmer": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz",+ "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw=="+ },+ "node_modules/side-channel": {+ "version": "1.0.6",+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.4",+ "object-inspect": "^1.13.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/signal-exit": {+ "version": "4.1.0",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/slash": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/snake-case": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",+ "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",+ "dependencies": {+ "dot-case": "^3.0.4",+ "tslib": "^2.0.3"+ }+ },+ "node_modules/snakecase-keys": {+ "version": "5.4.4",+ "resolved": "https://registry.npmjs.org/snakecase-keys/-/snakecase-keys-5.4.4.tgz",+ "integrity": "sha512-YTywJG93yxwHLgrYLZjlC75moVEX04LZM4FHfihjHe1FCXm+QaLOFfSf535aXOAd0ArVQMWUAe8ZPm4VtWyXaA==",+ "dependencies": {+ "map-obj": "^4.1.0",+ "snake-case": "^3.0.4",+ "type-fest": "^2.5.2"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/snakecase-keys/node_modules/type-fest": {+ "version": "2.19.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",+ "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",+ "engines": {+ "node": ">=12.20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.0",+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/space-separated-tokens": {+ "version": "2.0.2",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/sswr": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/sswr/-/sswr-2.1.0.tgz",+ "integrity": "sha512-Cqc355SYlTAaUt8iDPaC/4DPPXK925PePLMxyBKuWd5kKc5mwsG3nT9+Mq2tyguL5s7b4Jg+IRMpTRsNTAfpSQ==",+ "dependencies": {+ "swrev": "^4.0.0"+ },+ "peerDependencies": {+ "svelte": "^4.0.0 || ^5.0.0-next.0"+ }+ },+ "node_modules/std-env": {+ "version": "3.8.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz",+ "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w=="+ },+ "node_modules/stop-iteration-iterator": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "internal-slot": "^1.0.4"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/streamsearch": {+ "version": "1.1.0",+ "engines": {+ "node": ">=10.0.0"+ }+ },+ "node_modules/string-width": {+ "version": "5.1.2",+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width-cjs": {+ "name": "string-width",+ "version": "4.2.3",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "license": "MIT"+ },+ "node_modules/string-width/node_modules/strip-ansi": {+ "version": "7.1.0",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/string-width/node_modules/strip-ansi/node_modules/ansi-regex": {+ "version": "6.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/string.prototype.includes": {+ "version": "2.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.1.3",+ "es-abstract": "^1.17.5"+ }+ },+ "node_modules/string.prototype.matchall": {+ "version": "4.0.11",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.2",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.0.0",+ "get-intrinsic": "^1.2.4",+ "gopd": "^1.0.1",+ "has-symbols": "^1.0.3",+ "internal-slot": "^1.0.7",+ "regexp.prototype.flags": "^1.5.2",+ "set-function-name": "^2.0.2",+ "side-channel": "^1.0.6"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.repeat": {+ "version": "1.0.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "define-properties": "^1.1.3",+ "es-abstract": "^1.17.5"+ }+ },+ "node_modules/string.prototype.trim": {+ "version": "1.2.9",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-abstract": "^1.23.0",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimend": {+ "version": "1.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/string.prototype.trimstart": {+ "version": "1.0.8",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "define-properties": "^1.2.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/stringify-entities": {+ "version": "4.0.4",+ "license": "MIT",+ "dependencies": {+ "character-entities-html4": "^2.0.0",+ "character-entities-legacy": "^3.0.0"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/stringify-entities/node_modules/character-entities-legacy": {+ "version": "3.0.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/strip-ansi": {+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi-cjs": {+ "name": "strip-ansi",+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-bom": {+ "version": "3.0.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "3.1.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/style-to-object": {+ "version": "1.0.6",+ "license": "MIT",+ "dependencies": {+ "inline-style-parser": "0.2.3"+ }+ },+ "node_modules/styled-jsx": {+ "version": "5.1.1",+ "license": "MIT",+ "dependencies": {+ "client-only": "0.0.1"+ },+ "engines": {+ "node": ">= 12.0.0"+ },+ "peerDependencies": {+ "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0"+ },+ "peerDependenciesMeta": {+ "@babel/core": {+ "optional": true+ },+ "babel-plugin-macros": {+ "optional": true+ }+ }+ },+ "node_modules/sucrase": {+ "version": "3.35.0",+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "glob": "^10.3.10",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/sucrase/node_modules/glob": {+ "version": "10.4.5",+ "license": "ISC",+ "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/sucrase/node_modules/glob/node_modules/jackspeak": {+ "version": "3.4.3",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/sucrase/node_modules/glob/node_modules/minimatch": {+ "version": "9.0.5",+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.1"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/sucrase/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion": {+ "version": "2.0.1",+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },+ "node_modules/supports-color": {+ "version": "7.2.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "has-flag": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/svelte": {+ "version": "4.2.18",+ "resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.18.tgz",+ "integrity": "sha512-d0FdzYIiAePqRJEb90WlJDkjUEx42xhivxN8muUBmfZnP+tzUgz12DJ2hRJi8sIHCME7jeK1PTMgKPSfTd8JrA==",+ "peer": true,+ "dependencies": {+ "@ampproject/remapping": "^2.2.1",+ "@jridgewell/sourcemap-codec": "^1.4.15",+ "@jridgewell/trace-mapping": "^0.3.18",+ "@types/estree": "^1.0.1",+ "acorn": "^8.9.0",+ "aria-query": "^5.3.0",+ "axobject-query": "^4.0.0",+ "code-red": "^1.0.3",+ "css-tree": "^2.3.1",+ "estree-walker": "^3.0.3",+ "is-reference": "^3.0.1",+ "locate-character": "^3.0.0",+ "magic-string": "^0.30.4",+ "periscopic": "^3.1.0"+ },+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/svelte/node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",+ "peer": true,+ "dependencies": {+ "dequal": "^2.0.3"+ }+ },+ "node_modules/svelte/node_modules/axobject-query": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-4.1.0.tgz",+ "integrity": "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==",+ "peer": true,+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/svelte/node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "peer": true,+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/svelte/node_modules/is-reference": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",+ "integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",+ "peer": true,+ "dependencies": {+ "@types/estree": "*"+ }+ },+ "node_modules/swr": {+ "version": "2.2.5",+ "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.5.tgz",+ "integrity": "sha512-QtxqyclFeAsxEUeZIYmsaQ0UjimSq1RZ9Un7I68/0ClKK/U3LoyQunwkQfJZr2fc22DfIXLNDc2wFyTEikCUpg==",+ "dependencies": {+ "client-only": "^0.0.1",+ "use-sync-external-store": "^1.2.0"+ },+ "peerDependencies": {+ "react": "^16.11.0 || ^17.0.0 || ^18.0.0"+ }+ },+ "node_modules/swrev": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/swrev/-/swrev-4.0.0.tgz",+ "integrity": "sha512-LqVcOHSB4cPGgitD1riJ1Hh4vdmITOp+BkmfmXRh4hSF/t7EnS4iD+SOTmq7w5pPm/SiPeto4ADbKS6dHUDWFA=="+ },+ "node_modules/swrv": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/swrv/-/swrv-1.0.4.tgz",+ "integrity": "sha512-zjEkcP8Ywmj+xOJW3lIT65ciY/4AL4e/Or7Gj0MzU3zBJNMdJiT8geVZhINavnlHRMMCcJLHhraLTAiDOTmQ9g==",+ "peerDependencies": {+ "vue": ">=3.2.26 < 4"+ }+ },+ "node_modules/tailwind-merge": {+ "version": "2.4.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/dcastil"+ }+ },+ "node_modules/tailwindcss": {+ "version": "3.4.6",+ "license": "MIT",+ "dependencies": {+ "@alloc/quick-lru": "^5.2.0",+ "arg": "^5.0.2",+ "chokidar": "^3.5.3",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.3.0",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "jiti": "^1.21.0",+ "lilconfig": "^2.1.0",+ "micromatch": "^4.0.5",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.0.0",+ "postcss": "^8.4.23",+ "postcss-import": "^15.1.0",+ "postcss-js": "^4.0.1",+ "postcss-load-config": "^4.0.1",+ "postcss-nested": "^6.0.1",+ "postcss-selector-parser": "^6.0.11",+ "resolve": "^1.22.2",+ "sucrase": "^3.32.0"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tailwindcss-animate": {+ "version": "1.0.7",+ "license": "MIT",+ "peerDependencies": {+ "tailwindcss": ">=3.0.0 || insiders"+ }+ },+ "node_modules/tailwindcss/node_modules/postcss-selector-parser": {+ "version": "6.1.1",+ "license": "MIT",+ "dependencies": {+ "cssesc": "^3.0.0",+ "util-deprecate": "^1.0.2"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/tapable": {+ "version": "2.2.1",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/text-table": {+ "version": "0.2.0",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/to-fast-properties": {+ "version": "2.0.0",+ "license": "MIT",+ "peer": true,+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/tr46": {+ "version": "0.0.3",+ "license": "MIT"+ },+ "node_modules/trim-lines": {+ "version": "3.0.1",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/trough": {+ "version": "2.2.0",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "node_modules/ts-api-utils": {+ "version": "1.3.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "typescript": ">=4.2.0"+ }+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "license": "Apache-2.0"+ },+ "node_modules/tsconfig-paths": {+ "version": "3.15.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/json5": "^0.0.29",+ "json5": "^1.0.2",+ "minimist": "^1.2.6",+ "strip-bom": "^3.0.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.6.3",+ "license": "0BSD"+ },+ "node_modules/type-check": {+ "version": "0.4.0",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "prelude-ls": "^1.2.1"+ },+ "engines": {+ "node": ">= 0.8.0"+ }+ },+ "node_modules/type-fest": {+ "version": "0.20.2",+ "dev": true,+ "license": "(MIT OR CC0-1.0)",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/typed-array-buffer": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "es-errors": "^1.3.0",+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/typed-array-byte-length": {+ "version": "1.0.1",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-proto": "^1.0.3",+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-byte-offset": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-proto": "^1.0.3",+ "is-typed-array": "^1.1.13"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typed-array-length": {+ "version": "1.0.6",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-proto": "^1.0.3",+ "is-typed-array": "^1.1.13",+ "possible-typed-array-names": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/typescript": {+ "version": "5.5.3",+ "devOptional": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/unbox-primitive": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind": "^1.0.2",+ "has-bigints": "^1.0.2",+ "has-symbols": "^1.0.3",+ "which-boxed-primitive": "^1.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/undici-types": {+ "version": "5.26.5",+ "license": "MIT"+ },+ "node_modules/unified": {+ "version": "11.0.5",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "bail": "^2.0.0",+ "devlop": "^1.0.0",+ "extend": "^3.0.0",+ "is-plain-obj": "^4.0.0",+ "trough": "^2.0.0",+ "vfile": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-is": {+ "version": "6.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-position": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-remove-position": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-visit": "^5.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-stringify-position": {+ "version": "4.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0",+ "unist-util-visit-parents": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/unist-util-visit-parents": {+ "version": "6.0.1",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-is": "^6.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/uri-js": {+ "version": "4.4.1",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/use-callback-ref": {+ "version": "1.3.2",+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/use-sidecar": {+ "version": "1.1.2",+ "license": "MIT",+ "dependencies": {+ "detect-node-es": "^1.1.0",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "peerDependencies": {+ "@types/react": "^16.9.0 || ^17.0.0 || ^18.0.0",+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },+ "node_modules/use-sync-external-store": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz",+ "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==",+ "peerDependencies": {+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "license": "MIT"+ },+ "node_modules/uuid": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",+ "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",+ "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",+ "dev": true,+ "bin": {+ "uuid": "bin/uuid"+ }+ },+ "node_modules/vfile": {+ "version": "6.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0",+ "vfile-message": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vfile-message": {+ "version": "4.0.2",+ "license": "MIT",+ "dependencies": {+ "@types/unist": "^3.0.0",+ "unist-util-stringify-position": "^4.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/unified"+ }+ },+ "node_modules/vue": {+ "version": "3.4.37",+ "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.37.tgz",+ "integrity": "sha512-3vXvNfkKTBsSJ7JP+LyR7GBuwQuckbWvuwAid3xbqK9ppsKt/DUvfqgZ48fgOLEfpy1IacL5f8QhUVl77RaI7A==",+ "peer": true,+ "dependencies": {+ "@vue/compiler-dom": "3.4.37",+ "@vue/compiler-sfc": "3.4.37",+ "@vue/runtime-dom": "3.4.37",+ "@vue/server-renderer": "3.4.37",+ "@vue/shared": "3.4.37"+ },+ "peerDependencies": {+ "typescript": "*"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/web-vitals": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.3.tgz",+ "integrity": "sha512-/CFAm1mNxSmOj6i0Co+iGFJ58OS4NRGVP+AWS/l509uIK5a1bSoIVaHz/ZumpHTfHSZBpgrJ+wjfpAOrTHok5Q=="+ },+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "license": "BSD-2-Clause"+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "license": "MIT",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "node_modules/which": {+ "version": "2.0.2",+ "license": "ISC",+ "dependencies": {+ "isexe": "^2.0.0"+ },+ "bin": {+ "node-which": "bin/node-which"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/which-boxed-primitive": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-bigint": "^1.0.1",+ "is-boolean-object": "^1.1.0",+ "is-number-object": "^1.0.4",+ "is-string": "^1.0.5",+ "is-symbol": "^1.0.3"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-builtin-type": {+ "version": "1.1.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function.prototype.name": "^1.1.5",+ "has-tostringtag": "^1.0.0",+ "is-async-function": "^2.0.0",+ "is-date-object": "^1.0.5",+ "is-finalizationregistry": "^1.0.2",+ "is-generator-function": "^1.0.10",+ "is-regex": "^1.1.4",+ "is-weakref": "^1.0.2",+ "isarray": "^2.0.5",+ "which-boxed-primitive": "^1.0.2",+ "which-collection": "^1.0.1",+ "which-typed-array": "^1.1.9"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-collection": {+ "version": "1.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-map": "^2.0.3",+ "is-set": "^2.0.3",+ "is-weakmap": "^2.0.2",+ "is-weakset": "^2.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/which-typed-array": {+ "version": "1.1.15",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "available-typed-arrays": "^1.0.7",+ "call-bind": "^1.0.7",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-tostringtag": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/word-wrap": {+ "version": "1.2.5",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/wrap-ansi": {+ "version": "8.1.0",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "license": "MIT",+ "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/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/string-width/node_modules/emoji-regex": {+ "version": "8.0.0",+ "license": "MIT"+ },+ "node_modules/wrap-ansi/node_modules/ansi-styles": {+ "version": "6.2.1",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/wrap-ansi/node_modules/strip-ansi": {+ "version": "7.1.0",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi/node_modules/strip-ansi/node_modules/ansi-regex": {+ "version": "6.0.1",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "license": "MIT",+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/yaml": {+ "version": "2.4.5",+ "license": "ISC",+ "bin": {+ "yaml": "bin.mjs"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/zod": {+ "version": "3.23.8",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zod-to-json-schema": {+ "version": "3.23.1",+ "license": "ISC",+ "peerDependencies": {+ "zod": "^3.23.3"+ }+ },+ "node_modules/zone.js": {+ "version": "0.14.10",+ "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz",+ "integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ=="+ },+ "node_modules/zwitch": {+ "version": "2.0.4",+ "license": "MIT",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ }+ }+}diff --git a/openrewind/package.json b/openrewind/package.jsonnew file mode 100644index 000000000..757c006af--- /dev/null+++ b/openrewind/package.json@@ -0,0 +1,114 @@+{+ "name": "openrewind",+ "private": true,+ "scripts": {+ "dev": "next dev",+ "test:e2e": "wdio run wdio.conf.js",+ "test:e2e:terminator": "mocha",+ "build": "next build",+ "predev": "bun scripts/pre_build.js",+ "prebuild": "bun scripts/pre_build.js",+ "tauri": "tauri",+ "clean": "rm -rf out && cargo clean && rm -rf src-tauri/{openrewind-*,tesseract-*,ffmpeg*,bun*,ollama*,ui_monitor*} node_modules"+ },+ "dependencies": {+ "@patternfly/react-core": "^6.1.0",+ "@patternfly/react-log-viewer": "^6.1.0",+ "@radix-ui/react-accordion": "^1.2.0",+ "@radix-ui/react-alert-dialog": "^1.1.6",+ "@radix-ui/react-avatar": "^1.1.0",+ "@radix-ui/react-checkbox": "^1.1.1",+ "@radix-ui/react-collapsible": "^1.1.0",+ "@radix-ui/react-dialog": "^1.1.2",+ "@radix-ui/react-dropdown-menu": "^2.1.1",+ "@radix-ui/react-label": "^2.1.0",+ "@radix-ui/react-popover": "^1.1.2",+ "@radix-ui/react-progress": "^1.1.0",+ "@radix-ui/react-scroll-area": "^1.1.0",+ "@radix-ui/react-select": "^2.1.1",+ "@radix-ui/react-separator": "^1.1.0",+ "@radix-ui/react-slider": "^1.2.0",+ "@radix-ui/react-slot": "^1.1.0",+ "@radix-ui/react-switch": "^1.1.0",+ "@radix-ui/react-tabs": "^1.1.0",+ "@radix-ui/react-toast": "^1.2.1",+ "@radix-ui/react-tooltip": "^1.1.3",+ "@screenpipe/browser": "^0.1.40",+ "@screenpipe/js": "^1.0.21",+ "@sentry/react": "^8.52.0",+ "@supabase/supabase-js": "^2.47.3",+ "@tanstack/react-virtual": "^3.11.0",+ "@tauri-apps/api": "^2.5.0",+ "@tauri-apps/plugin-deep-link": "~2",+ "@tauri-apps/plugin-dialog": "2.0.0",+ "@tauri-apps/plugin-fs": "2.0.0",+ "@tauri-apps/plugin-http": "~2",+ "@tauri-apps/plugin-notification": "2.0.0",+ "@tauri-apps/plugin-opener": "^2.2.5",+ "@tauri-apps/plugin-os": "2.0.0",+ "@tauri-apps/plugin-process": "2.0.0",+ "@tauri-apps/plugin-shell": "2.0.0",+ "@tauri-apps/plugin-store": "^2.2.0",+ "@tauri-apps/plugin-updater": "2.0.0",+ "ai": "^4.3.15",+ "ansi-to-html": "^0.7.2",+ "class-variance-authority": "^0.7.0",+ "clsx": "^2.1.1",+ "cmdk": "0.2.1",+ "date-fns": "^3.6.0",+ "easy-peasy": "^6.0.5",+ "framer-motion": "^11.5.4",+ "hotkeys-js": "^3.13.9",+ "js-levenshtein": "^1.1.6",+ "localforage": "^1.10.0",+ "lodash": "^4.17.21",+ "lucide-react": "^0.414.0",+ "next": "15.1.4",+ "next-themes": "^0.4.6",+ "nuqs": "^2.4.3",+ "openai": "^4.100.0",+ "posthog-js": "^1.154.6",+ "react": "^18",+ "react-day-picker": "8.10.1",+ "react-markdown": "^9.0.1",+ "react-resizable-panels": "^2.1.6",+ "react-syntax-highlighter": "^15.5.0",+ "remark-gfm": "^4.0.0",+ "remark-math": "^6.0.0",+ "sonner": "^2.0.3",+ "tailwind-merge": "^2.4.0",+ "tailwindcss-animate": "^1.0.7",+ "tauri-plugin-sentry-api": "^0.4.1",+ "tauri-plugin-store-api": "^0.0.0",+ "use-debounce": "^10.0.4",+ "use-immer": "^0.11.0",+ "zustand": "^5.0.3"+ },+ "devDependencies": {+ "@tailwindcss/typography": "^0.5.13",+ "@tauri-apps/cli": "^2.4.1",+ "@types/js-levenshtein": "^1.1.3",+ "@types/lodash": "^4.17.7",+ "@types/node": "^20",+ "@types/react": "^18",+ "@types/react-syntax-highlighter": "^15.5.13",+ "@wdio/cli": "^8.39.1",+ "@wdio/globals": "^8.39.1",+ "@wdio/local-runner": "^8.39.1",+ "@wdio/mocha-framework": "^8.39.0",+ "@wdio/spec-reporter": "^8.39.0",+ "@wdio/types": "^8.39.0",+ "desktop-use": "1.0.6",+ "eslint": "^8",+ "eslint-config-next": "14.2.4",+ "mocha": "^10.7.0",+ "postcss": "^8",+ "tailwindcss": "^3.4.1",+ "ts-node": "^10.9.2",+ "typescript": "^5"+ },+ "packageManager": "[email protected]+sha512.d1a029e1a447ad90bc96cd58b0fad486d2993d531856396f7babf2d83eb1823bb83c5a3d0fc18f675b2d10321d49eb161fece36fe8134aa5823ecd215feed392",+ "trustedDependencies": [+ "@sentry/cli"+ ]+}diff --git a/openrewind/postcss.config.mjs b/openrewind/postcss.config.mjsnew file mode 100644index 000000000..1a69fd2a4--- /dev/null+++ b/openrewind/postcss.config.mjs@@ -0,0 +1,8 @@+/** @type {import('postcss-load-config').Config} */+const config = {+ plugins: {+ tailwindcss: {},+ },+};++export default config;diff --git a/openrewind/public/128x128.png b/openrewind/public/128x128.pngnew file mode 100644index 000000000..0f7f8c12cBinary files /dev/null and b/openrewind/public/128x128.png differdiff --git a/openrewind/public/CHANGELOG.md b/openrewind/public/CHANGELOG.mdnew file mode 100644index 000000000..fd62685e1--- /dev/null+++ b/openrewind/public/CHANGELOG.md@@ -0,0 +1,12 @@+### **New Features:**+- **Improved Notion pipe:** Enhanced functionality for the Notion pipe to improve user experience.++### **Improvements:**+- **Fixed model download UX:** Improved the user experience for model downloads.+- **Fixed keyboard shortcuts on Windows:** Resolved issues with keyboard shortcuts to provide a smoother experience.++### **Fixes:**+- *No specific fixes listed in commits that meet the guidelines.*++#### **Full Changelog:** [bcef3..bb5b8](https://github.com/mediar-ai/screenpipe/compare/bcef3..bb5b8)+diff --git a/openrewind/public/images/custom.png b/openrewind/public/images/custom.pngnew file mode 100644index 000000000..7151485d0Binary files /dev/null and b/openrewind/public/images/custom.png differdiff --git a/openrewind/public/images/ollama.png b/openrewind/public/images/ollama.pngnew file mode 100644index 000000000..b3d5cb711Binary files /dev/null and b/openrewind/public/images/ollama.png differdiff --git a/openrewind/public/images/openai.png b/openrewind/public/images/openai.pngnew file mode 100644index 000000000..557e4a91dBinary files /dev/null and b/openrewind/public/images/openai.png differdiff --git a/openrewind/public/images/screenpipe.png b/openrewind/public/images/screenpipe.pngnew file mode 100644index 000000000..31a15d558Binary files /dev/null and b/openrewind/public/images/screenpipe.png differdiff --git a/openrewind/public/next.svg b/openrewind/public/next.svgnew file mode 100644index 000000000..5174b28c5--- /dev/null+++ b/openrewind/public/next.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>\ No newline at end of filediff --git a/openrewind/public/pipe-store-preview.png b/openrewind/public/pipe-store-preview.pngnew file mode 100644index 000000000..c28dcbb22Binary files /dev/null and b/openrewind/public/pipe-store-preview.png differdiff --git a/openrewind/public/placeholder-user.jpg b/openrewind/public/placeholder-user.jpgnew file mode 100644index 000000000..6fa7543d3Binary files /dev/null and b/openrewind/public/placeholder-user.jpg differdiff --git a/openrewind/public/screenpipe.svg b/openrewind/public/screenpipe.svgnew file mode 100644index 000000000..c0e576018--- /dev/null+++ b/openrewind/public/screenpipe.svg@@ -0,0 +1,21 @@+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 304.47873665993166 83.20000000000005" width="913.436209979795" height="249.60000000000014">+ <!-- svg-source:excalidraw -->++ <defs>+ <style class="style-fonts">+ @font-face {+ font-family: "Virgil";+ src: url("https://excalidraw.com/Virgil.woff2");+ }+ @font-face {+ font-family: "Cascadia";+ src: url("https://excalidraw.com/Cascadia.woff2");+ }+ @font-face {+ font-family: "Assistant";+ src: url("https://app.excalidraw.com//dist/excalidraw-assets/Assistant-Regular.woff2");+ }+ </style>++ </defs>+ <g transform="translate(10 10) rotate(0 107.994140625 31.600000000000023)"><text x="107.994140625" y="50.85624999999997" font-family="Cascadia, Segoe UI Emoji" font-size="52.666666666666636px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">screen </text></g><g transform="translate(214.8820382425074 25.275577602132216) rotate(0 10.546875 21.600000000000023)"><text x="10.546875" y="34.762499999999996" font-family="Cascadia, Segoe UI Emoji" font-size="36px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">|</text></g><g transform="translate(258.47873665993166 24.111197740844545) rotate(0 18 21.600000000000023)"><text x="18" y="34.762499999999996" font-family="Cascadia, Segoe UI Emoji" font-size="36px" fill="#1e1e1e" text-anchor="middle" style="white-space: pre;" direction="ltr" dominant-baseline="alphabetic">⭐️</text></g></svg>\ No newline at end of filediff --git a/openrewind/public/vercel.svg b/openrewind/public/vercel.svgnew file mode 100644index 000000000..d2f842227--- /dev/null+++ b/openrewind/public/vercel.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>\ No newline at end of filediff --git a/openrewind/scripts/pre_build.js b/openrewind/scripts/pre_build.jsnew file mode 100644index 000000000..2116c19ef--- /dev/null+++ b/openrewind/scripts/pre_build.js@@ -0,0 +1,505 @@+import { $ } from 'bun'+import fs from 'fs/promises'+import os from 'os'+import path from 'path'++const isDevMode = process.env.SCREENPIPE_APP_DEV === 'true' || false;++const originalCWD = process.cwd()+// Change CWD to src-tauri+process.chdir(path.join(__dirname, '../src-tauri'))+const platform = {+ win32: 'windows',+ darwin: 'macos',+ linux: 'linux',+}[os.platform()]+const cwd = process.cwd()+console.log('cwd', cwd)+++const config = {+ ffmpegRealname: 'ffmpeg',+ windows: {+ ffmpegName: 'ffmpeg-7.0.2-full_build-shared',+ ffmpegUrl: 'https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.0.2-full_build-shared.7z',+ vcpkgPackages: ['opencl', 'onnxruntime-gpu'],+ },+ linux: {+ aptPackages: [+ 'tesseract-ocr',+ 'libtesseract-dev',+ 'ffmpeg',+ 'pkg-config',+ 'build-essential',+ 'libglib2.0-dev',+ 'libgtk-3-dev',+ 'libwebkit2gtk-4.1-dev',+ 'clang',+ 'cmake', // Tauri+ 'libavutil-dev',+ 'libavformat-dev',+ 'libavfilter-dev',+ 'libavdevice-dev', // FFMPEG+ 'libasound2-dev', // cpal+ 'libxdo-dev'+ ],+ },+ macos: {+ ffmpegUrlArm: 'https://www.osxexperts.net/ffmpeg7arm.zip',+ ffprobeUrlArm: 'https://www.osxexperts.net/ffprobe71arm.zip',+ ffmpegUrlx86_64: 'https://evermeet.cx/ffmpeg/getrelease/zip',+ ffprobeUrlx86_64: 'https://www.osxexperts.net/ffprobe71intel.zip',+ },+}++async function findWget() {+ const possiblePaths = [+ 'C:\\ProgramData\\chocolatey\\bin\\wget.exe',+ 'C:\\Program Files\\Git\\mingw64\\bin\\wget.exe',+ 'C:\\msys64\\usr\\bin\\wget.exe',+ 'C:\\Windows\\System32\\wget.exe',+ 'C:\\wget\\wget.exe',+ 'wget' // This will work if wget is in PATH+ ];++ for (const wgetPath of possiblePaths) {+ try {+ await $`${wgetPath} --version`.quiet();+ console.log(`wget found at: ${wgetPath}`);+ return wgetPath;+ } catch (error) {+ // wget not found at this path, continue searching+ }+ }++ console.error('wget not found. Please install wget and make sure it\'s in your PATH.');+ process.exit(1);+}++// Export for Github actions+const exports = {+ ffmpeg: path.join(cwd, config.ffmpegRealname),+ libClang: 'C:\\Program Files\\LLVM\\bin',+ cmake: 'C:\\Program Files\\CMake\\bin',+}++// Add this function to copy the Bun binary+async function copyBunBinary() {+ console.log('checking bun binary for tauri...');++ let bunSrc, bunDest1, bunDest2;+ if (platform === 'windows') {+ // Get and log npm global prefix+ let npmGlobalPrefix = null;+ try {+ npmGlobalPrefix = (await $`npm config get prefix`.text()).trim();+ console.log('npm global prefix:', npmGlobalPrefix);+ } catch (error) {+ console.log('failed to get npm global prefix:', error.message);+ }++ // Try to find bun location using system commands+ let bunPathFromSystem;+ try {+ bunPathFromSystem = (await $`where.exe bun`.text()).trim().split('\n')[0];+ } catch {+ try {+ bunPathFromSystem = (await $`which bun`.text()).trim();+ } catch {+ console.log('could not find bun using where.exe or which');+ }+ }++ if (bunPathFromSystem) {+ console.log('found bun using system command at:', bunPathFromSystem);+ }++ // Start with basic paths that don't depend on npmGlobalPrefix+ const possibleBunPaths = [+ // Add system-found path if it exists+ bunPathFromSystem,+ // Bun's default installer location+ path.join(os.homedir(), '.bun', 'bin', 'bun.exe'),+ // AppData paths+ path.join(os.homedir(), 'AppData', 'Local', 'bun', 'bun.exe'),+ // Direct paths+ 'C:\\Program Files\\bun\\bun.exe',+ 'C:\\Program Files (x86)\\bun\\bun.exe',+ // System path+ 'bun.exe'+ ].filter(Boolean);++ // Add npm paths only if npmGlobalPrefix was successfully retrieved+ if (npmGlobalPrefix) {+ possibleBunPaths.push(+ path.join(npmGlobalPrefix, 'node_modules', 'bun', 'bin', 'bun.exe'),+ path.join(npmGlobalPrefix, 'bun.exe'),+ path.join(npmGlobalPrefix, 'bin', 'bun.exe')+ );+ }++ console.log('searching bun in these locations:');+ possibleBunPaths.forEach(p => console.log('- ' + p));++ bunSrc = null;+ for (const possiblePath of possibleBunPaths) {+ try {+ await fs.access(possiblePath);+ console.log('found bun at:', possiblePath);+ bunSrc = possiblePath;+ break;+ } catch {+ continue;+ }+ }++ if (!bunSrc) {+ throw new Error('Could not find bun.exe in any expected location. Please check if bun is installed correctly');+ }++ // Define the destination path+ bunDest1 = path.join(cwd, 'bun-x86_64-pc-windows-msvc.exe');+ console.log('copying bun from:', bunSrc);+ console.log('copying bun to:', bunDest1);+ } else if (platform === 'macos') {+ bunSrc = path.join(os.homedir(), '.bun', 'bin', 'bun');+ bunDest1 = path.join(cwd, 'bun-aarch64-apple-darwin');+ bunDest2 = path.join(cwd, 'bun-x86_64-apple-darwin');+ } else if (platform === 'linux') {+ bunSrc = path.join(os.homedir(), '.bun', 'bin', 'bun');+ bunDest1 = path.join(cwd, 'bun-x86_64-unknown-linux-gnu');+ }++ if (await fs.exists(bunDest1)) {+ console.log('bun binary already exists for tauri.');+ return;+ }++ try {+ await fs.access(bunSrc);+ await copyFile(bunSrc, bunDest1);+ console.log(`bun binary copied successfully from ${bunSrc} to ${bunDest1}`);++ if (platform === 'macos') {+ await copyFile(bunSrc, bunDest2);+ console.log(`bun binary also copied to ${bunDest2}`);+ }+ } catch (error) {+ console.error('failed to copy bun binary:', error);+ console.error('source path:', bunSrc);+ process.exit(1);+ }+}+++// Helper function to copy file and set permissions+async function copyFile(src, dest) {+ await fs.copyFile(src, dest);+ await fs.chmod(dest, 0o755); // ensure the binary is executable+}++/* ########## Linux ########## */+if (platform == 'linux') {+ // Check and install APT packages+ try {+ const aptPackagesNotInstalled = [];++ // Check each package installation status+ for (const pkg of config.linux.aptPackages) {+ try {+ await $`dpkg -s ${pkg}`.quiet();+ } catch {+ aptPackagesNotInstalled.push(pkg);+ }+ }++ if (aptPackagesNotInstalled.length > 0) {+ console.log('the following required packages are missing:');+ aptPackagesNotInstalled.forEach(pkg => console.log(` - ${pkg}`));+ console.log('\ninstalling missing packages...');++ console.log('updating package lists...');+ await $`sudo apt-get -qq update`;++ console.log('installing packages...');+ await $`sudo DEBIAN_FRONTEND=noninteractive apt-get -qq install -y ${aptPackagesNotInstalled}`;+ console.log('Package installation completed successfully ✅\n');+ } else {+ console.log('all required packages are already installed ✅\n');+ }+ } catch (error) {+ console.error("error checking/installing apt packages: %s", error.message);+ }+++ // Copy screenpipe binary+ console.log('copying screenpipe binary for linux...');+ const potentialPaths = [+ path.join(__dirname, '..', '..', '..', '..', 'target', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', '..', '..', 'target', 'x86_64-unknown-linux-gnu', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', 'target', 'x86_64-unknown-linux-gnu', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', '..', 'target', 'release', 'screenpipe'),+ path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe'),+ path.join(__dirname, '..', 'target', 'release', 'screenpipe'),+ '/home/runner/work/screenpipe/screenpipe/target/release/screenpipe',+ ];++ let copied = false;+ for (const screenpipeSrc of potentialPaths) {+ if (process.env['SKIP_SCREENPIPE_SETUP']) {+ copied = true;+ break;+ }+ const screenpipeDest = path.join(cwd, 'screenpipe-x86_64-unknown-linux-gnu');+ try {+ await fs.copyFile(screenpipeSrc, screenpipeDest);+ console.log(`screenpipe binary copied successfully from ${screenpipeSrc}`);+ copied = true;+ break;+ } catch (error) {+ console.warn(`failed to copy screenpipe binary from ${screenpipeSrc}:`, error);+ }+ }++ if (!copied) {+ console.error("failed to copy screenpipe binary from any potential path.");+ // uncomment the following line if you want the script to exit on failure+ // process.exit(1);+ }+}++/* ########## Windows ########## */+if (platform == 'windows') {+ const wgetPath = await findWget();++ console.log('Copying screenpipe binary...');++ const potentialPaths = [+ path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', '..', 'target', 'x86_64-pc-windows-msvc', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', 'target', 'release', 'screenpipe.exe'),+ path.join(__dirname, '..', '..', 'target', 'release', 'screenpipe.exe'),+ 'D:\\a\\screenpipe\\screenpipe\\target\\release\\screenpipe.exe',+ ];++ let copied = false;+ for (const screenpipeSrc of potentialPaths) {+ if (process.env['SKIP_SCREENPIPE_SETUP']) {+ copied = true;+ break;+ }+ const screenpipeDest = path.join(cwd, 'screenpipe-x86_64-pc-windows-msvc.exe');+ try {+ await fs.copyFile(screenpipeSrc, screenpipeDest);+ console.log(`Screenpipe binary copied successfully from ${screenpipeSrc}`);+ copied = true;+ break;+ } catch (error) {+ console.warn(`Failed to copy screenpipe binary from ${screenpipeSrc}:`, error);+ }+ }++ if (!copied) {+ console.error("Failed to copy screenpipe binary from any potential path.");+ // Uncomment the following line if you want the script to exit on failure+ // process.exit(1);+ }++ // Setup FFMPEG+ if (!(await fs.exists(config.ffmpegRealname))) {+ await $`${wgetPath} --no-config --tries=10 --retry-connrefused --waitretry=10 --secure-protocol=auto --no-check-certificate --show-progress ${config.windows.ffmpegUrl} -O ${config.windows.ffmpegName}.7z`+ await $`'C:\\Program Files\\7-Zip\\7z.exe' x ${config.windows.ffmpegName}.7z`+ await $`mv ${config.windows.ffmpegName} ${config.ffmpegRealname}`+ await $`rm -rf ${config.windows.ffmpegName}.7z`+ }++ // Setup vcpkg packages with environment variables set inline+ // TODO is this even used? dont we use build.rs for this?+ // await $`SystemDrive=${process.env.SYSTEMDRIVE} SystemRoot=${process.env.SYSTEMROOT} windir=${process.env.WINDIR} ${process.env.VCPKG_ROOT}\\vcpkg.exe install ${config.windows.vcpkgPackages}`.quiet()+}++async function getMostRecentBinaryPath(targetArch, paths) {+ const validPaths = await Promise.all(paths.map(async (path) => {+ if (await fs.exists(path)) {+ const { stdout } = await $`file ${path}`.quiet();+ const binaryArch = stdout.includes('arm64') ? 'arm64' :+ stdout.includes('x86_64') ? 'x86_64' : null;+ if (binaryArch === targetArch) {+ const stat = await fs.stat(path);+ return { path, mtime: stat.mtime };+ }+ }+ return null;+ }));++ const filteredPaths = validPaths.filter(Boolean);++ if (filteredPaths.length === 0) {+ return null;+ }++ return filteredPaths.reduce((mostRecent, current) =>+ current.mtime > mostRecent.mtime ? current : mostRecent+ ).path;+}+/* ########## macOS ########## */+if (platform == 'macos') {+ const architectures = ['arm64', 'x86_64'];+ for (const arch of architectures) {+ if (process.env['SKIP_SCREENPIPE_SETUP']) {+ break;+ }+ console.log(`Setting up screenpipe bin for ${arch}...`);+ if (arch === 'arm64') {+ const paths = [+ "../../target/aarch64-apple-darwin/release/screenpipe",+ "../../target/release/screenpipe"+ ];+ const mostRecentPath = await getMostRecentBinaryPath('arm64', paths);+ if (mostRecentPath) {+ await $`cp ${mostRecentPath} screenpipe-aarch64-apple-darwin`;+ console.log(`Copied most recent arm64 screenpipe binary from ${mostRecentPath}`);+ } else {+ console.error("No suitable arm64 screenpipe binary found");+ }+ } else if (arch === 'x86_64') {+ // copy screenpipe binary (more recent one)+ const paths = [+ "../../target/x86_64-apple-darwin/release/screenpipe",+ "../../target/release/screenpipe"+ ];+ const mostRecentPath = await getMostRecentBinaryPath('x86_64', paths);+ if (mostRecentPath) {+ await $`cp ${mostRecentPath} screenpipe-x86_64-apple-darwin`;+ console.log(`Copied most recent x86_64 screenpipe binary from ${mostRecentPath}`);+ } else {+ console.error("No suitable x86_64 screenpipe binary found");+ }+ }+ console.log(`screenpipe for ${arch} set up successfully.`);+ }++ // Setup ffmpeg and ffprobe for both arm64 and x86_64+ // ref: https://github.com/nathanbabcock/ffmpeg-sidecar/blob/b0ab2e1233451f219e302bf78cbbb6a5a8e85aa4/src/download.rs#L31+ if (!(await fs.exists(`ffmpeg-aarch64-apple-darwin`))) {+ await $`wget --no-config ${config.macos.ffmpegUrlArm} -O ffmpeg-aarch64.zip`;+ await $`unzip -o ffmpeg-aarch64.zip -d ffmpeg-aarch64`;+ await $`cp ffmpeg-aarch64/ffmpeg ffmpeg-aarch64-apple-darwin`;+ await $`rm ffmpeg-aarch64.zip`;+ await $`rm -rf ffmpeg-aarch64`;+ }++ if (!(await fs.exists(`ffprobe-aarch64-apple-darwin`))) {+ await $`wget --no-config ${config.macos.ffprobeUrlArm} -O ffprobe-aarch64.zip`;+ await $`unzip -o ffprobe-aarch64.zip -d ffprobe-aarch64`;+ await $`cp ffprobe-aarch64/ffprobe ffprobe-aarch64-apple-darwin`;+ await $`rm ffprobe-aarch64.zip`;+ await $`rm -rf ffprobe-aarch64`;+ }++ if (!(await fs.exists(`ffmpeg-x86_64-apple-darwin`))) {+ await $`wget --no-config ${config.macos.ffmpegUrlx86_64} -O ffmpeg-x86_64.zip`;+ await $`unzip -o ffmpeg-x86_64.zip -d ffmpeg-x86_64`;+ await $`cp ffmpeg-x86_64/ffmpeg ffmpeg-x86_64-apple-darwin`;+ await $`rm ffmpeg-x86_64.zip`;+ await $`rm -rf ffmpeg-x86_64`;+ }++ if (!(await fs.exists(`ffprobe-x86_64-apple-darwin`))) {+ await $`wget --no-config ${config.macos.ffprobeUrlx86_64} -O ffprobe-x86_64.zip`;+ await $`unzip -o ffprobe-x86_64.zip -d ffprobe-x86_64`;+ await $`cp ffprobe-x86_64/ffprobe ffprobe-x86_64-apple-darwin`;+ await $`rm ffprobe-x86_64.zip`;+ await $`rm -rf ffprobe-x86_64`;+ }++ console.log('FFMPEG and FFPROBE checks completed');+ console.log('Moved and renamed ffmpeg binary for externalBin');++ // Setup Swift UI monitoring+ console.log('Setting up Swift UI monitoring...');+ try {+ const swiftSrc = path.join(cwd, '../../screenpipe-vision/src/ui_monitoring_macos.swift');+ const architectures = ['arm64', 'x86_64'];++ for (const arch of architectures) {+ console.log(`Compiling Swift UI monitor for ${arch}...`);++ const binaryName = `ui_monitor-${arch === 'arm64' ? 'aarch64' : 'x86_64'}-apple-darwin`;+ const outputPath = path.join(cwd, binaryName);++ // Compile directly to the final destination+ await $`swiftc -O -whole-module-optimization -enforce-exclusivity=unchecked -num-threads 8 -target ${arch}-apple-macos11.0 -o ${outputPath} ${swiftSrc} -framework Cocoa -framework ApplicationServices -framework Foundation`;++ // Sign with ad-hoc signature first - this ensures the binary is at least signed+ // Tauri will re-sign it later with the proper identity+ // await $`codesign --force --sign - ${outputPath}`;++ console.log(`Swift UI monitor for ${arch} compiled successfully`);+ await fs.chmod(outputPath, 0o755);+ }+ } catch (error) {+ console.error('Error setting up Swift UI monitoring:', error);+ console.log('Current working directory:', cwd);+ console.log('Expected Swift source path:', path.join(cwd, '../../screenpipe-vision/src/ui_monitoring_macos.swift'));+ throw error; // Rethrow to fail the build if Swift compilation fails+ }+}++++// Development hints+if (!process.env.GITHUB_ENV) {+ console.log('\nCommands to build 🔨:')+ // Get relative path to screenpipe-app-tauri folder+ const relativePath = path.relative(originalCWD, path.join(cwd, '..'))+ if (originalCWD != cwd && relativePath != '') {+ console.log(`cd ${relativePath}`)+ }+ console.log('bun install')++ if (!process.env.GITHUB_ENV) {+ console.log('bun tauri build')+ }+}++// Config Github ENV+if (process.env.GITHUB_ENV) {+ console.log('Adding ENV')+ if (platform == 'macos' || platform == 'windows') {+ const ffmpeg = `FFMPEG_DIR=${exports.ffmpeg}\n`+ console.log('Adding ENV', ffmpeg)+ await fs.appendFile(process.env.GITHUB_ENV, ffmpeg)+ }+ if (platform == 'macos') {+ const embed_metal = 'WHISPER_METAL_EMBED_LIBRARY=ON'+ await fs.appendFile(process.env.GITHUB_ENV, embed_metal)+ }+ if (platform == 'windows') {+ const openblas = `OPENBLAS_PATH=${exports.openBlas}\n`+ console.log('Adding ENV', openblas)+ await fs.appendFile(process.env.GITHUB_ENV, openblas)+ }+}+++// Near the end of the script, call these functions+await copyBunBinary();++// --dev or --build+const action = process.argv?.[2]+if (action?.includes('--build' || action.includes('--dev'))) {+ process.chdir(path.join(cwd, '..'))+ process.env['FFMPEG_DIR'] = exports.ffmpeg+ if (platform === 'windows') {+ process.env['OPENBLAS_PATH'] = exports.openBlas+ process.env['CLBlast_DIR'] = exports.clblast+ process.env['LIBCLANG_PATH'] = exports.libClang+ process.env['PATH'] = `${process.env['PATH']};${exports.cmake}`+ }+ if (platform == 'macos') {+ process.env['WHISPER_METAL_EMBED_LIBRARY'] = 'ON'+ }+ await $`bun install`+ await $`bunx tauri ${action.includes('--dev') ? 'dev' : 'build'}`+}diff --git a/openrewind/src-tauri/.gitignore b/openrewind/src-tauri/.gitignorenew file mode 100755index 000000000..a2e350d63--- /dev/null+++ b/openrewind/src-tauri/.gitignore@@ -0,0 +1,6 @@+# Generated by Cargo+# will have compiled files and executables+/target/++# Commit the Cargo.lock file+!Cargo.lockdiff --git a/openrewind/src-tauri/Cargo.lock b/openrewind/src-tauri/Cargo.locknew file mode 100755index 000000000..390e4a869--- /dev/null+++ b/openrewind/src-tauri/Cargo.lock@@ -0,0 +1,8478 @@+# This file is automatically @generated by Cargo.+# It is not intended for manual editing.+version = 4++[[package]]+name = "addr2line"+version = "0.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678"+dependencies = [+ "gimli",+]++[[package]]+name = "adler"+version = "1.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"++[[package]]+name = "adler2"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"++[[package]]+name = "aho-corasick"+version = "1.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"+dependencies = [+ "memchr",+]++[[package]]+name = "aligned-vec"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4aa90d7ce82d4be67b64039a3d588d38dbcc6736577de4a847025ce5b0c468d1"++[[package]]+name = "alloc-no-stdlib"+version = "2.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"++[[package]]+name = "alloc-stdlib"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"+dependencies = [+ "alloc-no-stdlib",+]++[[package]]+name = "android-tzdata"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"++[[package]]+name = "android_system_properties"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"+dependencies = [+ "libc",+]++[[package]]+name = "anstream"+version = "0.6.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b"+dependencies = [+ "anstyle",+ "anstyle-parse",+ "anstyle-query",+ "anstyle-wincon",+ "colorchoice",+ "is_terminal_polyfill",+ "utf8parse",+]++[[package]]+name = "anstyle"+version = "1.0.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"++[[package]]+name = "anstyle-parse"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4"+dependencies = [+ "utf8parse",+]++[[package]]+name = "anstyle-query"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391"+dependencies = [+ "windows-sys 0.52.0",+]++[[package]]+name = "anstyle-wincon"+version = "3.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19"+dependencies = [+ "anstyle",+ "windows-sys 0.52.0",+]++[[package]]+name = "anyhow"+version = "1.0.86"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da"++[[package]]+name = "arbitrary"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110"+dependencies = [+ "derive_arbitrary",+]++[[package]]+name = "arg_enum_proc_macro"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "arrayvec"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"++[[package]]+name = "ashpd"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfe7e0dd0ac5a401dc116ed9f9119cf9decc625600474cb41f0fc0a0050abc9a"+dependencies = [+ "enumflags2",+ "futures-channel",+ "futures-util",+ "rand 0.8.5",+ "raw-window-handle",+ "serde",+ "serde_repr",+ "tokio",+ "url",+ "wayland-backend",+ "wayland-client",+ "wayland-protocols",+ "zbus 4.0.1",+]++[[package]]+name = "ashpd"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "de3d60bee1a1d38c2077030f4788e1b4e31058d2e79a8cfc8f2b440bd44db290"+dependencies = [+ "async-fs",+ "async-net",+ "enumflags2",+ "futures-channel",+ "futures-util",+ "rand 0.8.5",+ "serde",+ "serde_repr",+ "url",+ "zbus 5.5.0",+]++[[package]]+name = "async-broadcast"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "20cd0e2e25ea8e5f7e9df04578dc6cf5c83577fd09b1a46aaf5c85e1c33f2a7e"+dependencies = [+ "event-listener 5.3.1",+ "event-listener-strategy",+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "async-channel"+version = "1.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"+dependencies = [+ "concurrent-queue",+ "event-listener 2.5.3",+ "futures-core",+]++[[package]]+name = "async-channel"+version = "2.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "89b47800b0be77592da0afd425cc03468052844aff33b84e33cc696f64e77b6a"+dependencies = [+ "concurrent-queue",+ "event-listener-strategy",+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "async-executor"+version = "1.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7ebdfa2ebdab6b1760375fa7d6f382b9f486eac35fc994625a00e89280bdbb7"+dependencies = [+ "async-task",+ "concurrent-queue",+ "fastrand",+ "futures-lite",+ "slab",+]++[[package]]+name = "async-fs"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ebcd09b382f40fcd159c2d695175b2ae620ffa5f3bd6f664131efff4e8b9e04a"+dependencies = [+ "async-lock",+ "blocking",+ "futures-lite",+]++[[package]]+name = "async-global-executor"+version = "2.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c"+dependencies = [+ "async-channel 2.3.1",+ "async-executor",+ "async-io",+ "async-lock",+ "blocking",+ "futures-lite",+ "once_cell",+]++[[package]]+name = "async-io"+version = "2.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d6baa8f0178795da0e71bc42c9e5d13261aac7ee549853162e66a241ba17964"+dependencies = [+ "async-lock",+ "cfg-if 1.0.0",+ "concurrent-queue",+ "futures-io",+ "futures-lite",+ "parking",+ "polling",+ "rustix",+ "slab",+ "tracing",+ "windows-sys 0.52.0",+]++[[package]]+name = "async-lock"+version = "3.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18"+dependencies = [+ "event-listener 5.3.1",+ "event-listener-strategy",+ "pin-project-lite",+]++[[package]]+name = "async-net"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"+dependencies = [+ "async-io",+ "blocking",+ "futures-lite",+]++[[package]]+name = "async-process"+version = "2.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f7eda79bbd84e29c2b308d1dc099d7de8dcc7035e48f4bf5dc4a531a44ff5e2a"+dependencies = [+ "async-channel 2.3.1",+ "async-io",+ "async-lock",+ "async-signal",+ "async-task",+ "blocking",+ "cfg-if 1.0.0",+ "event-listener 5.3.1",+ "futures-lite",+ "rustix",+ "tracing",+ "windows-sys 0.52.0",+]++[[package]]+name = "async-recursion"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "async-signal"+version = "0.2.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dfb3634b73397aa844481f814fad23bbf07fdb0eabec10f2eb95e58944b1ec32"+dependencies = [+ "async-io",+ "async-lock",+ "atomic-waker",+ "cfg-if 1.0.0",+ "futures-core",+ "futures-io",+ "rustix",+ "signal-hook-registry",+ "slab",+ "windows-sys 0.52.0",+]++[[package]]+name = "async-std"+version = "1.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c634475f29802fde2b8f0b505b1bd00dfe4df7d4a000f0b36f7671197d5c3615"+dependencies = [+ "async-channel 1.9.0",+ "async-global-executor",+ "async-io",+ "async-lock",+ "crossbeam-utils",+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-lite",+ "gloo-timers",+ "kv-log-macro",+ "log",+ "memchr",+ "once_cell",+ "pin-project-lite",+ "pin-utils",+ "slab",+ "wasm-bindgen-futures",+]++[[package]]+name = "async-stream"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"+dependencies = [+ "async-stream-impl",+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "async-stream-impl"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "async-task"+version = "4.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"++[[package]]+name = "async-trait"+version = "0.1.81"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "atk"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4af014b17dd80e8af9fa689b2d4a211ddba6eb583c1622f35d0cb543f6b17e4"+dependencies = [+ "atk-sys",+ "glib",+ "libc",+]++[[package]]+name = "atk-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "251e0b7d90e33e0ba930891a505a9a35ece37b2dd37a14f3ffc306c13b980009"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "atomic-waker"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"++[[package]]+name = "auto-launch"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f012b8cc0c850f34117ec8252a44418f2e34a2cf501de89e29b241ae5f79471"+dependencies = [+ "dirs 4.0.0",+ "thiserror 1.0.69",+ "winreg 0.10.1",+]++[[package]]+name = "autocfg"+version = "1.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"++[[package]]+name = "av1-grain"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6678909d8c5d46a42abcf571271e15fdbc0a225e3646cf23762cd415046c78bf"+dependencies = [+ "anyhow",+ "arrayvec",+ "log",+ "nom",+ "num-rational",+ "v_frame",+]++[[package]]+name = "avif-serialize"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e335041290c43101ca215eed6f43ec437eb5a42125573f600fc3fa42b9bddd62"+dependencies = [+ "arrayvec",+]++[[package]]+name = "axum"+version = "0.6.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf"+dependencies = [+ "async-trait",+ "axum-core",+ "bitflags 1.3.2",+ "bytes",+ "futures-util",+ "http 0.2.12",+ "http-body 0.4.6",+ "hyper 0.14.30",+ "itoa 1.0.11",+ "matchit",+ "memchr",+ "mime",+ "percent-encoding",+ "pin-project-lite",+ "rustversion",+ "serde",+ "serde_json",+ "serde_path_to_error",+ "serde_urlencoded",+ "sync_wrapper 0.1.2",+ "tokio",+ "tower 0.4.13",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "axum-core"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "759fa577a247914fd3f7f76d62972792636412fbfd634cd452f6a385a74d2d2c"+dependencies = [+ "async-trait",+ "bytes",+ "futures-util",+ "http 0.2.12",+ "http-body 0.4.6",+ "mime",+ "rustversion",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "backtrace"+version = "0.3.73"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a"+dependencies = [+ "addr2line",+ "cc",+ "cfg-if 1.0.0",+ "libc",+ "miniz_oxide 0.7.4",+ "object",+ "rustc-demangle",+]++[[package]]+name = "base64"+version = "0.21.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"++[[package]]+name = "base64"+version = "0.22.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"++[[package]]+name = "bit_field"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc827186963e592360843fb5ba4b973e145841266c1357f7180c43526f2e5b61"++[[package]]+name = "bitflags"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"++[[package]]+name = "bitflags"+version = "2.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"+dependencies = [+ "serde",+]++[[package]]+name = "bitstream-io"+version = "2.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6099cdc01846bc367c4e7dd630dc5966dccf36b652fae7a74e17b640411a91b2"++[[package]]+name = "block"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"++[[package]]+name = "block-buffer"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"+dependencies = [+ "generic-array",+]++[[package]]+name = "block2"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"+dependencies = [+ "objc2",+]++[[package]]+name = "blocking"+version = "1.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "703f41c54fc768e63e091340b424302bb1c29ef4aa0c7f10fe849dfb114d29ea"+dependencies = [+ "async-channel 2.3.1",+ "async-task",+ "futures-io",+ "futures-lite",+ "piper",+]++[[package]]+name = "brotli"+version = "7.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+ "brotli-decompressor",+]++[[package]]+name = "brotli-decompressor"+version = "4.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a45bd2e4095a8b518033b128020dd4a55aab1c0a381ba4404a472630f4bc362"+dependencies = [+ "alloc-no-stdlib",+ "alloc-stdlib",+]++[[package]]+name = "built"+version = "0.7.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c360505aed52b7ec96a3636c3f039d99103c37d1d9b4f7a8c743d3ea9ffcd03b"++[[package]]+name = "bumpalo"+version = "3.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"++[[package]]+name = "bytemuck"+version = "1.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b236fc92302c97ed75b38da1f4917b5cdda4984745740f153a5d3059e48d725e"++[[package]]+name = "byteorder"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"++[[package]]+name = "byteorder-lite"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"++[[package]]+name = "bytes"+version = "1.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"+dependencies = [+ "serde",+]++[[package]]+name = "cairo-rs"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"+dependencies = [+ "bitflags 2.8.0",+ "cairo-sys-rs",+ "glib",+ "libc",+ "once_cell",+ "thiserror 1.0.69",+]++[[package]]+name = "cairo-sys-rs"+version = "0.18.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51"+dependencies = [+ "glib-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "camino"+version = "1.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239"+dependencies = [+ "serde",+]++[[package]]+name = "cargo-platform"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc"+dependencies = [+ "serde",+]++[[package]]+name = "cargo_metadata"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037"+dependencies = [+ "camino",+ "cargo-platform",+ "semver",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+]++[[package]]+name = "cargo_toml"+version = "0.17.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a969e13a7589e9e3e4207e153bae624ade2b5622fb4684a4923b23ec3d57719"+dependencies = [+ "serde",+ "toml 0.8.2",+]++[[package]]+name = "cc"+version = "1.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "324c74f2155653c90b04f25b2a47a8a631360cb908f92a772695f430c7e31052"+dependencies = [+ "jobserver",+ "libc",+]++[[package]]+name = "cesu8"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"++[[package]]+name = "cfb"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"+dependencies = [+ "byteorder",+ "fnv",+ "uuid",+]++[[package]]+name = "cfg-expr"+version = "0.15.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"+dependencies = [+ "smallvec",+ "target-lexicon",+]++[[package]]+name = "cfg-if"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"++[[package]]+name = "cfg-if"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"++[[package]]+name = "cfg_aliases"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"++[[package]]+name = "cfg_aliases"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"++[[package]]+name = "chrono"+version = "0.4.39"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825"+dependencies = [+ "android-tzdata",+ "iana-time-zone",+ "js-sys",+ "num-traits",+ "serde",+ "wasm-bindgen",+ "windows-targets 0.52.6",+]++[[package]]+name = "clap"+version = "4.5.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3135e7ec2ef7b10c6ed8950f0f792ed96ee093fa088608f1c76e569722700c84"+dependencies = [+ "clap_builder",+]++[[package]]+name = "clap_builder"+version = "4.5.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "30582fc632330df2bd26877bde0c1f4470d57c582bbc070376afcd04d8cb4838"+dependencies = [+ "anstream",+ "anstyle",+ "clap_lex",+ "strsim",+]++[[package]]+name = "clap_lex"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"++[[package]]+name = "cocoa"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c49e86fc36d5704151f5996b7b3795385f50ce09e3be0f47a0cfde869681cf8"+dependencies = [+ "bitflags 1.3.2",+ "block",+ "core-foundation 0.7.0",+ "core-graphics 0.19.2",+ "foreign-types 0.3.2",+ "libc",+ "objc",+]++[[package]]+name = "cocoa"+version = "0.25.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f6140449f97a6e97f9511815c5632d84c8aacf8ac271ad77c559218161a1373c"+dependencies = [+ "bitflags 1.3.2",+ "block",+ "cocoa-foundation 0.1.2",+ "core-foundation 0.9.4",+ "core-graphics 0.23.2",+ "foreign-types 0.5.0",+ "libc",+ "objc",+]++[[package]]+name = "cocoa"+version = "0.26.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f79398230a6e2c08f5c9760610eb6924b52aa9e7950a619602baba59dcbbdbb2"+dependencies = [+ "bitflags 2.8.0",+ "block",+ "cocoa-foundation 0.2.0",+ "core-foundation 0.10.0",+ "core-graphics 0.24.0",+ "foreign-types 0.5.0",+ "libc",+ "objc",+]++[[package]]+name = "cocoa-foundation"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"+dependencies = [+ "bitflags 1.3.2",+ "block",+ "core-foundation 0.9.4",+ "core-graphics-types 0.1.3",+ "libc",+ "objc",+]++[[package]]+name = "cocoa-foundation"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e14045fb83be07b5acf1c0884b2180461635b433455fa35d1cd6f17f1450679d"+dependencies = [+ "bitflags 2.8.0",+ "block",+ "core-foundation 0.10.0",+ "core-graphics-types 0.2.0",+ "libc",+ "objc",+]++[[package]]+name = "color_quant"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"++[[package]]+name = "colorchoice"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422"++[[package]]+name = "combine"+version = "4.6.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"+dependencies = [+ "bytes",+ "memchr",+]++[[package]]+name = "concurrent-queue"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"+dependencies = [+ "crossbeam-utils",+]++[[package]]+name = "const-random"+version = "0.1.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87e00182fe74b066627d63b85fd550ac2998d4b0bd86bfed477a0ae4c7c71359"+dependencies = [+ "const-random-macro",+]++[[package]]+name = "const-random-macro"+version = "0.1.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e"+dependencies = [+ "getrandom 0.2.15",+ "once_cell",+ "tiny-keccak",+]++[[package]]+name = "convert_case"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e"++[[package]]+name = "cookie"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"+dependencies = [+ "percent-encoding",+ "time",+ "version_check",+]++[[package]]+name = "cookie_store"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2eac901828f88a5241ee0600950ab981148a18f2f756900ffba1b125ca6a3ef9"+dependencies = [+ "cookie",+ "document-features",+ "idna 1.0.3",+ "log",+ "publicsuffix",+ "serde",+ "serde_derive",+ "serde_json",+ "time",+ "url",+]++[[package]]+name = "core-foundation"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171"+dependencies = [+ "core-foundation-sys 0.7.0",+ "libc",+]++[[package]]+name = "core-foundation"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"+dependencies = [+ "core-foundation-sys 0.8.7",+ "libc",+]++[[package]]+name = "core-foundation"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63"+dependencies = [+ "core-foundation-sys 0.8.7",+ "libc",+]++[[package]]+name = "core-foundation-sys"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac"++[[package]]+name = "core-foundation-sys"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"++[[package]]+name = "core-graphics"+version = "0.19.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923"+dependencies = [+ "bitflags 1.3.2",+ "core-foundation 0.7.0",+ "foreign-types 0.3.2",+ "libc",+]++[[package]]+name = "core-graphics"+version = "0.23.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"+dependencies = [+ "bitflags 1.3.2",+ "core-foundation 0.9.4",+ "core-graphics-types 0.1.3",+ "foreign-types 0.5.0",+ "libc",+]++[[package]]+name = "core-graphics"+version = "0.24.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"+dependencies = [+ "bitflags 2.8.0",+ "core-foundation 0.10.0",+ "core-graphics-types 0.2.0",+ "foreign-types 0.5.0",+ "libc",+]++[[package]]+name = "core-graphics-helmer-fork"+version = "0.24.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32eb7c354ae9f6d437a6039099ce7ecd049337a8109b23d73e48e8ffba8e9cd5"+dependencies = [+ "bitflags 2.8.0",+ "core-foundation 0.9.4",+ "core-graphics-types 0.1.3",+ "foreign-types 0.5.0",+ "libc",+]++[[package]]+name = "core-graphics-types"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"+dependencies = [+ "bitflags 1.3.2",+ "core-foundation 0.9.4",+ "libc",+]++[[package]]+name = "core-graphics-types"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"+dependencies = [+ "bitflags 2.8.0",+ "core-foundation 0.10.0",+ "libc",+]++[[package]]+name = "core-media-sys"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "273bf3fc5bf51fd06a7766a84788c1540b6527130a0bce39e00567d6ab9f31f1"+dependencies = [+ "cfg-if 0.1.10",+ "core-foundation-sys 0.7.0",+ "libc",+]++[[package]]+name = "core-video-sys"+version = "0.1.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828"+dependencies = [+ "cfg-if 0.1.10",+ "core-foundation-sys 0.7.0",+ "core-graphics 0.19.2",+ "libc",+ "metal",+ "objc",+]++[[package]]+name = "cpufeatures"+version = "0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"+dependencies = [+ "libc",+]++[[package]]+name = "crash-context"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "031ed29858d90cfdf27fe49fae28028a1f20466db97962fa2f4ea34809aeebf3"+dependencies = [+ "cfg-if 1.0.0",+ "libc",+ "mach2",+]++[[package]]+name = "crash-handler"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff62668cee357a18a67b5ce55bdef533d2c108d8eded362408f08face8731a71"+dependencies = [+ "cfg-if 1.0.0",+ "crash-context",+ "libc",+ "mach2",+ "parking_lot",+]++[[package]]+name = "crc32fast"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"+dependencies = [+ "cfg-if 1.0.0",+]++[[package]]+name = "crossbeam-channel"+version = "0.5.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2"+dependencies = [+ "crossbeam-utils",+]++[[package]]+name = "crossbeam-deque"+version = "0.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"+dependencies = [+ "crossbeam-epoch",+ "crossbeam-utils",+]++[[package]]+name = "crossbeam-epoch"+version = "0.9.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"+dependencies = [+ "crossbeam-utils",+]++[[package]]+name = "crossbeam-utils"+version = "0.8.20"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"++[[package]]+name = "crunchy"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"++[[package]]+name = "crypto-common"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"+dependencies = [+ "generic-array",+ "typenum",+]++[[package]]+name = "cssparser"+version = "0.27.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a"+dependencies = [+ "cssparser-macros",+ "dtoa-short",+ "itoa 0.4.8",+ "matches",+ "phf 0.8.0",+ "proc-macro2",+ "quote",+ "smallvec",+ "syn 1.0.109",+]++[[package]]+name = "cssparser-macros"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"+dependencies = [+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "ctor"+version = "0.2.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f"+dependencies = [+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "dark-light"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "18e1a09f280e29a8b00bc7e81eca5ac87dca0575639c9422a5fa25a07bb884b8"+dependencies = [+ "ashpd 0.10.3",+ "async-std",+ "objc2",+ "objc2-foundation",+ "web-sys",+ "winreg 0.52.0",+]++[[package]]+name = "darling"+version = "0.20.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"+dependencies = [+ "darling_core",+ "darling_macro",+]++[[package]]+name = "darling_core"+version = "0.20.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"+dependencies = [+ "fnv",+ "ident_case",+ "proc-macro2",+ "quote",+ "strsim",+ "syn 2.0.90",+]++[[package]]+name = "darling_macro"+version = "0.20.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"+dependencies = [+ "darling_core",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "data-url"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c297a1c74b71ae29df00c3e22dd9534821d60eb9af5a0192823fa2acea70c2a"++[[package]]+name = "debugid"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d"+dependencies = [+ "serde",+ "uuid",+]++[[package]]+name = "deranged"+version = "0.3.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"+dependencies = [+ "powerfmt",+ "serde",+]++[[package]]+name = "derivative"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "derive_arbitrary"+version = "1.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "derive_more"+version = "0.99.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce"+dependencies = [+ "convert_case",+ "proc-macro2",+ "quote",+ "rustc_version",+ "syn 2.0.90",+]++[[package]]+name = "digest"+version = "0.10.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"+dependencies = [+ "block-buffer",+ "crypto-common",+]++[[package]]+name = "dirs"+version = "4.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"+dependencies = [+ "dirs-sys 0.3.7",+]++[[package]]+name = "dirs"+version = "5.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"+dependencies = [+ "dirs-sys 0.4.1",+]++[[package]]+name = "dirs-next"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"+dependencies = [+ "cfg-if 1.0.0",+ "dirs-sys-next",+]++[[package]]+name = "dirs-sys"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"+dependencies = [+ "libc",+ "redox_users",+ "winapi",+]++[[package]]+name = "dirs-sys"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"+dependencies = [+ "libc",+ "option-ext",+ "redox_users",+ "windows-sys 0.48.0",+]++[[package]]+name = "dirs-sys-next"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"+dependencies = [+ "libc",+ "redox_users",+ "winapi",+]++[[package]]+name = "dispatch"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"++[[package]]+name = "displaydoc"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "dlib"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"+dependencies = [+ "libloading 0.8.6",+]++[[package]]+name = "dlopen2"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9e1297103d2bbaea85724fcee6294c2d50b1081f9ad47d0f6f6f61eda65315a6"+dependencies = [+ "dlopen2_derive",+ "libc",+ "once_cell",+ "winapi",+]++[[package]]+name = "dlopen2_derive"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f2b99bf03862d7f545ebc28ddd33a665b50865f4dfd84031a393823879bd4c54"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "dlv-list"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "442039f5147480ba31067cb00ada1adae6892028e40e45fc5de7b7df6dcc1b5f"+dependencies = [+ "const-random",+]++[[package]]+name = "document-features"+version = "0.2.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb6969eaabd2421f8a2775cfd2471a2b634372b4a25d41e3bd647b79912850a0"+dependencies = [+ "litrs",+]++[[package]]+name = "downcast-rs"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"++[[package]]+name = "dpi"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f25c0e292a7ca6d6498557ff1df68f32c99850012b6ea401cf8daf771f22ff53"+dependencies = [+ "serde",+]++[[package]]+name = "dtoa"+version = "1.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dcbb2bf8e87535c23f7a8a321e364ce21462d0ff10cb6407820e8e96dfff6653"++[[package]]+name = "dtoa-short"+version = "0.3.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"+dependencies = [+ "dtoa",+]++[[package]]+name = "dunce"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b"++[[package]]+name = "dyn-clone"+version = "1.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125"++[[package]]+name = "either"+version = "1.13.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"++[[package]]+name = "embed-resource"+version = "2.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6985554d0688b687c5cb73898a34fbe3ad6c24c58c238a4d91d5e840670ee9d"+dependencies = [+ "cc",+ "memchr",+ "rustc_version",+ "toml 0.8.2",+ "vswhom",+ "winreg 0.52.0",+]++[[package]]+name = "embed_plist"+version = "1.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"++[[package]]+name = "encoding_rs"+version = "0.8.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"+dependencies = [+ "cfg-if 1.0.0",+]++[[package]]+name = "endi"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3d8a32ae18130a3c84dd492d4215c3d913c3b07c6b63c2eb3eb7ff1101ab7bf"++[[package]]+name = "enumflags2"+version = "0.7.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d232db7f5956f3f14313dc2f87985c58bd2c695ce124c8cdd984e08e15ac133d"+dependencies = [+ "enumflags2_derive",+ "serde",+]++[[package]]+name = "enumflags2_derive"+version = "0.7.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "de0d48a183585823424a4ce1aa132d174a6a81bd540895822eb4c8373a8e49e8"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "equivalent"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"++[[package]]+name = "erased-serde"+version = "0.4.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24e2389d65ab4fab27dc2a5de7b191e1f6617d1f1c8855c0dc569c94a4cbb18d"+dependencies = [+ "serde",+ "typeid",+]++[[package]]+name = "errno"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"+dependencies = [+ "libc",+ "windows-sys 0.52.0",+]++[[package]]+name = "event-listener"+version = "2.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"++[[package]]+name = "event-listener"+version = "5.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6032be9bd27023a771701cc49f9f053c751055f71efb2e0ae5c15809093675ba"+dependencies = [+ "concurrent-queue",+ "parking",+ "pin-project-lite",+]++[[package]]+name = "event-listener-strategy"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1"+dependencies = [+ "event-listener 5.3.1",+ "pin-project-lite",+]++[[package]]+name = "exr"+version = "1.73.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f83197f59927b46c04a183a619b7c29df34e63e63c7869320862268c0ef687e0"+dependencies = [+ "bit_field",+ "half",+ "lebe",+ "miniz_oxide 0.8.0",+ "rayon-core",+ "smallvec",+ "zune-inflate",+]++[[package]]+name = "fastrand"+version = "2.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a"++[[package]]+name = "fdeflate"+version = "0.3.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645"+dependencies = [+ "simd-adler32",+]++[[package]]+name = "field-offset"+version = "0.3.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f"+dependencies = [+ "memoffset",+ "rustc_version",+]++[[package]]+name = "filetime"+version = "0.2.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd"+dependencies = [+ "cfg-if 1.0.0",+ "libc",+ "redox_syscall 0.4.1",+ "windows-sys 0.52.0",+]++[[package]]+name = "findshlibs"+version = "0.10.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "40b9e59cd0f7e0806cca4be089683ecb6434e602038df21fe6bf6711b2f07f64"+dependencies = [+ "cc",+ "lazy_static",+ "libc",+ "winapi",+]++[[package]]+name = "fix-path-env"+version = "0.0.0"+source = "git+https://github.com/tauri-apps/fix-path-env-rs#8481725b7ebfc56cdb052d522517421242eac36b"+dependencies = [+ "strip-ansi-escapes",+ "thiserror 1.0.69",+]++[[package]]+name = "flate2"+version = "1.0.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae"+dependencies = [+ "crc32fast",+ "miniz_oxide 0.7.4",+]++[[package]]+name = "flume"+version = "0.10.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577"+dependencies = [+ "futures-core",+ "futures-sink",+ "nanorand",+ "pin-project",+ "spin",+]++[[package]]+name = "fnv"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"++[[package]]+name = "foreign-types"+version = "0.3.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"+dependencies = [+ "foreign-types-shared 0.1.1",+]++[[package]]+name = "foreign-types"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"+dependencies = [+ "foreign-types-macros",+ "foreign-types-shared 0.3.1",+]++[[package]]+name = "foreign-types-macros"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "foreign-types-shared"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"++[[package]]+name = "foreign-types-shared"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"++[[package]]+name = "form_urlencoded"+version = "1.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"+dependencies = [+ "percent-encoding",+]++[[package]]+name = "fsevent-sys"+version = "4.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2"+dependencies = [+ "libc",+]++[[package]]+name = "futf"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"+dependencies = [+ "mac",+ "new_debug_unreachable",+]++[[package]]+name = "futures"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-io",+ "futures-sink",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-channel"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78"+dependencies = [+ "futures-core",+ "futures-sink",+]++[[package]]+name = "futures-core"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"++[[package]]+name = "futures-executor"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d"+dependencies = [+ "futures-core",+ "futures-task",+ "futures-util",+]++[[package]]+name = "futures-io"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"++[[package]]+name = "futures-lite"+version = "2.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f5edaec856126859abb19ed65f39e90fea3a9574b9707f13539acf4abf7eb532"+dependencies = [+ "fastrand",+ "futures-core",+ "futures-io",+ "parking",+ "pin-project-lite",+]++[[package]]+name = "futures-macro"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "futures-sink"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"++[[package]]+name = "futures-task"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"++[[package]]+name = "futures-util"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-macro",+ "futures-sink",+ "futures-task",+ "memchr",+ "pin-project-lite",+ "pin-utils",+ "slab",+]++[[package]]+name = "fxhash"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"+dependencies = [+ "byteorder",+]++[[package]]+name = "gdk"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f5ba081bdef3b75ebcdbfc953699ed2d7417d6bd853347a42a37d76406a33646"+dependencies = [+ "cairo-rs",+ "gdk-pixbuf",+ "gdk-sys",+ "gio",+ "glib",+ "libc",+ "pango",+]++[[package]]+name = "gdk-pixbuf"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec"+dependencies = [+ "gdk-pixbuf-sys",+ "gio",+ "glib",+ "libc",+ "once_cell",+]++[[package]]+name = "gdk-pixbuf-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7"+dependencies = [+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "gdk-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "31ff856cb3386dae1703a920f803abafcc580e9b5f711ca62ed1620c25b51ff2"+dependencies = [+ "cairo-sys-rs",+ "gdk-pixbuf-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pango-sys",+ "pkg-config",+ "system-deps",+]++[[package]]+name = "gdkwayland-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a90fbf5c033c65d93792192a49a8efb5bb1e640c419682a58bb96f5ae77f3d4a"+dependencies = [+ "gdk-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pkg-config",+ "system-deps",+]++[[package]]+name = "gdkx11"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db2ea8a4909d530f79921290389cbd7c34cb9d623bfe970eaae65ca5f9cd9cce"+dependencies = [+ "gdk",+ "gdkx11-sys",+ "gio",+ "glib",+ "libc",+ "x11",+]++[[package]]+name = "gdkx11-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fee8f00f4ee46cad2939b8990f5c70c94ff882c3028f3cc5abf950fa4ab53043"+dependencies = [+ "gdk-sys",+ "glib-sys",+ "libc",+ "system-deps",+ "x11",+]++[[package]]+name = "generic-array"+version = "0.14.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"+dependencies = [+ "typenum",+ "version_check",+]++[[package]]+name = "gethostname"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc3655aa6818d65bc620d6911f05aa7b6aeb596291e1e9f79e52df85583d1e30"+dependencies = [+ "rustix",+ "windows-targets 0.52.6",+]++[[package]]+name = "getrandom"+version = "0.1.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"+dependencies = [+ "cfg-if 1.0.0",+ "libc",+ "wasi 0.9.0+wasi-snapshot-preview1",+]++[[package]]+name = "getrandom"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"+dependencies = [+ "cfg-if 1.0.0",+ "js-sys",+ "libc",+ "wasi 0.11.0+wasi-snapshot-preview1",+ "wasm-bindgen",+]++[[package]]+name = "gif"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3fb2d69b19215e18bb912fa30f7ce15846e301408695e44e0ef719f1da9e19f2"+dependencies = [+ "color_quant",+ "weezl",+]++[[package]]+name = "gimli"+version = "0.29.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd"++[[package]]+name = "gio"+version = "0.18.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73"+dependencies = [+ "futures-channel",+ "futures-core",+ "futures-io",+ "futures-util",+ "gio-sys",+ "glib",+ "libc",+ "once_cell",+ "pin-project-lite",+ "smallvec",+ "thiserror 1.0.69",+]++[[package]]+name = "gio-sys"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+ "winapi",+]++[[package]]+name = "glib"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"+dependencies = [+ "bitflags 2.8.0",+ "futures-channel",+ "futures-core",+ "futures-executor",+ "futures-task",+ "futures-util",+ "gio-sys",+ "glib-macros",+ "glib-sys",+ "gobject-sys",+ "libc",+ "memchr",+ "once_cell",+ "smallvec",+ "thiserror 1.0.69",+]++[[package]]+name = "glib-macros"+version = "0.18.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc"+dependencies = [+ "heck 0.4.1",+ "proc-macro-crate 2.0.0",+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "glib-sys"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898"+dependencies = [+ "libc",+ "system-deps",+]++[[package]]+name = "glob"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"++[[package]]+name = "global-hotkey"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d1b75248f33c73df1ed69673f6cb36d2e048ae84d29aa1d3e53199d138ebb1df"+dependencies = [+ "crossbeam-channel",+ "keyboard-types",+ "objc2",+ "objc2-app-kit",+ "once_cell",+ "serde",+ "thiserror 1.0.69",+ "windows-sys 0.59.0",+ "x11-dl",+]++[[package]]+name = "gloo-timers"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"+dependencies = [+ "futures-channel",+ "futures-core",+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "gobject-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44"+dependencies = [+ "glib-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "goblin"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b363a30c165f666402fe6a3024d3bec7ebc898f96a4a23bd1c99f8dbf3f4f47"+dependencies = [+ "log",+ "plain",+ "scroll",+]++[[package]]+name = "gtk"+version = "0.18.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93c4f5e0e20b60e10631a5f06da7fe3dda744b05ad0ea71fee2f47adf865890c"+dependencies = [+ "atk",+ "cairo-rs",+ "field-offset",+ "futures-channel",+ "gdk",+ "gdk-pixbuf",+ "gio",+ "glib",+ "gtk-sys",+ "gtk3-macros",+ "libc",+ "pango",+ "pkg-config",+]++[[package]]+name = "gtk-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "771437bf1de2c1c0b496c11505bdf748e26066bbe942dfc8f614c9460f6d7722"+dependencies = [+ "atk-sys",+ "cairo-sys-rs",+ "gdk-pixbuf-sys",+ "gdk-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "pango-sys",+ "system-deps",+]++[[package]]+name = "gtk3-macros"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c6063efb63db582968fb7df72e1ae68aa6360dcfb0a75143f34fc7d616bad75e"+dependencies = [+ "proc-macro-crate 1.3.1",+ "proc-macro-error",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "h2"+version = "0.4.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab"+dependencies = [+ "atomic-waker",+ "bytes",+ "fnv",+ "futures-core",+ "futures-sink",+ "http 1.1.0",+ "indexmap 2.7.1",+ "slab",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "half"+version = "2.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6dd08c532ae367adf81c312a4580bc67f1d0fe8bc9c460520283f4c0ff277888"+dependencies = [+ "cfg-if 1.0.0",+ "crunchy",+]++[[package]]+name = "hashbrown"+version = "0.12.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"++[[package]]+name = "hashbrown"+version = "0.14.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"++[[package]]+name = "hashbrown"+version = "0.15.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"++[[package]]+name = "heck"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"++[[package]]+name = "heck"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"++[[package]]+name = "hermit-abi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"++[[package]]+name = "hermit-abi"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"++[[package]]+name = "hex"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"++[[package]]+name = "hostname"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f9c7c7c8ac16c798734b8a24560c1362120597c40d5e1459f09498f8f6c8f2ba"+dependencies = [+ "cfg-if 1.0.0",+ "libc",+ "windows 0.52.0",+]++[[package]]+name = "html5ever"+version = "0.26.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7"+dependencies = [+ "log",+ "mac",+ "markup5ever",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "http"+version = "0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"+dependencies = [+ "bytes",+ "fnv",+ "itoa 1.0.11",+]++[[package]]+name = "http"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258"+dependencies = [+ "bytes",+ "fnv",+ "itoa 1.0.11",+]++[[package]]+name = "http-body"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"+dependencies = [+ "bytes",+ "http 0.2.12",+ "pin-project-lite",+]++[[package]]+name = "http-body"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"+dependencies = [+ "bytes",+ "http 1.1.0",+]++[[package]]+name = "http-body-util"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f"+dependencies = [+ "bytes",+ "futures-util",+ "http 1.1.0",+ "http-body 1.0.1",+ "pin-project-lite",+]++[[package]]+name = "http-range"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "21dec9db110f5f872ed9699c3ecf50cf16f423502706ba5c72462e28d3157573"++[[package]]+name = "http-range-header"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "add0ab9360ddbd88cfeb3bd9574a1d85cfdfa14db10b3e21d3700dbc4328758f"++[[package]]+name = "httparse"+version = "1.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9"++[[package]]+name = "httpdate"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"++[[package]]+name = "hyper"+version = "0.14.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9"+dependencies = [+ "bytes",+ "futures-channel",+ "futures-core",+ "futures-util",+ "http 0.2.12",+ "http-body 0.4.6",+ "httparse",+ "httpdate",+ "itoa 1.0.11",+ "pin-project-lite",+ "socket2",+ "tokio",+ "tower-service",+ "tracing",+ "want",+]++[[package]]+name = "hyper"+version = "1.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05"+dependencies = [+ "bytes",+ "futures-channel",+ "futures-util",+ "h2",+ "http 1.1.0",+ "http-body 1.0.1",+ "httparse",+ "itoa 1.0.11",+ "pin-project-lite",+ "smallvec",+ "tokio",+ "want",+]++[[package]]+name = "hyper-rustls"+version = "0.27.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155"+dependencies = [+ "futures-util",+ "http 1.1.0",+ "hyper 1.4.1",+ "hyper-util",+ "rustls",+ "rustls-pki-types",+ "tokio",+ "tokio-rustls",+ "tower-service",+ "webpki-roots",+]++[[package]]+name = "hyper-tls"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"+dependencies = [+ "bytes",+ "http-body-util",+ "hyper 1.4.1",+ "hyper-util",+ "native-tls",+ "tokio",+ "tokio-native-tls",+ "tower-service",+]++[[package]]+name = "hyper-util"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"+dependencies = [+ "bytes",+ "futures-channel",+ "futures-util",+ "http 1.1.0",+ "http-body 1.0.1",+ "hyper 1.4.1",+ "pin-project-lite",+ "socket2",+ "tokio",+ "tower-service",+ "tracing",+]++[[package]]+name = "iana-time-zone"+version = "0.1.60"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"+dependencies = [+ "android_system_properties",+ "core-foundation-sys 0.8.7",+ "iana-time-zone-haiku",+ "js-sys",+ "wasm-bindgen",+ "windows-core 0.52.0",+]++[[package]]+name = "iana-time-zone-haiku"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"+dependencies = [+ "cc",+]++[[package]]+name = "ico"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3804960be0bb5e4edb1e1ad67afd321a9ecfd875c3e65c099468fd2717d7cae"+dependencies = [+ "byteorder",+ "png",+]++[[package]]+name = "icu_collections"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"+dependencies = [+ "displaydoc",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_locid"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"+dependencies = [+ "displaydoc",+ "litemap",+ "tinystr",+ "writeable",+ "zerovec",+]++[[package]]+name = "icu_locid_transform"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"+dependencies = [+ "displaydoc",+ "icu_locid",+ "icu_locid_transform_data",+ "icu_provider",+ "tinystr",+ "zerovec",+]++[[package]]+name = "icu_locid_transform_data"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"++[[package]]+name = "icu_normalizer"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f"+dependencies = [+ "displaydoc",+ "icu_collections",+ "icu_normalizer_data",+ "icu_properties",+ "icu_provider",+ "smallvec",+ "utf16_iter",+ "utf8_iter",+ "write16",+ "zerovec",+]++[[package]]+name = "icu_normalizer_data"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"++[[package]]+name = "icu_properties"+version = "1.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"+dependencies = [+ "displaydoc",+ "icu_collections",+ "icu_locid_transform",+ "icu_properties_data",+ "icu_provider",+ "tinystr",+ "zerovec",+]++[[package]]+name = "icu_properties_data"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"++[[package]]+name = "icu_provider"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"+dependencies = [+ "displaydoc",+ "icu_locid",+ "icu_provider_macros",+ "stable_deref_trait",+ "tinystr",+ "writeable",+ "yoke",+ "zerofrom",+ "zerovec",+]++[[package]]+name = "icu_provider_macros"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "ident_case"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"++[[package]]+name = "idna"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"+dependencies = [+ "unicode-bidi",+ "unicode-normalization",+]++[[package]]+name = "idna"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"+dependencies = [+ "idna_adapter",+ "smallvec",+ "utf8_iter",+]++[[package]]+name = "idna_adapter"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"+dependencies = [+ "icu_normalizer",+ "icu_properties",+]++[[package]]+name = "image"+version = "0.24.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"+dependencies = [+ "bytemuck",+ "byteorder",+ "color_quant",+ "num-traits",+]++[[package]]+name = "image"+version = "0.25.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd6f44aed642f18953a158afeb30206f4d50da59fbc66ecb53c66488de73563b"+dependencies = [+ "bytemuck",+ "byteorder-lite",+ "color_quant",+ "exr",+ "gif",+ "image-webp",+ "num-traits",+ "png",+ "qoi",+ "ravif",+ "rayon",+ "rgb",+ "tiff",+ "zune-core",+ "zune-jpeg",+]++[[package]]+name = "image-webp"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b77d01e822461baa8409e156015a1d91735549f0f2c17691bd2d996bef238f7f"+dependencies = [+ "byteorder-lite",+ "quick-error",+]++[[package]]+name = "imgref"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d0263a3d970d5c054ed9312c0057b4f3bde9c0b33836d3637361d4a9e6e7a408"++[[package]]+name = "indexmap"+version = "1.9.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"+dependencies = [+ "autocfg",+ "hashbrown 0.12.3",+ "serde",+]++[[package]]+name = "indexmap"+version = "2.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652"+dependencies = [+ "equivalent",+ "hashbrown 0.15.2",+ "serde",+]++[[package]]+name = "infer"+version = "0.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bc150e5ce2330295b8616ce0e3f53250e53af31759a9dbedad1621ba29151847"+dependencies = [+ "cfb",+]++[[package]]+name = "inotify"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f37dccff2791ab604f9babef0ba14fbe0be30bd368dc541e2b08d07c8aa908f3"+dependencies = [+ "bitflags 2.8.0",+ "inotify-sys",+ "libc",+]++[[package]]+name = "inotify-sys"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb"+dependencies = [+ "libc",+]++[[package]]+name = "instant"+version = "0.1.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222"+dependencies = [+ "cfg-if 1.0.0",+]++[[package]]+name = "interpolate_name"+version = "0.2.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "ipnet"+version = "2.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3"++[[package]]+name = "is-docker"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3"+dependencies = [+ "once_cell",+]++[[package]]+name = "is-wsl"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5"+dependencies = [+ "is-docker",+ "once_cell",+]++[[package]]+name = "is_terminal_polyfill"+version = "1.70.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800"++[[package]]+name = "itertools"+version = "0.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"+dependencies = [+ "either",+]++[[package]]+name = "itoa"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4"++[[package]]+name = "itoa"+version = "1.0.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"++[[package]]+name = "javascriptcore-rs"+version = "1.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc"+dependencies = [+ "bitflags 1.3.2",+ "glib",+ "javascriptcore-rs-sys",+]++[[package]]+name = "javascriptcore-rs-sys"+version = "1.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "jni"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"+dependencies = [+ "cesu8",+ "cfg-if 1.0.0",+ "combine",+ "jni-sys",+ "log",+ "thiserror 1.0.69",+ "walkdir",+ "windows-sys 0.45.0",+]++[[package]]+name = "jni-sys"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"++[[package]]+name = "jobserver"+version = "0.1.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"+dependencies = [+ "libc",+]++[[package]]+name = "jpeg-decoder"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f5d4a7da358eff58addd2877a45865158f0d78c911d43a5784ceb7bbf52833b0"++[[package]]+name = "js-sys"+version = "0.3.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"+dependencies = [+ "wasm-bindgen",+]++[[package]]+name = "json-patch"+version = "3.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"+dependencies = [+ "jsonptr",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+]++[[package]]+name = "jsonptr"+version = "0.6.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70"+dependencies = [+ "serde",+ "serde_json",+]++[[package]]+name = "keyboard-types"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"+dependencies = [+ "bitflags 2.8.0",+ "serde",+ "unicode-segmentation",+]++[[package]]+name = "kqueue"+version = "1.0.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c"+dependencies = [+ "kqueue-sys",+ "libc",+]++[[package]]+name = "kqueue-sys"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b"+dependencies = [+ "bitflags 1.3.2",+ "libc",+]++[[package]]+name = "kuchikiki"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8"+dependencies = [+ "cssparser",+ "html5ever",+ "indexmap 1.9.3",+ "matches",+ "selectors",+]++[[package]]+name = "kv-log-macro"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"+dependencies = [+ "log",+]++[[package]]+name = "lazy_static"+version = "1.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"++[[package]]+name = "lebe"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8"++[[package]]+name = "libappindicator"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a"+dependencies = [+ "glib",+ "gtk",+ "gtk-sys",+ "libappindicator-sys",+ "log",+]++[[package]]+name = "libappindicator-sys"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf"+dependencies = [+ "gtk-sys",+ "libloading 0.7.4",+ "once_cell",+]++[[package]]+name = "libc"+version = "0.2.169"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"++[[package]]+name = "libfuzzer-sys"+version = "0.4.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b9569d2f74e257076d8c6bfa73fb505b46b851e51ddaecc825944aa3bed17fa"+dependencies = [+ "arbitrary",+ "cc",+]++[[package]]+name = "libloading"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"+dependencies = [+ "cfg-if 1.0.0",+ "winapi",+]++[[package]]+name = "libloading"+version = "0.8.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34"+dependencies = [+ "cfg-if 1.0.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "libredox"+version = "0.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"+dependencies = [+ "bitflags 2.8.0",+ "libc",+]++[[package]]+name = "linux-raw-sys"+version = "0.4.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"++[[package]]+name = "litemap"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"++[[package]]+name = "litrs"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4ce301924b7887e9d637144fdade93f9dfff9b60981d4ac161db09720d39aa5"++[[package]]+name = "lock_api"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"+dependencies = [+ "autocfg",+ "scopeguard",+]++[[package]]+name = "log"+version = "0.4.22"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"+dependencies = [+ "value-bag",+]++[[package]]+name = "loop9"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"+dependencies = [+ "imgref",+]++[[package]]+name = "mac"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"++[[package]]+name = "mac-notification-sys"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51fca4d74ff9dbaac16a01b924bc3693fa2bba0862c2c633abc73f9a8ea21f64"+dependencies = [+ "cc",+ "dirs-next",+ "objc-foundation",+ "objc_id",+ "time",+]++[[package]]+name = "mach2"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709"+dependencies = [+ "libc",+]++[[package]]+name = "malloc_buf"+version = "0.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb"+dependencies = [+ "libc",+]++[[package]]+name = "markup5ever"+version = "0.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016"+dependencies = [+ "log",+ "phf 0.10.1",+ "phf_codegen 0.10.0",+ "string_cache",+ "string_cache_codegen",+ "tendril",+]++[[package]]+name = "matchers"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558"+dependencies = [+ "regex-automata 0.1.10",+]++[[package]]+name = "matches"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5"++[[package]]+name = "matchit"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"++[[package]]+name = "maybe-rayon"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"+dependencies = [+ "cfg-if 1.0.0",+ "rayon",+]++[[package]]+name = "memchr"+version = "2.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"++[[package]]+name = "memmap2"+version = "0.9.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f"+dependencies = [+ "libc",+]++[[package]]+name = "memoffset"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"+dependencies = [+ "autocfg",+]++[[package]]+name = "metal"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e198a0ee42bdbe9ef2c09d0b9426f3b2b47d90d93a4a9b0395c4cea605e92dc0"+dependencies = [+ "bitflags 1.3.2",+ "block",+ "cocoa 0.20.2",+ "core-graphics 0.19.2",+ "foreign-types 0.3.2",+ "log",+ "objc",+]++[[package]]+name = "mime"+version = "0.3.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"++[[package]]+name = "mime_guess"+version = "2.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e"+dependencies = [+ "mime",+ "unicase",+]++[[package]]+name = "minidump-common"+version = "0.21.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c4d14bcca0fd3ed165a03000480aaa364c6860c34e900cb2dafdf3b95340e77"+dependencies = [+ "bitflags 2.8.0",+ "debugid",+ "num-derive",+ "num-traits",+ "range-map",+ "scroll",+ "smart-default",+]++[[package]]+name = "minidump-writer"+version = "0.8.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2abcd9c8a1e6e1e9d56ce3627851f39a17ea83e17c96bc510f29d7e43d78a7d"+dependencies = [+ "bitflags 2.8.0",+ "byteorder",+ "cfg-if 1.0.0",+ "crash-context",+ "goblin",+ "libc",+ "log",+ "mach2",+ "memmap2",+ "memoffset",+ "minidump-common",+ "nix 0.28.0",+ "procfs-core",+ "scroll",+ "tempfile",+ "thiserror 1.0.69",+]++[[package]]+name = "minidumper"+version = "0.8.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b4ebc9d1f8847ec1d078f78b35ed598e0ebefa1f242d5f83cd8d7f03960a7d1"+dependencies = [+ "cfg-if 1.0.0",+ "crash-context",+ "libc",+ "log",+ "minidump-writer",+ "parking_lot",+ "polling",+ "scroll",+ "thiserror 1.0.69",+ "uds",+]++[[package]]+name = "minidumper-child"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d7c4f23f835dbe67e44ddf884d3802ff549ca5948bf60e9fd70e9a13c96324d1"+dependencies = [+ "crash-handler",+ "minidumper",+ "thiserror 1.0.69",+ "uuid",+]++[[package]]+name = "minimal-lexical"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"++[[package]]+name = "minisign-verify"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881"++[[package]]+name = "miniz_oxide"+version = "0.7.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08"+dependencies = [+ "adler",+ "simd-adler32",+]++[[package]]+name = "miniz_oxide"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1"+dependencies = [+ "adler2",+]++[[package]]+name = "mio"+version = "0.8.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c"+dependencies = [+ "libc",+ "wasi 0.11.0+wasi-snapshot-preview1",+ "windows-sys 0.48.0",+]++[[package]]+name = "mio"+version = "1.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd"+dependencies = [+ "libc",+ "log",+ "wasi 0.11.0+wasi-snapshot-preview1",+ "windows-sys 0.52.0",+]++[[package]]+name = "muda"+version = "0.15.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8123dfd4996055ac9b15a60ad263b44b01e539007523ad7a4a533a3d93b0591"+dependencies = [+ "crossbeam-channel",+ "dpi",+ "gtk",+ "keyboard-types",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "once_cell",+ "png",+ "serde",+ "thiserror 1.0.69",+ "windows-sys 0.59.0",+]++[[package]]+name = "nanorand"+version = "0.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3"+dependencies = [+ "getrandom 0.2.15",+]++[[package]]+name = "native-tls"+version = "0.2.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466"+dependencies = [+ "libc",+ "log",+ "openssl",+ "openssl-probe",+ "openssl-sys",+ "schannel",+ "security-framework",+ "security-framework-sys",+ "tempfile",+]++[[package]]+name = "ndk"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"+dependencies = [+ "bitflags 2.8.0",+ "jni-sys",+ "log",+ "ndk-sys",+ "num_enum",+ "raw-window-handle",+ "thiserror 1.0.69",+]++[[package]]+name = "ndk-context"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"++[[package]]+name = "ndk-sys"+version = "0.6.0+11769913"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"+dependencies = [+ "jni-sys",+]++[[package]]+name = "new_debug_unreachable"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"++[[package]]+name = "nix"+version = "0.27.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053"+dependencies = [+ "bitflags 2.8.0",+ "cfg-if 1.0.0",+ "libc",+ "memoffset",+]++[[package]]+name = "nix"+version = "0.28.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"+dependencies = [+ "bitflags 2.8.0",+ "cfg-if 1.0.0",+ "cfg_aliases 0.1.1",+ "libc",+]++[[package]]+name = "nix"+version = "0.29.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"+dependencies = [+ "bitflags 2.8.0",+ "cfg-if 1.0.0",+ "cfg_aliases 0.2.1",+ "libc",+ "memoffset",+]++[[package]]+name = "nodrop"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb"++[[package]]+name = "nokhwa-bindings-macos"+version = "0.2.0"+source = "git+https://github.com/CapSoftware/nokhwa?rev=0d3d1f30a78b#0d3d1f30a78bb4616b4a4d0939a29ad0c1a8e14f"+dependencies = [+ "block",+ "cocoa-foundation 0.1.2",+ "core-media-sys",+ "core-video-sys",+ "flume",+ "nokhwa-core",+ "objc",+ "once_cell",+]++[[package]]+name = "nokhwa-core"+version = "0.1.0"+source = "git+https://github.com/CapSoftware/nokhwa?rev=0d3d1f30a78b#0d3d1f30a78bb4616b4a4d0939a29ad0c1a8e14f"+dependencies = [+ "bytes",+ "image 0.24.9",+ "thiserror 1.0.69",+]++[[package]]+name = "nom"+version = "7.1.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"+dependencies = [+ "memchr",+ "minimal-lexical",+]++[[package]]+name = "noop_proc_macro"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"++[[package]]+name = "notify"+version = "8.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2fee8403b3d66ac7b26aee6e40a897d85dc5ce26f44da36b8b73e987cc52e943"+dependencies = [+ "bitflags 2.8.0",+ "filetime",+ "fsevent-sys",+ "inotify",+ "kqueue",+ "libc",+ "log",+ "mio 1.0.3",+ "notify-types",+ "walkdir",+ "windows-sys 0.59.0",+]++[[package]]+name = "notify-rust"+version = "4.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5312f837191c317644f313f7b2b39f9cb1496570c74f7c17152dd3961219551f"+dependencies = [+ "log",+ "mac-notification-sys",+ "serde",+ "tauri-winrt-notification",+ "zbus 4.0.1",+]++[[package]]+name = "notify-types"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e0826a989adedc2a244799e823aece04662b66609d96af8dff7ac6df9a8925d"++[[package]]+name = "ntapi"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e8a3895c6391c39d7fe7ebc444a87eb2991b2a0bc718fdabd071eec617fc68e4"+dependencies = [+ "winapi",+]++[[package]]+name = "nu-ansi-term"+version = "0.46.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84"+dependencies = [+ "overload",+ "winapi",+]++[[package]]+name = "num-bigint"+version = "0.4.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"+dependencies = [+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-conv"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"++[[package]]+name = "num-derive"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "num-integer"+version = "0.1.46"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"+dependencies = [+ "num-traits",+]++[[package]]+name = "num-rational"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"+dependencies = [+ "num-bigint",+ "num-integer",+ "num-traits",+]++[[package]]+name = "num-traits"+version = "0.2.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"+dependencies = [+ "autocfg",+]++[[package]]+name = "num_cpus"+version = "1.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"+dependencies = [+ "hermit-abi 0.3.9",+ "libc",+]++[[package]]+name = "num_enum"+version = "0.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02339744ee7253741199f897151b38e72257d13802d4ee837285cc2990a90845"+dependencies = [+ "num_enum_derive",+]++[[package]]+name = "num_enum_derive"+version = "0.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b"+dependencies = [+ "proc-macro-crate 3.2.0",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "objc"+version = "0.2.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"+dependencies = [+ "malloc_buf",+ "objc_exception",+]++[[package]]+name = "objc-foundation"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"+dependencies = [+ "block",+ "objc",+ "objc_id",+]++[[package]]+name = "objc-sys"+version = "0.3.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"+dependencies = [+ "cc",+]++[[package]]+name = "objc2"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"+dependencies = [+ "objc-sys",+ "objc2-encode",+]++[[package]]+name = "objc2-app-kit"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "libc",+ "objc2",+ "objc2-core-data",+ "objc2-core-image",+ "objc2-foundation",+ "objc2-quartz-core",+]++[[package]]+name = "objc2-cloud-kit"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-core-location",+ "objc2-foundation",+]++[[package]]+name = "objc2-contacts"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"+dependencies = [+ "block2",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-data"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-core-image"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"+dependencies = [+ "block2",+ "objc2",+ "objc2-foundation",+ "objc2-metal",+]++[[package]]+name = "objc2-core-location"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"+dependencies = [+ "block2",+ "objc2",+ "objc2-contacts",+ "objc2-foundation",+]++[[package]]+name = "objc2-encode"+version = "4.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7891e71393cd1f227313c9379a26a584ff3d7e6e7159e988851f0934c993f0f8"++[[package]]+name = "objc2-foundation"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "dispatch",+ "libc",+ "objc2",+]++[[package]]+name = "objc2-link-presentation"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"+dependencies = [+ "block2",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+]++[[package]]+name = "objc2-metal"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-quartz-core"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-foundation",+ "objc2-metal",+]++[[package]]+name = "objc2-symbols"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"+dependencies = [+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-ui-kit"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-cloud-kit",+ "objc2-core-data",+ "objc2-core-image",+ "objc2-core-location",+ "objc2-foundation",+ "objc2-link-presentation",+ "objc2-quartz-core",+ "objc2-symbols",+ "objc2-uniform-type-identifiers",+ "objc2-user-notifications",+]++[[package]]+name = "objc2-uniform-type-identifiers"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"+dependencies = [+ "block2",+ "objc2",+ "objc2-foundation",+]++[[package]]+name = "objc2-user-notifications"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-core-location",+ "objc2-foundation",+]++[[package]]+name = "objc2-web-kit"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "68bc69301064cebefc6c4c90ce9cba69225239e4b8ff99d445a2b5563797da65"+dependencies = [+ "bitflags 2.8.0",+ "block2",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+]++[[package]]+name = "objc_exception"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4"+dependencies = [+ "cc",+]++[[package]]+name = "objc_id"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"+dependencies = [+ "objc",+]++[[package]]+name = "object"+version = "0.36.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce"+dependencies = [+ "memchr",+]++[[package]]+name = "once_cell"+version = "1.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"++[[package]]+name = "open"+version = "5.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61a877bf6abd716642a53ef1b89fb498923a4afca5c754f9050b4d081c05c4b3"+dependencies = [+ "is-wsl",+ "libc",+ "pathdiff",+]++[[package]]+name = "openrewind"+version = "0.44.3"+dependencies = [+ "anyhow",+ "async-stream",+ "axum",+ "base64 0.22.1",+ "chrono",+ "cocoa 0.26.0",+ "core-foundation 0.10.0",+ "core-graphics-helmer-fork",+ "dark-light",+ "dirs 5.0.1",+ "fix-path-env",+ "futures",+ "gtk",+ "http 0.2.12",+ "image 0.25.5",+ "lazy_static",+ "libc",+ "log",+ "nokhwa-bindings-macos",+ "notify",+ "objc",+ "once_cell",+ "reqwest",+ "serde",+ "serde_derive",+ "serde_json",+ "sysinfo",+ "tauri",+ "tauri-build",+ "tauri-nspanel",+ "tauri-plugin-autostart",+ "tauri-plugin-cli",+ "tauri-plugin-deep-link",+ "tauri-plugin-dialog",+ "tauri-plugin-fs",+ "tauri-plugin-global-shortcut",+ "tauri-plugin-http",+ "tauri-plugin-notification",+ "tauri-plugin-opener",+ "tauri-plugin-os",+ "tauri-plugin-process",+ "tauri-plugin-sentry",+ "tauri-plugin-shell",+ "tauri-plugin-single-instance",+ "tauri-plugin-store",+ "tauri-plugin-updater",+ "tauri-utils",+ "tokio",+ "tower-http",+ "tracing",+ "tracing-appender",+ "tracing-subscriber",+ "windows-icons",+ "winreg 0.52.0",+]++[[package]]+name = "openssl"+version = "0.10.64"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95a0481286a310808298130d22dd1fef0fa571e05a8f44ec801801e84b216b1f"+dependencies = [+ "bitflags 2.8.0",+ "cfg-if 1.0.0",+ "foreign-types 0.3.2",+ "libc",+ "once_cell",+ "openssl-macros",+ "openssl-sys",+]++[[package]]+name = "openssl-macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "openssl-probe"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"++[[package]]+name = "openssl-sys"+version = "0.9.102"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c597637d56fbc83893a35eb0dd04b2b8e7a50c91e64e9493e398b5df4fb45fa2"+dependencies = [+ "cc",+ "libc",+ "pkg-config",+ "vcpkg",+]++[[package]]+name = "option-ext"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"++[[package]]+name = "ordered-multimap"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49203cdcae0030493bad186b28da2fa25645fa276a51b6fec8010d281e02ef79"+dependencies = [+ "dlv-list",+ "hashbrown 0.14.5",+]++[[package]]+name = "ordered-stream"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"+dependencies = [+ "futures-core",+ "pin-project-lite",+]++[[package]]+name = "os_info"+version = "3.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092"+dependencies = [+ "log",+ "serde",+ "windows-sys 0.52.0",+]++[[package]]+name = "os_pipe"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29d73ba8daf8fac13b0501d1abeddcfe21ba7401ada61a819144b6c2a4f32209"+dependencies = [+ "libc",+ "windows-sys 0.52.0",+]++[[package]]+name = "overload"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"++[[package]]+name = "pango"+version = "0.18.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4"+dependencies = [+ "gio",+ "glib",+ "libc",+ "once_cell",+ "pango-sys",+]++[[package]]+name = "pango-sys"+version = "0.18.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5"+dependencies = [+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "parking"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae"++[[package]]+name = "parking_lot"+version = "0.12.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27"+dependencies = [+ "lock_api",+ "parking_lot_core",+]++[[package]]+name = "parking_lot_core"+version = "0.9.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"+dependencies = [+ "cfg-if 1.0.0",+ "libc",+ "redox_syscall 0.5.3",+ "smallvec",+ "windows-targets 0.52.6",+]++[[package]]+name = "paste"+version = "1.0.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"++[[package]]+name = "pathdiff"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"++[[package]]+name = "percent-encoding"+version = "2.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"++[[package]]+name = "phf"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12"+dependencies = [+ "phf_macros 0.8.0",+ "phf_shared 0.8.0",+ "proc-macro-hack",+]++[[package]]+name = "phf"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259"+dependencies = [+ "phf_shared 0.10.0",+]++[[package]]+name = "phf"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"+dependencies = [+ "phf_macros 0.11.2",+ "phf_shared 0.11.2",+]++[[package]]+name = "phf_codegen"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815"+dependencies = [+ "phf_generator 0.8.0",+ "phf_shared 0.8.0",+]++[[package]]+name = "phf_codegen"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd"+dependencies = [+ "phf_generator 0.10.0",+ "phf_shared 0.10.0",+]++[[package]]+name = "phf_generator"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526"+dependencies = [+ "phf_shared 0.8.0",+ "rand 0.7.3",+]++[[package]]+name = "phf_generator"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6"+dependencies = [+ "phf_shared 0.10.0",+ "rand 0.8.5",+]++[[package]]+name = "phf_generator"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"+dependencies = [+ "phf_shared 0.11.2",+ "rand 0.8.5",+]++[[package]]+name = "phf_macros"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c"+dependencies = [+ "phf_generator 0.8.0",+ "phf_shared 0.8.0",+ "proc-macro-hack",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "phf_macros"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"+dependencies = [+ "phf_generator 0.11.2",+ "phf_shared 0.11.2",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "phf_shared"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7"+dependencies = [+ "siphasher",+]++[[package]]+name = "phf_shared"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096"+dependencies = [+ "siphasher",+]++[[package]]+name = "phf_shared"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"+dependencies = [+ "siphasher",+]++[[package]]+name = "pin-project"+version = "1.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3"+dependencies = [+ "pin-project-internal",+]++[[package]]+name = "pin-project-internal"+version = "1.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "pin-project-lite"+version = "0.2.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"++[[package]]+name = "pin-utils"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"++[[package]]+name = "piper"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ae1d5c74c9876f070d3e8fd503d748c7d974c3e48da8f41350fa5222ef9b4391"+dependencies = [+ "atomic-waker",+ "fastrand",+ "futures-io",+]++[[package]]+name = "pkg-config"+version = "0.3.30"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"++[[package]]+name = "plain"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"++[[package]]+name = "plist"+version = "1.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42cf17e9a1800f5f396bc67d193dc9411b59012a5876445ef450d449881e1016"+dependencies = [+ "base64 0.22.1",+ "indexmap 2.7.1",+ "quick-xml 0.32.0",+ "serde",+ "time",+]++[[package]]+name = "png"+version = "0.17.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1"+dependencies = [+ "bitflags 1.3.2",+ "crc32fast",+ "fdeflate",+ "flate2",+ "miniz_oxide 0.7.4",+]++[[package]]+name = "polling"+version = "3.7.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3ed00ed3fbf728b5816498ecd316d1716eecaced9c0c8d2c5a6740ca214985b"+dependencies = [+ "cfg-if 1.0.0",+ "concurrent-queue",+ "hermit-abi 0.4.0",+ "pin-project-lite",+ "rustix",+ "tracing",+ "windows-sys 0.52.0",+]++[[package]]+name = "powerfmt"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"++[[package]]+name = "ppv-lite86"+version = "0.2.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"++[[package]]+name = "precomputed-hash"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"++[[package]]+name = "proc-macro-crate"+version = "1.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"+dependencies = [+ "once_cell",+ "toml_edit 0.19.15",+]++[[package]]+name = "proc-macro-crate"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8"+dependencies = [+ "toml_edit 0.20.2",+]++[[package]]+name = "proc-macro-crate"+version = "3.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b"+dependencies = [+ "toml_edit 0.22.23",+]++[[package]]+name = "proc-macro-error"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"+dependencies = [+ "proc-macro-error-attr",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+ "version_check",+]++[[package]]+name = "proc-macro-error-attr"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"+dependencies = [+ "proc-macro2",+ "quote",+ "version_check",+]++[[package]]+name = "proc-macro-hack"+version = "0.5.20+deprecated"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"++[[package]]+name = "proc-macro2"+version = "1.0.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"+dependencies = [+ "unicode-ident",+]++[[package]]+name = "procfs-core"+version = "0.16.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d3554923a69f4ce04c4a754260c338f505ce22642d3830e049a399fc2059a29"+dependencies = [+ "bitflags 2.8.0",+ "hex",+]++[[package]]+name = "profiling"+version = "1.0.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "afbdc74edc00b6f6a218ca6a5364d6226a259d4b8ea1af4a0ea063f27e179f4d"+dependencies = [+ "profiling-procmacros",+]++[[package]]+name = "profiling-procmacros"+version = "1.0.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a65f2e60fbf1063868558d69c6beacf412dc755f9fc020f514b7955fc914fe30"+dependencies = [+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "psl-types"+version = "2.0.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac"++[[package]]+name = "publicsuffix"+version = "2.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6f42ea446cab60335f76979ec15e12619a2165b5ae2c12166bef27d283a9fadf"+dependencies = [+ "idna 1.0.3",+ "psl-types",+]++[[package]]+name = "qoi"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"+dependencies = [+ "bytemuck",+]++[[package]]+name = "quick-error"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"++[[package]]+name = "quick-xml"+version = "0.31.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33"+dependencies = [+ "memchr",+]++[[package]]+name = "quick-xml"+version = "0.32.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1d3a6e5838b60e0e8fa7a43f22ade549a37d61f8bdbe636d0d7816191de969c2"+dependencies = [+ "memchr",+]++[[package]]+name = "quick-xml"+version = "0.36.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f7649a7b4df05aed9ea7ec6f628c67c9953a43869b8bc50929569b2999d443fe"+dependencies = [+ "memchr",+]++[[package]]+name = "quinn"+version = "0.11.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad"+dependencies = [+ "bytes",+ "pin-project-lite",+ "quinn-proto",+ "quinn-udp",+ "rustc-hash",+ "rustls",+ "thiserror 1.0.69",+ "tokio",+ "tracing",+]++[[package]]+name = "quinn-proto"+version = "0.11.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ddf517c03a109db8100448a4be38d498df8a210a99fe0e1b9eaf39e78c640efe"+dependencies = [+ "bytes",+ "rand 0.8.5",+ "ring",+ "rustc-hash",+ "rustls",+ "slab",+ "thiserror 1.0.69",+ "tinyvec",+ "tracing",+]++[[package]]+name = "quinn-udp"+version = "0.5.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8bffec3605b73c6f1754535084a85229fa8a30f86014e6c81aeec4abb68b0285"+dependencies = [+ "libc",+ "once_cell",+ "socket2",+ "windows-sys 0.52.0",+]++[[package]]+name = "quote"+version = "1.0.36"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"+dependencies = [+ "proc-macro2",+]++[[package]]+name = "rand"+version = "0.7.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"+dependencies = [+ "getrandom 0.1.16",+ "libc",+ "rand_chacha 0.2.2",+ "rand_core 0.5.1",+ "rand_hc",+ "rand_pcg",+]++[[package]]+name = "rand"+version = "0.8.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"+dependencies = [+ "libc",+ "rand_chacha 0.3.1",+ "rand_core 0.6.4",+]++[[package]]+name = "rand_chacha"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"+dependencies = [+ "ppv-lite86",+ "rand_core 0.5.1",+]++[[package]]+name = "rand_chacha"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"+dependencies = [+ "ppv-lite86",+ "rand_core 0.6.4",+]++[[package]]+name = "rand_core"+version = "0.5.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"+dependencies = [+ "getrandom 0.1.16",+]++[[package]]+name = "rand_core"+version = "0.6.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"+dependencies = [+ "getrandom 0.2.15",+]++[[package]]+name = "rand_hc"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"+dependencies = [+ "rand_core 0.5.1",+]++[[package]]+name = "rand_pcg"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"+dependencies = [+ "rand_core 0.5.1",+]++[[package]]+name = "range-map"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "12a5a2d6c7039059af621472a4389be1215a816df61aa4d531cfe85264aee95f"+dependencies = [+ "num-traits",+]++[[package]]+name = "rav1e"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cd87ce80a7665b1cce111f8a16c1f3929f6547ce91ade6addf4ec86a8dda5ce9"+dependencies = [+ "arbitrary",+ "arg_enum_proc_macro",+ "arrayvec",+ "av1-grain",+ "bitstream-io",+ "built",+ "cfg-if 1.0.0",+ "interpolate_name",+ "itertools",+ "libc",+ "libfuzzer-sys",+ "log",+ "maybe-rayon",+ "new_debug_unreachable",+ "noop_proc_macro",+ "num-derive",+ "num-traits",+ "once_cell",+ "paste",+ "profiling",+ "rand 0.8.5",+ "rand_chacha 0.3.1",+ "simd_helpers",+ "system-deps",+ "thiserror 1.0.69",+ "v_frame",+ "wasm-bindgen",+]++[[package]]+name = "ravif"+version = "0.11.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2413fd96bd0ea5cdeeb37eaf446a22e6ed7b981d792828721e74ded1980a45c6"+dependencies = [+ "avif-serialize",+ "imgref",+ "loop9",+ "quick-error",+ "rav1e",+ "rayon",+ "rgb",+]++[[package]]+name = "raw-window-handle"+version = "0.6.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"++[[package]]+name = "rayon"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa"+dependencies = [+ "either",+ "rayon-core",+]++[[package]]+name = "rayon-core"+version = "1.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2"+dependencies = [+ "crossbeam-deque",+ "crossbeam-utils",+]++[[package]]+name = "redox_syscall"+version = "0.4.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"+dependencies = [+ "bitflags 1.3.2",+]++[[package]]+name = "redox_syscall"+version = "0.5.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"+dependencies = [+ "bitflags 2.8.0",+]++[[package]]+name = "redox_users"+version = "0.4.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891"+dependencies = [+ "getrandom 0.2.15",+ "libredox",+ "thiserror 1.0.69",+]++[[package]]+name = "regex"+version = "1.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-automata 0.4.7",+ "regex-syntax 0.8.4",+]++[[package]]+name = "regex-automata"+version = "0.1.10"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"+dependencies = [+ "regex-syntax 0.6.29",+]++[[package]]+name = "regex-automata"+version = "0.4.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"+dependencies = [+ "aho-corasick",+ "memchr",+ "regex-syntax 0.8.4",+]++[[package]]+name = "regex-syntax"+version = "0.6.29"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"++[[package]]+name = "regex-syntax"+version = "0.8.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"++[[package]]+name = "reqwest"+version = "0.12.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da"+dependencies = [+ "base64 0.22.1",+ "bytes",+ "cookie",+ "cookie_store",+ "encoding_rs",+ "futures-channel",+ "futures-core",+ "futures-util",+ "h2",+ "http 1.1.0",+ "http-body 1.0.1",+ "http-body-util",+ "hyper 1.4.1",+ "hyper-rustls",+ "hyper-tls",+ "hyper-util",+ "ipnet",+ "js-sys",+ "log",+ "mime",+ "mime_guess",+ "native-tls",+ "once_cell",+ "percent-encoding",+ "pin-project-lite",+ "quinn",+ "rustls",+ "rustls-pemfile",+ "rustls-pki-types",+ "serde",+ "serde_json",+ "serde_urlencoded",+ "sync_wrapper 1.0.1",+ "system-configuration",+ "tokio",+ "tokio-native-tls",+ "tokio-rustls",+ "tokio-util",+ "tower 0.5.2",+ "tower-service",+ "url",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "wasm-streams",+ "web-sys",+ "webpki-roots",+ "windows-registry 0.2.0",+]++[[package]]+name = "rfd"+version = "0.15.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8af382a047821a08aa6bfc09ab0d80ff48d45d8726f7cd8e44891f7cb4a4278e"+dependencies = [+ "ashpd 0.9.1",+ "block2",+ "glib-sys",+ "gobject-sys",+ "gtk-sys",+ "js-sys",+ "log",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "raw-window-handle",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+ "windows-sys 0.48.0",+]++[[package]]+name = "rgb"+version = "0.8.50"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "57397d16646700483b67d2dd6511d79318f9d057fdbd21a4066aeac8b41d310a"++[[package]]+name = "ring"+version = "0.17.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"+dependencies = [+ "cc",+ "cfg-if 1.0.0",+ "getrandom 0.2.15",+ "libc",+ "spin",+ "untrusted",+ "windows-sys 0.52.0",+]++[[package]]+name = "rust-ini"+version = "0.21.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4e310ef0e1b6eeb79169a1171daf9abcb87a2e17c03bee2c4bb100b55c75409f"+dependencies = [+ "cfg-if 1.0.0",+ "ordered-multimap",+ "trim-in-place",+]++[[package]]+name = "rustc-demangle"+version = "0.1.24"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"++[[package]]+name = "rustc-hash"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"++[[package]]+name = "rustc_version"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"+dependencies = [+ "semver",+]++[[package]]+name = "rustix"+version = "0.38.34"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"+dependencies = [+ "bitflags 2.8.0",+ "errno",+ "libc",+ "linux-raw-sys",+ "windows-sys 0.52.0",+]++[[package]]+name = "rustls"+version = "0.23.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4828ea528154ae444e5a642dbb7d5623354030dc9822b83fd9bb79683c7399d0"+dependencies = [+ "once_cell",+ "ring",+ "rustls-pki-types",+ "rustls-webpki",+ "subtle",+ "zeroize",+]++[[package]]+name = "rustls-pemfile"+version = "2.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d"+dependencies = [+ "base64 0.22.1",+ "rustls-pki-types",+]++[[package]]+name = "rustls-pki-types"+version = "1.7.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d"++[[package]]+name = "rustls-webpki"+version = "0.102.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f9a6fccd794a42c2c105b513a2f62bc3fd8f3ba57a4593677ceb0bd035164d78"+dependencies = [+ "ring",+ "rustls-pki-types",+ "untrusted",+]++[[package]]+name = "rustversion"+version = "1.0.17"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6"++[[package]]+name = "ryu"+version = "1.0.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"++[[package]]+name = "same-file"+version = "1.0.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"+dependencies = [+ "winapi-util",+]++[[package]]+name = "schannel"+version = "0.1.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534"+dependencies = [+ "windows-sys 0.52.0",+]++[[package]]+name = "schemars"+version = "0.8.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09c024468a378b7e36765cd36702b7a90cc3cba11654f6685c8f233408e89e92"+dependencies = [+ "dyn-clone",+ "indexmap 1.9.3",+ "schemars_derive",+ "serde",+ "serde_json",+ "url",+ "uuid",+]++[[package]]+name = "schemars_derive"+version = "0.8.21"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b1eee588578aff73f856ab961cd2f79e36bc45d7ded33a7562adba4667aecc0e"+dependencies = [+ "proc-macro2",+ "quote",+ "serde_derive_internals",+ "syn 2.0.90",+]++[[package]]+name = "scoped-tls"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294"++[[package]]+name = "scopeguard"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"++[[package]]+name = "scroll"+version = "0.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6"+dependencies = [+ "scroll_derive",+]++[[package]]+name = "scroll_derive"+version = "0.12.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7f81c2fde025af7e69b1d1420531c8a8811ca898919db177141a85313b1cb932"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "security-framework"+version = "2.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"+dependencies = [+ "bitflags 2.8.0",+ "core-foundation 0.9.4",+ "core-foundation-sys 0.8.7",+ "libc",+ "security-framework-sys",+]++[[package]]+name = "security-framework-sys"+version = "2.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75da29fe9b9b08fe9d6b22b5b4bcbc75d8db3aa31e639aa56bb62e9d46bfceaf"+dependencies = [+ "core-foundation-sys 0.8.7",+ "libc",+]++[[package]]+name = "selectors"+version = "0.22.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe"+dependencies = [+ "bitflags 1.3.2",+ "cssparser",+ "derive_more",+ "fxhash",+ "log",+ "matches",+ "phf 0.8.0",+ "phf_codegen 0.8.0",+ "precomputed-hash",+ "servo_arc",+ "smallvec",+ "thin-slice",+]++[[package]]+name = "semver"+version = "1.0.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"+dependencies = [+ "serde",+]++[[package]]+name = "sentry"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3a7332159e544e34db06b251b1eda5e546bd90285c3f58d9c8ff8450b484e0da"+dependencies = [+ "httpdate",+ "native-tls",+ "reqwest",+ "sentry-backtrace",+ "sentry-contexts",+ "sentry-core",+ "sentry-debug-images",+ "sentry-panic",+ "sentry-tracing",+ "tokio",+ "ureq",+]++[[package]]+name = "sentry-backtrace"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "565ec31ad37bab8e6d9f289f34913ed8768347b133706192f10606dabd5c6bc4"+dependencies = [+ "backtrace",+ "once_cell",+ "regex",+ "sentry-core",+]++[[package]]+name = "sentry-contexts"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e860275f25f27e8c0c7726ce116c7d5c928c5bba2ee73306e52b20a752298ea6"+dependencies = [+ "hostname",+ "libc",+ "os_info",+ "rustc_version",+ "sentry-core",+ "uname",+]++[[package]]+name = "sentry-core"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "653942e6141f16651273159f4b8b1eaeedf37a7554c00cd798953e64b8a9bf72"+dependencies = [+ "once_cell",+ "rand 0.8.5",+ "sentry-types",+ "serde",+ "serde_json",+]++[[package]]+name = "sentry-debug-images"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2a60bc2154e6df59beed0ac13d58f8dfaf5ad20a88548a53e29e4d92e8e835c2"+dependencies = [+ "findshlibs",+ "once_cell",+ "sentry-core",+]++[[package]]+name = "sentry-panic"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "105e3a956c8aa9dab1e4087b1657b03271bfc49d838c6ae9bfc7c58c802fd0ef"+dependencies = [+ "sentry-backtrace",+ "sentry-core",+]++[[package]]+name = "sentry-rust-minidump"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "12764b62e086bc8aa9fb777d5f3b85217902049a8104f7bb3ecbd52d48a363ae"+dependencies = [+ "minidumper-child",+ "sentry",+ "thiserror 2.0.5",+]++[[package]]+name = "sentry-tracing"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "64e75c831b4d8b34a5aec1f65f67c5d46a26c7c5d3c7abd8b5ef430796900cf8"+dependencies = [+ "sentry-backtrace",+ "sentry-core",+ "tracing-core",+ "tracing-subscriber",+]++[[package]]+name = "sentry-types"+version = "0.36.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2d4203359e60724aa05cf2385aaf5d4f147e837185d7dd2b9ccf1ee77f4420c8"+dependencies = [+ "debugid",+ "hex",+ "rand 0.8.5",+ "serde",+ "serde_json",+ "thiserror 1.0.69",+ "time",+ "url",+ "uuid",+]++[[package]]+name = "serde"+version = "1.0.204"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"+dependencies = [+ "serde_derive",+]++[[package]]+name = "serde-untagged"+version = "0.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2676ba99bd82f75cae5cbd2c8eda6fa0b8760f18978ea840e980dd5567b5c5b6"+dependencies = [+ "erased-serde",+ "serde",+ "typeid",+]++[[package]]+name = "serde_derive"+version = "1.0.204"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "serde_derive_internals"+version = "0.29.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "serde_json"+version = "1.0.120"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5"+dependencies = [+ "itoa 1.0.11",+ "ryu",+ "serde",+]++[[package]]+name = "serde_path_to_error"+version = "0.1.16"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af99884400da37c88f5e9146b7f1fd0fbcae8f6eec4e9da38b67d05486f814a6"+dependencies = [+ "itoa 1.0.11",+ "serde",+]++[[package]]+name = "serde_repr"+version = "0.1.19"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "serde_spanned"+version = "0.6.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0"+dependencies = [+ "serde",+]++[[package]]+name = "serde_urlencoded"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"+dependencies = [+ "form_urlencoded",+ "itoa 1.0.11",+ "ryu",+ "serde",+]++[[package]]+name = "serde_with"+version = "3.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "69cecfa94848272156ea67b2b1a53f20fc7bc638c4a46d2f8abde08f05f4b857"+dependencies = [+ "base64 0.22.1",+ "chrono",+ "hex",+ "indexmap 1.9.3",+ "indexmap 2.7.1",+ "serde",+ "serde_derive",+ "serde_json",+ "serde_with_macros",+ "time",+]++[[package]]+name = "serde_with_macros"+version = "3.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8fee4991ef4f274617a51ad4af30519438dacb2f56ac773b08a1922ff743350"+dependencies = [+ "darling",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "serialize-to-javascript"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c9823f2d3b6a81d98228151fdeaf848206a7855a7a042bbf9bf870449a66cafb"+dependencies = [+ "serde",+ "serde_json",+ "serialize-to-javascript-impl",+]++[[package]]+name = "serialize-to-javascript-impl"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "servo_arc"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432"+dependencies = [+ "nodrop",+ "stable_deref_trait",+]++[[package]]+name = "sha1"+version = "0.10.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba"+dependencies = [+ "cfg-if 1.0.0",+ "cpufeatures",+ "digest",+]++[[package]]+name = "sha2"+version = "0.10.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8"+dependencies = [+ "cfg-if 1.0.0",+ "cpufeatures",+ "digest",+]++[[package]]+name = "sharded-slab"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"+dependencies = [+ "lazy_static",+]++[[package]]+name = "shared_child"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef"+dependencies = [+ "libc",+ "winapi",+]++[[package]]+name = "signal-hook-registry"+version = "1.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1"+dependencies = [+ "libc",+]++[[package]]+name = "simd-adler32"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"++[[package]]+name = "simd_helpers"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"+dependencies = [+ "quote",+]++[[package]]+name = "siphasher"+version = "0.3.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"++[[package]]+name = "slab"+version = "0.4.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"+dependencies = [+ "autocfg",+]++[[package]]+name = "smallvec"+version = "1.13.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"++[[package]]+name = "smart-default"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eb01866308440fc64d6c44d9e86c5cc17adfe33c4d6eed55da9145044d0ffc1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "socket2"+version = "0.5.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"+dependencies = [+ "libc",+ "windows-sys 0.52.0",+]++[[package]]+name = "softbuffer"+version = "0.4.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d623bff5d06f60d738990980d782c8c866997d9194cfe79ecad00aa2f76826dd"+dependencies = [+ "bytemuck",+ "cfg_aliases 0.2.1",+ "core-graphics 0.23.2",+ "foreign-types 0.5.0",+ "js-sys",+ "log",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "objc2-quartz-core",+ "raw-window-handle",+ "redox_syscall 0.5.3",+ "wasm-bindgen",+ "web-sys",+ "windows-sys 0.52.0",+]++[[package]]+name = "soup3"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f"+dependencies = [+ "futures-channel",+ "gio",+ "glib",+ "libc",+ "soup3-sys",+]++[[package]]+name = "soup3-sys"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27"+dependencies = [+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "libc",+ "system-deps",+]++[[package]]+name = "spin"+version = "0.9.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"+dependencies = [+ "lock_api",+]++[[package]]+name = "stable_deref_trait"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"++[[package]]+name = "static_assertions"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"++[[package]]+name = "string_cache"+version = "0.8.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b"+dependencies = [+ "new_debug_unreachable",+ "once_cell",+ "parking_lot",+ "phf_shared 0.10.0",+ "precomputed-hash",+ "serde",+]++[[package]]+name = "string_cache_codegen"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"+dependencies = [+ "phf_generator 0.10.0",+ "phf_shared 0.10.0",+ "proc-macro2",+ "quote",+]++[[package]]+name = "strip-ansi-escapes"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "55ff8ef943b384c414f54aefa961dd2bd853add74ec75e7ac74cf91dba62bcfa"+dependencies = [+ "vte",+]++[[package]]+name = "strsim"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"++[[package]]+name = "subtle"+version = "2.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"++[[package]]+name = "swift-rs"+version = "1.0.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"+dependencies = [+ "base64 0.21.7",+ "serde",+ "serde_json",+]++[[package]]+name = "syn"+version = "1.0.109"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "syn"+version = "2.0.90"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]++[[package]]+name = "sync_wrapper"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"++[[package]]+name = "sync_wrapper"+version = "1.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394"+dependencies = [+ "futures-core",+]++[[package]]+name = "synstructure"+version = "0.13.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "sys-locale"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e801cf239ecd6ccd71f03d270d67dd53d13e90aab208bf4b8fe4ad957ea949b0"+dependencies = [+ "libc",+]++[[package]]+name = "sysinfo"+version = "0.29.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02f1dc6930a439cc5d154221b5387d153f8183529b07c19aca24ea31e0a167e1"+dependencies = [+ "cfg-if 1.0.0",+ "core-foundation-sys 0.8.7",+ "libc",+ "ntapi",+ "once_cell",+ "rayon",+ "winapi",+]++[[package]]+name = "system-configuration"+version = "0.6.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"+dependencies = [+ "bitflags 2.8.0",+ "core-foundation 0.9.4",+ "system-configuration-sys",+]++[[package]]+name = "system-configuration-sys"+version = "0.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"+dependencies = [+ "core-foundation-sys 0.8.7",+ "libc",+]++[[package]]+name = "system-deps"+version = "6.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349"+dependencies = [+ "cfg-expr",+ "heck 0.5.0",+ "pkg-config",+ "toml 0.8.2",+ "version-compare",+]++[[package]]+name = "tao"+version = "0.30.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6682a07cf5bab0b8a2bd20d0a542917ab928b5edb75ebd4eda6b05cbaab872da"+dependencies = [+ "bitflags 2.8.0",+ "cocoa 0.26.0",+ "core-foundation 0.10.0",+ "core-graphics 0.24.0",+ "crossbeam-channel",+ "dispatch",+ "dlopen2",+ "dpi",+ "gdkwayland-sys",+ "gdkx11-sys",+ "gtk",+ "instant",+ "jni",+ "lazy_static",+ "libc",+ "log",+ "ndk",+ "ndk-context",+ "ndk-sys",+ "objc",+ "once_cell",+ "parking_lot",+ "raw-window-handle",+ "scopeguard",+ "tao-macros",+ "unicode-segmentation",+ "url",+ "windows 0.58.0",+ "windows-core 0.58.0",+ "windows-version",+ "x11-dl",+]++[[package]]+name = "tao-macros"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ec114582505d158b669b136e6851f85840c109819d77c42bb7c0709f727d18c2"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "tar"+version = "0.4.41"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909"+dependencies = [+ "filetime",+ "libc",+ "xattr",+]++[[package]]+name = "target-lexicon"+version = "0.12.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2"++[[package]]+name = "tauri"+version = "2.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e545de0a2dfe296fa67db208266cd397c5a55ae782da77973ef4c4fac90e9f2c"+dependencies = [+ "anyhow",+ "bytes",+ "dirs 5.0.1",+ "dunce",+ "embed_plist",+ "futures-util",+ "getrandom 0.2.15",+ "glob",+ "gtk",+ "heck 0.5.0",+ "http 1.1.0",+ "http-range",+ "image 0.25.5",+ "jni",+ "libc",+ "log",+ "mime",+ "muda",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "percent-encoding",+ "plist",+ "raw-window-handle",+ "reqwest",+ "serde",+ "serde_json",+ "serde_repr",+ "serialize-to-javascript",+ "swift-rs",+ "tauri-build",+ "tauri-macros",+ "tauri-runtime",+ "tauri-runtime-wry",+ "tauri-utils",+ "thiserror 2.0.5",+ "tokio",+ "tray-icon",+ "url",+ "urlpattern",+ "webkit2gtk",+ "webview2-com",+ "window-vibrancy",+ "windows 0.58.0",+]++[[package]]+name = "tauri-build"+version = "2.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7bd2a4bcfaf5fb9f4be72520eefcb61ae565038f8ccba2a497d8c28f463b8c01"+dependencies = [+ "anyhow",+ "cargo_toml",+ "dirs 5.0.1",+ "glob",+ "heck 0.5.0",+ "json-patch",+ "schemars",+ "semver",+ "serde",+ "serde_json",+ "tauri-utils",+ "tauri-winres",+ "toml 0.8.2",+ "walkdir",+]++[[package]]+name = "tauri-codegen"+version = "2.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bf79faeecf301d3e969b1fae977039edb77a4c1f25cc0a961be298b54bff97cf"+dependencies = [+ "base64 0.22.1",+ "brotli",+ "ico",+ "json-patch",+ "plist",+ "png",+ "proc-macro2",+ "quote",+ "semver",+ "serde",+ "serde_json",+ "sha2",+ "syn 2.0.90",+ "tauri-utils",+ "thiserror 2.0.5",+ "time",+ "url",+ "uuid",+ "walkdir",+]++[[package]]+name = "tauri-macros"+version = "2.0.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c52027c8c5afb83166dacddc092ee8fff50772f9646d461d8c33ee887e447a03"+dependencies = [+ "heck 0.5.0",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "tauri-codegen",+ "tauri-utils",+]++[[package]]+name = "tauri-nspanel"+version = "2.0.0"+source = "git+https://github.com/ahkohd/tauri-nspanel?branch=v2#e38d989c5e97c5a55d90277765e2508b4f296832"+dependencies = [+ "bitflags 2.8.0",+ "block",+ "cocoa 0.26.0",+ "core-foundation 0.10.0",+ "core-graphics 0.24.0",+ "objc",+ "objc-foundation",+ "objc_id",+ "tauri",+]++[[package]]+name = "tauri-plugin"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "774d084450b7ec8e445ad119079307f935b7bf3d736da139a8664eb1d4909aa5"+dependencies = [+ "anyhow",+ "glob",+ "plist",+ "schemars",+ "serde",+ "serde_json",+ "tauri-utils",+ "toml 0.8.2",+ "walkdir",+]++[[package]]+name = "tauri-plugin-autostart"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b01d95fecae3c613d6d2b94a71387f03c3fc372d358fb73d6f909d41499eb2ce"+dependencies = [+ "auto-launch",+ "log",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+]++[[package]]+name = "tauri-plugin-cli"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0bec7345a851082058b1c7c516a48a9e1d173d2439baa35e27606fc4fbce3409"+dependencies = [+ "clap",+ "log",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+]++[[package]]+name = "tauri-plugin-deep-link"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "35d51ffd286073414d26353bcfc9e83e3cd63f96fa7f7a912f92f2118e5de5a6"+dependencies = [+ "dunce",+ "rust-ini",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "tauri-utils",+ "thiserror 2.0.5",+ "tracing",+ "url",+ "windows-registry 0.3.0",+ "windows-result 0.2.0",+]++[[package]]+name = "tauri-plugin-dialog"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6da13d0dd431efe6b5e40a3314d7a33d7bce8f8ed34e2bf044f95ccad82f10ec"+dependencies = [+ "log",+ "raw-window-handle",+ "rfd",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "tauri-plugin-fs",+ "thiserror 1.0.69",+ "url",+]++[[package]]+name = "tauri-plugin-fs"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ba59d7880ffdc24f72350b48bec374482803e167b7275655f6bd8426b7fc9c3"+dependencies = [+ "anyhow",+ "dunce",+ "glob",+ "percent-encoding",+ "schemars",+ "serde",+ "serde_json",+ "serde_repr",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+ "url",+ "uuid",+]++[[package]]+name = "tauri-plugin-global-shortcut"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5adf80e67dfbd2023641168cae155c9e3de70a4da208cfda5be789b4c91e8db2"+dependencies = [+ "global-hotkey",+ "log",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+]++[[package]]+name = "tauri-plugin-http"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a7125717a0cb61603a4395e299c47516b5843d71ae17139e4c92a71fa013270"+dependencies = [+ "data-url",+ "http 1.1.0",+ "regex",+ "reqwest",+ "schemars",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "tauri-plugin-fs",+ "thiserror 1.0.69",+ "tokio",+ "url",+ "urlpattern",+]++[[package]]+name = "tauri-plugin-notification"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85e26a56dd9666275f43fbfd4b803e64a5d9ea39e0d1754f4bee87456af01e67"+dependencies = [+ "log",+ "notify-rust",+ "rand 0.8.5",+ "serde",+ "serde_json",+ "serde_repr",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+ "time",+ "url",+]++[[package]]+name = "tauri-plugin-opener"+version = "2.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "635ed7c580dc3cdc61c94097d38ef517d749ffc0141c806d904e68e4b0cf1c2a"+dependencies = [+ "dunce",+ "glob",+ "objc2-app-kit",+ "objc2-foundation",+ "open",+ "schemars",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 2.0.5",+ "url",+ "windows 0.58.0",+ "zbus 5.5.0",+]++[[package]]+name = "tauri-plugin-os"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "fac65dc1cf2276651d6a53976a3be618434aacfd5a39eeecc4be9ea74e07f4fb"+dependencies = [+ "gethostname",+ "log",+ "os_info",+ "serde",+ "serde_json",+ "serialize-to-javascript",+ "sys-locale",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+]++[[package]]+name = "tauri-plugin-process"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73a682de610de60cfeea5212cbbaca9a6c25bd48854067f2aee3c27ee87ae65c"+dependencies = [+ "tauri",+ "tauri-plugin",+]++[[package]]+name = "tauri-plugin-sentry"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f45f6b016cdefb9a1dc545836b5f6e60211849c1a21ca586c37df07303175cf"+dependencies = [+ "base64 0.22.1",+ "schemars",+ "sentry",+ "sentry-rust-minidump",+ "serde",+ "tauri",+ "tauri-plugin",+ "thiserror 2.0.5",+]++[[package]]+name = "tauri-plugin-shell"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2929bb35edb7255949e0cbcb2285ff6b02371bf826ad03471077b6b3bf4e6d60"+dependencies = [+ "encoding_rs",+ "log",+ "open",+ "os_pipe",+ "regex",+ "schemars",+ "serde",+ "serde_json",+ "shared_child",+ "tauri",+ "tauri-plugin",+ "thiserror 1.0.69",+ "tokio",+]++[[package]]+name = "tauri-plugin-single-instance"+version = "2.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9245be5ccad41f2980996b37c1f97f669aee1407969b9090e3f37a4c4668dd1a"+dependencies = [+ "log",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin-deep-link",+ "thiserror 1.0.69",+ "windows-sys 0.59.0",+ "zbus 4.0.1",+]++[[package]]+name = "tauri-plugin-store"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1c0c08fae6995909f5e9a0da6038273b750221319f2c0f3b526d6de1cde21505"+dependencies = [+ "dunce",+ "serde",+ "serde_json",+ "tauri",+ "tauri-plugin",+ "thiserror 2.0.5",+ "tokio",+ "tracing",+]++[[package]]+name = "tauri-plugin-updater"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "67634d7fb3d5f4c7a85c35d1522c6c60d70b4b0d598c7e60bbcaddb853b970f6"+dependencies = [+ "base64 0.22.1",+ "dirs 5.0.1",+ "flate2",+ "futures-util",+ "http 1.1.0",+ "infer",+ "minisign-verify",+ "percent-encoding",+ "reqwest",+ "semver",+ "serde",+ "serde_json",+ "tar",+ "tauri",+ "tauri-plugin",+ "tempfile",+ "thiserror 1.0.69",+ "time",+ "tokio",+ "url",+ "windows-sys 0.59.0",+ "zip",+]++[[package]]+name = "tauri-runtime"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cce18d43f80d4aba3aa8a0c953bbe835f3d0f2370aca75e8dbb14bd4bab27958"+dependencies = [+ "dpi",+ "gtk",+ "http 1.1.0",+ "jni",+ "raw-window-handle",+ "serde",+ "serde_json",+ "tauri-utils",+ "thiserror 2.0.5",+ "url",+ "windows 0.58.0",+]++[[package]]+name = "tauri-runtime-wry"+version = "2.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9f442a38863e10129ffe2cec7bd09c2dcf8a098a3a27801a476a304d5bb991d2"+dependencies = [+ "gtk",+ "http 1.1.0",+ "jni",+ "log",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "percent-encoding",+ "raw-window-handle",+ "softbuffer",+ "tao",+ "tauri-runtime",+ "tauri-utils",+ "url",+ "webkit2gtk",+ "webview2-com",+ "windows 0.58.0",+ "wry",+]++[[package]]+name = "tauri-utils"+version = "2.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9271a88f99b4adea0dc71d0baca4505475a0bbd139fb135f62958721aaa8fe54"+dependencies = [+ "brotli",+ "cargo_metadata",+ "ctor",+ "dunce",+ "glob",+ "html5ever",+ "http 1.1.0",+ "infer",+ "json-patch",+ "kuchikiki",+ "log",+ "memchr",+ "phf 0.11.2",+ "proc-macro2",+ "quote",+ "regex",+ "schemars",+ "semver",+ "serde",+ "serde-untagged",+ "serde_json",+ "serde_with",+ "swift-rs",+ "thiserror 2.0.5",+ "toml 0.8.2",+ "url",+ "urlpattern",+ "uuid",+ "walkdir",+]++[[package]]+name = "tauri-winres"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5993dc129e544393574288923d1ec447c857f3f644187f4fbf7d9a875fbfc4fb"+dependencies = [+ "embed-resource",+ "toml 0.7.8",+]++[[package]]+name = "tauri-winrt-notification"+version = "0.2.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f89f5fb70d6f62381f5d9b2ba9008196150b40b75f3068eb24faeddf1c686871"+dependencies = [+ "quick-xml 0.31.0",+ "windows 0.56.0",+ "windows-version",+]++[[package]]+name = "tempfile"+version = "3.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1"+dependencies = [+ "cfg-if 1.0.0",+ "fastrand",+ "rustix",+ "windows-sys 0.52.0",+]++[[package]]+name = "tendril"+version = "0.4.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"+dependencies = [+ "futf",+ "mac",+ "utf-8",+]++[[package]]+name = "thin-slice"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c"++[[package]]+name = "thiserror"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"+dependencies = [+ "thiserror-impl 1.0.69",+]++[[package]]+name = "thiserror"+version = "2.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "643caef17e3128658ff44d85923ef2d28af81bb71e0d67bbfe1d76f19a73e053"+dependencies = [+ "thiserror-impl 2.0.5",+]++[[package]]+name = "thiserror-impl"+version = "1.0.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "thiserror-impl"+version = "2.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "995d0bbc9995d1f19d28b7215a9352b0fc3cd3a2d2ec95c2cadc485cdedbcdde"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "thread_local"+version = "1.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c"+dependencies = [+ "cfg-if 1.0.0",+ "once_cell",+]++[[package]]+name = "tiff"+version = "0.9.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ba1310fcea54c6a9a4fd1aad794ecc02c31682f6bfbecdf460bf19533eed1e3e"+dependencies = [+ "flate2",+ "jpeg-decoder",+ "weezl",+]++[[package]]+name = "time"+version = "0.3.36"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"+dependencies = [+ "deranged",+ "itoa 1.0.11",+ "num-conv",+ "powerfmt",+ "serde",+ "time-core",+ "time-macros",+]++[[package]]+name = "time-core"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"++[[package]]+name = "time-macros"+version = "0.2.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"+dependencies = [+ "num-conv",+ "time-core",+]++[[package]]+name = "tiny-keccak"+version = "2.0.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"+dependencies = [+ "crunchy",+]++[[package]]+name = "tinystr"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"+dependencies = [+ "displaydoc",+ "zerovec",+]++[[package]]+name = "tinyvec"+version = "1.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"+dependencies = [+ "tinyvec_macros",+]++[[package]]+name = "tinyvec_macros"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"++[[package]]+name = "tokio"+version = "1.38.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df"+dependencies = [+ "backtrace",+ "bytes",+ "libc",+ "mio 0.8.11",+ "num_cpus",+ "parking_lot",+ "pin-project-lite",+ "signal-hook-registry",+ "socket2",+ "tokio-macros",+ "tracing",+ "windows-sys 0.48.0",+]++[[package]]+name = "tokio-macros"+version = "2.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "tokio-native-tls"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"+dependencies = [+ "native-tls",+ "tokio",+]++[[package]]+name = "tokio-rustls"+version = "0.26.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4"+dependencies = [+ "rustls",+ "rustls-pki-types",+ "tokio",+]++[[package]]+name = "tokio-util"+version = "0.7.11"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1"+dependencies = [+ "bytes",+ "futures-core",+ "futures-sink",+ "pin-project-lite",+ "tokio",+]++[[package]]+name = "toml"+version = "0.7.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257"+dependencies = [+ "serde",+ "serde_spanned",+ "toml_datetime",+ "toml_edit 0.19.15",+]++[[package]]+name = "toml"+version = "0.8.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"+dependencies = [+ "serde",+ "serde_spanned",+ "toml_datetime",+ "toml_edit 0.20.2",+]++[[package]]+name = "toml_datetime"+version = "0.6.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"+dependencies = [+ "serde",+]++[[package]]+name = "toml_edit"+version = "0.19.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"+dependencies = [+ "indexmap 2.7.1",+ "serde",+ "serde_spanned",+ "toml_datetime",+ "winnow 0.5.40",+]++[[package]]+name = "toml_edit"+version = "0.20.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"+dependencies = [+ "indexmap 2.7.1",+ "serde",+ "serde_spanned",+ "toml_datetime",+ "winnow 0.5.40",+]++[[package]]+name = "toml_edit"+version = "0.22.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02a8b472d1a3d7c18e2d61a489aee3453fd9031c33e4f55bd533f4a7adca1bee"+dependencies = [+ "indexmap 2.7.1",+ "toml_datetime",+ "winnow 0.7.1",+]++[[package]]+name = "tower"+version = "0.4.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project",+ "pin-project-lite",+ "tokio",+ "tower-layer",+ "tower-service",+ "tracing",+]++[[package]]+name = "tower"+version = "0.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"+dependencies = [+ "futures-core",+ "futures-util",+ "pin-project-lite",+ "sync_wrapper 1.0.1",+ "tokio",+ "tower-layer",+ "tower-service",+]++[[package]]+name = "tower-http"+version = "0.4.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61c5bb1d698276a2443e5ecfabc1008bf15a36c12e6a7176e7bf089ea9131140"+dependencies = [+ "bitflags 2.8.0",+ "bytes",+ "futures-core",+ "futures-util",+ "http 0.2.12",+ "http-body 0.4.6",+ "http-range-header",+ "pin-project-lite",+ "tower-layer",+ "tower-service",+ "tracing",+]++[[package]]+name = "tower-layer"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"++[[package]]+name = "tower-service"+version = "0.3.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"++[[package]]+name = "tracing"+version = "0.1.40"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"+dependencies = [+ "log",+ "pin-project-lite",+ "tracing-attributes",+ "tracing-core",+]++[[package]]+name = "tracing-appender"+version = "0.2.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf"+dependencies = [+ "crossbeam-channel",+ "thiserror 1.0.69",+ "time",+ "tracing-subscriber",+]++[[package]]+name = "tracing-attributes"+version = "0.1.27"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "tracing-core"+version = "0.1.32"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"+dependencies = [+ "once_cell",+ "valuable",+]++[[package]]+name = "tracing-log"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"+dependencies = [+ "log",+ "once_cell",+ "tracing-core",+]++[[package]]+name = "tracing-subscriber"+version = "0.3.18"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"+dependencies = [+ "matchers",+ "nu-ansi-term",+ "once_cell",+ "regex",+ "sharded-slab",+ "smallvec",+ "thread_local",+ "tracing",+ "tracing-core",+ "tracing-log",+]++[[package]]+name = "tray-icon"+version = "0.19.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "533fc2d4105e0e3d96ce1c71f2d308c9fbbe2ef9c587cab63dd627ab5bde218f"+dependencies = [+ "core-graphics 0.24.0",+ "crossbeam-channel",+ "dirs 5.0.1",+ "libappindicator",+ "muda",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "once_cell",+ "png",+ "serde",+ "thiserror 1.0.69",+ "windows-sys 0.59.0",+]++[[package]]+name = "trim-in-place"+version = "0.1.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "343e926fc669bc8cde4fa3129ab681c63671bae288b1f1081ceee6d9d37904fc"++[[package]]+name = "try-lock"+version = "0.2.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"++[[package]]+name = "typeid"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "059d83cc991e7a42fc37bd50941885db0888e34209f8cfd9aab07ddec03bc9cf"++[[package]]+name = "typenum"+version = "1.17.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"++[[package]]+name = "uds"+version = "0.4.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "885c31f06fce836457fe3ef09a59f83fe8db95d270b11cd78f40a4666c4d1661"+dependencies = [+ "libc",+]++[[package]]+name = "uds_windows"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"+dependencies = [+ "memoffset",+ "tempfile",+ "winapi",+]++[[package]]+name = "uname"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b72f89f0ca32e4db1c04e2a72f5345d59796d4866a1ee0609084569f73683dc8"+dependencies = [+ "libc",+]++[[package]]+name = "unic-char-property"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221"+dependencies = [+ "unic-char-range",+]++[[package]]+name = "unic-char-range"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc"++[[package]]+name = "unic-common"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc"++[[package]]+name = "unic-ucd-ident"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987"+dependencies = [+ "unic-char-property",+ "unic-char-range",+ "unic-ucd-version",+]++[[package]]+name = "unic-ucd-version"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4"+dependencies = [+ "unic-common",+]++[[package]]+name = "unicase"+version = "2.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539"++[[package]]+name = "unicode-bidi"+version = "0.3.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"++[[package]]+name = "unicode-ident"+version = "1.0.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"++[[package]]+name = "unicode-normalization"+version = "0.1.23"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5"+dependencies = [+ "tinyvec",+]++[[package]]+name = "unicode-segmentation"+version = "1.11.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202"++[[package]]+name = "untrusted"+version = "0.9.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"++[[package]]+name = "ureq"+version = "2.12.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d"+dependencies = [+ "base64 0.22.1",+ "log",+ "native-tls",+ "once_cell",+ "url",+]++[[package]]+name = "url"+version = "2.5.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"+dependencies = [+ "form_urlencoded",+ "idna 0.5.0",+ "percent-encoding",+ "serde",+]++[[package]]+name = "urlpattern"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d"+dependencies = [+ "regex",+ "serde",+ "unic-ucd-ident",+ "url",+]++[[package]]+name = "utf-8"+version = "0.7.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"++[[package]]+name = "utf16_iter"+version = "1.0.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"++[[package]]+name = "utf8_iter"+version = "1.0.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"++[[package]]+name = "utf8parse"+version = "0.2.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"++[[package]]+name = "uuid"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314"+dependencies = [+ "getrandom 0.2.15",+ "serde",+]++[[package]]+name = "v_frame"+version = "0.3.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d6f32aaa24bacd11e488aa9ba66369c7cd514885742c9fe08cfe85884db3e92b"+dependencies = [+ "aligned-vec",+ "num-traits",+ "wasm-bindgen",+]++[[package]]+name = "valuable"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"++[[package]]+name = "value-bag"+version = "1.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3ef4c4aa54d5d05a279399bfa921ec387b7aba77caf7a682ae8d86785b8fdad2"++[[package]]+name = "vcpkg"+version = "0.2.15"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"++[[package]]+name = "version-compare"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "852e951cb7832cb45cb1169900d19760cfa39b82bc0ea9c0e5a14ae88411c98b"++[[package]]+name = "version_check"+version = "0.9.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"++[[package]]+name = "vswhom"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"+dependencies = [+ "libc",+ "vswhom-sys",+]++[[package]]+name = "vswhom-sys"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18"+dependencies = [+ "cc",+ "libc",+]++[[package]]+name = "vte"+version = "0.11.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f5022b5fbf9407086c180e9557be968742d839e68346af7792b8592489732197"+dependencies = [+ "utf8parse",+ "vte_generate_state_changes",+]++[[package]]+name = "vte_generate_state_changes"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2e369bee1b05d510a7b4ed645f5faa90619e05437111783ea5848f28d97d3c2e"+dependencies = [+ "proc-macro2",+ "quote",+]++[[package]]+name = "walkdir"+version = "2.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"+dependencies = [+ "same-file",+ "winapi-util",+]++[[package]]+name = "want"+version = "0.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"+dependencies = [+ "try-lock",+]++[[package]]+name = "wasi"+version = "0.9.0+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"++[[package]]+name = "wasi"+version = "0.11.0+wasi-snapshot-preview1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"++[[package]]+name = "wasm-bindgen"+version = "0.2.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"+dependencies = [+ "cfg-if 1.0.0",+ "wasm-bindgen-macro",+]++[[package]]+name = "wasm-bindgen-backend"+version = "0.2.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"+dependencies = [+ "bumpalo",+ "log",+ "once_cell",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-futures"+version = "0.4.42"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0"+dependencies = [+ "cfg-if 1.0.0",+ "js-sys",+ "wasm-bindgen",+ "web-sys",+]++[[package]]+name = "wasm-bindgen-macro"+version = "0.2.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"+dependencies = [+ "quote",+ "wasm-bindgen-macro-support",+]++[[package]]+name = "wasm-bindgen-macro-support"+version = "0.2.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "wasm-bindgen-backend",+ "wasm-bindgen-shared",+]++[[package]]+name = "wasm-bindgen-shared"+version = "0.2.92"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"++[[package]]+name = "wasm-streams"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b65dc4c90b63b118468cf747d8bf3566c1913ef60be765b5730ead9e0a3ba129"+dependencies = [+ "futures-util",+ "js-sys",+ "wasm-bindgen",+ "wasm-bindgen-futures",+ "web-sys",+]++[[package]]+name = "wayland-backend"+version = "0.3.7"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "056535ced7a150d45159d3a8dc30f91a2e2d588ca0b23f70e56033622b8016f6"+dependencies = [+ "cc",+ "downcast-rs",+ "rustix",+ "scoped-tls",+ "smallvec",+ "wayland-sys",+]++[[package]]+name = "wayland-client"+version = "0.31.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e3f45d1222915ef1fd2057220c1d9d9624b7654443ea35c3877f7a52bd0a5a2d"+dependencies = [+ "bitflags 2.8.0",+ "rustix",+ "wayland-backend",+ "wayland-scanner",+]++[[package]]+name = "wayland-protocols"+version = "0.32.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2b5755d77ae9040bb872a25026555ce4cb0ae75fd923e90d25fba07d81057de0"+dependencies = [+ "bitflags 2.8.0",+ "wayland-backend",+ "wayland-client",+ "wayland-scanner",+]++[[package]]+name = "wayland-scanner"+version = "0.31.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "597f2001b2e5fc1121e3d5b9791d3e78f05ba6bfa4641053846248e3a13661c3"+dependencies = [+ "proc-macro2",+ "quick-xml 0.36.2",+ "quote",+]++[[package]]+name = "wayland-sys"+version = "0.31.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "efa8ac0d8e8ed3e3b5c9fc92c7881406a268e11555abe36493efabe649a29e09"+dependencies = [+ "dlib",+ "log",+ "pkg-config",+]++[[package]]+name = "web-sys"+version = "0.3.69"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef"+dependencies = [+ "js-sys",+ "wasm-bindgen",+]++[[package]]+name = "webkit2gtk"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "76b1bc1e54c581da1e9f179d0b38512ba358fb1af2d634a1affe42e37172361a"+dependencies = [+ "bitflags 1.3.2",+ "cairo-rs",+ "gdk",+ "gdk-sys",+ "gio",+ "gio-sys",+ "glib",+ "glib-sys",+ "gobject-sys",+ "gtk",+ "gtk-sys",+ "javascriptcore-rs",+ "libc",+ "once_cell",+ "soup3",+ "webkit2gtk-sys",+]++[[package]]+name = "webkit2gtk-sys"+version = "2.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "62daa38afc514d1f8f12b8693d30d5993ff77ced33ce30cd04deebc267a6d57c"+dependencies = [+ "bitflags 1.3.2",+ "cairo-sys-rs",+ "gdk-sys",+ "gio-sys",+ "glib-sys",+ "gobject-sys",+ "gtk-sys",+ "javascriptcore-rs-sys",+ "libc",+ "pkg-config",+ "soup3-sys",+ "system-deps",+]++[[package]]+name = "webpki-roots"+version = "0.26.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd"+dependencies = [+ "rustls-pki-types",+]++[[package]]+name = "webview2-com"+version = "0.33.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6f61ff3d9d0ee4efcb461b14eb3acfda2702d10dc329f339303fc3e57215ae2c"+dependencies = [+ "webview2-com-macros",+ "webview2-com-sys",+ "windows 0.58.0",+ "windows-core 0.58.0",+ "windows-implement 0.58.0",+ "windows-interface 0.58.0",+]++[[package]]+name = "webview2-com-macros"+version = "0.8.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1d228f15bba3b9d56dde8bddbee66fa24545bd17b48d5128ccf4a8742b18e431"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "webview2-com-sys"+version = "0.33.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886"+dependencies = [+ "thiserror 1.0.69",+ "windows 0.58.0",+ "windows-core 0.58.0",+]++[[package]]+name = "weezl"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"++[[package]]+name = "winapi"+version = "0.3.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"+dependencies = [+ "winapi-i686-pc-windows-gnu",+ "winapi-x86_64-pc-windows-gnu",+]++[[package]]+name = "winapi-i686-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"++[[package]]+name = "winapi-util"+version = "0.1.8"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b"+dependencies = [+ "windows-sys 0.52.0",+]++[[package]]+name = "winapi-x86_64-pc-windows-gnu"+version = "0.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"++[[package]]+name = "window-vibrancy"+version = "0.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33082acd404763b315866e14a0d5193f3422c81086657583937a750cdd3ec340"+dependencies = [+ "cocoa 0.25.0",+ "objc",+ "raw-window-handle",+ "windows-sys 0.52.0",+ "windows-version",+]++[[package]]+name = "windows"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"+dependencies = [+ "windows-core 0.52.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1de69df01bdf1ead2f4ac895dc77c9351aefff65b2f3db429a343f9cbf05e132"+dependencies = [+ "windows-core 0.56.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"+dependencies = [+ "windows-core 0.58.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-core"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-core"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4698e52ed2d08f8658ab0c39512a7c00ee5fe2688c65f8c0a4f06750d729f2a6"+dependencies = [+ "windows-implement 0.56.0",+ "windows-interface 0.56.0",+ "windows-result 0.1.2",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-core"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"+dependencies = [+ "windows-implement 0.58.0",+ "windows-interface 0.58.0",+ "windows-result 0.2.0",+ "windows-strings 0.1.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-icons"+version = "0.1.1"+source = "git+https://github.com/tribhuwan-kumar/windows-icons.git#f7db8e815b2d71c3b57bc6084b3451268be0d84a"+dependencies = [+ "base64 0.22.1",+ "image 0.25.5",+ "regex",+ "tokio",+ "winapi",+ "windows 0.58.0",+]++[[package]]+name = "windows-implement"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f6fc35f58ecd95a9b71c4f2329b911016e6bec66b3f2e6a4aad86bd2e99e2f9b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "windows-implement"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "windows-interface"+version = "0.56.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "08990546bf4edef8f431fa6326e032865f27138718c587dc21bc0265bbcb57cc"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "windows-interface"+version = "0.58.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "windows-registry"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"+dependencies = [+ "windows-result 0.2.0",+ "windows-strings 0.1.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-registry"+version = "0.3.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "bafa604f2104cf5ae2cc2db1dee84b7e6a5d11b05f737b60def0ffdc398cbc0a"+dependencies = [+ "windows-result 0.2.0",+ "windows-strings 0.2.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-result"+version = "0.1.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-result"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-strings"+version = "0.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"+dependencies = [+ "windows-result 0.2.0",+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-strings"+version = "0.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "978d65aedf914c664c510d9de43c8fd85ca745eaff1ed53edf409b479e441663"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.45.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"+dependencies = [+ "windows-targets 0.42.2",+]++[[package]]+name = "windows-sys"+version = "0.48.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"+dependencies = [+ "windows-targets 0.48.5",+]++[[package]]+name = "windows-sys"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-sys"+version = "0.59.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows-targets"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"+dependencies = [+ "windows_aarch64_gnullvm 0.42.2",+ "windows_aarch64_msvc 0.42.2",+ "windows_i686_gnu 0.42.2",+ "windows_i686_msvc 0.42.2",+ "windows_x86_64_gnu 0.42.2",+ "windows_x86_64_gnullvm 0.42.2",+ "windows_x86_64_msvc 0.42.2",+]++[[package]]+name = "windows-targets"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"+dependencies = [+ "windows_aarch64_gnullvm 0.48.5",+ "windows_aarch64_msvc 0.48.5",+ "windows_i686_gnu 0.48.5",+ "windows_i686_msvc 0.48.5",+ "windows_x86_64_gnu 0.48.5",+ "windows_x86_64_gnullvm 0.48.5",+ "windows_x86_64_msvc 0.48.5",+]++[[package]]+name = "windows-targets"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"+dependencies = [+ "windows_aarch64_gnullvm 0.52.6",+ "windows_aarch64_msvc 0.52.6",+ "windows_i686_gnu 0.52.6",+ "windows_i686_gnullvm",+ "windows_i686_msvc 0.52.6",+ "windows_x86_64_gnu 0.52.6",+ "windows_x86_64_gnullvm 0.52.6",+ "windows_x86_64_msvc 0.52.6",+]++[[package]]+name = "windows-version"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6998aa457c9ba8ff2fb9f13e9d2a930dabcea28f1d0ab94d687d8b3654844515"+dependencies = [+ "windows-targets 0.52.6",+]++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"++[[package]]+name = "windows_aarch64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"++[[package]]+name = "windows_aarch64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"++[[package]]+name = "windows_aarch64_msvc"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"++[[package]]+name = "windows_aarch64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"++[[package]]+name = "windows_i686_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"++[[package]]+name = "windows_i686_gnu"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"++[[package]]+name = "windows_i686_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"++[[package]]+name = "windows_i686_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"++[[package]]+name = "windows_i686_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"++[[package]]+name = "windows_i686_msvc"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"++[[package]]+name = "windows_i686_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"++[[package]]+name = "windows_x86_64_gnu"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"++[[package]]+name = "windows_x86_64_gnu"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"++[[package]]+name = "windows_x86_64_gnu"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"++[[package]]+name = "windows_x86_64_gnullvm"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"++[[package]]+name = "windows_x86_64_msvc"+version = "0.42.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"++[[package]]+name = "windows_x86_64_msvc"+version = "0.48.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"++[[package]]+name = "windows_x86_64_msvc"+version = "0.52.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"++[[package]]+name = "winnow"+version = "0.5.40"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876"+dependencies = [+ "memchr",+]++[[package]]+name = "winnow"+version = "0.7.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "86e376c75f4f43f44db463cf729e0d3acbf954d13e22c51e26e4c264b4ab545f"+dependencies = [+ "memchr",+]++[[package]]+name = "winreg"+version = "0.10.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"+dependencies = [+ "winapi",+]++[[package]]+name = "winreg"+version = "0.52.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"+dependencies = [+ "cfg-if 1.0.0",+ "windows-sys 0.48.0",+]++[[package]]+name = "write16"+version = "1.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"++[[package]]+name = "writeable"+version = "0.5.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"++[[package]]+name = "wry"+version = "0.47.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "61ce51277d65170f6379d8cda935c80e3c2d1f0ff712a123c8bddb11b31a4b73"+dependencies = [+ "base64 0.22.1",+ "block2",+ "cookie",+ "crossbeam-channel",+ "dpi",+ "dunce",+ "gdkx11",+ "gtk",+ "html5ever",+ "http 1.1.0",+ "javascriptcore-rs",+ "jni",+ "kuchikiki",+ "libc",+ "ndk",+ "objc2",+ "objc2-app-kit",+ "objc2-foundation",+ "objc2-ui-kit",+ "objc2-web-kit",+ "once_cell",+ "percent-encoding",+ "raw-window-handle",+ "sha2",+ "soup3",+ "tao-macros",+ "thiserror 1.0.69",+ "url",+ "webkit2gtk",+ "webkit2gtk-sys",+ "webview2-com",+ "windows 0.58.0",+ "windows-core 0.58.0",+ "windows-version",+ "x11-dl",+]++[[package]]+name = "x11"+version = "2.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e"+dependencies = [+ "libc",+ "pkg-config",+]++[[package]]+name = "x11-dl"+version = "2.21.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f"+dependencies = [+ "libc",+ "once_cell",+ "pkg-config",+]++[[package]]+name = "xattr"+version = "1.3.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"+dependencies = [+ "libc",+ "linux-raw-sys",+ "rustix",+]++[[package]]+name = "xdg-home"+version = "1.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ca91dcf8f93db085f3a0a29358cd0b9d670915468f4290e8b85d118a34211ab8"+dependencies = [+ "libc",+ "windows-sys 0.52.0",+]++[[package]]+name = "yoke"+version = "0.7.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40"+dependencies = [+ "serde",+ "stable_deref_trait",+ "yoke-derive",+ "zerofrom",+]++[[package]]+name = "yoke-derive"+version = "0.7.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "synstructure",+]++[[package]]+name = "zbus"+version = "4.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7b8e3d6ae3342792a6cc2340e4394334c7402f3d793b390d2c5494a4032b3030"+dependencies = [+ "async-broadcast",+ "async-executor",+ "async-fs",+ "async-io",+ "async-lock",+ "async-process",+ "async-recursion",+ "async-task",+ "async-trait",+ "blocking",+ "derivative",+ "enumflags2",+ "event-listener 5.3.1",+ "futures-core",+ "futures-sink",+ "futures-util",+ "hex",+ "nix 0.27.1",+ "ordered-stream",+ "rand 0.8.5",+ "serde",+ "serde_repr",+ "sha1",+ "static_assertions",+ "tokio",+ "tracing",+ "uds_windows",+ "windows-sys 0.52.0",+ "xdg-home",+ "zbus_macros 4.0.1",+ "zbus_names 3.0.0",+ "zvariant 4.0.0",+]++[[package]]+name = "zbus"+version = "5.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "59c333f648ea1b647bc95dc1d34807c8e25ed7a6feff3394034dc4776054b236"+dependencies = [+ "async-broadcast",+ "async-executor",+ "async-fs",+ "async-io",+ "async-lock",+ "async-process",+ "async-recursion",+ "async-task",+ "async-trait",+ "blocking",+ "enumflags2",+ "event-listener 5.3.1",+ "futures-core",+ "futures-lite",+ "hex",+ "nix 0.29.0",+ "ordered-stream",+ "serde",+ "serde_repr",+ "static_assertions",+ "tracing",+ "uds_windows",+ "windows-sys 0.59.0",+ "winnow 0.7.1",+ "xdg-home",+ "zbus_macros 5.5.0",+ "zbus_names 4.2.0",+ "zvariant 5.4.0",+]++[[package]]+name = "zbus_macros"+version = "4.0.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b7a3e850ff1e7217a3b7a07eba90d37fe9bb9e89a310f718afcde5885ca9b6d7"+dependencies = [+ "proc-macro-crate 1.3.1",+ "proc-macro2",+ "quote",+ "regex",+ "syn 1.0.109",+ "zvariant_utils 1.1.0",+]++[[package]]+name = "zbus_macros"+version = "5.5.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f325ad10eb0d0a3eb060203494c3b7ec3162a01a59db75d2deee100339709fc0"+dependencies = [+ "proc-macro-crate 3.2.0",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "zbus_names 4.2.0",+ "zvariant 5.4.0",+ "zvariant_utils 3.2.0",+]++[[package]]+name = "zbus_names"+version = "3.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c"+dependencies = [+ "serde",+ "static_assertions",+ "zvariant 4.0.0",+]++[[package]]+name = "zbus_names"+version = "4.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7be68e64bf6ce8db94f63e72f0c7eb9a60d733f7e0499e628dfab0f84d6bcb97"+dependencies = [+ "serde",+ "static_assertions",+ "winnow 0.7.1",+ "zvariant 5.4.0",+]++[[package]]+name = "zerofrom"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e"+dependencies = [+ "zerofrom-derive",+]++[[package]]+name = "zerofrom-derive"+version = "0.1.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "synstructure",+]++[[package]]+name = "zeroize"+version = "1.8.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"++[[package]]+name = "zerovec"+version = "0.10.4"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"+dependencies = [+ "yoke",+ "zerofrom",+ "zerovec-derive",+]++[[package]]+name = "zerovec-derive"+version = "0.10.3"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.90",+]++[[package]]+name = "zip"+version = "2.1.6"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "40dd8c92efc296286ce1fbd16657c5dbefff44f1b4ca01cc5f517d8b7b3d3e2e"+dependencies = [+ "arbitrary",+ "crc32fast",+ "crossbeam-utils",+ "displaydoc",+ "indexmap 2.7.1",+ "memchr",+ "thiserror 1.0.69",+]++[[package]]+name = "zune-core"+version = "0.4.12"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a"++[[package]]+name = "zune-inflate"+version = "0.2.54"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"+dependencies = [+ "simd-adler32",+]++[[package]]+name = "zune-jpeg"+version = "0.4.13"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "16099418600b4d8f028622f73ff6e3deaabdff330fb9a2a131dea781ee8b0768"+dependencies = [+ "zune-core",+]++[[package]]+name = "zvariant"+version = "4.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "4e09e8be97d44eeab994d752f341e67b3b0d80512a8b315a0671d47232ef1b65"+dependencies = [+ "endi",+ "enumflags2",+ "serde",+ "static_assertions",+ "url",+ "zvariant_derive 4.0.0",+]++[[package]]+name = "zvariant"+version = "5.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "b2df9ee044893fcffbdc25de30546edef3e32341466811ca18421e3cd6c5a3ac"+dependencies = [+ "endi",+ "enumflags2",+ "serde",+ "static_assertions",+ "url",+ "winnow 0.7.1",+ "zvariant_derive 5.4.0",+ "zvariant_utils 3.2.0",+]++[[package]]+name = "zvariant_derive"+version = "4.0.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "72a5857e2856435331636a9fbb415b09243df4521a267c5bedcd5289b4d5799e"+dependencies = [+ "proc-macro-crate 1.3.1",+ "proc-macro2",+ "quote",+ "syn 1.0.109",+ "zvariant_utils 1.1.0",+]++[[package]]+name = "zvariant_derive"+version = "5.4.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "74170caa85b8b84cc4935f2d56a57c7a15ea6185ccdd7eadb57e6edd90f94b2f"+dependencies = [+ "proc-macro-crate 3.2.0",+ "proc-macro2",+ "quote",+ "syn 2.0.90",+ "zvariant_utils 3.2.0",+]++[[package]]+name = "zvariant_utils"+version = "1.1.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "00bedb16a193cc12451873fee2a1bc6550225acece0e36f333e68326c73c8172"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 1.0.109",+]++[[package]]+name = "zvariant_utils"+version = "3.2.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "e16edfee43e5d7b553b77872d99bc36afdda75c223ca7ad5e3fbecd82ca5fc34"+dependencies = [+ "proc-macro2",+ "quote",+ "serde",+ "static_assertions",+ "syn 2.0.90",+ "winnow 0.7.1",+]diff --git a/openrewind/src-tauri/Cargo.toml b/openrewind/src-tauri/Cargo.tomlnew file mode 100644index 000000000..a169cad30--- /dev/null+++ b/openrewind/src-tauri/Cargo.toml@@ -0,0 +1,138 @@+[package]+name = "openrewind"+version = "0.44.3"+description = ""+authors = ["you"]+license = ""+repository = ""+default-run = "openrewind"+edition = "2021"+rust-version = "1.84"++# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html++[build-dependencies]+tauri-build = { version = "=2.0.3", features = [] }++[dependencies]+tauri = { version = "=2.1.1", features = [+ "protocol-asset",+ "macos-private-api",+ "tray-icon",+ "devtools",+ "image-png",+ "image-ico",+] }+tauri-utils = { version = "=2.1.0", features = [] }+# plugins+tauri-plugin-fs = "=2.0.0"+tauri-plugin-notification = "=2.0.0"+tauri-plugin-updater = "=2.0.1"+tauri-plugin-dialog = "=2.0.0"+tauri-plugin-os = "=2.0.0"+tauri-plugin-process = "=2.0.0"+tauri-plugin-autostart = "=2.0.0"+tauri-plugin-shell = "=2.0.0"+tauri-plugin-store = "=2.2.0"+tauri-plugin-http = "2"++serde = { version = "1.0", features = ["derive"] }+serde_derive = "1.0"+serde_json = "1.0"++tower-http = { version = "0.4.0", features = ["cors", "trace"] }+http = "0.2"++# Logging+log = "0.4.17"++# Dark mode or light mode+dark-light = "2.0.0"++# Tokio+tokio = { version = "1.36.0", features = ["full"] }++# HTTP client+reqwest = { version = "=0.12.12", features = ["blocking", "multipart", "json"] }++# tracing+tracing = "0.1.40"+tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }+tracing-appender = "0.2.3"+++anyhow = "1.0.71"++# System information+sysinfo = "=0.29.0"++# hakc+fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }++# server+axum = "0.6.0" # or your current version+++dirs = "5.0.1"+tauri-plugin-deep-link = "2"++once_cell = "1.20.0"+tauri-plugin-sentry = "0.4.0"++notify = "8.0.0"+futures = "0.3.30"+async-stream = "0.3"++chrono = "0.4.39"+tauri-plugin-opener = "2.2.5"++[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]+tauri-plugin-cli = "2.0.0"+tauri-plugin-global-shortcut = "2"++[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\"))".dependencies]+tauri-plugin-single-instance = { version = "2.0.0", features = ["deep-link"] }+tauri-plugin-updater = "2.0.0"++[target.'cfg(target_os = "macos")'.dependencies]+core-foundation = "=0.10.0"+libc = "0.2.152"+cocoa = "0.26.0"+objc = "0.2.7"+base64 = "0.22.1"+# bunch of hack for permissions+core-graphics-helmer-fork = "0.24.0"+nokhwa-bindings-macos = { git = "https://github.com/CapSoftware/nokhwa", rev = "0d3d1f30a78b" }+tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2" }+++[target.'cfg(target_os = "windows")'.dependencies]+winreg = "0.52.0"+lazy_static = "1.5.0"+image = "0.25.5"+windows-icons = { git = "https://github.com/tribhuwan-kumar/windows-icons.git" }++[target.'cfg(target_os = "linux")'.dependencies]+gtk = "0.18.1"+base64 = "0.22.1"++[features]+cudart = []+metal = []+mkl = []+llm = []+cargo-clippy = []+default = ["custom-protocol"]++# DO NOT REMOVE!!+custom-protocol = ["tauri/custom-protocol"]+++[package.metadata.cargo-machete]+ignored = ["tauri-utils"]++[profile.release]+codegen-units = 1+lto = true+opt-level = "s"+strip = truediff --git a/openrewind/src-tauri/Info.plist b/openrewind/src-tauri/Info.plistnew file mode 100644index 000000000..403fbb1da--- /dev/null+++ b/openrewind/src-tauri/Info.plist@@ -0,0 +1,18 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>NSMicrophoneUsageDescription</key>+ <string>This app requires microphone access to record audio.</string>+ <key>NSScreenCaptureUsageDescription</key>+ <string>This app requires screen capture access to record the screen.</string>+ <key>CGRequestScreenCaptureAccess</key>+ <string>This app requires screen capture access to record the screen.</string>+ <key>NSSystemExtensionUsageDescription</key>+ <string>This app requires system extension access to capture audio output.</string>+ <key>NSAccessibilityUsageDescription</key>+ <string>Screenpipe needs accessibility permissions to monitor UI elements and their interactions.</string>+ <key>LSUIElement</key>+ <true/>+</dict>+</plist>diff --git a/openrewind/src-tauri/assets/dmg-background.png b/openrewind/src-tauri/assets/dmg-background.pngnew file mode 100644index 000000000..feca50424Binary files /dev/null and b/openrewind/src-tauri/assets/dmg-background.png differdiff --git a/openrewind/src-tauri/assets/nsis-header.bmp b/openrewind/src-tauri/assets/nsis-header.bmpnew file mode 100644index 000000000..1841f2840Binary files /dev/null and b/openrewind/src-tauri/assets/nsis-header.bmp differdiff --git a/openrewind/src-tauri/assets/nsis-sidebar.bmp b/openrewind/src-tauri/assets/nsis-sidebar.bmpnew file mode 100644index 000000000..fd4d266caBinary files /dev/null and b/openrewind/src-tauri/assets/nsis-sidebar.bmp differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-black-failed.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-black-failed.pngnew file mode 100644index 000000000..0af51a93fBinary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-black-failed.png differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-black.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-black.pngnew file mode 100644index 000000000..78b4e4fd3Binary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-black.png differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-black.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-black.pngnew file mode 100644index 000000000..ba682b58aBinary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-black.png differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-white.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-white.pngnew file mode 100644index 000000000..fc0543b3fBinary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-updates-white.png differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-white-failed.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-white-failed.pngnew file mode 100644index 000000000..18f1cabd2Binary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-white-failed.png differdiff --git a/openrewind/src-tauri/assets/screenpipe-logo-tray-white.png b/openrewind/src-tauri/assets/screenpipe-logo-tray-white.pngnew file mode 100644index 000000000..f18b8f3b2Binary files /dev/null and b/openrewind/src-tauri/assets/screenpipe-logo-tray-white.png differdiff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svgnew file mode 100644index 000000000..b4c8b6f02--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black-failed.svg@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M57.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M58.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M61.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M62.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g id="caution-mark" transform="translate(18,18)">+ <rect x="-1.4" y="-4.29" width="1.5" height="5.1" fill="black"/>+ <circle cx="-0.65" cy="2.25" r="0.75" fill="black"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black.svgnew file mode 100644index 000000000..da10eccfa--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-black.svg@@ -0,0 +1,23 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M57.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M58.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M61.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M62.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svgnew file mode 100644index 000000000..55781f985--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-black.svg@@ -0,0 +1,8 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">+ <g>+ <path d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <path d="M18.99,18.08h-.77v-4.03s-.04-.08-.08-.08h-2.84s-.08.04-.08.08v4.03h-.77c-.41,0-.66.44-.46.79l2.47,4.28c.11.2.4.2.51,0l2.47-4.28c.2-.35-.05-.79-.46-.79Z"/>+</svg>\ No newline at end of filediff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svgnew file mode 100644index 000000000..5e34ef871--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-updates-white.svg@@ -0,0 +1,15 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <path class="cls-1" d="M18.99,18.08h-.77v-4.03s-.04-.08-.08-.08h-2.84s-.08.04-.08.08v4.03h-.77c-.41,0-.66.44-.46.79l2.47,4.28c.11.2.4.2.51,0l2.47-4.28c.2-.35-.05-.79-.46-.79Z"/>+</svg>\ No newline at end of filediff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svgnew file mode 100644index 000000000..939b4b124--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white-failed.svg@@ -0,0 +1,27 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M-30.3,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M-29.23,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M-26.39,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M-25.39,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g id="caution-mark" transform="translate(18,18)">+ <rect x="-1.4" y="-4.29" width="1.5" height="5.1" fill="#f2f2f2"/>+ <circle cx="-0.65" cy="2.25" r="0.75" fill="#f2f2f2"/>+ </g>+ </g>+ </g>+</svg>diff --git a/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white.svg b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white.svgnew file mode 100644index 000000000..bd4379203--- /dev/null+++ b/openrewind/src-tauri/assets/svg/screenpipe-logo-tray-white.svg@@ -0,0 +1,23 @@+<?xml version="1.0" encoding="UTF-8"?>+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 24 24">+ <defs>+ <style>+ .cls-1 {+ fill: #f2f2f2;+ }+ </style>+ </defs>+ <!-- Generator: Adobe Illustrator 28.6.0, SVG Export Plug-In . SVG Version: 1.2.0 Build 709) -->+ <g>+ <g id="Layer_1">+ <g>+ <path d="M-30.3,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M-29.23,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path d="M-26.39,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M-25.39,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ <g>+ <path class="cls-1" d="M13.7,13.19c-.46,2.97-2.92,5.24-5.88,5.24h-1.42v-3.78h1.42c.98,0,1.82-.6,2.2-1.46h3.68M14.77,12.19h-5.55c0,.81-.63,1.46-1.41,1.46h-1.71c-.1,0-.17-.08-.17-.17v-.46h-.54v6.98h.54v-.39c0-.1.08-.17.17-.17h1.71c3.84,0,6.96-3.25,6.96-7.24h0Z"/>+ <path class="cls-1" d="M17.61,5.57v3.78h-1.42c-.98,0-1.82.6-2.2,1.46h-3.68c.46-2.97,2.92-5.24,5.88-5.24h1.42M18.61,4h-.54v.39c0,.1-.08.17-.17.17h-1.71c-3.84,0-6.96,3.25-6.96,7.24h5.55c0-.81.63-1.46,1.41-1.46h1.71c.1,0,.17.08.17.17v.46h.54v-6.98h0Z"/>+ </g>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/openrewind/src-tauri/build.rs b/openrewind/src-tauri/build.rsnew file mode 100644index 000000000..7d606a3e7--- /dev/null+++ b/openrewind/src-tauri/build.rs@@ -0,0 +1,5 @@+fn main() {+ #[cfg(target_os = "macos")]+ println!("cargo:rustc-link-lib=framework=AVFoundation");+ tauri_build::build()+}diff --git a/openrewind/src-tauri/capabilities/main.json b/openrewind/src-tauri/capabilities/main.jsonnew file mode 100644index 000000000..517f21103--- /dev/null+++ b/openrewind/src-tauri/capabilities/main.json@@ -0,0 +1,330 @@+{+ "identifier": "migrated",+ "description": "permissions that were migrated from v1",+ "local": true,+ "windows": [+ "*"+ ],+ "remote": {+ "urls": [+ "http://localhost:*"+ ]+ },+ "permissions": [+ "core:event:allow-listen",+ "core:event:default",+ "core:app:allow-version",+ "process:allow-restart",+ "process:allow-exit",+ "notification:default",+ "core:resources:default",+ "core:menu:default",+ "core:tray:default",+ "shell:default",+ "shell:allow-open",+ "store:default",+ "shell:allow-open",+ "fs:allow-watch",+ "fs:allow-open",+ "fs:default",+ "fs:allow-read-file",+ "fs:allow-read-dir",+ "fs:allow-read",+ "fs:allow-write-file",+ "fs:read-dirs",+ "fs:allow-copy-file",+ "fs:allow-exists",+ "fs:allow-read-text-file",+ "fs:allow-create",+ "fs:allow-mkdir",+ "fs:allow-remove",+ "global-shortcut:allow-is-registered",+ "global-shortcut:allow-register",+ "global-shortcut:allow-unregister",+ "global-shortcut:allow-unregister-all",+ "global-shortcut:default",+ "sentry:default",+ "opener:allow-open-url",+ "core:window:default",+ "core:window:allow-get-all-windows",+ "core:window:allow-close",+ {+ "identifier": "fs:scope",+ "allow": [+ {+ "path": "$XDG_DATA_HOME",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$XDG_DATA_HOME/**",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$LOCALAPPDATA/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$LOCALAPPDATA/**",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APPLOCALDATA/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APPLOCALDATA/**",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APPDATA/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APPDATA/**",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APPCONFIG/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$RESOURCE/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$RESOURCE/.screenpipe/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/.screenpipe/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$APP/*",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/.screenpipe/data/**",+ "requireLiteralLeadingDot": false+ },+ {+ "path": "$HOME/.screenpipe/pipes/**",+ "requireLiteralLeadingDot": false+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "exec-sh",+ "cmd": "sh",+ "args": [+ "-c",+ {+ "validator": "\\S+"+ }+ ],+ "sidecar": false+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe",+ "cmd": "screenpipe",+ "args": true,+ "sidecar": true+ }+ ]+ },+ "cli:default",+ "shell:default",+ "shell:allow-spawn",+ "dialog:default",+ "updater:default",+ "os:default",+ "os:allow-arch",+ "os:allow-hostname",+ "os:allow-os-type",+ "core:path:default",+ "process:default",+ "core:webview:allow-internal-toggle-devtools",+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-list",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "list",+ "--output",+ "json"+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-download",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "download",+ {+ "validator": "\\S+"+ },+ "--output",+ "json"+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-enable",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "enable",+ {+ "validator": "\\S+"+ }+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-disable",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "disable",+ {+ "validator": "\\S+"+ }+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-update",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "update",+ {+ "validator": "\\S+"+ },+ {+ "validator": "\\{.*\\}"+ }+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-delete",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "delete",+ {+ "validator": "\\S+"+ },+ "--yes"+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "shell:allow-execute",+ "allow": [+ {+ "name": "screenpipe-pipe-info",+ "cmd": "screenpipe",+ "args": [+ "pipe",+ "info",+ {+ "validator": "\\S+"+ },+ "--output",+ "json"+ ],+ "sidecar": true+ }+ ]+ },+ {+ "identifier": "http:default",+ "allow": [+ {+ "url": "http://**/*",+ "methods": [+ "GET",+ "POST",+ "PUT",+ "DELETE",+ "PATCH",+ "HEAD",+ "OPTIONS"+ ]+ },+ {+ "url": "https://**/*",+ "methods": [+ "GET",+ "POST",+ "PUT",+ "DELETE",+ "PATCH",+ "HEAD",+ "OPTIONS"+ ]+ }+ ]+ },+ "deep-link:default",+ "fs:allow-write-text-file",+ {+ "identifier": "fs:scope",+ "allow": [+ {+ "path": "$APPLOCALDATA"+ },+ {+ "path": "$APPLOCALDATA/**"+ }+ ]+ },+ "opener:default",+ "opener:default"+ ]+}\ No newline at end of filediff --git a/openrewind/src-tauri/entitlements.plist b/openrewind/src-tauri/entitlements.plistnew file mode 100644index 000000000..15ff32aed--- /dev/null+++ b/openrewind/src-tauri/entitlements.plist@@ -0,0 +1,21 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+ <key>com.apple.security.device.audio-input</key>+ <true/>+ <key>com.apple.security.files.user-selected.read-write</key>+ <true/>++ <!-- DENO -->+ <!-- DEAD CODE? -->+ <key>com.apple.security.cs.allow-jit</key>+ <true/>+ <key>com.apple.security.cs.allow-unsigned-executable-memory</key>+ <true/>+ <key>com.apple.security.cs.disable-library-validation</key>+ <true/>+++</dict>+</plist>diff --git a/openrewind/src-tauri/gen/schemas/acl-manifests.json b/openrewind/src-tauri/gen/schemas/acl-manifests.jsonnew file mode 100644index 000000000..aeb195d71--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/acl-manifests.json@@ -0,0 +1 @@+{"autostart":{"default_permission":{"identifier":"default","description":"This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n","permissions":["allow-enable","allow-disable","allow-is-enabled"]},"permissions":{"allow-disable":{"identifier":"allow-disable","description":"Enables the disable command without any pre-configured scope.","commands":{"allow":["disable"],"deny":[]}},"allow-enable":{"identifier":"allow-enable","description":"Enables the enable command without any pre-configured scope.","commands":{"allow":["enable"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"deny-disable":{"identifier":"deny-disable","description":"Denies the disable command without any pre-configured scope.","commands":{"allow":[],"deny":["disable"]}},"deny-enable":{"identifier":"deny-enable","description":"Denies the enable command without any pre-configured scope.","commands":{"allow":[],"deny":["enable"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}}},"permission_sets":{},"global_scope_schema":null},"cli":{"default_permission":{"identifier":"default","description":"Allows reading the CLI matches","permissions":["allow-cli-matches"]},"permissions":{"allow-cli-matches":{"identifier":"allow-cli-matches","description":"Enables the cli_matches command without any pre-configured scope.","commands":{"allow":["cli_matches"],"deny":[]}},"deny-cli-matches":{"identifier":"deny-cli-matches","description":"Denies the cli_matches command without any pre-configured scope.","commands":{"allow":[],"deny":["cli_matches"]}}},"permission_sets":{},"global_scope_schema":null},"core":{"default_permission":{"identifier":"default","description":"Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n","permissions":["core:path:default","core:event:default","core:window:default","core:webview:default","core:app:default","core:image:default","core:resources:default","core:menu:default","core:tray:default"]},"permissions":{},"permission_sets":{},"global_scope_schema":null},"core:app":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-version","allow-name","allow-tauri-version"]},"permissions":{"allow-app-hide":{"identifier":"allow-app-hide","description":"Enables the app_hide command without any pre-configured scope.","commands":{"allow":["app_hide"],"deny":[]}},"allow-app-show":{"identifier":"allow-app-show","description":"Enables the app_show command without any pre-configured scope.","commands":{"allow":["app_show"],"deny":[]}},"allow-default-window-icon":{"identifier":"allow-default-window-icon","description":"Enables the default_window_icon command without any pre-configured scope.","commands":{"allow":["default_window_icon"],"deny":[]}},"allow-name":{"identifier":"allow-name","description":"Enables the name command without any pre-configured scope.","commands":{"allow":["name"],"deny":[]}},"allow-set-app-theme":{"identifier":"allow-set-app-theme","description":"Enables the set_app_theme command without any pre-configured scope.","commands":{"allow":["set_app_theme"],"deny":[]}},"allow-tauri-version":{"identifier":"allow-tauri-version","description":"Enables the tauri_version command without any pre-configured scope.","commands":{"allow":["tauri_version"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-app-hide":{"identifier":"deny-app-hide","description":"Denies the app_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["app_hide"]}},"deny-app-show":{"identifier":"deny-app-show","description":"Denies the app_show command without any pre-configured scope.","commands":{"allow":[],"deny":["app_show"]}},"deny-default-window-icon":{"identifier":"deny-default-window-icon","description":"Denies the default_window_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["default_window_icon"]}},"deny-name":{"identifier":"deny-name","description":"Denies the name command without any pre-configured scope.","commands":{"allow":[],"deny":["name"]}},"deny-set-app-theme":{"identifier":"deny-set-app-theme","description":"Denies the set_app_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_app_theme"]}},"deny-tauri-version":{"identifier":"deny-tauri-version","description":"Denies the tauri_version command without any pre-configured scope.","commands":{"allow":[],"deny":["tauri_version"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"core:event":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-listen","allow-unlisten","allow-emit","allow-emit-to"]},"permissions":{"allow-emit":{"identifier":"allow-emit","description":"Enables the emit command without any pre-configured scope.","commands":{"allow":["emit"],"deny":[]}},"allow-emit-to":{"identifier":"allow-emit-to","description":"Enables the emit_to command without any pre-configured scope.","commands":{"allow":["emit_to"],"deny":[]}},"allow-listen":{"identifier":"allow-listen","description":"Enables the listen command without any pre-configured scope.","commands":{"allow":["listen"],"deny":[]}},"allow-unlisten":{"identifier":"allow-unlisten","description":"Enables the unlisten command without any pre-configured scope.","commands":{"allow":["unlisten"],"deny":[]}},"deny-emit":{"identifier":"deny-emit","description":"Denies the emit command without any pre-configured scope.","commands":{"allow":[],"deny":["emit"]}},"deny-emit-to":{"identifier":"deny-emit-to","description":"Denies the emit_to command without any pre-configured scope.","commands":{"allow":[],"deny":["emit_to"]}},"deny-listen":{"identifier":"deny-listen","description":"Denies the listen command without any pre-configured scope.","commands":{"allow":[],"deny":["listen"]}},"deny-unlisten":{"identifier":"deny-unlisten","description":"Denies the unlisten command without any pre-configured scope.","commands":{"allow":[],"deny":["unlisten"]}}},"permission_sets":{},"global_scope_schema":null},"core:image":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-from-bytes","allow-from-path","allow-rgba","allow-size"]},"permissions":{"allow-from-bytes":{"identifier":"allow-from-bytes","description":"Enables the from_bytes command without any pre-configured scope.","commands":{"allow":["from_bytes"],"deny":[]}},"allow-from-path":{"identifier":"allow-from-path","description":"Enables the from_path command without any pre-configured scope.","commands":{"allow":["from_path"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-rgba":{"identifier":"allow-rgba","description":"Enables the rgba command without any pre-configured scope.","commands":{"allow":["rgba"],"deny":[]}},"allow-size":{"identifier":"allow-size","description":"Enables the size command without any pre-configured scope.","commands":{"allow":["size"],"deny":[]}},"deny-from-bytes":{"identifier":"deny-from-bytes","description":"Denies the from_bytes command without any pre-configured scope.","commands":{"allow":[],"deny":["from_bytes"]}},"deny-from-path":{"identifier":"deny-from-path","description":"Denies the from_path command without any pre-configured scope.","commands":{"allow":[],"deny":["from_path"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-rgba":{"identifier":"deny-rgba","description":"Denies the rgba command without any pre-configured scope.","commands":{"allow":[],"deny":["rgba"]}},"deny-size":{"identifier":"deny-size","description":"Denies the size command without any pre-configured scope.","commands":{"allow":[],"deny":["size"]}}},"permission_sets":{},"global_scope_schema":null},"core:menu":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-append","allow-prepend","allow-insert","allow-remove","allow-remove-at","allow-items","allow-get","allow-popup","allow-create-default","allow-set-as-app-menu","allow-set-as-window-menu","allow-text","allow-set-text","allow-is-enabled","allow-set-enabled","allow-set-accelerator","allow-set-as-windows-menu-for-nsapp","allow-set-as-help-menu-for-nsapp","allow-is-checked","allow-set-checked","allow-set-icon"]},"permissions":{"allow-append":{"identifier":"allow-append","description":"Enables the append command without any pre-configured scope.","commands":{"allow":["append"],"deny":[]}},"allow-create-default":{"identifier":"allow-create-default","description":"Enables the create_default command without any pre-configured scope.","commands":{"allow":["create_default"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-insert":{"identifier":"allow-insert","description":"Enables the insert command without any pre-configured scope.","commands":{"allow":["insert"],"deny":[]}},"allow-is-checked":{"identifier":"allow-is-checked","description":"Enables the is_checked command without any pre-configured scope.","commands":{"allow":["is_checked"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-items":{"identifier":"allow-items","description":"Enables the items command without any pre-configured scope.","commands":{"allow":["items"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-popup":{"identifier":"allow-popup","description":"Enables the popup command without any pre-configured scope.","commands":{"allow":["popup"],"deny":[]}},"allow-prepend":{"identifier":"allow-prepend","description":"Enables the prepend command without any pre-configured scope.","commands":{"allow":["prepend"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-remove-at":{"identifier":"allow-remove-at","description":"Enables the remove_at command without any pre-configured scope.","commands":{"allow":["remove_at"],"deny":[]}},"allow-set-accelerator":{"identifier":"allow-set-accelerator","description":"Enables the set_accelerator command without any pre-configured scope.","commands":{"allow":["set_accelerator"],"deny":[]}},"allow-set-as-app-menu":{"identifier":"allow-set-as-app-menu","description":"Enables the set_as_app_menu command without any pre-configured scope.","commands":{"allow":["set_as_app_menu"],"deny":[]}},"allow-set-as-help-menu-for-nsapp":{"identifier":"allow-set-as-help-menu-for-nsapp","description":"Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_help_menu_for_nsapp"],"deny":[]}},"allow-set-as-window-menu":{"identifier":"allow-set-as-window-menu","description":"Enables the set_as_window_menu command without any pre-configured scope.","commands":{"allow":["set_as_window_menu"],"deny":[]}},"allow-set-as-windows-menu-for-nsapp":{"identifier":"allow-set-as-windows-menu-for-nsapp","description":"Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":["set_as_windows_menu_for_nsapp"],"deny":[]}},"allow-set-checked":{"identifier":"allow-set-checked","description":"Enables the set_checked command without any pre-configured scope.","commands":{"allow":["set_checked"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-text":{"identifier":"allow-set-text","description":"Enables the set_text command without any pre-configured scope.","commands":{"allow":["set_text"],"deny":[]}},"allow-text":{"identifier":"allow-text","description":"Enables the text command without any pre-configured scope.","commands":{"allow":["text"],"deny":[]}},"deny-append":{"identifier":"deny-append","description":"Denies the append command without any pre-configured scope.","commands":{"allow":[],"deny":["append"]}},"deny-create-default":{"identifier":"deny-create-default","description":"Denies the create_default command without any pre-configured scope.","commands":{"allow":[],"deny":["create_default"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-insert":{"identifier":"deny-insert","description":"Denies the insert command without any pre-configured scope.","commands":{"allow":[],"deny":["insert"]}},"deny-is-checked":{"identifier":"deny-is-checked","description":"Denies the is_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["is_checked"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-items":{"identifier":"deny-items","description":"Denies the items command without any pre-configured scope.","commands":{"allow":[],"deny":["items"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-popup":{"identifier":"deny-popup","description":"Denies the popup command without any pre-configured scope.","commands":{"allow":[],"deny":["popup"]}},"deny-prepend":{"identifier":"deny-prepend","description":"Denies the prepend command without any pre-configured scope.","commands":{"allow":[],"deny":["prepend"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-remove-at":{"identifier":"deny-remove-at","description":"Denies the remove_at command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_at"]}},"deny-set-accelerator":{"identifier":"deny-set-accelerator","description":"Denies the set_accelerator command without any pre-configured scope.","commands":{"allow":[],"deny":["set_accelerator"]}},"deny-set-as-app-menu":{"identifier":"deny-set-as-app-menu","description":"Denies the set_as_app_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_app_menu"]}},"deny-set-as-help-menu-for-nsapp":{"identifier":"deny-set-as-help-menu-for-nsapp","description":"Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_help_menu_for_nsapp"]}},"deny-set-as-window-menu":{"identifier":"deny-set-as-window-menu","description":"Denies the set_as_window_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_window_menu"]}},"deny-set-as-windows-menu-for-nsapp":{"identifier":"deny-set-as-windows-menu-for-nsapp","description":"Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.","commands":{"allow":[],"deny":["set_as_windows_menu_for_nsapp"]}},"deny-set-checked":{"identifier":"deny-set-checked","description":"Denies the set_checked command without any pre-configured scope.","commands":{"allow":[],"deny":["set_checked"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-text":{"identifier":"deny-set-text","description":"Denies the set_text command without any pre-configured scope.","commands":{"allow":[],"deny":["set_text"]}},"deny-text":{"identifier":"deny-text","description":"Denies the text command without any pre-configured scope.","commands":{"allow":[],"deny":["text"]}}},"permission_sets":{},"global_scope_schema":null},"core:path":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-resolve-directory","allow-resolve","allow-normalize","allow-join","allow-dirname","allow-extname","allow-basename","allow-is-absolute"]},"permissions":{"allow-basename":{"identifier":"allow-basename","description":"Enables the basename command without any pre-configured scope.","commands":{"allow":["basename"],"deny":[]}},"allow-dirname":{"identifier":"allow-dirname","description":"Enables the dirname command without any pre-configured scope.","commands":{"allow":["dirname"],"deny":[]}},"allow-extname":{"identifier":"allow-extname","description":"Enables the extname command without any pre-configured scope.","commands":{"allow":["extname"],"deny":[]}},"allow-is-absolute":{"identifier":"allow-is-absolute","description":"Enables the is_absolute command without any pre-configured scope.","commands":{"allow":["is_absolute"],"deny":[]}},"allow-join":{"identifier":"allow-join","description":"Enables the join command without any pre-configured scope.","commands":{"allow":["join"],"deny":[]}},"allow-normalize":{"identifier":"allow-normalize","description":"Enables the normalize command without any pre-configured scope.","commands":{"allow":["normalize"],"deny":[]}},"allow-resolve":{"identifier":"allow-resolve","description":"Enables the resolve command without any pre-configured scope.","commands":{"allow":["resolve"],"deny":[]}},"allow-resolve-directory":{"identifier":"allow-resolve-directory","description":"Enables the resolve_directory command without any pre-configured scope.","commands":{"allow":["resolve_directory"],"deny":[]}},"deny-basename":{"identifier":"deny-basename","description":"Denies the basename command without any pre-configured scope.","commands":{"allow":[],"deny":["basename"]}},"deny-dirname":{"identifier":"deny-dirname","description":"Denies the dirname command without any pre-configured scope.","commands":{"allow":[],"deny":["dirname"]}},"deny-extname":{"identifier":"deny-extname","description":"Denies the extname command without any pre-configured scope.","commands":{"allow":[],"deny":["extname"]}},"deny-is-absolute":{"identifier":"deny-is-absolute","description":"Denies the is_absolute command without any pre-configured scope.","commands":{"allow":[],"deny":["is_absolute"]}},"deny-join":{"identifier":"deny-join","description":"Denies the join command without any pre-configured scope.","commands":{"allow":[],"deny":["join"]}},"deny-normalize":{"identifier":"deny-normalize","description":"Denies the normalize command without any pre-configured scope.","commands":{"allow":[],"deny":["normalize"]}},"deny-resolve":{"identifier":"deny-resolve","description":"Denies the resolve command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve"]}},"deny-resolve-directory":{"identifier":"deny-resolve-directory","description":"Denies the resolve_directory command without any pre-configured scope.","commands":{"allow":[],"deny":["resolve_directory"]}}},"permission_sets":{},"global_scope_schema":null},"core:resources":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-close"]},"permissions":{"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}}},"permission_sets":{},"global_scope_schema":null},"core:tray":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-new","allow-get-by-id","allow-remove-by-id","allow-set-icon","allow-set-menu","allow-set-tooltip","allow-set-title","allow-set-visible","allow-set-temp-dir-path","allow-set-icon-as-template","allow-set-show-menu-on-left-click"]},"permissions":{"allow-get-by-id":{"identifier":"allow-get-by-id","description":"Enables the get_by_id command without any pre-configured scope.","commands":{"allow":["get_by_id"],"deny":[]}},"allow-new":{"identifier":"allow-new","description":"Enables the new command without any pre-configured scope.","commands":{"allow":["new"],"deny":[]}},"allow-remove-by-id":{"identifier":"allow-remove-by-id","description":"Enables the remove_by_id command without any pre-configured scope.","commands":{"allow":["remove_by_id"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-icon-as-template":{"identifier":"allow-set-icon-as-template","description":"Enables the set_icon_as_template command without any pre-configured scope.","commands":{"allow":["set_icon_as_template"],"deny":[]}},"allow-set-menu":{"identifier":"allow-set-menu","description":"Enables the set_menu command without any pre-configured scope.","commands":{"allow":["set_menu"],"deny":[]}},"allow-set-show-menu-on-left-click":{"identifier":"allow-set-show-menu-on-left-click","description":"Enables the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":["set_show_menu_on_left_click"],"deny":[]}},"allow-set-temp-dir-path":{"identifier":"allow-set-temp-dir-path","description":"Enables the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":["set_temp_dir_path"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-tooltip":{"identifier":"allow-set-tooltip","description":"Enables the set_tooltip command without any pre-configured scope.","commands":{"allow":["set_tooltip"],"deny":[]}},"allow-set-visible":{"identifier":"allow-set-visible","description":"Enables the set_visible command without any pre-configured scope.","commands":{"allow":["set_visible"],"deny":[]}},"deny-get-by-id":{"identifier":"deny-get-by-id","description":"Denies the get_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["get_by_id"]}},"deny-new":{"identifier":"deny-new","description":"Denies the new command without any pre-configured scope.","commands":{"allow":[],"deny":["new"]}},"deny-remove-by-id":{"identifier":"deny-remove-by-id","description":"Denies the remove_by_id command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_by_id"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-icon-as-template":{"identifier":"deny-set-icon-as-template","description":"Denies the set_icon_as_template command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon_as_template"]}},"deny-set-menu":{"identifier":"deny-set-menu","description":"Denies the set_menu command without any pre-configured scope.","commands":{"allow":[],"deny":["set_menu"]}},"deny-set-show-menu-on-left-click":{"identifier":"deny-set-show-menu-on-left-click","description":"Denies the set_show_menu_on_left_click command without any pre-configured scope.","commands":{"allow":[],"deny":["set_show_menu_on_left_click"]}},"deny-set-temp-dir-path":{"identifier":"deny-set-temp-dir-path","description":"Denies the set_temp_dir_path command without any pre-configured scope.","commands":{"allow":[],"deny":["set_temp_dir_path"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-tooltip":{"identifier":"deny-set-tooltip","description":"Denies the set_tooltip command without any pre-configured scope.","commands":{"allow":[],"deny":["set_tooltip"]}},"deny-set-visible":{"identifier":"deny-set-visible","description":"Denies the set_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible"]}}},"permission_sets":{},"global_scope_schema":null},"core:webview":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-webviews","allow-webview-position","allow-webview-size","allow-internal-toggle-devtools"]},"permissions":{"allow-clear-all-browsing-data":{"identifier":"allow-clear-all-browsing-data","description":"Enables the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":["clear_all_browsing_data"],"deny":[]}},"allow-create-webview":{"identifier":"allow-create-webview","description":"Enables the create_webview command without any pre-configured scope.","commands":{"allow":["create_webview"],"deny":[]}},"allow-create-webview-window":{"identifier":"allow-create-webview-window","description":"Enables the create_webview_window command without any pre-configured scope.","commands":{"allow":["create_webview_window"],"deny":[]}},"allow-get-all-webviews":{"identifier":"allow-get-all-webviews","description":"Enables the get_all_webviews command without any pre-configured scope.","commands":{"allow":["get_all_webviews"],"deny":[]}},"allow-internal-toggle-devtools":{"identifier":"allow-internal-toggle-devtools","description":"Enables the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":["internal_toggle_devtools"],"deny":[]}},"allow-print":{"identifier":"allow-print","description":"Enables the print command without any pre-configured scope.","commands":{"allow":["print"],"deny":[]}},"allow-reparent":{"identifier":"allow-reparent","description":"Enables the reparent command without any pre-configured scope.","commands":{"allow":["reparent"],"deny":[]}},"allow-set-webview-focus":{"identifier":"allow-set-webview-focus","description":"Enables the set_webview_focus command without any pre-configured scope.","commands":{"allow":["set_webview_focus"],"deny":[]}},"allow-set-webview-position":{"identifier":"allow-set-webview-position","description":"Enables the set_webview_position command without any pre-configured scope.","commands":{"allow":["set_webview_position"],"deny":[]}},"allow-set-webview-size":{"identifier":"allow-set-webview-size","description":"Enables the set_webview_size command without any pre-configured scope.","commands":{"allow":["set_webview_size"],"deny":[]}},"allow-set-webview-zoom":{"identifier":"allow-set-webview-zoom","description":"Enables the set_webview_zoom command without any pre-configured scope.","commands":{"allow":["set_webview_zoom"],"deny":[]}},"allow-webview-close":{"identifier":"allow-webview-close","description":"Enables the webview_close command without any pre-configured scope.","commands":{"allow":["webview_close"],"deny":[]}},"allow-webview-hide":{"identifier":"allow-webview-hide","description":"Enables the webview_hide command without any pre-configured scope.","commands":{"allow":["webview_hide"],"deny":[]}},"allow-webview-position":{"identifier":"allow-webview-position","description":"Enables the webview_position command without any pre-configured scope.","commands":{"allow":["webview_position"],"deny":[]}},"allow-webview-show":{"identifier":"allow-webview-show","description":"Enables the webview_show command without any pre-configured scope.","commands":{"allow":["webview_show"],"deny":[]}},"allow-webview-size":{"identifier":"allow-webview-size","description":"Enables the webview_size command without any pre-configured scope.","commands":{"allow":["webview_size"],"deny":[]}},"deny-clear-all-browsing-data":{"identifier":"deny-clear-all-browsing-data","description":"Denies the clear_all_browsing_data command without any pre-configured scope.","commands":{"allow":[],"deny":["clear_all_browsing_data"]}},"deny-create-webview":{"identifier":"deny-create-webview","description":"Denies the create_webview command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview"]}},"deny-create-webview-window":{"identifier":"deny-create-webview-window","description":"Denies the create_webview_window command without any pre-configured scope.","commands":{"allow":[],"deny":["create_webview_window"]}},"deny-get-all-webviews":{"identifier":"deny-get-all-webviews","description":"Denies the get_all_webviews command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_webviews"]}},"deny-internal-toggle-devtools":{"identifier":"deny-internal-toggle-devtools","description":"Denies the internal_toggle_devtools command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_devtools"]}},"deny-print":{"identifier":"deny-print","description":"Denies the print command without any pre-configured scope.","commands":{"allow":[],"deny":["print"]}},"deny-reparent":{"identifier":"deny-reparent","description":"Denies the reparent command without any pre-configured scope.","commands":{"allow":[],"deny":["reparent"]}},"deny-set-webview-focus":{"identifier":"deny-set-webview-focus","description":"Denies the set_webview_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_focus"]}},"deny-set-webview-position":{"identifier":"deny-set-webview-position","description":"Denies the set_webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_position"]}},"deny-set-webview-size":{"identifier":"deny-set-webview-size","description":"Denies the set_webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_size"]}},"deny-set-webview-zoom":{"identifier":"deny-set-webview-zoom","description":"Denies the set_webview_zoom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_webview_zoom"]}},"deny-webview-close":{"identifier":"deny-webview-close","description":"Denies the webview_close command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_close"]}},"deny-webview-hide":{"identifier":"deny-webview-hide","description":"Denies the webview_hide command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_hide"]}},"deny-webview-position":{"identifier":"deny-webview-position","description":"Denies the webview_position command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_position"]}},"deny-webview-show":{"identifier":"deny-webview-show","description":"Denies the webview_show command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_show"]}},"deny-webview-size":{"identifier":"deny-webview-size","description":"Denies the webview_size command without any pre-configured scope.","commands":{"allow":[],"deny":["webview_size"]}}},"permission_sets":{},"global_scope_schema":null},"core:window":{"default_permission":{"identifier":"default","description":"Default permissions for the plugin.","permissions":["allow-get-all-windows","allow-scale-factor","allow-inner-position","allow-outer-position","allow-inner-size","allow-outer-size","allow-is-fullscreen","allow-is-minimized","allow-is-maximized","allow-is-focused","allow-is-decorated","allow-is-resizable","allow-is-maximizable","allow-is-minimizable","allow-is-closable","allow-is-visible","allow-is-enabled","allow-title","allow-current-monitor","allow-primary-monitor","allow-monitor-from-point","allow-available-monitors","allow-cursor-position","allow-theme","allow-internal-toggle-maximize"]},"permissions":{"allow-available-monitors":{"identifier":"allow-available-monitors","description":"Enables the available_monitors command without any pre-configured scope.","commands":{"allow":["available_monitors"],"deny":[]}},"allow-center":{"identifier":"allow-center","description":"Enables the center command without any pre-configured scope.","commands":{"allow":["center"],"deny":[]}},"allow-close":{"identifier":"allow-close","description":"Enables the close command without any pre-configured scope.","commands":{"allow":["close"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-current-monitor":{"identifier":"allow-current-monitor","description":"Enables the current_monitor command without any pre-configured scope.","commands":{"allow":["current_monitor"],"deny":[]}},"allow-cursor-position":{"identifier":"allow-cursor-position","description":"Enables the cursor_position command without any pre-configured scope.","commands":{"allow":["cursor_position"],"deny":[]}},"allow-destroy":{"identifier":"allow-destroy","description":"Enables the destroy command without any pre-configured scope.","commands":{"allow":["destroy"],"deny":[]}},"allow-get-all-windows":{"identifier":"allow-get-all-windows","description":"Enables the get_all_windows command without any pre-configured scope.","commands":{"allow":["get_all_windows"],"deny":[]}},"allow-hide":{"identifier":"allow-hide","description":"Enables the hide command without any pre-configured scope.","commands":{"allow":["hide"],"deny":[]}},"allow-inner-position":{"identifier":"allow-inner-position","description":"Enables the inner_position command without any pre-configured scope.","commands":{"allow":["inner_position"],"deny":[]}},"allow-inner-size":{"identifier":"allow-inner-size","description":"Enables the inner_size command without any pre-configured scope.","commands":{"allow":["inner_size"],"deny":[]}},"allow-internal-toggle-maximize":{"identifier":"allow-internal-toggle-maximize","description":"Enables the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":["internal_toggle_maximize"],"deny":[]}},"allow-is-closable":{"identifier":"allow-is-closable","description":"Enables the is_closable command without any pre-configured scope.","commands":{"allow":["is_closable"],"deny":[]}},"allow-is-decorated":{"identifier":"allow-is-decorated","description":"Enables the is_decorated command without any pre-configured scope.","commands":{"allow":["is_decorated"],"deny":[]}},"allow-is-enabled":{"identifier":"allow-is-enabled","description":"Enables the is_enabled command without any pre-configured scope.","commands":{"allow":["is_enabled"],"deny":[]}},"allow-is-focused":{"identifier":"allow-is-focused","description":"Enables the is_focused command without any pre-configured scope.","commands":{"allow":["is_focused"],"deny":[]}},"allow-is-fullscreen":{"identifier":"allow-is-fullscreen","description":"Enables the is_fullscreen command without any pre-configured scope.","commands":{"allow":["is_fullscreen"],"deny":[]}},"allow-is-maximizable":{"identifier":"allow-is-maximizable","description":"Enables the is_maximizable command without any pre-configured scope.","commands":{"allow":["is_maximizable"],"deny":[]}},"allow-is-maximized":{"identifier":"allow-is-maximized","description":"Enables the is_maximized command without any pre-configured scope.","commands":{"allow":["is_maximized"],"deny":[]}},"allow-is-minimizable":{"identifier":"allow-is-minimizable","description":"Enables the is_minimizable command without any pre-configured scope.","commands":{"allow":["is_minimizable"],"deny":[]}},"allow-is-minimized":{"identifier":"allow-is-minimized","description":"Enables the is_minimized command without any pre-configured scope.","commands":{"allow":["is_minimized"],"deny":[]}},"allow-is-resizable":{"identifier":"allow-is-resizable","description":"Enables the is_resizable command without any pre-configured scope.","commands":{"allow":["is_resizable"],"deny":[]}},"allow-is-visible":{"identifier":"allow-is-visible","description":"Enables the is_visible command without any pre-configured scope.","commands":{"allow":["is_visible"],"deny":[]}},"allow-maximize":{"identifier":"allow-maximize","description":"Enables the maximize command without any pre-configured scope.","commands":{"allow":["maximize"],"deny":[]}},"allow-minimize":{"identifier":"allow-minimize","description":"Enables the minimize command without any pre-configured scope.","commands":{"allow":["minimize"],"deny":[]}},"allow-monitor-from-point":{"identifier":"allow-monitor-from-point","description":"Enables the monitor_from_point command without any pre-configured scope.","commands":{"allow":["monitor_from_point"],"deny":[]}},"allow-outer-position":{"identifier":"allow-outer-position","description":"Enables the outer_position command without any pre-configured scope.","commands":{"allow":["outer_position"],"deny":[]}},"allow-outer-size":{"identifier":"allow-outer-size","description":"Enables the outer_size command without any pre-configured scope.","commands":{"allow":["outer_size"],"deny":[]}},"allow-primary-monitor":{"identifier":"allow-primary-monitor","description":"Enables the primary_monitor command without any pre-configured scope.","commands":{"allow":["primary_monitor"],"deny":[]}},"allow-request-user-attention":{"identifier":"allow-request-user-attention","description":"Enables the request_user_attention command without any pre-configured scope.","commands":{"allow":["request_user_attention"],"deny":[]}},"allow-scale-factor":{"identifier":"allow-scale-factor","description":"Enables the scale_factor command without any pre-configured scope.","commands":{"allow":["scale_factor"],"deny":[]}},"allow-set-always-on-bottom":{"identifier":"allow-set-always-on-bottom","description":"Enables the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":["set_always_on_bottom"],"deny":[]}},"allow-set-always-on-top":{"identifier":"allow-set-always-on-top","description":"Enables the set_always_on_top command without any pre-configured scope.","commands":{"allow":["set_always_on_top"],"deny":[]}},"allow-set-closable":{"identifier":"allow-set-closable","description":"Enables the set_closable command without any pre-configured scope.","commands":{"allow":["set_closable"],"deny":[]}},"allow-set-content-protected":{"identifier":"allow-set-content-protected","description":"Enables the set_content_protected command without any pre-configured scope.","commands":{"allow":["set_content_protected"],"deny":[]}},"allow-set-cursor-grab":{"identifier":"allow-set-cursor-grab","description":"Enables the set_cursor_grab command without any pre-configured scope.","commands":{"allow":["set_cursor_grab"],"deny":[]}},"allow-set-cursor-icon":{"identifier":"allow-set-cursor-icon","description":"Enables the set_cursor_icon command without any pre-configured scope.","commands":{"allow":["set_cursor_icon"],"deny":[]}},"allow-set-cursor-position":{"identifier":"allow-set-cursor-position","description":"Enables the set_cursor_position command without any pre-configured scope.","commands":{"allow":["set_cursor_position"],"deny":[]}},"allow-set-cursor-visible":{"identifier":"allow-set-cursor-visible","description":"Enables the set_cursor_visible command without any pre-configured scope.","commands":{"allow":["set_cursor_visible"],"deny":[]}},"allow-set-decorations":{"identifier":"allow-set-decorations","description":"Enables the set_decorations command without any pre-configured scope.","commands":{"allow":["set_decorations"],"deny":[]}},"allow-set-effects":{"identifier":"allow-set-effects","description":"Enables the set_effects command without any pre-configured scope.","commands":{"allow":["set_effects"],"deny":[]}},"allow-set-enabled":{"identifier":"allow-set-enabled","description":"Enables the set_enabled command without any pre-configured scope.","commands":{"allow":["set_enabled"],"deny":[]}},"allow-set-focus":{"identifier":"allow-set-focus","description":"Enables the set_focus command without any pre-configured scope.","commands":{"allow":["set_focus"],"deny":[]}},"allow-set-fullscreen":{"identifier":"allow-set-fullscreen","description":"Enables the set_fullscreen command without any pre-configured scope.","commands":{"allow":["set_fullscreen"],"deny":[]}},"allow-set-icon":{"identifier":"allow-set-icon","description":"Enables the set_icon command without any pre-configured scope.","commands":{"allow":["set_icon"],"deny":[]}},"allow-set-ignore-cursor-events":{"identifier":"allow-set-ignore-cursor-events","description":"Enables the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":["set_ignore_cursor_events"],"deny":[]}},"allow-set-max-size":{"identifier":"allow-set-max-size","description":"Enables the set_max_size command without any pre-configured scope.","commands":{"allow":["set_max_size"],"deny":[]}},"allow-set-maximizable":{"identifier":"allow-set-maximizable","description":"Enables the set_maximizable command without any pre-configured scope.","commands":{"allow":["set_maximizable"],"deny":[]}},"allow-set-min-size":{"identifier":"allow-set-min-size","description":"Enables the set_min_size command without any pre-configured scope.","commands":{"allow":["set_min_size"],"deny":[]}},"allow-set-minimizable":{"identifier":"allow-set-minimizable","description":"Enables the set_minimizable command without any pre-configured scope.","commands":{"allow":["set_minimizable"],"deny":[]}},"allow-set-position":{"identifier":"allow-set-position","description":"Enables the set_position command without any pre-configured scope.","commands":{"allow":["set_position"],"deny":[]}},"allow-set-progress-bar":{"identifier":"allow-set-progress-bar","description":"Enables the set_progress_bar command without any pre-configured scope.","commands":{"allow":["set_progress_bar"],"deny":[]}},"allow-set-resizable":{"identifier":"allow-set-resizable","description":"Enables the set_resizable command without any pre-configured scope.","commands":{"allow":["set_resizable"],"deny":[]}},"allow-set-shadow":{"identifier":"allow-set-shadow","description":"Enables the set_shadow command without any pre-configured scope.","commands":{"allow":["set_shadow"],"deny":[]}},"allow-set-size":{"identifier":"allow-set-size","description":"Enables the set_size command without any pre-configured scope.","commands":{"allow":["set_size"],"deny":[]}},"allow-set-size-constraints":{"identifier":"allow-set-size-constraints","description":"Enables the set_size_constraints command without any pre-configured scope.","commands":{"allow":["set_size_constraints"],"deny":[]}},"allow-set-skip-taskbar":{"identifier":"allow-set-skip-taskbar","description":"Enables the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":["set_skip_taskbar"],"deny":[]}},"allow-set-theme":{"identifier":"allow-set-theme","description":"Enables the set_theme command without any pre-configured scope.","commands":{"allow":["set_theme"],"deny":[]}},"allow-set-title":{"identifier":"allow-set-title","description":"Enables the set_title command without any pre-configured scope.","commands":{"allow":["set_title"],"deny":[]}},"allow-set-title-bar-style":{"identifier":"allow-set-title-bar-style","description":"Enables the set_title_bar_style command without any pre-configured scope.","commands":{"allow":["set_title_bar_style"],"deny":[]}},"allow-set-visible-on-all-workspaces":{"identifier":"allow-set-visible-on-all-workspaces","description":"Enables the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":["set_visible_on_all_workspaces"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"allow-start-dragging":{"identifier":"allow-start-dragging","description":"Enables the start_dragging command without any pre-configured scope.","commands":{"allow":["start_dragging"],"deny":[]}},"allow-start-resize-dragging":{"identifier":"allow-start-resize-dragging","description":"Enables the start_resize_dragging command without any pre-configured scope.","commands":{"allow":["start_resize_dragging"],"deny":[]}},"allow-theme":{"identifier":"allow-theme","description":"Enables the theme command without any pre-configured scope.","commands":{"allow":["theme"],"deny":[]}},"allow-title":{"identifier":"allow-title","description":"Enables the title command without any pre-configured scope.","commands":{"allow":["title"],"deny":[]}},"allow-toggle-maximize":{"identifier":"allow-toggle-maximize","description":"Enables the toggle_maximize command without any pre-configured scope.","commands":{"allow":["toggle_maximize"],"deny":[]}},"allow-unmaximize":{"identifier":"allow-unmaximize","description":"Enables the unmaximize command without any pre-configured scope.","commands":{"allow":["unmaximize"],"deny":[]}},"allow-unminimize":{"identifier":"allow-unminimize","description":"Enables the unminimize command without any pre-configured scope.","commands":{"allow":["unminimize"],"deny":[]}},"deny-available-monitors":{"identifier":"deny-available-monitors","description":"Denies the available_monitors command without any pre-configured scope.","commands":{"allow":[],"deny":["available_monitors"]}},"deny-center":{"identifier":"deny-center","description":"Denies the center command without any pre-configured scope.","commands":{"allow":[],"deny":["center"]}},"deny-close":{"identifier":"deny-close","description":"Denies the close command without any pre-configured scope.","commands":{"allow":[],"deny":["close"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-current-monitor":{"identifier":"deny-current-monitor","description":"Denies the current_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["current_monitor"]}},"deny-cursor-position":{"identifier":"deny-cursor-position","description":"Denies the cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["cursor_position"]}},"deny-destroy":{"identifier":"deny-destroy","description":"Denies the destroy command without any pre-configured scope.","commands":{"allow":[],"deny":["destroy"]}},"deny-get-all-windows":{"identifier":"deny-get-all-windows","description":"Denies the get_all_windows command without any pre-configured scope.","commands":{"allow":[],"deny":["get_all_windows"]}},"deny-hide":{"identifier":"deny-hide","description":"Denies the hide command without any pre-configured scope.","commands":{"allow":[],"deny":["hide"]}},"deny-inner-position":{"identifier":"deny-inner-position","description":"Denies the inner_position command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_position"]}},"deny-inner-size":{"identifier":"deny-inner-size","description":"Denies the inner_size command without any pre-configured scope.","commands":{"allow":[],"deny":["inner_size"]}},"deny-internal-toggle-maximize":{"identifier":"deny-internal-toggle-maximize","description":"Denies the internal_toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["internal_toggle_maximize"]}},"deny-is-closable":{"identifier":"deny-is-closable","description":"Denies the is_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_closable"]}},"deny-is-decorated":{"identifier":"deny-is-decorated","description":"Denies the is_decorated command without any pre-configured scope.","commands":{"allow":[],"deny":["is_decorated"]}},"deny-is-enabled":{"identifier":"deny-is-enabled","description":"Denies the is_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["is_enabled"]}},"deny-is-focused":{"identifier":"deny-is-focused","description":"Denies the is_focused command without any pre-configured scope.","commands":{"allow":[],"deny":["is_focused"]}},"deny-is-fullscreen":{"identifier":"deny-is-fullscreen","description":"Denies the is_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["is_fullscreen"]}},"deny-is-maximizable":{"identifier":"deny-is-maximizable","description":"Denies the is_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximizable"]}},"deny-is-maximized":{"identifier":"deny-is-maximized","description":"Denies the is_maximized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_maximized"]}},"deny-is-minimizable":{"identifier":"deny-is-minimizable","description":"Denies the is_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimizable"]}},"deny-is-minimized":{"identifier":"deny-is-minimized","description":"Denies the is_minimized command without any pre-configured scope.","commands":{"allow":[],"deny":["is_minimized"]}},"deny-is-resizable":{"identifier":"deny-is-resizable","description":"Denies the is_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["is_resizable"]}},"deny-is-visible":{"identifier":"deny-is-visible","description":"Denies the is_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["is_visible"]}},"deny-maximize":{"identifier":"deny-maximize","description":"Denies the maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["maximize"]}},"deny-minimize":{"identifier":"deny-minimize","description":"Denies the minimize command without any pre-configured scope.","commands":{"allow":[],"deny":["minimize"]}},"deny-monitor-from-point":{"identifier":"deny-monitor-from-point","description":"Denies the monitor_from_point command without any pre-configured scope.","commands":{"allow":[],"deny":["monitor_from_point"]}},"deny-outer-position":{"identifier":"deny-outer-position","description":"Denies the outer_position command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_position"]}},"deny-outer-size":{"identifier":"deny-outer-size","description":"Denies the outer_size command without any pre-configured scope.","commands":{"allow":[],"deny":["outer_size"]}},"deny-primary-monitor":{"identifier":"deny-primary-monitor","description":"Denies the primary_monitor command without any pre-configured scope.","commands":{"allow":[],"deny":["primary_monitor"]}},"deny-request-user-attention":{"identifier":"deny-request-user-attention","description":"Denies the request_user_attention command without any pre-configured scope.","commands":{"allow":[],"deny":["request_user_attention"]}},"deny-scale-factor":{"identifier":"deny-scale-factor","description":"Denies the scale_factor command without any pre-configured scope.","commands":{"allow":[],"deny":["scale_factor"]}},"deny-set-always-on-bottom":{"identifier":"deny-set-always-on-bottom","description":"Denies the set_always_on_bottom command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_bottom"]}},"deny-set-always-on-top":{"identifier":"deny-set-always-on-top","description":"Denies the set_always_on_top command without any pre-configured scope.","commands":{"allow":[],"deny":["set_always_on_top"]}},"deny-set-closable":{"identifier":"deny-set-closable","description":"Denies the set_closable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_closable"]}},"deny-set-content-protected":{"identifier":"deny-set-content-protected","description":"Denies the set_content_protected command without any pre-configured scope.","commands":{"allow":[],"deny":["set_content_protected"]}},"deny-set-cursor-grab":{"identifier":"deny-set-cursor-grab","description":"Denies the set_cursor_grab command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_grab"]}},"deny-set-cursor-icon":{"identifier":"deny-set-cursor-icon","description":"Denies the set_cursor_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_icon"]}},"deny-set-cursor-position":{"identifier":"deny-set-cursor-position","description":"Denies the set_cursor_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_position"]}},"deny-set-cursor-visible":{"identifier":"deny-set-cursor-visible","description":"Denies the set_cursor_visible command without any pre-configured scope.","commands":{"allow":[],"deny":["set_cursor_visible"]}},"deny-set-decorations":{"identifier":"deny-set-decorations","description":"Denies the set_decorations command without any pre-configured scope.","commands":{"allow":[],"deny":["set_decorations"]}},"deny-set-effects":{"identifier":"deny-set-effects","description":"Denies the set_effects command without any pre-configured scope.","commands":{"allow":[],"deny":["set_effects"]}},"deny-set-enabled":{"identifier":"deny-set-enabled","description":"Denies the set_enabled command without any pre-configured scope.","commands":{"allow":[],"deny":["set_enabled"]}},"deny-set-focus":{"identifier":"deny-set-focus","description":"Denies the set_focus command without any pre-configured scope.","commands":{"allow":[],"deny":["set_focus"]}},"deny-set-fullscreen":{"identifier":"deny-set-fullscreen","description":"Denies the set_fullscreen command without any pre-configured scope.","commands":{"allow":[],"deny":["set_fullscreen"]}},"deny-set-icon":{"identifier":"deny-set-icon","description":"Denies the set_icon command without any pre-configured scope.","commands":{"allow":[],"deny":["set_icon"]}},"deny-set-ignore-cursor-events":{"identifier":"deny-set-ignore-cursor-events","description":"Denies the set_ignore_cursor_events command without any pre-configured scope.","commands":{"allow":[],"deny":["set_ignore_cursor_events"]}},"deny-set-max-size":{"identifier":"deny-set-max-size","description":"Denies the set_max_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_max_size"]}},"deny-set-maximizable":{"identifier":"deny-set-maximizable","description":"Denies the set_maximizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_maximizable"]}},"deny-set-min-size":{"identifier":"deny-set-min-size","description":"Denies the set_min_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_min_size"]}},"deny-set-minimizable":{"identifier":"deny-set-minimizable","description":"Denies the set_minimizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_minimizable"]}},"deny-set-position":{"identifier":"deny-set-position","description":"Denies the set_position command without any pre-configured scope.","commands":{"allow":[],"deny":["set_position"]}},"deny-set-progress-bar":{"identifier":"deny-set-progress-bar","description":"Denies the set_progress_bar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_progress_bar"]}},"deny-set-resizable":{"identifier":"deny-set-resizable","description":"Denies the set_resizable command without any pre-configured scope.","commands":{"allow":[],"deny":["set_resizable"]}},"deny-set-shadow":{"identifier":"deny-set-shadow","description":"Denies the set_shadow command without any pre-configured scope.","commands":{"allow":[],"deny":["set_shadow"]}},"deny-set-size":{"identifier":"deny-set-size","description":"Denies the set_size command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size"]}},"deny-set-size-constraints":{"identifier":"deny-set-size-constraints","description":"Denies the set_size_constraints command without any pre-configured scope.","commands":{"allow":[],"deny":["set_size_constraints"]}},"deny-set-skip-taskbar":{"identifier":"deny-set-skip-taskbar","description":"Denies the set_skip_taskbar command without any pre-configured scope.","commands":{"allow":[],"deny":["set_skip_taskbar"]}},"deny-set-theme":{"identifier":"deny-set-theme","description":"Denies the set_theme command without any pre-configured scope.","commands":{"allow":[],"deny":["set_theme"]}},"deny-set-title":{"identifier":"deny-set-title","description":"Denies the set_title command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title"]}},"deny-set-title-bar-style":{"identifier":"deny-set-title-bar-style","description":"Denies the set_title_bar_style command without any pre-configured scope.","commands":{"allow":[],"deny":["set_title_bar_style"]}},"deny-set-visible-on-all-workspaces":{"identifier":"deny-set-visible-on-all-workspaces","description":"Denies the set_visible_on_all_workspaces command without any pre-configured scope.","commands":{"allow":[],"deny":["set_visible_on_all_workspaces"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}},"deny-start-dragging":{"identifier":"deny-start-dragging","description":"Denies the start_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_dragging"]}},"deny-start-resize-dragging":{"identifier":"deny-start-resize-dragging","description":"Denies the start_resize_dragging command without any pre-configured scope.","commands":{"allow":[],"deny":["start_resize_dragging"]}},"deny-theme":{"identifier":"deny-theme","description":"Denies the theme command without any pre-configured scope.","commands":{"allow":[],"deny":["theme"]}},"deny-title":{"identifier":"deny-title","description":"Denies the title command without any pre-configured scope.","commands":{"allow":[],"deny":["title"]}},"deny-toggle-maximize":{"identifier":"deny-toggle-maximize","description":"Denies the toggle_maximize command without any pre-configured scope.","commands":{"allow":[],"deny":["toggle_maximize"]}},"deny-unmaximize":{"identifier":"deny-unmaximize","description":"Denies the unmaximize command without any pre-configured scope.","commands":{"allow":[],"deny":["unmaximize"]}},"deny-unminimize":{"identifier":"deny-unminimize","description":"Denies the unminimize command without any pre-configured scope.","commands":{"allow":[],"deny":["unminimize"]}}},"permission_sets":{},"global_scope_schema":null},"deep-link":{"default_permission":{"identifier":"default","description":"Allows reading the opened deep link via the get_current command","permissions":["allow-get-current"]},"permissions":{"allow-get-current":{"identifier":"allow-get-current","description":"Enables the get_current command without any pre-configured scope.","commands":{"allow":["get_current"],"deny":[]}},"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"deny-get-current":{"identifier":"deny-get-current","description":"Denies the get_current command without any pre-configured scope.","commands":{"allow":[],"deny":["get_current"]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}}},"permission_sets":{},"global_scope_schema":null},"dialog":{"default_permission":{"identifier":"default","description":"This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n","permissions":["allow-ask","allow-confirm","allow-message","allow-save","allow-open"]},"permissions":{"allow-ask":{"identifier":"allow-ask","description":"Enables the ask command without any pre-configured scope.","commands":{"allow":["ask"],"deny":[]}},"allow-confirm":{"identifier":"allow-confirm","description":"Enables the confirm command without any pre-configured scope.","commands":{"allow":["confirm"],"deny":[]}},"allow-message":{"identifier":"allow-message","description":"Enables the message command without any pre-configured scope.","commands":{"allow":["message"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"deny-ask":{"identifier":"deny-ask","description":"Denies the ask command without any pre-configured scope.","commands":{"allow":[],"deny":["ask"]}},"deny-confirm":{"identifier":"deny-confirm","description":"Denies the confirm command without any pre-configured scope.","commands":{"allow":[],"deny":["confirm"]}},"deny-message":{"identifier":"deny-message","description":"Denies the message command without any pre-configured scope.","commands":{"allow":[],"deny":["message"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}}},"permission_sets":{},"global_scope_schema":null},"fs":{"default_permission":{"identifier":"default","description":"This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n","permissions":["create-app-specific-dirs","read-app-specific-dirs-recursive","deny-default"]},"permissions":{"allow-copy-file":{"identifier":"allow-copy-file","description":"Enables the copy_file command without any pre-configured scope.","commands":{"allow":["copy_file"],"deny":[]}},"allow-create":{"identifier":"allow-create","description":"Enables the create command without any pre-configured scope.","commands":{"allow":["create"],"deny":[]}},"allow-exists":{"identifier":"allow-exists","description":"Enables the exists command without any pre-configured scope.","commands":{"allow":["exists"],"deny":[]}},"allow-fstat":{"identifier":"allow-fstat","description":"Enables the fstat command without any pre-configured scope.","commands":{"allow":["fstat"],"deny":[]}},"allow-ftruncate":{"identifier":"allow-ftruncate","description":"Enables the ftruncate command without any pre-configured scope.","commands":{"allow":["ftruncate"],"deny":[]}},"allow-lstat":{"identifier":"allow-lstat","description":"Enables the lstat command without any pre-configured scope.","commands":{"allow":["lstat"],"deny":[]}},"allow-mkdir":{"identifier":"allow-mkdir","description":"Enables the mkdir command without any pre-configured scope.","commands":{"allow":["mkdir"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-read":{"identifier":"allow-read","description":"Enables the read command without any pre-configured scope.","commands":{"allow":["read"],"deny":[]}},"allow-read-dir":{"identifier":"allow-read-dir","description":"Enables the read_dir command without any pre-configured scope.","commands":{"allow":["read_dir"],"deny":[]}},"allow-read-file":{"identifier":"allow-read-file","description":"Enables the read_file command without any pre-configured scope.","commands":{"allow":["read_file"],"deny":[]}},"allow-read-text-file":{"identifier":"allow-read-text-file","description":"Enables the read_text_file command without any pre-configured scope.","commands":{"allow":["read_text_file"],"deny":[]}},"allow-read-text-file-lines":{"identifier":"allow-read-text-file-lines","description":"Enables the read_text_file_lines command without any pre-configured scope.","commands":{"allow":["read_text_file_lines"],"deny":[]}},"allow-read-text-file-lines-next":{"identifier":"allow-read-text-file-lines-next","description":"Enables the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":["read_text_file_lines_next"],"deny":[]}},"allow-remove":{"identifier":"allow-remove","description":"Enables the remove command without any pre-configured scope.","commands":{"allow":["remove"],"deny":[]}},"allow-rename":{"identifier":"allow-rename","description":"Enables the rename command without any pre-configured scope.","commands":{"allow":["rename"],"deny":[]}},"allow-seek":{"identifier":"allow-seek","description":"Enables the seek command without any pre-configured scope.","commands":{"allow":["seek"],"deny":[]}},"allow-stat":{"identifier":"allow-stat","description":"Enables the stat command without any pre-configured scope.","commands":{"allow":["stat"],"deny":[]}},"allow-truncate":{"identifier":"allow-truncate","description":"Enables the truncate command without any pre-configured scope.","commands":{"allow":["truncate"],"deny":[]}},"allow-unwatch":{"identifier":"allow-unwatch","description":"Enables the unwatch command without any pre-configured scope.","commands":{"allow":["unwatch"],"deny":[]}},"allow-watch":{"identifier":"allow-watch","description":"Enables the watch command without any pre-configured scope.","commands":{"allow":["watch"],"deny":[]}},"allow-write":{"identifier":"allow-write","description":"Enables the write command without any pre-configured scope.","commands":{"allow":["write"],"deny":[]}},"allow-write-file":{"identifier":"allow-write-file","description":"Enables the write_file command without any pre-configured scope.","commands":{"allow":["write_file"],"deny":[]}},"allow-write-text-file":{"identifier":"allow-write-text-file","description":"Enables the write_text_file command without any pre-configured scope.","commands":{"allow":["write_text_file"],"deny":[]}},"create-app-specific-dirs":{"identifier":"create-app-specific-dirs","description":"This permissions allows to create the application specific directories.\n","commands":{"allow":["mkdir","scope-app-index"],"deny":[]}},"deny-copy-file":{"identifier":"deny-copy-file","description":"Denies the copy_file command without any pre-configured scope.","commands":{"allow":[],"deny":["copy_file"]}},"deny-create":{"identifier":"deny-create","description":"Denies the create command without any pre-configured scope.","commands":{"allow":[],"deny":["create"]}},"deny-exists":{"identifier":"deny-exists","description":"Denies the exists command without any pre-configured scope.","commands":{"allow":[],"deny":["exists"]}},"deny-fstat":{"identifier":"deny-fstat","description":"Denies the fstat command without any pre-configured scope.","commands":{"allow":[],"deny":["fstat"]}},"deny-ftruncate":{"identifier":"deny-ftruncate","description":"Denies the ftruncate command without any pre-configured scope.","commands":{"allow":[],"deny":["ftruncate"]}},"deny-lstat":{"identifier":"deny-lstat","description":"Denies the lstat command without any pre-configured scope.","commands":{"allow":[],"deny":["lstat"]}},"deny-mkdir":{"identifier":"deny-mkdir","description":"Denies the mkdir command without any pre-configured scope.","commands":{"allow":[],"deny":["mkdir"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-read":{"identifier":"deny-read","description":"Denies the read command without any pre-configured scope.","commands":{"allow":[],"deny":["read"]}},"deny-read-dir":{"identifier":"deny-read-dir","description":"Denies the read_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["read_dir"]}},"deny-read-file":{"identifier":"deny-read-file","description":"Denies the read_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_file"]}},"deny-read-text-file":{"identifier":"deny-read-text-file","description":"Denies the read_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file"]}},"deny-read-text-file-lines":{"identifier":"deny-read-text-file-lines","description":"Denies the read_text_file_lines command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines"]}},"deny-read-text-file-lines-next":{"identifier":"deny-read-text-file-lines-next","description":"Denies the read_text_file_lines_next command without any pre-configured scope.","commands":{"allow":[],"deny":["read_text_file_lines_next"]}},"deny-remove":{"identifier":"deny-remove","description":"Denies the remove command without any pre-configured scope.","commands":{"allow":[],"deny":["remove"]}},"deny-rename":{"identifier":"deny-rename","description":"Denies the rename command without any pre-configured scope.","commands":{"allow":[],"deny":["rename"]}},"deny-seek":{"identifier":"deny-seek","description":"Denies the seek command without any pre-configured scope.","commands":{"allow":[],"deny":["seek"]}},"deny-stat":{"identifier":"deny-stat","description":"Denies the stat command without any pre-configured scope.","commands":{"allow":[],"deny":["stat"]}},"deny-truncate":{"identifier":"deny-truncate","description":"Denies the truncate command without any pre-configured scope.","commands":{"allow":[],"deny":["truncate"]}},"deny-unwatch":{"identifier":"deny-unwatch","description":"Denies the unwatch command without any pre-configured scope.","commands":{"allow":[],"deny":["unwatch"]}},"deny-watch":{"identifier":"deny-watch","description":"Denies the watch command without any pre-configured scope.","commands":{"allow":[],"deny":["watch"]}},"deny-webview-data-linux":{"identifier":"deny-webview-data-linux","description":"This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-webview-data-windows":{"identifier":"deny-webview-data-windows","description":"This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.","commands":{"allow":[],"deny":[]}},"deny-write":{"identifier":"deny-write","description":"Denies the write command without any pre-configured scope.","commands":{"allow":[],"deny":["write"]}},"deny-write-file":{"identifier":"deny-write-file","description":"Denies the write_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_file"]}},"deny-write-text-file":{"identifier":"deny-write-text-file","description":"Denies the write_text_file command without any pre-configured scope.","commands":{"allow":[],"deny":["write_text_file"]}},"read-all":{"identifier":"read-all","description":"This enables all read related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists","watch","unwatch"],"deny":[]}},"read-app-specific-dirs-recursive":{"identifier":"read-app-specific-dirs-recursive","description":"This permission allows recursive read functionality on the application\nspecific base directories. \n","commands":{"allow":["read_dir","read_file","read_text_file","read_text_file_lines","read_text_file_lines_next","exists","scope-app-recursive"],"deny":[]}},"read-dirs":{"identifier":"read-dirs","description":"This enables directory read and file metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"read-files":{"identifier":"read-files","description":"This enables file read related commands without any pre-configured accessible paths.","commands":{"allow":["read_file","read","open","read_text_file","read_text_file_lines","read_text_file_lines_next","seek","stat","lstat","fstat","exists"],"deny":[]}},"read-meta":{"identifier":"read-meta","description":"This enables all index or metadata related commands without any pre-configured accessible paths.","commands":{"allow":["read_dir","stat","lstat","fstat","exists"],"deny":[]}},"scope":{"identifier":"scope","description":"An empty permission you can use to modify the global scope.","commands":{"allow":[],"deny":[]}},"scope-app":{"identifier":"scope-app","description":"This scope permits access to all files and list content of top level directories in the application folders.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"},{"path":"$APPDATA"},{"path":"$APPDATA/*"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"},{"path":"$APPCACHE"},{"path":"$APPCACHE/*"},{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-app-index":{"identifier":"scope-app-index","description":"This scope permits to list all files and folders in the application directories.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPDATA"},{"path":"$APPLOCALDATA"},{"path":"$APPCACHE"},{"path":"$APPLOG"}]}},"scope-app-recursive":{"identifier":"scope-app-recursive","description":"This scope permits recursive access to the complete application folders, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"},{"path":"$APPDATA"},{"path":"$APPDATA/**"},{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"},{"path":"$APPCACHE"},{"path":"$APPCACHE/**"},{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-appcache":{"identifier":"scope-appcache","description":"This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/*"}]}},"scope-appcache-index":{"identifier":"scope-appcache-index","description":"This scope permits to list all files and folders in the `$APPCACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"}]}},"scope-appcache-recursive":{"identifier":"scope-appcache-recursive","description":"This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCACHE"},{"path":"$APPCACHE/**"}]}},"scope-appconfig":{"identifier":"scope-appconfig","description":"This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/*"}]}},"scope-appconfig-index":{"identifier":"scope-appconfig-index","description":"This scope permits to list all files and folders in the `$APPCONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"}]}},"scope-appconfig-recursive":{"identifier":"scope-appconfig-recursive","description":"This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPCONFIG"},{"path":"$APPCONFIG/**"}]}},"scope-appdata":{"identifier":"scope-appdata","description":"This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/*"}]}},"scope-appdata-index":{"identifier":"scope-appdata-index","description":"This scope permits to list all files and folders in the `$APPDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"}]}},"scope-appdata-recursive":{"identifier":"scope-appdata-recursive","description":"This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPDATA"},{"path":"$APPDATA/**"}]}},"scope-applocaldata":{"identifier":"scope-applocaldata","description":"This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/*"}]}},"scope-applocaldata-index":{"identifier":"scope-applocaldata-index","description":"This scope permits to list all files and folders in the `$APPLOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"}]}},"scope-applocaldata-recursive":{"identifier":"scope-applocaldata-recursive","description":"This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]}},"scope-applog":{"identifier":"scope-applog","description":"This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/*"}]}},"scope-applog-index":{"identifier":"scope-applog-index","description":"This scope permits to list all files and folders in the `$APPLOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"}]}},"scope-applog-recursive":{"identifier":"scope-applog-recursive","description":"This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$APPLOG"},{"path":"$APPLOG/**"}]}},"scope-audio":{"identifier":"scope-audio","description":"This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/*"}]}},"scope-audio-index":{"identifier":"scope-audio-index","description":"This scope permits to list all files and folders in the `$AUDIO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"}]}},"scope-audio-recursive":{"identifier":"scope-audio-recursive","description":"This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$AUDIO"},{"path":"$AUDIO/**"}]}},"scope-cache":{"identifier":"scope-cache","description":"This scope permits access to all files and list content of top level directories in the `$CACHE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/*"}]}},"scope-cache-index":{"identifier":"scope-cache-index","description":"This scope permits to list all files and folders in the `$CACHE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"}]}},"scope-cache-recursive":{"identifier":"scope-cache-recursive","description":"This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CACHE"},{"path":"$CACHE/**"}]}},"scope-config":{"identifier":"scope-config","description":"This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/*"}]}},"scope-config-index":{"identifier":"scope-config-index","description":"This scope permits to list all files and folders in the `$CONFIG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"}]}},"scope-config-recursive":{"identifier":"scope-config-recursive","description":"This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$CONFIG"},{"path":"$CONFIG/**"}]}},"scope-data":{"identifier":"scope-data","description":"This scope permits access to all files and list content of top level directories in the `$DATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/*"}]}},"scope-data-index":{"identifier":"scope-data-index","description":"This scope permits to list all files and folders in the `$DATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"}]}},"scope-data-recursive":{"identifier":"scope-data-recursive","description":"This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DATA"},{"path":"$DATA/**"}]}},"scope-desktop":{"identifier":"scope-desktop","description":"This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/*"}]}},"scope-desktop-index":{"identifier":"scope-desktop-index","description":"This scope permits to list all files and folders in the `$DESKTOP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"}]}},"scope-desktop-recursive":{"identifier":"scope-desktop-recursive","description":"This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DESKTOP"},{"path":"$DESKTOP/**"}]}},"scope-document":{"identifier":"scope-document","description":"This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/*"}]}},"scope-document-index":{"identifier":"scope-document-index","description":"This scope permits to list all files and folders in the `$DOCUMENT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"}]}},"scope-document-recursive":{"identifier":"scope-document-recursive","description":"This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOCUMENT"},{"path":"$DOCUMENT/**"}]}},"scope-download":{"identifier":"scope-download","description":"This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/*"}]}},"scope-download-index":{"identifier":"scope-download-index","description":"This scope permits to list all files and folders in the `$DOWNLOAD`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"}]}},"scope-download-recursive":{"identifier":"scope-download-recursive","description":"This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$DOWNLOAD"},{"path":"$DOWNLOAD/**"}]}},"scope-exe":{"identifier":"scope-exe","description":"This scope permits access to all files and list content of top level directories in the `$EXE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/*"}]}},"scope-exe-index":{"identifier":"scope-exe-index","description":"This scope permits to list all files and folders in the `$EXE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"}]}},"scope-exe-recursive":{"identifier":"scope-exe-recursive","description":"This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$EXE"},{"path":"$EXE/**"}]}},"scope-font":{"identifier":"scope-font","description":"This scope permits access to all files and list content of top level directories in the `$FONT` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/*"}]}},"scope-font-index":{"identifier":"scope-font-index","description":"This scope permits to list all files and folders in the `$FONT`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"}]}},"scope-font-recursive":{"identifier":"scope-font-recursive","description":"This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$FONT"},{"path":"$FONT/**"}]}},"scope-home":{"identifier":"scope-home","description":"This scope permits access to all files and list content of top level directories in the `$HOME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/*"}]}},"scope-home-index":{"identifier":"scope-home-index","description":"This scope permits to list all files and folders in the `$HOME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"}]}},"scope-home-recursive":{"identifier":"scope-home-recursive","description":"This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$HOME"},{"path":"$HOME/**"}]}},"scope-localdata":{"identifier":"scope-localdata","description":"This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/*"}]}},"scope-localdata-index":{"identifier":"scope-localdata-index","description":"This scope permits to list all files and folders in the `$LOCALDATA`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"}]}},"scope-localdata-recursive":{"identifier":"scope-localdata-recursive","description":"This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOCALDATA"},{"path":"$LOCALDATA/**"}]}},"scope-log":{"identifier":"scope-log","description":"This scope permits access to all files and list content of top level directories in the `$LOG` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/*"}]}},"scope-log-index":{"identifier":"scope-log-index","description":"This scope permits to list all files and folders in the `$LOG`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"}]}},"scope-log-recursive":{"identifier":"scope-log-recursive","description":"This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$LOG"},{"path":"$LOG/**"}]}},"scope-picture":{"identifier":"scope-picture","description":"This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/*"}]}},"scope-picture-index":{"identifier":"scope-picture-index","description":"This scope permits to list all files and folders in the `$PICTURE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"}]}},"scope-picture-recursive":{"identifier":"scope-picture-recursive","description":"This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PICTURE"},{"path":"$PICTURE/**"}]}},"scope-public":{"identifier":"scope-public","description":"This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/*"}]}},"scope-public-index":{"identifier":"scope-public-index","description":"This scope permits to list all files and folders in the `$PUBLIC`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"}]}},"scope-public-recursive":{"identifier":"scope-public-recursive","description":"This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$PUBLIC"},{"path":"$PUBLIC/**"}]}},"scope-resource":{"identifier":"scope-resource","description":"This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/*"}]}},"scope-resource-index":{"identifier":"scope-resource-index","description":"This scope permits to list all files and folders in the `$RESOURCE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"}]}},"scope-resource-recursive":{"identifier":"scope-resource-recursive","description":"This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RESOURCE"},{"path":"$RESOURCE/**"}]}},"scope-runtime":{"identifier":"scope-runtime","description":"This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/*"}]}},"scope-runtime-index":{"identifier":"scope-runtime-index","description":"This scope permits to list all files and folders in the `$RUNTIME`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"}]}},"scope-runtime-recursive":{"identifier":"scope-runtime-recursive","description":"This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$RUNTIME"},{"path":"$RUNTIME/**"}]}},"scope-temp":{"identifier":"scope-temp","description":"This scope permits access to all files and list content of top level directories in the `$TEMP` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/*"}]}},"scope-temp-index":{"identifier":"scope-temp-index","description":"This scope permits to list all files and folders in the `$TEMP`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"}]}},"scope-temp-recursive":{"identifier":"scope-temp-recursive","description":"This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMP"},{"path":"$TEMP/**"}]}},"scope-template":{"identifier":"scope-template","description":"This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/*"}]}},"scope-template-index":{"identifier":"scope-template-index","description":"This scope permits to list all files and folders in the `$TEMPLATE`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"}]}},"scope-template-recursive":{"identifier":"scope-template-recursive","description":"This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$TEMPLATE"},{"path":"$TEMPLATE/**"}]}},"scope-video":{"identifier":"scope-video","description":"This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/*"}]}},"scope-video-index":{"identifier":"scope-video-index","description":"This scope permits to list all files and folders in the `$VIDEO`folder.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"}]}},"scope-video-recursive":{"identifier":"scope-video-recursive","description":"This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"path":"$VIDEO"},{"path":"$VIDEO/**"}]}},"write-all":{"identifier":"write-all","description":"This enables all write related commands without any pre-configured accessible paths.","commands":{"allow":["mkdir","create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}},"write-files":{"identifier":"write-files","description":"This enables all file write related commands without any pre-configured accessible paths.","commands":{"allow":["create","copy_file","remove","rename","truncate","ftruncate","write","write_file","write_text_file"],"deny":[]}}},"permission_sets":{"allow-app-meta":{"identifier":"allow-app-meta","description":"This allows non-recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-index"]},"allow-app-meta-recursive":{"identifier":"allow-app-meta-recursive","description":"This allows full recursive read access to metadata of the application folders, including file listing and statistics.","permissions":["read-meta","scope-app-recursive"]},"allow-app-read":{"identifier":"allow-app-read","description":"This allows non-recursive read access to the application folders.","permissions":["read-all","scope-app"]},"allow-app-read-recursive":{"identifier":"allow-app-read-recursive","description":"This allows full recursive read access to the complete application folders, files and subdirectories.","permissions":["read-all","scope-app-recursive"]},"allow-app-write":{"identifier":"allow-app-write","description":"This allows non-recursive write access to the application folders.","permissions":["write-all","scope-app"]},"allow-app-write-recursive":{"identifier":"allow-app-write-recursive","description":"This allows full recursive write access to the complete application folders, files and subdirectories.","permissions":["write-all","scope-app-recursive"]},"allow-appcache-meta":{"identifier":"allow-appcache-meta","description":"This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-index"]},"allow-appcache-meta-recursive":{"identifier":"allow-appcache-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-appcache-recursive"]},"allow-appcache-read":{"identifier":"allow-appcache-read","description":"This allows non-recursive read access to the `$APPCACHE` folder.","permissions":["read-all","scope-appcache"]},"allow-appcache-read-recursive":{"identifier":"allow-appcache-read-recursive","description":"This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["read-all","scope-appcache-recursive"]},"allow-appcache-write":{"identifier":"allow-appcache-write","description":"This allows non-recursive write access to the `$APPCACHE` folder.","permissions":["write-all","scope-appcache"]},"allow-appcache-write-recursive":{"identifier":"allow-appcache-write-recursive","description":"This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.","permissions":["write-all","scope-appcache-recursive"]},"allow-appconfig-meta":{"identifier":"allow-appconfig-meta","description":"This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-index"]},"allow-appconfig-meta-recursive":{"identifier":"allow-appconfig-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-appconfig-recursive"]},"allow-appconfig-read":{"identifier":"allow-appconfig-read","description":"This allows non-recursive read access to the `$APPCONFIG` folder.","permissions":["read-all","scope-appconfig"]},"allow-appconfig-read-recursive":{"identifier":"allow-appconfig-read-recursive","description":"This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["read-all","scope-appconfig-recursive"]},"allow-appconfig-write":{"identifier":"allow-appconfig-write","description":"This allows non-recursive write access to the `$APPCONFIG` folder.","permissions":["write-all","scope-appconfig"]},"allow-appconfig-write-recursive":{"identifier":"allow-appconfig-write-recursive","description":"This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.","permissions":["write-all","scope-appconfig-recursive"]},"allow-appdata-meta":{"identifier":"allow-appdata-meta","description":"This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-index"]},"allow-appdata-meta-recursive":{"identifier":"allow-appdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-appdata-recursive"]},"allow-appdata-read":{"identifier":"allow-appdata-read","description":"This allows non-recursive read access to the `$APPDATA` folder.","permissions":["read-all","scope-appdata"]},"allow-appdata-read-recursive":{"identifier":"allow-appdata-read-recursive","description":"This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["read-all","scope-appdata-recursive"]},"allow-appdata-write":{"identifier":"allow-appdata-write","description":"This allows non-recursive write access to the `$APPDATA` folder.","permissions":["write-all","scope-appdata"]},"allow-appdata-write-recursive":{"identifier":"allow-appdata-write-recursive","description":"This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.","permissions":["write-all","scope-appdata-recursive"]},"allow-applocaldata-meta":{"identifier":"allow-applocaldata-meta","description":"This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-index"]},"allow-applocaldata-meta-recursive":{"identifier":"allow-applocaldata-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-applocaldata-recursive"]},"allow-applocaldata-read":{"identifier":"allow-applocaldata-read","description":"This allows non-recursive read access to the `$APPLOCALDATA` folder.","permissions":["read-all","scope-applocaldata"]},"allow-applocaldata-read-recursive":{"identifier":"allow-applocaldata-read-recursive","description":"This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-applocaldata-recursive"]},"allow-applocaldata-write":{"identifier":"allow-applocaldata-write","description":"This allows non-recursive write access to the `$APPLOCALDATA` folder.","permissions":["write-all","scope-applocaldata"]},"allow-applocaldata-write-recursive":{"identifier":"allow-applocaldata-write-recursive","description":"This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-applocaldata-recursive"]},"allow-applog-meta":{"identifier":"allow-applog-meta","description":"This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-index"]},"allow-applog-meta-recursive":{"identifier":"allow-applog-meta-recursive","description":"This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.","permissions":["read-meta","scope-applog-recursive"]},"allow-applog-read":{"identifier":"allow-applog-read","description":"This allows non-recursive read access to the `$APPLOG` folder.","permissions":["read-all","scope-applog"]},"allow-applog-read-recursive":{"identifier":"allow-applog-read-recursive","description":"This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["read-all","scope-applog-recursive"]},"allow-applog-write":{"identifier":"allow-applog-write","description":"This allows non-recursive write access to the `$APPLOG` folder.","permissions":["write-all","scope-applog"]},"allow-applog-write-recursive":{"identifier":"allow-applog-write-recursive","description":"This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.","permissions":["write-all","scope-applog-recursive"]},"allow-audio-meta":{"identifier":"allow-audio-meta","description":"This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-index"]},"allow-audio-meta-recursive":{"identifier":"allow-audio-meta-recursive","description":"This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.","permissions":["read-meta","scope-audio-recursive"]},"allow-audio-read":{"identifier":"allow-audio-read","description":"This allows non-recursive read access to the `$AUDIO` folder.","permissions":["read-all","scope-audio"]},"allow-audio-read-recursive":{"identifier":"allow-audio-read-recursive","description":"This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["read-all","scope-audio-recursive"]},"allow-audio-write":{"identifier":"allow-audio-write","description":"This allows non-recursive write access to the `$AUDIO` folder.","permissions":["write-all","scope-audio"]},"allow-audio-write-recursive":{"identifier":"allow-audio-write-recursive","description":"This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.","permissions":["write-all","scope-audio-recursive"]},"allow-cache-meta":{"identifier":"allow-cache-meta","description":"This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-index"]},"allow-cache-meta-recursive":{"identifier":"allow-cache-meta-recursive","description":"This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.","permissions":["read-meta","scope-cache-recursive"]},"allow-cache-read":{"identifier":"allow-cache-read","description":"This allows non-recursive read access to the `$CACHE` folder.","permissions":["read-all","scope-cache"]},"allow-cache-read-recursive":{"identifier":"allow-cache-read-recursive","description":"This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.","permissions":["read-all","scope-cache-recursive"]},"allow-cache-write":{"identifier":"allow-cache-write","description":"This allows non-recursive write access to the `$CACHE` folder.","permissions":["write-all","scope-cache"]},"allow-cache-write-recursive":{"identifier":"allow-cache-write-recursive","description":"This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.","permissions":["write-all","scope-cache-recursive"]},"allow-config-meta":{"identifier":"allow-config-meta","description":"This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-index"]},"allow-config-meta-recursive":{"identifier":"allow-config-meta-recursive","description":"This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.","permissions":["read-meta","scope-config-recursive"]},"allow-config-read":{"identifier":"allow-config-read","description":"This allows non-recursive read access to the `$CONFIG` folder.","permissions":["read-all","scope-config"]},"allow-config-read-recursive":{"identifier":"allow-config-read-recursive","description":"This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["read-all","scope-config-recursive"]},"allow-config-write":{"identifier":"allow-config-write","description":"This allows non-recursive write access to the `$CONFIG` folder.","permissions":["write-all","scope-config"]},"allow-config-write-recursive":{"identifier":"allow-config-write-recursive","description":"This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.","permissions":["write-all","scope-config-recursive"]},"allow-data-meta":{"identifier":"allow-data-meta","description":"This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-index"]},"allow-data-meta-recursive":{"identifier":"allow-data-meta-recursive","description":"This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.","permissions":["read-meta","scope-data-recursive"]},"allow-data-read":{"identifier":"allow-data-read","description":"This allows non-recursive read access to the `$DATA` folder.","permissions":["read-all","scope-data"]},"allow-data-read-recursive":{"identifier":"allow-data-read-recursive","description":"This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.","permissions":["read-all","scope-data-recursive"]},"allow-data-write":{"identifier":"allow-data-write","description":"This allows non-recursive write access to the `$DATA` folder.","permissions":["write-all","scope-data"]},"allow-data-write-recursive":{"identifier":"allow-data-write-recursive","description":"This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.","permissions":["write-all","scope-data-recursive"]},"allow-desktop-meta":{"identifier":"allow-desktop-meta","description":"This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-index"]},"allow-desktop-meta-recursive":{"identifier":"allow-desktop-meta-recursive","description":"This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.","permissions":["read-meta","scope-desktop-recursive"]},"allow-desktop-read":{"identifier":"allow-desktop-read","description":"This allows non-recursive read access to the `$DESKTOP` folder.","permissions":["read-all","scope-desktop"]},"allow-desktop-read-recursive":{"identifier":"allow-desktop-read-recursive","description":"This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["read-all","scope-desktop-recursive"]},"allow-desktop-write":{"identifier":"allow-desktop-write","description":"This allows non-recursive write access to the `$DESKTOP` folder.","permissions":["write-all","scope-desktop"]},"allow-desktop-write-recursive":{"identifier":"allow-desktop-write-recursive","description":"This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.","permissions":["write-all","scope-desktop-recursive"]},"allow-document-meta":{"identifier":"allow-document-meta","description":"This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-index"]},"allow-document-meta-recursive":{"identifier":"allow-document-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.","permissions":["read-meta","scope-document-recursive"]},"allow-document-read":{"identifier":"allow-document-read","description":"This allows non-recursive read access to the `$DOCUMENT` folder.","permissions":["read-all","scope-document"]},"allow-document-read-recursive":{"identifier":"allow-document-read-recursive","description":"This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["read-all","scope-document-recursive"]},"allow-document-write":{"identifier":"allow-document-write","description":"This allows non-recursive write access to the `$DOCUMENT` folder.","permissions":["write-all","scope-document"]},"allow-document-write-recursive":{"identifier":"allow-document-write-recursive","description":"This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.","permissions":["write-all","scope-document-recursive"]},"allow-download-meta":{"identifier":"allow-download-meta","description":"This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-index"]},"allow-download-meta-recursive":{"identifier":"allow-download-meta-recursive","description":"This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.","permissions":["read-meta","scope-download-recursive"]},"allow-download-read":{"identifier":"allow-download-read","description":"This allows non-recursive read access to the `$DOWNLOAD` folder.","permissions":["read-all","scope-download"]},"allow-download-read-recursive":{"identifier":"allow-download-read-recursive","description":"This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["read-all","scope-download-recursive"]},"allow-download-write":{"identifier":"allow-download-write","description":"This allows non-recursive write access to the `$DOWNLOAD` folder.","permissions":["write-all","scope-download"]},"allow-download-write-recursive":{"identifier":"allow-download-write-recursive","description":"This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.","permissions":["write-all","scope-download-recursive"]},"allow-exe-meta":{"identifier":"allow-exe-meta","description":"This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-index"]},"allow-exe-meta-recursive":{"identifier":"allow-exe-meta-recursive","description":"This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.","permissions":["read-meta","scope-exe-recursive"]},"allow-exe-read":{"identifier":"allow-exe-read","description":"This allows non-recursive read access to the `$EXE` folder.","permissions":["read-all","scope-exe"]},"allow-exe-read-recursive":{"identifier":"allow-exe-read-recursive","description":"This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.","permissions":["read-all","scope-exe-recursive"]},"allow-exe-write":{"identifier":"allow-exe-write","description":"This allows non-recursive write access to the `$EXE` folder.","permissions":["write-all","scope-exe"]},"allow-exe-write-recursive":{"identifier":"allow-exe-write-recursive","description":"This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.","permissions":["write-all","scope-exe-recursive"]},"allow-font-meta":{"identifier":"allow-font-meta","description":"This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-index"]},"allow-font-meta-recursive":{"identifier":"allow-font-meta-recursive","description":"This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.","permissions":["read-meta","scope-font-recursive"]},"allow-font-read":{"identifier":"allow-font-read","description":"This allows non-recursive read access to the `$FONT` folder.","permissions":["read-all","scope-font"]},"allow-font-read-recursive":{"identifier":"allow-font-read-recursive","description":"This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.","permissions":["read-all","scope-font-recursive"]},"allow-font-write":{"identifier":"allow-font-write","description":"This allows non-recursive write access to the `$FONT` folder.","permissions":["write-all","scope-font"]},"allow-font-write-recursive":{"identifier":"allow-font-write-recursive","description":"This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.","permissions":["write-all","scope-font-recursive"]},"allow-home-meta":{"identifier":"allow-home-meta","description":"This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-index"]},"allow-home-meta-recursive":{"identifier":"allow-home-meta-recursive","description":"This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.","permissions":["read-meta","scope-home-recursive"]},"allow-home-read":{"identifier":"allow-home-read","description":"This allows non-recursive read access to the `$HOME` folder.","permissions":["read-all","scope-home"]},"allow-home-read-recursive":{"identifier":"allow-home-read-recursive","description":"This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.","permissions":["read-all","scope-home-recursive"]},"allow-home-write":{"identifier":"allow-home-write","description":"This allows non-recursive write access to the `$HOME` folder.","permissions":["write-all","scope-home"]},"allow-home-write-recursive":{"identifier":"allow-home-write-recursive","description":"This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.","permissions":["write-all","scope-home-recursive"]},"allow-localdata-meta":{"identifier":"allow-localdata-meta","description":"This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-index"]},"allow-localdata-meta-recursive":{"identifier":"allow-localdata-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.","permissions":["read-meta","scope-localdata-recursive"]},"allow-localdata-read":{"identifier":"allow-localdata-read","description":"This allows non-recursive read access to the `$LOCALDATA` folder.","permissions":["read-all","scope-localdata"]},"allow-localdata-read-recursive":{"identifier":"allow-localdata-read-recursive","description":"This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["read-all","scope-localdata-recursive"]},"allow-localdata-write":{"identifier":"allow-localdata-write","description":"This allows non-recursive write access to the `$LOCALDATA` folder.","permissions":["write-all","scope-localdata"]},"allow-localdata-write-recursive":{"identifier":"allow-localdata-write-recursive","description":"This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.","permissions":["write-all","scope-localdata-recursive"]},"allow-log-meta":{"identifier":"allow-log-meta","description":"This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-index"]},"allow-log-meta-recursive":{"identifier":"allow-log-meta-recursive","description":"This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.","permissions":["read-meta","scope-log-recursive"]},"allow-log-read":{"identifier":"allow-log-read","description":"This allows non-recursive read access to the `$LOG` folder.","permissions":["read-all","scope-log"]},"allow-log-read-recursive":{"identifier":"allow-log-read-recursive","description":"This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.","permissions":["read-all","scope-log-recursive"]},"allow-log-write":{"identifier":"allow-log-write","description":"This allows non-recursive write access to the `$LOG` folder.","permissions":["write-all","scope-log"]},"allow-log-write-recursive":{"identifier":"allow-log-write-recursive","description":"This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.","permissions":["write-all","scope-log-recursive"]},"allow-picture-meta":{"identifier":"allow-picture-meta","description":"This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-index"]},"allow-picture-meta-recursive":{"identifier":"allow-picture-meta-recursive","description":"This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.","permissions":["read-meta","scope-picture-recursive"]},"allow-picture-read":{"identifier":"allow-picture-read","description":"This allows non-recursive read access to the `$PICTURE` folder.","permissions":["read-all","scope-picture"]},"allow-picture-read-recursive":{"identifier":"allow-picture-read-recursive","description":"This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["read-all","scope-picture-recursive"]},"allow-picture-write":{"identifier":"allow-picture-write","description":"This allows non-recursive write access to the `$PICTURE` folder.","permissions":["write-all","scope-picture"]},"allow-picture-write-recursive":{"identifier":"allow-picture-write-recursive","description":"This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.","permissions":["write-all","scope-picture-recursive"]},"allow-public-meta":{"identifier":"allow-public-meta","description":"This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-index"]},"allow-public-meta-recursive":{"identifier":"allow-public-meta-recursive","description":"This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.","permissions":["read-meta","scope-public-recursive"]},"allow-public-read":{"identifier":"allow-public-read","description":"This allows non-recursive read access to the `$PUBLIC` folder.","permissions":["read-all","scope-public"]},"allow-public-read-recursive":{"identifier":"allow-public-read-recursive","description":"This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["read-all","scope-public-recursive"]},"allow-public-write":{"identifier":"allow-public-write","description":"This allows non-recursive write access to the `$PUBLIC` folder.","permissions":["write-all","scope-public"]},"allow-public-write-recursive":{"identifier":"allow-public-write-recursive","description":"This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.","permissions":["write-all","scope-public-recursive"]},"allow-resource-meta":{"identifier":"allow-resource-meta","description":"This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-index"]},"allow-resource-meta-recursive":{"identifier":"allow-resource-meta-recursive","description":"This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.","permissions":["read-meta","scope-resource-recursive"]},"allow-resource-read":{"identifier":"allow-resource-read","description":"This allows non-recursive read access to the `$RESOURCE` folder.","permissions":["read-all","scope-resource"]},"allow-resource-read-recursive":{"identifier":"allow-resource-read-recursive","description":"This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["read-all","scope-resource-recursive"]},"allow-resource-write":{"identifier":"allow-resource-write","description":"This allows non-recursive write access to the `$RESOURCE` folder.","permissions":["write-all","scope-resource"]},"allow-resource-write-recursive":{"identifier":"allow-resource-write-recursive","description":"This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.","permissions":["write-all","scope-resource-recursive"]},"allow-runtime-meta":{"identifier":"allow-runtime-meta","description":"This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-index"]},"allow-runtime-meta-recursive":{"identifier":"allow-runtime-meta-recursive","description":"This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.","permissions":["read-meta","scope-runtime-recursive"]},"allow-runtime-read":{"identifier":"allow-runtime-read","description":"This allows non-recursive read access to the `$RUNTIME` folder.","permissions":["read-all","scope-runtime"]},"allow-runtime-read-recursive":{"identifier":"allow-runtime-read-recursive","description":"This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["read-all","scope-runtime-recursive"]},"allow-runtime-write":{"identifier":"allow-runtime-write","description":"This allows non-recursive write access to the `$RUNTIME` folder.","permissions":["write-all","scope-runtime"]},"allow-runtime-write-recursive":{"identifier":"allow-runtime-write-recursive","description":"This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.","permissions":["write-all","scope-runtime-recursive"]},"allow-temp-meta":{"identifier":"allow-temp-meta","description":"This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-index"]},"allow-temp-meta-recursive":{"identifier":"allow-temp-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.","permissions":["read-meta","scope-temp-recursive"]},"allow-temp-read":{"identifier":"allow-temp-read","description":"This allows non-recursive read access to the `$TEMP` folder.","permissions":["read-all","scope-temp"]},"allow-temp-read-recursive":{"identifier":"allow-temp-read-recursive","description":"This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.","permissions":["read-all","scope-temp-recursive"]},"allow-temp-write":{"identifier":"allow-temp-write","description":"This allows non-recursive write access to the `$TEMP` folder.","permissions":["write-all","scope-temp"]},"allow-temp-write-recursive":{"identifier":"allow-temp-write-recursive","description":"This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.","permissions":["write-all","scope-temp-recursive"]},"allow-template-meta":{"identifier":"allow-template-meta","description":"This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-index"]},"allow-template-meta-recursive":{"identifier":"allow-template-meta-recursive","description":"This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.","permissions":["read-meta","scope-template-recursive"]},"allow-template-read":{"identifier":"allow-template-read","description":"This allows non-recursive read access to the `$TEMPLATE` folder.","permissions":["read-all","scope-template"]},"allow-template-read-recursive":{"identifier":"allow-template-read-recursive","description":"This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["read-all","scope-template-recursive"]},"allow-template-write":{"identifier":"allow-template-write","description":"This allows non-recursive write access to the `$TEMPLATE` folder.","permissions":["write-all","scope-template"]},"allow-template-write-recursive":{"identifier":"allow-template-write-recursive","description":"This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.","permissions":["write-all","scope-template-recursive"]},"allow-video-meta":{"identifier":"allow-video-meta","description":"This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-index"]},"allow-video-meta-recursive":{"identifier":"allow-video-meta-recursive","description":"This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.","permissions":["read-meta","scope-video-recursive"]},"allow-video-read":{"identifier":"allow-video-read","description":"This allows non-recursive read access to the `$VIDEO` folder.","permissions":["read-all","scope-video"]},"allow-video-read-recursive":{"identifier":"allow-video-read-recursive","description":"This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["read-all","scope-video-recursive"]},"allow-video-write":{"identifier":"allow-video-write","description":"This allows non-recursive write access to the `$VIDEO` folder.","permissions":["write-all","scope-video"]},"allow-video-write-recursive":{"identifier":"allow-video-write-recursive","description":"This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.","permissions":["write-all","scope-video-recursive"]},"deny-default":{"identifier":"deny-default","description":"This denies access to dangerous Tauri relevant files and folders by default.","permissions":["deny-webview-data-linux","deny-webview-data-windows"]}},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"FS scope path.","type":"string"},{"properties":{"path":{"description":"FS scope path.","type":"string"}},"required":["path"],"type":"object"}],"description":"FS scope entry.","title":"FsScopeEntry"}},"global-shortcut":{"default_permission":{"identifier":"default","description":"No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n","permissions":[]},"permissions":{"allow-is-registered":{"identifier":"allow-is-registered","description":"Enables the is_registered command without any pre-configured scope.","commands":{"allow":["is_registered"],"deny":[]}},"allow-register":{"identifier":"allow-register","description":"Enables the register command without any pre-configured scope.","commands":{"allow":["register"],"deny":[]}},"allow-register-all":{"identifier":"allow-register-all","description":"Enables the register_all command without any pre-configured scope.","commands":{"allow":["register_all"],"deny":[]}},"allow-unregister":{"identifier":"allow-unregister","description":"Enables the unregister command without any pre-configured scope.","commands":{"allow":["unregister"],"deny":[]}},"allow-unregister-all":{"identifier":"allow-unregister-all","description":"Enables the unregister_all command without any pre-configured scope.","commands":{"allow":["unregister_all"],"deny":[]}},"deny-is-registered":{"identifier":"deny-is-registered","description":"Denies the is_registered command without any pre-configured scope.","commands":{"allow":[],"deny":["is_registered"]}},"deny-register":{"identifier":"deny-register","description":"Denies the register command without any pre-configured scope.","commands":{"allow":[],"deny":["register"]}},"deny-register-all":{"identifier":"deny-register-all","description":"Denies the register_all command without any pre-configured scope.","commands":{"allow":[],"deny":["register_all"]}},"deny-unregister":{"identifier":"deny-unregister","description":"Denies the unregister command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister"]}},"deny-unregister-all":{"identifier":"deny-unregister-all","description":"Denies the unregister_all command without any pre-configured scope.","commands":{"allow":[],"deny":["unregister_all"]}}},"permission_sets":{},"global_scope_schema":null},"http":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n","permissions":["allow-fetch","allow-fetch-cancel","allow-fetch-read-body","allow-fetch-send"]},"permissions":{"allow-fetch":{"identifier":"allow-fetch","description":"Enables the fetch command without any pre-configured scope.","commands":{"allow":["fetch"],"deny":[]}},"allow-fetch-cancel":{"identifier":"allow-fetch-cancel","description":"Enables the fetch_cancel command without any pre-configured scope.","commands":{"allow":["fetch_cancel"],"deny":[]}},"allow-fetch-read-body":{"identifier":"allow-fetch-read-body","description":"Enables the fetch_read_body command without any pre-configured scope.","commands":{"allow":["fetch_read_body"],"deny":[]}},"allow-fetch-send":{"identifier":"allow-fetch-send","description":"Enables the fetch_send command without any pre-configured scope.","commands":{"allow":["fetch_send"],"deny":[]}},"deny-fetch":{"identifier":"deny-fetch","description":"Denies the fetch command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch"]}},"deny-fetch-cancel":{"identifier":"deny-fetch-cancel","description":"Denies the fetch_cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_cancel"]}},"deny-fetch-read-body":{"identifier":"deny-fetch-read-body","description":"Denies the fetch_read_body command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_read_body"]}},"deny-fetch-send":{"identifier":"deny-fetch-send","description":"Denies the fetch_send command without any pre-configured scope.","commands":{"allow":[],"deny":["fetch_send"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"},{"properties":{"url":{"description":"A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"}],"description":"HTTP scope entry.","title":"HttpScopeEntry"}},"notification":{"default_permission":{"identifier":"default","description":"This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n","permissions":["allow-is-permission-granted","allow-request-permission","allow-notify","allow-register-action-types","allow-register-listener","allow-cancel","allow-get-pending","allow-remove-active","allow-get-active","allow-check-permissions","allow-show","allow-batch","allow-list-channels","allow-delete-channel","allow-create-channel","allow-permission-state"]},"permissions":{"allow-batch":{"identifier":"allow-batch","description":"Enables the batch command without any pre-configured scope.","commands":{"allow":["batch"],"deny":[]}},"allow-cancel":{"identifier":"allow-cancel","description":"Enables the cancel command without any pre-configured scope.","commands":{"allow":["cancel"],"deny":[]}},"allow-check-permissions":{"identifier":"allow-check-permissions","description":"Enables the check_permissions command without any pre-configured scope.","commands":{"allow":["check_permissions"],"deny":[]}},"allow-create-channel":{"identifier":"allow-create-channel","description":"Enables the create_channel command without any pre-configured scope.","commands":{"allow":["create_channel"],"deny":[]}},"allow-delete-channel":{"identifier":"allow-delete-channel","description":"Enables the delete_channel command without any pre-configured scope.","commands":{"allow":["delete_channel"],"deny":[]}},"allow-get-active":{"identifier":"allow-get-active","description":"Enables the get_active command without any pre-configured scope.","commands":{"allow":["get_active"],"deny":[]}},"allow-get-pending":{"identifier":"allow-get-pending","description":"Enables the get_pending command without any pre-configured scope.","commands":{"allow":["get_pending"],"deny":[]}},"allow-is-permission-granted":{"identifier":"allow-is-permission-granted","description":"Enables the is_permission_granted command without any pre-configured scope.","commands":{"allow":["is_permission_granted"],"deny":[]}},"allow-list-channels":{"identifier":"allow-list-channels","description":"Enables the list_channels command without any pre-configured scope.","commands":{"allow":["list_channels"],"deny":[]}},"allow-notify":{"identifier":"allow-notify","description":"Enables the notify command without any pre-configured scope.","commands":{"allow":["notify"],"deny":[]}},"allow-permission-state":{"identifier":"allow-permission-state","description":"Enables the permission_state command without any pre-configured scope.","commands":{"allow":["permission_state"],"deny":[]}},"allow-register-action-types":{"identifier":"allow-register-action-types","description":"Enables the register_action_types command without any pre-configured scope.","commands":{"allow":["register_action_types"],"deny":[]}},"allow-register-listener":{"identifier":"allow-register-listener","description":"Enables the register_listener command without any pre-configured scope.","commands":{"allow":["register_listener"],"deny":[]}},"allow-remove-active":{"identifier":"allow-remove-active","description":"Enables the remove_active command without any pre-configured scope.","commands":{"allow":["remove_active"],"deny":[]}},"allow-request-permission":{"identifier":"allow-request-permission","description":"Enables the request_permission command without any pre-configured scope.","commands":{"allow":["request_permission"],"deny":[]}},"allow-show":{"identifier":"allow-show","description":"Enables the show command without any pre-configured scope.","commands":{"allow":["show"],"deny":[]}},"deny-batch":{"identifier":"deny-batch","description":"Denies the batch command without any pre-configured scope.","commands":{"allow":[],"deny":["batch"]}},"deny-cancel":{"identifier":"deny-cancel","description":"Denies the cancel command without any pre-configured scope.","commands":{"allow":[],"deny":["cancel"]}},"deny-check-permissions":{"identifier":"deny-check-permissions","description":"Denies the check_permissions command without any pre-configured scope.","commands":{"allow":[],"deny":["check_permissions"]}},"deny-create-channel":{"identifier":"deny-create-channel","description":"Denies the create_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["create_channel"]}},"deny-delete-channel":{"identifier":"deny-delete-channel","description":"Denies the delete_channel command without any pre-configured scope.","commands":{"allow":[],"deny":["delete_channel"]}},"deny-get-active":{"identifier":"deny-get-active","description":"Denies the get_active command without any pre-configured scope.","commands":{"allow":[],"deny":["get_active"]}},"deny-get-pending":{"identifier":"deny-get-pending","description":"Denies the get_pending command without any pre-configured scope.","commands":{"allow":[],"deny":["get_pending"]}},"deny-is-permission-granted":{"identifier":"deny-is-permission-granted","description":"Denies the is_permission_granted command without any pre-configured scope.","commands":{"allow":[],"deny":["is_permission_granted"]}},"deny-list-channels":{"identifier":"deny-list-channels","description":"Denies the list_channels command without any pre-configured scope.","commands":{"allow":[],"deny":["list_channels"]}},"deny-notify":{"identifier":"deny-notify","description":"Denies the notify command without any pre-configured scope.","commands":{"allow":[],"deny":["notify"]}},"deny-permission-state":{"identifier":"deny-permission-state","description":"Denies the permission_state command without any pre-configured scope.","commands":{"allow":[],"deny":["permission_state"]}},"deny-register-action-types":{"identifier":"deny-register-action-types","description":"Denies the register_action_types command without any pre-configured scope.","commands":{"allow":[],"deny":["register_action_types"]}},"deny-register-listener":{"identifier":"deny-register-listener","description":"Denies the register_listener command without any pre-configured scope.","commands":{"allow":[],"deny":["register_listener"]}},"deny-remove-active":{"identifier":"deny-remove-active","description":"Denies the remove_active command without any pre-configured scope.","commands":{"allow":[],"deny":["remove_active"]}},"deny-request-permission":{"identifier":"deny-request-permission","description":"Denies the request_permission command without any pre-configured scope.","commands":{"allow":[],"deny":["request_permission"]}},"deny-show":{"identifier":"deny-show","description":"Denies the show command without any pre-configured scope.","commands":{"allow":[],"deny":["show"]}}},"permission_sets":{},"global_scope_schema":null},"opener":{"default_permission":{"identifier":"default","description":"This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer","permissions":["allow-open-url","allow-reveal-item-in-dir","allow-default-urls"]},"permissions":{"allow-default-urls":{"identifier":"allow-default-urls","description":"This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.","commands":{"allow":[],"deny":[]},"scope":{"allow":[{"url":"mailto:*"},{"url":"tel:*"},{"url":"http://*"},{"url":"https://*"}]}},"allow-open-path":{"identifier":"allow-open-path","description":"Enables the open_path command without any pre-configured scope.","commands":{"allow":["open_path"],"deny":[]}},"allow-open-url":{"identifier":"allow-open-url","description":"Enables the open_url command without any pre-configured scope.","commands":{"allow":["open_url"],"deny":[]}},"allow-reveal-item-in-dir":{"identifier":"allow-reveal-item-in-dir","description":"Enables the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":["reveal_item_in_dir"],"deny":[]}},"deny-open-path":{"identifier":"deny-open-path","description":"Denies the open_path command without any pre-configured scope.","commands":{"allow":[],"deny":["open_path"]}},"deny-open-url":{"identifier":"deny-open-url","description":"Denies the open_url command without any pre-configured scope.","commands":{"allow":[],"deny":["open_url"]}},"deny-reveal-item-in-dir":{"identifier":"deny-reveal-item-in-dir","description":"Denies the reveal_item_in_dir command without any pre-configured scope.","commands":{"allow":[],"deny":["reveal_item_in_dir"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this url with, for example: firefox."},"url":{"description":"A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"","type":"string"}},"required":["url"],"type":"object"},{"properties":{"app":{"allOf":[{"$ref":"#/definitions/Application"}],"description":"An application to open this path with, for example: xdg-open."},"path":{"description":"A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"}},"required":["path"],"type":"object"}],"definitions":{"Application":{"anyOf":[{"description":"Open in default application.","type":"null"},{"description":"If true, allow open with any application.","type":"boolean"},{"description":"Allow specific application to open with.","type":"string"}],"description":"Opener scope application."}},"description":"Opener scope entry.","title":"OpenerScopeEntry"}},"os":{"default_permission":{"identifier":"default","description":"This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n","permissions":["allow-arch","allow-exe-extension","allow-family","allow-locale","allow-os-type","allow-platform","allow-version"]},"permissions":{"allow-arch":{"identifier":"allow-arch","description":"Enables the arch command without any pre-configured scope.","commands":{"allow":["arch"],"deny":[]}},"allow-exe-extension":{"identifier":"allow-exe-extension","description":"Enables the exe_extension command without any pre-configured scope.","commands":{"allow":["exe_extension"],"deny":[]}},"allow-family":{"identifier":"allow-family","description":"Enables the family command without any pre-configured scope.","commands":{"allow":["family"],"deny":[]}},"allow-hostname":{"identifier":"allow-hostname","description":"Enables the hostname command without any pre-configured scope.","commands":{"allow":["hostname"],"deny":[]}},"allow-locale":{"identifier":"allow-locale","description":"Enables the locale command without any pre-configured scope.","commands":{"allow":["locale"],"deny":[]}},"allow-os-type":{"identifier":"allow-os-type","description":"Enables the os_type command without any pre-configured scope.","commands":{"allow":["os_type"],"deny":[]}},"allow-platform":{"identifier":"allow-platform","description":"Enables the platform command without any pre-configured scope.","commands":{"allow":["platform"],"deny":[]}},"allow-version":{"identifier":"allow-version","description":"Enables the version command without any pre-configured scope.","commands":{"allow":["version"],"deny":[]}},"deny-arch":{"identifier":"deny-arch","description":"Denies the arch command without any pre-configured scope.","commands":{"allow":[],"deny":["arch"]}},"deny-exe-extension":{"identifier":"deny-exe-extension","description":"Denies the exe_extension command without any pre-configured scope.","commands":{"allow":[],"deny":["exe_extension"]}},"deny-family":{"identifier":"deny-family","description":"Denies the family command without any pre-configured scope.","commands":{"allow":[],"deny":["family"]}},"deny-hostname":{"identifier":"deny-hostname","description":"Denies the hostname command without any pre-configured scope.","commands":{"allow":[],"deny":["hostname"]}},"deny-locale":{"identifier":"deny-locale","description":"Denies the locale command without any pre-configured scope.","commands":{"allow":[],"deny":["locale"]}},"deny-os-type":{"identifier":"deny-os-type","description":"Denies the os_type command without any pre-configured scope.","commands":{"allow":[],"deny":["os_type"]}},"deny-platform":{"identifier":"deny-platform","description":"Denies the platform command without any pre-configured scope.","commands":{"allow":[],"deny":["platform"]}},"deny-version":{"identifier":"deny-version","description":"Denies the version command without any pre-configured scope.","commands":{"allow":[],"deny":["version"]}}},"permission_sets":{},"global_scope_schema":null},"process":{"default_permission":{"identifier":"default","description":"This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n","permissions":["allow-exit","allow-restart"]},"permissions":{"allow-exit":{"identifier":"allow-exit","description":"Enables the exit command without any pre-configured scope.","commands":{"allow":["exit"],"deny":[]}},"allow-restart":{"identifier":"allow-restart","description":"Enables the restart command without any pre-configured scope.","commands":{"allow":["restart"],"deny":[]}},"deny-exit":{"identifier":"deny-exit","description":"Denies the exit command without any pre-configured scope.","commands":{"allow":[],"deny":["exit"]}},"deny-restart":{"identifier":"deny-restart","description":"Denies the restart command without any pre-configured scope.","commands":{"allow":[],"deny":["restart"]}}},"permission_sets":{},"global_scope_schema":null},"sentry":{"default_permission":{"identifier":"default","description":"Allows all required permissions (envelope, breadcrumb)","permissions":["allow-envelope","allow-breadcrumb"]},"permissions":{"allow-breadcrumb":{"identifier":"allow-breadcrumb","description":"Enables the breadcrumb command.","commands":{"allow":["breadcrumb"],"deny":[]}},"allow-envelope":{"identifier":"allow-envelope","description":"Enables the envelope command.","commands":{"allow":["envelope"],"deny":[]}},"allow-event":{"identifier":"allow-event","description":"Enables the event command without any pre-configured scope.","commands":{"allow":["event"],"deny":[]}},"deny-breadcrumb":{"identifier":"deny-breadcrumb","description":"Denies the breadcrumb command.","commands":{"allow":[],"deny":["breadcrumb"]}},"deny-envelope":{"identifier":"deny-envelope","description":"Denies the envelope command.","commands":{"allow":[],"deny":["envelope"]}},"deny-event":{"identifier":"deny-event","description":"Denies the event command without any pre-configured scope.","commands":{"allow":[],"deny":["event"]}}},"permission_sets":{},"global_scope_schema":null},"shell":{"default_permission":{"identifier":"default","description":"This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n","permissions":["allow-open"]},"permissions":{"allow-execute":{"identifier":"allow-execute","description":"Enables the execute command without any pre-configured scope.","commands":{"allow":["execute"],"deny":[]}},"allow-kill":{"identifier":"allow-kill","description":"Enables the kill command without any pre-configured scope.","commands":{"allow":["kill"],"deny":[]}},"allow-open":{"identifier":"allow-open","description":"Enables the open command without any pre-configured scope.","commands":{"allow":["open"],"deny":[]}},"allow-spawn":{"identifier":"allow-spawn","description":"Enables the spawn command without any pre-configured scope.","commands":{"allow":["spawn"],"deny":[]}},"allow-stdin-write":{"identifier":"allow-stdin-write","description":"Enables the stdin_write command without any pre-configured scope.","commands":{"allow":["stdin_write"],"deny":[]}},"deny-execute":{"identifier":"deny-execute","description":"Denies the execute command without any pre-configured scope.","commands":{"allow":[],"deny":["execute"]}},"deny-kill":{"identifier":"deny-kill","description":"Denies the kill command without any pre-configured scope.","commands":{"allow":[],"deny":["kill"]}},"deny-open":{"identifier":"deny-open","description":"Denies the open command without any pre-configured scope.","commands":{"allow":[],"deny":["open"]}},"deny-spawn":{"identifier":"deny-spawn","description":"Denies the spawn command without any pre-configured scope.","commands":{"allow":[],"deny":["spawn"]}},"deny-stdin-write":{"identifier":"deny-stdin-write","description":"Denies the stdin_write command without any pre-configured scope.","commands":{"allow":[],"deny":["stdin_write"]}}},"permission_sets":{},"global_scope_schema":{"$schema":"http://json-schema.org/draft-07/schema#","anyOf":[{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"cmd":{"description":"The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.","type":"string"},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"}},"required":["cmd","name"],"type":"object"},{"additionalProperties":false,"properties":{"args":{"allOf":[{"$ref":"#/definitions/ShellScopeEntryAllowedArgs"}],"description":"The allowed arguments for the command execution."},"name":{"description":"The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.","type":"string"},"sidecar":{"description":"If this command is a sidecar command.","type":"boolean"}},"required":["name","sidecar"],"type":"object"}],"definitions":{"ShellScopeEntryAllowedArg":{"anyOf":[{"description":"A non-configurable argument that is passed to the command in the order it was specified.","type":"string"},{"additionalProperties":false,"description":"A variable that is set while calling the command from the webview API.","properties":{"raw":{"default":false,"description":"Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.","type":"boolean"},"validator":{"description":"[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>","type":"string"}},"required":["validator"],"type":"object"}],"description":"A command argument allowed to be executed by the webview API."},"ShellScopeEntryAllowedArgs":{"anyOf":[{"description":"Use a simple boolean to allow all or disable all arguments to this command configuration.","type":"boolean"},{"description":"A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.","items":{"$ref":"#/definitions/ShellScopeEntryAllowedArg"},"type":"array"}],"description":"A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration."}},"description":"Shell scope entry.","title":"ShellScopeEntry"}},"store":{"default_permission":{"identifier":"default","description":"This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n","permissions":["allow-load","allow-get-store","allow-set","allow-get","allow-has","allow-delete","allow-clear","allow-reset","allow-keys","allow-values","allow-entries","allow-length","allow-reload","allow-save"]},"permissions":{"allow-clear":{"identifier":"allow-clear","description":"Enables the clear command without any pre-configured scope.","commands":{"allow":["clear"],"deny":[]}},"allow-delete":{"identifier":"allow-delete","description":"Enables the delete command without any pre-configured scope.","commands":{"allow":["delete"],"deny":[]}},"allow-entries":{"identifier":"allow-entries","description":"Enables the entries command without any pre-configured scope.","commands":{"allow":["entries"],"deny":[]}},"allow-get":{"identifier":"allow-get","description":"Enables the get command without any pre-configured scope.","commands":{"allow":["get"],"deny":[]}},"allow-get-store":{"identifier":"allow-get-store","description":"Enables the get_store command without any pre-configured scope.","commands":{"allow":["get_store"],"deny":[]}},"allow-has":{"identifier":"allow-has","description":"Enables the has command without any pre-configured scope.","commands":{"allow":["has"],"deny":[]}},"allow-keys":{"identifier":"allow-keys","description":"Enables the keys command without any pre-configured scope.","commands":{"allow":["keys"],"deny":[]}},"allow-length":{"identifier":"allow-length","description":"Enables the length command without any pre-configured scope.","commands":{"allow":["length"],"deny":[]}},"allow-load":{"identifier":"allow-load","description":"Enables the load command without any pre-configured scope.","commands":{"allow":["load"],"deny":[]}},"allow-reload":{"identifier":"allow-reload","description":"Enables the reload command without any pre-configured scope.","commands":{"allow":["reload"],"deny":[]}},"allow-reset":{"identifier":"allow-reset","description":"Enables the reset command without any pre-configured scope.","commands":{"allow":["reset"],"deny":[]}},"allow-save":{"identifier":"allow-save","description":"Enables the save command without any pre-configured scope.","commands":{"allow":["save"],"deny":[]}},"allow-set":{"identifier":"allow-set","description":"Enables the set command without any pre-configured scope.","commands":{"allow":["set"],"deny":[]}},"allow-values":{"identifier":"allow-values","description":"Enables the values command without any pre-configured scope.","commands":{"allow":["values"],"deny":[]}},"deny-clear":{"identifier":"deny-clear","description":"Denies the clear command without any pre-configured scope.","commands":{"allow":[],"deny":["clear"]}},"deny-delete":{"identifier":"deny-delete","description":"Denies the delete command without any pre-configured scope.","commands":{"allow":[],"deny":["delete"]}},"deny-entries":{"identifier":"deny-entries","description":"Denies the entries command without any pre-configured scope.","commands":{"allow":[],"deny":["entries"]}},"deny-get":{"identifier":"deny-get","description":"Denies the get command without any pre-configured scope.","commands":{"allow":[],"deny":["get"]}},"deny-get-store":{"identifier":"deny-get-store","description":"Denies the get_store command without any pre-configured scope.","commands":{"allow":[],"deny":["get_store"]}},"deny-has":{"identifier":"deny-has","description":"Denies the has command without any pre-configured scope.","commands":{"allow":[],"deny":["has"]}},"deny-keys":{"identifier":"deny-keys","description":"Denies the keys command without any pre-configured scope.","commands":{"allow":[],"deny":["keys"]}},"deny-length":{"identifier":"deny-length","description":"Denies the length command without any pre-configured scope.","commands":{"allow":[],"deny":["length"]}},"deny-load":{"identifier":"deny-load","description":"Denies the load command without any pre-configured scope.","commands":{"allow":[],"deny":["load"]}},"deny-reload":{"identifier":"deny-reload","description":"Denies the reload command without any pre-configured scope.","commands":{"allow":[],"deny":["reload"]}},"deny-reset":{"identifier":"deny-reset","description":"Denies the reset command without any pre-configured scope.","commands":{"allow":[],"deny":["reset"]}},"deny-save":{"identifier":"deny-save","description":"Denies the save command without any pre-configured scope.","commands":{"allow":[],"deny":["save"]}},"deny-set":{"identifier":"deny-set","description":"Denies the set command without any pre-configured scope.","commands":{"allow":[],"deny":["set"]}},"deny-values":{"identifier":"deny-values","description":"Denies the values command without any pre-configured scope.","commands":{"allow":[],"deny":["values"]}}},"permission_sets":{},"global_scope_schema":null},"updater":{"default_permission":{"identifier":"default","description":"This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n","permissions":["allow-check","allow-download","allow-install","allow-download-and-install"]},"permissions":{"allow-check":{"identifier":"allow-check","description":"Enables the check command without any pre-configured scope.","commands":{"allow":["check"],"deny":[]}},"allow-download":{"identifier":"allow-download","description":"Enables the download command without any pre-configured scope.","commands":{"allow":["download"],"deny":[]}},"allow-download-and-install":{"identifier":"allow-download-and-install","description":"Enables the download_and_install command without any pre-configured scope.","commands":{"allow":["download_and_install"],"deny":[]}},"allow-install":{"identifier":"allow-install","description":"Enables the install command without any pre-configured scope.","commands":{"allow":["install"],"deny":[]}},"deny-check":{"identifier":"deny-check","description":"Denies the check command without any pre-configured scope.","commands":{"allow":[],"deny":["check"]}},"deny-download":{"identifier":"deny-download","description":"Denies the download command without any pre-configured scope.","commands":{"allow":[],"deny":["download"]}},"deny-download-and-install":{"identifier":"deny-download-and-install","description":"Denies the download_and_install command without any pre-configured scope.","commands":{"allow":[],"deny":["download_and_install"]}},"deny-install":{"identifier":"deny-install","description":"Denies the install command without any pre-configured scope.","commands":{"allow":[],"deny":["install"]}}},"permission_sets":{},"global_scope_schema":null}}\ No newline at end of filediff --git a/openrewind/src-tauri/gen/schemas/capabilities.json b/openrewind/src-tauri/gen/schemas/capabilities.jsonnew file mode 100644index 000000000..7d66de201--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/capabilities.json@@ -0,0 +1 @@+{"migrated":{"identifier":"migrated","description":"permissions that were migrated from v1","remote":{"urls":["http://localhost:*"]},"local":true,"windows":["*"],"permissions":["core:event:allow-listen","core:event:default","core:app:allow-version","process:allow-restart","process:allow-exit","notification:default","core:resources:default","core:menu:default","core:tray:default","shell:default","shell:allow-open","store:default","shell:allow-open","fs:allow-watch","fs:allow-open","fs:default","fs:allow-read-file","fs:allow-read-dir","fs:allow-read","fs:allow-write-file","fs:read-dirs","fs:allow-copy-file","fs:allow-exists","fs:allow-read-text-file","fs:allow-create","fs:allow-mkdir","fs:allow-remove","global-shortcut:allow-is-registered","global-shortcut:allow-register","global-shortcut:allow-unregister","global-shortcut:allow-unregister-all","global-shortcut:default","sentry:default","opener:allow-open-url","core:window:default","core:window:allow-get-all-windows","core:window:allow-close",{"identifier":"fs:scope","allow":[{"path":"$XDG_DATA_HOME","requireLiteralLeadingDot":false},{"path":"$XDG_DATA_HOME/**","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/*","requireLiteralLeadingDot":false},{"path":"$LOCALAPPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/*","requireLiteralLeadingDot":false},{"path":"$APPLOCALDATA/**","requireLiteralLeadingDot":false},{"path":"$APPDATA/*","requireLiteralLeadingDot":false},{"path":"$APPDATA/**","requireLiteralLeadingDot":false},{"path":"$APPCONFIG/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/*","requireLiteralLeadingDot":false},{"path":"$RESOURCE/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$HOME/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/*","requireLiteralLeadingDot":false},{"path":"$APP/*","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/data/**","requireLiteralLeadingDot":false},{"path":"$HOME/.screenpipe/pipes/**","requireLiteralLeadingDot":false}]},{"identifier":"shell:allow-execute","allow":[{"args":["-c",{"validator":"\\S+"}],"cmd":"sh","name":"exec-sh","sidecar":false}]},{"identifier":"shell:allow-execute","allow":[{"args":true,"cmd":"screenpipe","name":"screenpipe","sidecar":true}]},"cli:default","shell:default","shell:allow-spawn","dialog:default","updater:default","os:default","os:allow-arch","os:allow-hostname","os:allow-os-type","core:path:default","process:default","core:webview:allow-internal-toggle-devtools",{"identifier":"shell:allow-execute","allow":[{"args":["pipe","list","--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-list","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","download",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-download","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","enable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-enable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","disable",{"validator":"\\S+"}],"cmd":"screenpipe","name":"screenpipe-pipe-disable","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","update",{"validator":"\\S+"},{"validator":"\\{.*\\}"}],"cmd":"screenpipe","name":"screenpipe-pipe-update","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","delete",{"validator":"\\S+"},"--yes"],"cmd":"screenpipe","name":"screenpipe-pipe-delete","sidecar":true}]},{"identifier":"shell:allow-execute","allow":[{"args":["pipe","info",{"validator":"\\S+"},"--output","json"],"cmd":"screenpipe","name":"screenpipe-pipe-info","sidecar":true}]},{"identifier":"http:default","allow":[{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"http://**/*"},{"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"],"url":"https://**/*"}]},"deep-link:default","fs:allow-write-text-file",{"identifier":"fs:scope","allow":[{"path":"$APPLOCALDATA"},{"path":"$APPLOCALDATA/**"}]},"opener:default","opener:default"]}}\ No newline at end of filediff --git a/openrewind/src-tauri/gen/schemas/desktop-schema.json b/openrewind/src-tauri/gen/schemas/desktop-schema.jsonnew file mode 100644index 000000000..9bf4e459c--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/desktop-schema.json@@ -0,0 +1,6070 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CapabilityFile",+ "description": "Capability formats accepted in a capability file.",+ "anyOf": [+ {+ "description": "A single capability.",+ "allOf": [+ {+ "$ref": "#/definitions/Capability"+ }+ ]+ },+ {+ "description": "A list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ },+ {+ "description": "A list of capabilities.",+ "type": "object",+ "required": [+ "capabilities"+ ],+ "properties": {+ "capabilities": {+ "description": "The list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ }+ }+ }+ ],+ "definitions": {+ "Capability": {+ "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",+ "type": "object",+ "required": [+ "identifier",+ "permissions"+ ],+ "properties": {+ "identifier": {+ "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",+ "type": "string"+ },+ "description": {+ "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.",+ "default": "",+ "type": "string"+ },+ "remote": {+ "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```",+ "anyOf": [+ {+ "$ref": "#/definitions/CapabilityRemote"+ },+ {+ "type": "null"+ }+ ]+ },+ "local": {+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",+ "default": true,+ "type": "boolean"+ },+ "windows": {+ "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "webviews": {+ "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "permissions": {+ "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```",+ "type": "array",+ "items": {+ "$ref": "#/definitions/PermissionEntry"+ },+ "uniqueItems": true+ },+ "platforms": {+ "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Target"+ }+ }+ }+ },+ "CapabilityRemote": {+ "description": "Configuration for remote URLs that are associated with the capability.",+ "type": "object",+ "required": [+ "urls"+ ],+ "properties": {+ "urls": {+ "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+ },+ "PermissionEntry": {+ "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",+ "anyOf": [+ {+ "description": "Reference a permission or permission set by identifier.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ {+ "description": "Reference a permission or permission set by identifier and extends its scope.",+ "type": "object",+ "allOf": [+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ "allow": {+ "description": "Data that defines what is allowed by the scope.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ "deny": {+ "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ }+ }+ }+ ],+ "required": [+ "identifier"+ ]+ }+ ]+ },+ "Identifier": {+ "description": "Permission identifier",+ "oneOf": [+ {+ "description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",+ "type": "string",+ "const": "autostart:default"+ },+ {+ "description": "Enables the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-disable"+ },+ {+ "description": "Enables the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-enable"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-is-enabled"+ },+ {+ "description": "Denies the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-disable"+ },+ {+ "description": "Denies the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-enable"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-is-enabled"+ },+ {+ "description": "Allows reading the CLI matches",+ "type": "string",+ "const": "cli:default"+ },+ {+ "description": "Enables the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:allow-cli-matches"+ },+ {+ "description": "Denies the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:deny-cli-matches"+ },+ {+ "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n",+ "type": "string",+ "const": "core:default"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:app:default"+ },+ {+ "description": "Enables the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-hide"+ },+ {+ "description": "Enables the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-show"+ },+ {+ "description": "Enables the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-default-window-icon"+ },+ {+ "description": "Enables the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-name"+ },+ {+ "description": "Enables the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-set-app-theme"+ },+ {+ "description": "Enables the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-tauri-version"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-version"+ },+ {+ "description": "Denies the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-hide"+ },+ {+ "description": "Denies the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-show"+ },+ {+ "description": "Denies the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-default-window-icon"+ },+ {+ "description": "Denies the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-name"+ },+ {+ "description": "Denies the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-set-app-theme"+ },+ {+ "description": "Denies the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-tauri-version"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-version"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:event:default"+ },+ {+ "description": "Enables the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit"+ },+ {+ "description": "Enables the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit-to"+ },+ {+ "description": "Enables the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-listen"+ },+ {+ "description": "Enables the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-unlisten"+ },+ {+ "description": "Denies the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit"+ },+ {+ "description": "Denies the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit-to"+ },+ {+ "description": "Denies the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-listen"+ },+ {+ "description": "Denies the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-unlisten"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:image:default"+ },+ {+ "description": "Enables the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-bytes"+ },+ {+ "description": "Enables the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-path"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-new"+ },+ {+ "description": "Enables the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-rgba"+ },+ {+ "description": "Enables the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-size"+ },+ {+ "description": "Denies the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-bytes"+ },+ {+ "description": "Denies the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-path"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-new"+ },+ {+ "description": "Denies the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-rgba"+ },+ {+ "description": "Denies the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:menu:default"+ },+ {+ "description": "Enables the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-append"+ },+ {+ "description": "Enables the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-create-default"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-get"+ },+ {+ "description": "Enables the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-insert"+ },+ {+ "description": "Enables the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-checked"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-enabled"+ },+ {+ "description": "Enables the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-items"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-new"+ },+ {+ "description": "Enables the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-popup"+ },+ {+ "description": "Enables the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-prepend"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove"+ },+ {+ "description": "Enables the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove-at"+ },+ {+ "description": "Enables the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-accelerator"+ },+ {+ "description": "Enables the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-app-menu"+ },+ {+ "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Enables the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-window-menu"+ },+ {+ "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Enables the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-checked"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-enabled"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-icon"+ },+ {+ "description": "Enables the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-text"+ },+ {+ "description": "Enables the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-text"+ },+ {+ "description": "Denies the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-append"+ },+ {+ "description": "Denies the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-create-default"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-get"+ },+ {+ "description": "Denies the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-insert"+ },+ {+ "description": "Denies the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-checked"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-enabled"+ },+ {+ "description": "Denies the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-items"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-new"+ },+ {+ "description": "Denies the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-popup"+ },+ {+ "description": "Denies the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-prepend"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove"+ },+ {+ "description": "Denies the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove-at"+ },+ {+ "description": "Denies the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-accelerator"+ },+ {+ "description": "Denies the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-app-menu"+ },+ {+ "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Denies the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-window-menu"+ },+ {+ "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Denies the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-checked"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-enabled"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-icon"+ },+ {+ "description": "Denies the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-text"+ },+ {+ "description": "Denies the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-text"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:path:default"+ },+ {+ "description": "Enables the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-basename"+ },+ {+ "description": "Enables the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-dirname"+ },+ {+ "description": "Enables the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-extname"+ },+ {+ "description": "Enables the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-is-absolute"+ },+ {+ "description": "Enables the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-join"+ },+ {+ "description": "Enables the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-normalize"+ },+ {+ "description": "Enables the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve"+ },+ {+ "description": "Enables the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve-directory"+ },+ {+ "description": "Denies the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-basename"+ },+ {+ "description": "Denies the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-dirname"+ },+ {+ "description": "Denies the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-extname"+ },+ {+ "description": "Denies the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-is-absolute"+ },+ {+ "description": "Denies the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-join"+ },+ {+ "description": "Denies the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-normalize"+ },+ {+ "description": "Denies the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve"+ },+ {+ "description": "Denies the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve-directory"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:resources:default"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:allow-close"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:deny-close"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:tray:default"+ },+ {+ "description": "Enables the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-get-by-id"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-new"+ },+ {+ "description": "Enables the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-remove-by-id"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon"+ },+ {+ "description": "Enables the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon-as-template"+ },+ {+ "description": "Enables the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-menu"+ },+ {+ "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-show-menu-on-left-click"+ },+ {+ "description": "Enables the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-temp-dir-path"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-title"+ },+ {+ "description": "Enables the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-tooltip"+ },+ {+ "description": "Enables the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-visible"+ },+ {+ "description": "Denies the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-get-by-id"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-new"+ },+ {+ "description": "Denies the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-remove-by-id"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon"+ },+ {+ "description": "Denies the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon-as-template"+ },+ {+ "description": "Denies the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-menu"+ },+ {+ "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-show-menu-on-left-click"+ },+ {+ "description": "Denies the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-temp-dir-path"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-title"+ },+ {+ "description": "Denies the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-tooltip"+ },+ {+ "description": "Denies the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-visible"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:webview:default"+ },+ {+ "description": "Enables the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-clear-all-browsing-data"+ },+ {+ "description": "Enables the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview"+ },+ {+ "description": "Enables the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview-window"+ },+ {+ "description": "Enables the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-get-all-webviews"+ },+ {+ "description": "Enables the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-internal-toggle-devtools"+ },+ {+ "description": "Enables the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-print"+ },+ {+ "description": "Enables the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-reparent"+ },+ {+ "description": "Enables the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-focus"+ },+ {+ "description": "Enables the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-position"+ },+ {+ "description": "Enables the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-size"+ },+ {+ "description": "Enables the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-zoom"+ },+ {+ "description": "Enables the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-close"+ },+ {+ "description": "Enables the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-hide"+ },+ {+ "description": "Enables the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-position"+ },+ {+ "description": "Enables the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-show"+ },+ {+ "description": "Enables the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-size"+ },+ {+ "description": "Denies the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-clear-all-browsing-data"+ },+ {+ "description": "Denies the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview"+ },+ {+ "description": "Denies the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview-window"+ },+ {+ "description": "Denies the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-get-all-webviews"+ },+ {+ "description": "Denies the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-internal-toggle-devtools"+ },+ {+ "description": "Denies the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-print"+ },+ {+ "description": "Denies the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-reparent"+ },+ {+ "description": "Denies the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-focus"+ },+ {+ "description": "Denies the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-position"+ },+ {+ "description": "Denies the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-size"+ },+ {+ "description": "Denies the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-zoom"+ },+ {+ "description": "Denies the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-close"+ },+ {+ "description": "Denies the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-hide"+ },+ {+ "description": "Denies the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-position"+ },+ {+ "description": "Denies the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-show"+ },+ {+ "description": "Denies the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:window:default"+ },+ {+ "description": "Enables the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-available-monitors"+ },+ {+ "description": "Enables the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-center"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-close"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-create"+ },+ {+ "description": "Enables the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-current-monitor"+ },+ {+ "description": "Enables the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-cursor-position"+ },+ {+ "description": "Enables the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-destroy"+ },+ {+ "description": "Enables the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-get-all-windows"+ },+ {+ "description": "Enables the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-hide"+ },+ {+ "description": "Enables the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-position"+ },+ {+ "description": "Enables the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-size"+ },+ {+ "description": "Enables the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-internal-toggle-maximize"+ },+ {+ "description": "Enables the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-closable"+ },+ {+ "description": "Enables the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-decorated"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-enabled"+ },+ {+ "description": "Enables the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-focused"+ },+ {+ "description": "Enables the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-fullscreen"+ },+ {+ "description": "Enables the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximizable"+ },+ {+ "description": "Enables the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximized"+ },+ {+ "description": "Enables the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimizable"+ },+ {+ "description": "Enables the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimized"+ },+ {+ "description": "Enables the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-resizable"+ },+ {+ "description": "Enables the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-visible"+ },+ {+ "description": "Enables the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-maximize"+ },+ {+ "description": "Enables the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-minimize"+ },+ {+ "description": "Enables the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-monitor-from-point"+ },+ {+ "description": "Enables the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-position"+ },+ {+ "description": "Enables the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-size"+ },+ {+ "description": "Enables the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-primary-monitor"+ },+ {+ "description": "Enables the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-request-user-attention"+ },+ {+ "description": "Enables the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-scale-factor"+ },+ {+ "description": "Enables the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-bottom"+ },+ {+ "description": "Enables the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-top"+ },+ {+ "description": "Enables the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-closable"+ },+ {+ "description": "Enables the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-content-protected"+ },+ {+ "description": "Enables the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-grab"+ },+ {+ "description": "Enables the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-icon"+ },+ {+ "description": "Enables the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-position"+ },+ {+ "description": "Enables the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-visible"+ },+ {+ "description": "Enables the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-decorations"+ },+ {+ "description": "Enables the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-effects"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-enabled"+ },+ {+ "description": "Enables the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-focus"+ },+ {+ "description": "Enables the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-fullscreen"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-icon"+ },+ {+ "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-ignore-cursor-events"+ },+ {+ "description": "Enables the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-max-size"+ },+ {+ "description": "Enables the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-maximizable"+ },+ {+ "description": "Enables the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-min-size"+ },+ {+ "description": "Enables the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-minimizable"+ },+ {+ "description": "Enables the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-position"+ },+ {+ "description": "Enables the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-progress-bar"+ },+ {+ "description": "Enables the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-resizable"+ },+ {+ "description": "Enables the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-shadow"+ },+ {+ "description": "Enables the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size"+ },+ {+ "description": "Enables the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size-constraints"+ },+ {+ "description": "Enables the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-skip-taskbar"+ },+ {+ "description": "Enables the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-theme"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title"+ },+ {+ "description": "Enables the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title-bar-style"+ },+ {+ "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-visible-on-all-workspaces"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-show"+ },+ {+ "description": "Enables the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-dragging"+ },+ {+ "description": "Enables the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-resize-dragging"+ },+ {+ "description": "Enables the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-theme"+ },+ {+ "description": "Enables the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-title"+ },+ {+ "description": "Enables the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-toggle-maximize"+ },+ {+ "description": "Enables the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unmaximize"+ },+ {+ "description": "Enables the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unminimize"+ },+ {+ "description": "Denies the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-available-monitors"+ },+ {+ "description": "Denies the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-center"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-close"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-create"+ },+ {+ "description": "Denies the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-current-monitor"+ },+ {+ "description": "Denies the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-cursor-position"+ },+ {+ "description": "Denies the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-destroy"+ },+ {+ "description": "Denies the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-get-all-windows"+ },+ {+ "description": "Denies the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-hide"+ },+ {+ "description": "Denies the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-position"+ },+ {+ "description": "Denies the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-size"+ },+ {+ "description": "Denies the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-internal-toggle-maximize"+ },+ {+ "description": "Denies the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-closable"+ },+ {+ "description": "Denies the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-decorated"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-enabled"+ },+ {+ "description": "Denies the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-focused"+ },+ {+ "description": "Denies the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-fullscreen"+ },+ {+ "description": "Denies the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximizable"+ },+ {+ "description": "Denies the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximized"+ },+ {+ "description": "Denies the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimizable"+ },+ {+ "description": "Denies the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimized"+ },+ {+ "description": "Denies the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-resizable"+ },+ {+ "description": "Denies the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-visible"+ },+ {+ "description": "Denies the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-maximize"+ },+ {+ "description": "Denies the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-minimize"+ },+ {+ "description": "Denies the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-monitor-from-point"+ },+ {+ "description": "Denies the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-position"+ },+ {+ "description": "Denies the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-size"+ },+ {+ "description": "Denies the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-primary-monitor"+ },+ {+ "description": "Denies the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-request-user-attention"+ },+ {+ "description": "Denies the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-scale-factor"+ },+ {+ "description": "Denies the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-bottom"+ },+ {+ "description": "Denies the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-top"+ },+ {+ "description": "Denies the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-closable"+ },+ {+ "description": "Denies the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-content-protected"+ },+ {+ "description": "Denies the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-grab"+ },+ {+ "description": "Denies the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-icon"+ },+ {+ "description": "Denies the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-position"+ },+ {+ "description": "Denies the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-visible"+ },+ {+ "description": "Denies the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-decorations"+ },+ {+ "description": "Denies the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-effects"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-enabled"+ },+ {+ "description": "Denies the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-focus"+ },+ {+ "description": "Denies the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-fullscreen"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-icon"+ },+ {+ "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-ignore-cursor-events"+ },+ {+ "description": "Denies the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-max-size"+ },+ {+ "description": "Denies the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-maximizable"+ },+ {+ "description": "Denies the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-min-size"+ },+ {+ "description": "Denies the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-minimizable"+ },+ {+ "description": "Denies the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-position"+ },+ {+ "description": "Denies the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-progress-bar"+ },+ {+ "description": "Denies the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-resizable"+ },+ {+ "description": "Denies the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-shadow"+ },+ {+ "description": "Denies the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size"+ },+ {+ "description": "Denies the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size-constraints"+ },+ {+ "description": "Denies the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-skip-taskbar"+ },+ {+ "description": "Denies the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-theme"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title"+ },+ {+ "description": "Denies the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title-bar-style"+ },+ {+ "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-visible-on-all-workspaces"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-show"+ },+ {+ "description": "Denies the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-dragging"+ },+ {+ "description": "Denies the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-resize-dragging"+ },+ {+ "description": "Denies the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-theme"+ },+ {+ "description": "Denies the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-title"+ },+ {+ "description": "Denies the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-toggle-maximize"+ },+ {+ "description": "Denies the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unmaximize"+ },+ {+ "description": "Denies the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unminimize"+ },+ {+ "description": "Allows reading the opened deep link via the get_current command",+ "type": "string",+ "const": "deep-link:default"+ },+ {+ "description": "Enables the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-get-current"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-register"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-unregister"+ },+ {+ "description": "Denies the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-get-current"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-register"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-unregister"+ },+ {+ "description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",+ "type": "string",+ "const": "dialog:default"+ },+ {+ "description": "Enables the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-ask"+ },+ {+ "description": "Enables the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-confirm"+ },+ {+ "description": "Enables the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-message"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-open"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-save"+ },+ {+ "description": "Denies the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-ask"+ },+ {+ "description": "Denies the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-confirm"+ },+ {+ "description": "Denies the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-message"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-open"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-save"+ },+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ },+ {+ "description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",+ "type": "string",+ "const": "global-shortcut:default"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register"+ },+ {+ "description": "Enables the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register-all"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister"+ },+ {+ "description": "Enables the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister-all"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register"+ },+ {+ "description": "Denies the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register-all"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister"+ },+ {+ "description": "Denies the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister-all"+ },+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ },+ {+ "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",+ "type": "string",+ "const": "notification:default"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch"+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel"+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions"+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel"+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel"+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active"+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending"+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted"+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels"+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify"+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state"+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types"+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener"+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active"+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show"+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch"+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel"+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions"+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel"+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel"+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active"+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending"+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted"+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels"+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify"+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state"+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types"+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener"+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active"+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show"+ },+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ },+ {+ "description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",+ "type": "string",+ "const": "os:default"+ },+ {+ "description": "Enables the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-arch"+ },+ {+ "description": "Enables the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-exe-extension"+ },+ {+ "description": "Enables the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-family"+ },+ {+ "description": "Enables the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-hostname"+ },+ {+ "description": "Enables the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-locale"+ },+ {+ "description": "Enables the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-os-type"+ },+ {+ "description": "Enables the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-platform"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-version"+ },+ {+ "description": "Denies the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-arch"+ },+ {+ "description": "Denies the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-exe-extension"+ },+ {+ "description": "Denies the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-family"+ },+ {+ "description": "Denies the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-hostname"+ },+ {+ "description": "Denies the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-locale"+ },+ {+ "description": "Denies the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-os-type"+ },+ {+ "description": "Denies the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-platform"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-version"+ },+ {+ "description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",+ "type": "string",+ "const": "process:default"+ },+ {+ "description": "Enables the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-exit"+ },+ {+ "description": "Enables the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-restart"+ },+ {+ "description": "Denies the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-exit"+ },+ {+ "description": "Denies the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-restart"+ },+ {+ "description": "Allows all required permissions (envelope, breadcrumb)",+ "type": "string",+ "const": "sentry:default"+ },+ {+ "description": "Enables the breadcrumb command.",+ "type": "string",+ "const": "sentry:allow-breadcrumb"+ },+ {+ "description": "Enables the envelope command.",+ "type": "string",+ "const": "sentry:allow-envelope"+ },+ {+ "description": "Enables the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:allow-event"+ },+ {+ "description": "Denies the breadcrumb command.",+ "type": "string",+ "const": "sentry:deny-breadcrumb"+ },+ {+ "description": "Denies the envelope command.",+ "type": "string",+ "const": "sentry:deny-envelope"+ },+ {+ "description": "Denies the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:deny-event"+ },+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ },+ {+ "description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",+ "type": "string",+ "const": "store:default"+ },+ {+ "description": "Enables the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-clear"+ },+ {+ "description": "Enables the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-delete"+ },+ {+ "description": "Enables the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-entries"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get"+ },+ {+ "description": "Enables the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get-store"+ },+ {+ "description": "Enables the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-has"+ },+ {+ "description": "Enables the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-keys"+ },+ {+ "description": "Enables the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-length"+ },+ {+ "description": "Enables the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-load"+ },+ {+ "description": "Enables the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reload"+ },+ {+ "description": "Enables the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reset"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-save"+ },+ {+ "description": "Enables the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-set"+ },+ {+ "description": "Enables the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-values"+ },+ {+ "description": "Denies the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-clear"+ },+ {+ "description": "Denies the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-delete"+ },+ {+ "description": "Denies the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-entries"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get"+ },+ {+ "description": "Denies the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get-store"+ },+ {+ "description": "Denies the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-has"+ },+ {+ "description": "Denies the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-keys"+ },+ {+ "description": "Denies the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-length"+ },+ {+ "description": "Denies the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-load"+ },+ {+ "description": "Denies the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reload"+ },+ {+ "description": "Denies the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reset"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-save"+ },+ {+ "description": "Denies the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-set"+ },+ {+ "description": "Denies the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-values"+ },+ {+ "description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n",+ "type": "string",+ "const": "updater:default"+ },+ {+ "description": "Enables the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-check"+ },+ {+ "description": "Enables the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download"+ },+ {+ "description": "Enables the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download-and-install"+ },+ {+ "description": "Enables the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-install"+ },+ {+ "description": "Denies the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-check"+ },+ {+ "description": "Denies the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download"+ },+ {+ "description": "Denies the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download-and-install"+ },+ {+ "description": "Denies the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-install"+ }+ ]+ },+ "Value": {+ "description": "All supported ACL values.",+ "anyOf": [+ {+ "description": "Represents a null JSON value.",+ "type": "null"+ },+ {+ "description": "Represents a [`bool`].",+ "type": "boolean"+ },+ {+ "description": "Represents a valid ACL [`Number`].",+ "allOf": [+ {+ "$ref": "#/definitions/Number"+ }+ ]+ },+ {+ "description": "Represents a [`String`].",+ "type": "string"+ },+ {+ "description": "Represents a list of other [`Value`]s.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ {+ "description": "Represents a map of [`String`] keys to [`Value`]s.",+ "type": "object",+ "additionalProperties": {+ "$ref": "#/definitions/Value"+ }+ }+ ]+ },+ "Number": {+ "description": "A valid ACL number.",+ "anyOf": [+ {+ "description": "Represents an [`i64`].",+ "type": "integer",+ "format": "int64"+ },+ {+ "description": "Represents a [`f64`].",+ "type": "number",+ "format": "double"+ }+ ]+ },+ "Target": {+ "description": "Platform target.",+ "oneOf": [+ {+ "description": "MacOS.",+ "type": "string",+ "enum": [+ "macOS"+ ]+ },+ {+ "description": "Windows.",+ "type": "string",+ "enum": [+ "windows"+ ]+ },+ {+ "description": "Linux.",+ "type": "string",+ "enum": [+ "linux"+ ]+ },+ {+ "description": "Android.",+ "type": "string",+ "enum": [+ "android"+ ]+ },+ {+ "description": "iOS.",+ "type": "string",+ "enum": [+ "iOS"+ ]+ }+ ]+ },+ "Application": {+ "description": "Opener scope application.",+ "anyOf": [+ {+ "description": "Open in default application.",+ "type": "null"+ },+ {+ "description": "If true, allow open with any application.",+ "type": "boolean"+ },+ {+ "description": "Allow specific application to open with.",+ "type": "string"+ }+ ]+ },+ "ShellScopeEntryAllowedArg": {+ "description": "A command argument allowed to be executed by the webview API.",+ "anyOf": [+ {+ "description": "A non-configurable argument that is passed to the command in the order it was specified.",+ "type": "string"+ },+ {+ "description": "A variable that is set while calling the command from the webview API.",+ "type": "object",+ "required": [+ "validator"+ ],+ "properties": {+ "raw": {+ "description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",+ "default": false,+ "type": "boolean"+ },+ "validator": {+ "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",+ "type": "string"+ }+ },+ "additionalProperties": false+ }+ ]+ },+ "ShellScopeEntryAllowedArgs": {+ "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",+ "anyOf": [+ {+ "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",+ "type": "boolean"+ },+ {+ "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/ShellScopeEntryAllowedArg"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/openrewind/src-tauri/gen/schemas/linux-schema.json b/openrewind/src-tauri/gen/schemas/linux-schema.jsonnew file mode 100644index 000000000..9bf4e459c--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/linux-schema.json@@ -0,0 +1,6070 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CapabilityFile",+ "description": "Capability formats accepted in a capability file.",+ "anyOf": [+ {+ "description": "A single capability.",+ "allOf": [+ {+ "$ref": "#/definitions/Capability"+ }+ ]+ },+ {+ "description": "A list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ },+ {+ "description": "A list of capabilities.",+ "type": "object",+ "required": [+ "capabilities"+ ],+ "properties": {+ "capabilities": {+ "description": "The list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ }+ }+ }+ ],+ "definitions": {+ "Capability": {+ "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",+ "type": "object",+ "required": [+ "identifier",+ "permissions"+ ],+ "properties": {+ "identifier": {+ "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",+ "type": "string"+ },+ "description": {+ "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.",+ "default": "",+ "type": "string"+ },+ "remote": {+ "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```",+ "anyOf": [+ {+ "$ref": "#/definitions/CapabilityRemote"+ },+ {+ "type": "null"+ }+ ]+ },+ "local": {+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",+ "default": true,+ "type": "boolean"+ },+ "windows": {+ "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "webviews": {+ "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "permissions": {+ "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```",+ "type": "array",+ "items": {+ "$ref": "#/definitions/PermissionEntry"+ },+ "uniqueItems": true+ },+ "platforms": {+ "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Target"+ }+ }+ }+ },+ "CapabilityRemote": {+ "description": "Configuration for remote URLs that are associated with the capability.",+ "type": "object",+ "required": [+ "urls"+ ],+ "properties": {+ "urls": {+ "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+ },+ "PermissionEntry": {+ "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",+ "anyOf": [+ {+ "description": "Reference a permission or permission set by identifier.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ {+ "description": "Reference a permission or permission set by identifier and extends its scope.",+ "type": "object",+ "allOf": [+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ "allow": {+ "description": "Data that defines what is allowed by the scope.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ "deny": {+ "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ }+ }+ }+ ],+ "required": [+ "identifier"+ ]+ }+ ]+ },+ "Identifier": {+ "description": "Permission identifier",+ "oneOf": [+ {+ "description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",+ "type": "string",+ "const": "autostart:default"+ },+ {+ "description": "Enables the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-disable"+ },+ {+ "description": "Enables the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-enable"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-is-enabled"+ },+ {+ "description": "Denies the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-disable"+ },+ {+ "description": "Denies the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-enable"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-is-enabled"+ },+ {+ "description": "Allows reading the CLI matches",+ "type": "string",+ "const": "cli:default"+ },+ {+ "description": "Enables the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:allow-cli-matches"+ },+ {+ "description": "Denies the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:deny-cli-matches"+ },+ {+ "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n",+ "type": "string",+ "const": "core:default"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:app:default"+ },+ {+ "description": "Enables the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-hide"+ },+ {+ "description": "Enables the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-show"+ },+ {+ "description": "Enables the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-default-window-icon"+ },+ {+ "description": "Enables the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-name"+ },+ {+ "description": "Enables the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-set-app-theme"+ },+ {+ "description": "Enables the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-tauri-version"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-version"+ },+ {+ "description": "Denies the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-hide"+ },+ {+ "description": "Denies the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-show"+ },+ {+ "description": "Denies the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-default-window-icon"+ },+ {+ "description": "Denies the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-name"+ },+ {+ "description": "Denies the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-set-app-theme"+ },+ {+ "description": "Denies the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-tauri-version"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-version"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:event:default"+ },+ {+ "description": "Enables the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit"+ },+ {+ "description": "Enables the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit-to"+ },+ {+ "description": "Enables the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-listen"+ },+ {+ "description": "Enables the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-unlisten"+ },+ {+ "description": "Denies the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit"+ },+ {+ "description": "Denies the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit-to"+ },+ {+ "description": "Denies the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-listen"+ },+ {+ "description": "Denies the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-unlisten"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:image:default"+ },+ {+ "description": "Enables the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-bytes"+ },+ {+ "description": "Enables the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-path"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-new"+ },+ {+ "description": "Enables the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-rgba"+ },+ {+ "description": "Enables the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-size"+ },+ {+ "description": "Denies the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-bytes"+ },+ {+ "description": "Denies the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-path"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-new"+ },+ {+ "description": "Denies the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-rgba"+ },+ {+ "description": "Denies the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:menu:default"+ },+ {+ "description": "Enables the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-append"+ },+ {+ "description": "Enables the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-create-default"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-get"+ },+ {+ "description": "Enables the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-insert"+ },+ {+ "description": "Enables the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-checked"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-enabled"+ },+ {+ "description": "Enables the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-items"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-new"+ },+ {+ "description": "Enables the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-popup"+ },+ {+ "description": "Enables the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-prepend"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove"+ },+ {+ "description": "Enables the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove-at"+ },+ {+ "description": "Enables the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-accelerator"+ },+ {+ "description": "Enables the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-app-menu"+ },+ {+ "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Enables the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-window-menu"+ },+ {+ "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Enables the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-checked"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-enabled"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-icon"+ },+ {+ "description": "Enables the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-text"+ },+ {+ "description": "Enables the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-text"+ },+ {+ "description": "Denies the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-append"+ },+ {+ "description": "Denies the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-create-default"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-get"+ },+ {+ "description": "Denies the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-insert"+ },+ {+ "description": "Denies the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-checked"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-enabled"+ },+ {+ "description": "Denies the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-items"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-new"+ },+ {+ "description": "Denies the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-popup"+ },+ {+ "description": "Denies the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-prepend"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove"+ },+ {+ "description": "Denies the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove-at"+ },+ {+ "description": "Denies the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-accelerator"+ },+ {+ "description": "Denies the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-app-menu"+ },+ {+ "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Denies the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-window-menu"+ },+ {+ "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Denies the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-checked"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-enabled"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-icon"+ },+ {+ "description": "Denies the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-text"+ },+ {+ "description": "Denies the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-text"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:path:default"+ },+ {+ "description": "Enables the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-basename"+ },+ {+ "description": "Enables the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-dirname"+ },+ {+ "description": "Enables the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-extname"+ },+ {+ "description": "Enables the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-is-absolute"+ },+ {+ "description": "Enables the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-join"+ },+ {+ "description": "Enables the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-normalize"+ },+ {+ "description": "Enables the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve"+ },+ {+ "description": "Enables the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve-directory"+ },+ {+ "description": "Denies the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-basename"+ },+ {+ "description": "Denies the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-dirname"+ },+ {+ "description": "Denies the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-extname"+ },+ {+ "description": "Denies the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-is-absolute"+ },+ {+ "description": "Denies the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-join"+ },+ {+ "description": "Denies the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-normalize"+ },+ {+ "description": "Denies the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve"+ },+ {+ "description": "Denies the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve-directory"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:resources:default"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:allow-close"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:deny-close"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:tray:default"+ },+ {+ "description": "Enables the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-get-by-id"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-new"+ },+ {+ "description": "Enables the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-remove-by-id"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon"+ },+ {+ "description": "Enables the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon-as-template"+ },+ {+ "description": "Enables the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-menu"+ },+ {+ "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-show-menu-on-left-click"+ },+ {+ "description": "Enables the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-temp-dir-path"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-title"+ },+ {+ "description": "Enables the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-tooltip"+ },+ {+ "description": "Enables the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-visible"+ },+ {+ "description": "Denies the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-get-by-id"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-new"+ },+ {+ "description": "Denies the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-remove-by-id"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon"+ },+ {+ "description": "Denies the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon-as-template"+ },+ {+ "description": "Denies the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-menu"+ },+ {+ "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-show-menu-on-left-click"+ },+ {+ "description": "Denies the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-temp-dir-path"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-title"+ },+ {+ "description": "Denies the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-tooltip"+ },+ {+ "description": "Denies the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-visible"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:webview:default"+ },+ {+ "description": "Enables the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-clear-all-browsing-data"+ },+ {+ "description": "Enables the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview"+ },+ {+ "description": "Enables the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview-window"+ },+ {+ "description": "Enables the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-get-all-webviews"+ },+ {+ "description": "Enables the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-internal-toggle-devtools"+ },+ {+ "description": "Enables the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-print"+ },+ {+ "description": "Enables the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-reparent"+ },+ {+ "description": "Enables the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-focus"+ },+ {+ "description": "Enables the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-position"+ },+ {+ "description": "Enables the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-size"+ },+ {+ "description": "Enables the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-zoom"+ },+ {+ "description": "Enables the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-close"+ },+ {+ "description": "Enables the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-hide"+ },+ {+ "description": "Enables the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-position"+ },+ {+ "description": "Enables the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-show"+ },+ {+ "description": "Enables the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-size"+ },+ {+ "description": "Denies the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-clear-all-browsing-data"+ },+ {+ "description": "Denies the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview"+ },+ {+ "description": "Denies the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview-window"+ },+ {+ "description": "Denies the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-get-all-webviews"+ },+ {+ "description": "Denies the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-internal-toggle-devtools"+ },+ {+ "description": "Denies the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-print"+ },+ {+ "description": "Denies the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-reparent"+ },+ {+ "description": "Denies the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-focus"+ },+ {+ "description": "Denies the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-position"+ },+ {+ "description": "Denies the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-size"+ },+ {+ "description": "Denies the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-zoom"+ },+ {+ "description": "Denies the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-close"+ },+ {+ "description": "Denies the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-hide"+ },+ {+ "description": "Denies the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-position"+ },+ {+ "description": "Denies the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-show"+ },+ {+ "description": "Denies the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:window:default"+ },+ {+ "description": "Enables the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-available-monitors"+ },+ {+ "description": "Enables the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-center"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-close"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-create"+ },+ {+ "description": "Enables the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-current-monitor"+ },+ {+ "description": "Enables the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-cursor-position"+ },+ {+ "description": "Enables the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-destroy"+ },+ {+ "description": "Enables the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-get-all-windows"+ },+ {+ "description": "Enables the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-hide"+ },+ {+ "description": "Enables the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-position"+ },+ {+ "description": "Enables the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-size"+ },+ {+ "description": "Enables the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-internal-toggle-maximize"+ },+ {+ "description": "Enables the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-closable"+ },+ {+ "description": "Enables the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-decorated"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-enabled"+ },+ {+ "description": "Enables the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-focused"+ },+ {+ "description": "Enables the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-fullscreen"+ },+ {+ "description": "Enables the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximizable"+ },+ {+ "description": "Enables the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximized"+ },+ {+ "description": "Enables the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimizable"+ },+ {+ "description": "Enables the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimized"+ },+ {+ "description": "Enables the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-resizable"+ },+ {+ "description": "Enables the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-visible"+ },+ {+ "description": "Enables the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-maximize"+ },+ {+ "description": "Enables the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-minimize"+ },+ {+ "description": "Enables the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-monitor-from-point"+ },+ {+ "description": "Enables the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-position"+ },+ {+ "description": "Enables the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-size"+ },+ {+ "description": "Enables the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-primary-monitor"+ },+ {+ "description": "Enables the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-request-user-attention"+ },+ {+ "description": "Enables the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-scale-factor"+ },+ {+ "description": "Enables the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-bottom"+ },+ {+ "description": "Enables the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-top"+ },+ {+ "description": "Enables the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-closable"+ },+ {+ "description": "Enables the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-content-protected"+ },+ {+ "description": "Enables the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-grab"+ },+ {+ "description": "Enables the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-icon"+ },+ {+ "description": "Enables the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-position"+ },+ {+ "description": "Enables the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-visible"+ },+ {+ "description": "Enables the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-decorations"+ },+ {+ "description": "Enables the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-effects"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-enabled"+ },+ {+ "description": "Enables the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-focus"+ },+ {+ "description": "Enables the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-fullscreen"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-icon"+ },+ {+ "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-ignore-cursor-events"+ },+ {+ "description": "Enables the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-max-size"+ },+ {+ "description": "Enables the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-maximizable"+ },+ {+ "description": "Enables the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-min-size"+ },+ {+ "description": "Enables the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-minimizable"+ },+ {+ "description": "Enables the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-position"+ },+ {+ "description": "Enables the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-progress-bar"+ },+ {+ "description": "Enables the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-resizable"+ },+ {+ "description": "Enables the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-shadow"+ },+ {+ "description": "Enables the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size"+ },+ {+ "description": "Enables the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size-constraints"+ },+ {+ "description": "Enables the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-skip-taskbar"+ },+ {+ "description": "Enables the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-theme"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title"+ },+ {+ "description": "Enables the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title-bar-style"+ },+ {+ "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-visible-on-all-workspaces"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-show"+ },+ {+ "description": "Enables the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-dragging"+ },+ {+ "description": "Enables the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-resize-dragging"+ },+ {+ "description": "Enables the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-theme"+ },+ {+ "description": "Enables the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-title"+ },+ {+ "description": "Enables the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-toggle-maximize"+ },+ {+ "description": "Enables the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unmaximize"+ },+ {+ "description": "Enables the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unminimize"+ },+ {+ "description": "Denies the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-available-monitors"+ },+ {+ "description": "Denies the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-center"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-close"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-create"+ },+ {+ "description": "Denies the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-current-monitor"+ },+ {+ "description": "Denies the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-cursor-position"+ },+ {+ "description": "Denies the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-destroy"+ },+ {+ "description": "Denies the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-get-all-windows"+ },+ {+ "description": "Denies the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-hide"+ },+ {+ "description": "Denies the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-position"+ },+ {+ "description": "Denies the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-size"+ },+ {+ "description": "Denies the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-internal-toggle-maximize"+ },+ {+ "description": "Denies the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-closable"+ },+ {+ "description": "Denies the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-decorated"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-enabled"+ },+ {+ "description": "Denies the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-focused"+ },+ {+ "description": "Denies the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-fullscreen"+ },+ {+ "description": "Denies the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximizable"+ },+ {+ "description": "Denies the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximized"+ },+ {+ "description": "Denies the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimizable"+ },+ {+ "description": "Denies the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimized"+ },+ {+ "description": "Denies the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-resizable"+ },+ {+ "description": "Denies the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-visible"+ },+ {+ "description": "Denies the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-maximize"+ },+ {+ "description": "Denies the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-minimize"+ },+ {+ "description": "Denies the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-monitor-from-point"+ },+ {+ "description": "Denies the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-position"+ },+ {+ "description": "Denies the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-size"+ },+ {+ "description": "Denies the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-primary-monitor"+ },+ {+ "description": "Denies the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-request-user-attention"+ },+ {+ "description": "Denies the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-scale-factor"+ },+ {+ "description": "Denies the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-bottom"+ },+ {+ "description": "Denies the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-top"+ },+ {+ "description": "Denies the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-closable"+ },+ {+ "description": "Denies the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-content-protected"+ },+ {+ "description": "Denies the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-grab"+ },+ {+ "description": "Denies the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-icon"+ },+ {+ "description": "Denies the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-position"+ },+ {+ "description": "Denies the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-visible"+ },+ {+ "description": "Denies the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-decorations"+ },+ {+ "description": "Denies the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-effects"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-enabled"+ },+ {+ "description": "Denies the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-focus"+ },+ {+ "description": "Denies the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-fullscreen"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-icon"+ },+ {+ "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-ignore-cursor-events"+ },+ {+ "description": "Denies the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-max-size"+ },+ {+ "description": "Denies the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-maximizable"+ },+ {+ "description": "Denies the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-min-size"+ },+ {+ "description": "Denies the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-minimizable"+ },+ {+ "description": "Denies the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-position"+ },+ {+ "description": "Denies the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-progress-bar"+ },+ {+ "description": "Denies the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-resizable"+ },+ {+ "description": "Denies the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-shadow"+ },+ {+ "description": "Denies the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size"+ },+ {+ "description": "Denies the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size-constraints"+ },+ {+ "description": "Denies the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-skip-taskbar"+ },+ {+ "description": "Denies the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-theme"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title"+ },+ {+ "description": "Denies the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title-bar-style"+ },+ {+ "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-visible-on-all-workspaces"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-show"+ },+ {+ "description": "Denies the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-dragging"+ },+ {+ "description": "Denies the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-resize-dragging"+ },+ {+ "description": "Denies the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-theme"+ },+ {+ "description": "Denies the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-title"+ },+ {+ "description": "Denies the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-toggle-maximize"+ },+ {+ "description": "Denies the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unmaximize"+ },+ {+ "description": "Denies the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unminimize"+ },+ {+ "description": "Allows reading the opened deep link via the get_current command",+ "type": "string",+ "const": "deep-link:default"+ },+ {+ "description": "Enables the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-get-current"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-register"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-unregister"+ },+ {+ "description": "Denies the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-get-current"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-register"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-unregister"+ },+ {+ "description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",+ "type": "string",+ "const": "dialog:default"+ },+ {+ "description": "Enables the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-ask"+ },+ {+ "description": "Enables the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-confirm"+ },+ {+ "description": "Enables the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-message"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-open"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-save"+ },+ {+ "description": "Denies the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-ask"+ },+ {+ "description": "Denies the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-confirm"+ },+ {+ "description": "Denies the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-message"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-open"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-save"+ },+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ },+ {+ "description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",+ "type": "string",+ "const": "global-shortcut:default"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register"+ },+ {+ "description": "Enables the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register-all"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister"+ },+ {+ "description": "Enables the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister-all"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register"+ },+ {+ "description": "Denies the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register-all"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister"+ },+ {+ "description": "Denies the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister-all"+ },+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ },+ {+ "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",+ "type": "string",+ "const": "notification:default"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch"+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel"+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions"+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel"+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel"+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active"+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending"+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted"+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels"+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify"+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state"+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types"+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener"+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active"+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show"+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch"+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel"+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions"+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel"+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel"+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active"+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending"+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted"+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels"+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify"+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state"+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types"+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener"+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active"+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show"+ },+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ },+ {+ "description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",+ "type": "string",+ "const": "os:default"+ },+ {+ "description": "Enables the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-arch"+ },+ {+ "description": "Enables the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-exe-extension"+ },+ {+ "description": "Enables the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-family"+ },+ {+ "description": "Enables the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-hostname"+ },+ {+ "description": "Enables the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-locale"+ },+ {+ "description": "Enables the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-os-type"+ },+ {+ "description": "Enables the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-platform"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-version"+ },+ {+ "description": "Denies the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-arch"+ },+ {+ "description": "Denies the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-exe-extension"+ },+ {+ "description": "Denies the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-family"+ },+ {+ "description": "Denies the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-hostname"+ },+ {+ "description": "Denies the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-locale"+ },+ {+ "description": "Denies the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-os-type"+ },+ {+ "description": "Denies the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-platform"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-version"+ },+ {+ "description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",+ "type": "string",+ "const": "process:default"+ },+ {+ "description": "Enables the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-exit"+ },+ {+ "description": "Enables the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-restart"+ },+ {+ "description": "Denies the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-exit"+ },+ {+ "description": "Denies the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-restart"+ },+ {+ "description": "Allows all required permissions (envelope, breadcrumb)",+ "type": "string",+ "const": "sentry:default"+ },+ {+ "description": "Enables the breadcrumb command.",+ "type": "string",+ "const": "sentry:allow-breadcrumb"+ },+ {+ "description": "Enables the envelope command.",+ "type": "string",+ "const": "sentry:allow-envelope"+ },+ {+ "description": "Enables the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:allow-event"+ },+ {+ "description": "Denies the breadcrumb command.",+ "type": "string",+ "const": "sentry:deny-breadcrumb"+ },+ {+ "description": "Denies the envelope command.",+ "type": "string",+ "const": "sentry:deny-envelope"+ },+ {+ "description": "Denies the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:deny-event"+ },+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ },+ {+ "description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",+ "type": "string",+ "const": "store:default"+ },+ {+ "description": "Enables the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-clear"+ },+ {+ "description": "Enables the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-delete"+ },+ {+ "description": "Enables the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-entries"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get"+ },+ {+ "description": "Enables the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get-store"+ },+ {+ "description": "Enables the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-has"+ },+ {+ "description": "Enables the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-keys"+ },+ {+ "description": "Enables the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-length"+ },+ {+ "description": "Enables the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-load"+ },+ {+ "description": "Enables the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reload"+ },+ {+ "description": "Enables the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reset"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-save"+ },+ {+ "description": "Enables the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-set"+ },+ {+ "description": "Enables the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-values"+ },+ {+ "description": "Denies the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-clear"+ },+ {+ "description": "Denies the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-delete"+ },+ {+ "description": "Denies the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-entries"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get"+ },+ {+ "description": "Denies the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get-store"+ },+ {+ "description": "Denies the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-has"+ },+ {+ "description": "Denies the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-keys"+ },+ {+ "description": "Denies the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-length"+ },+ {+ "description": "Denies the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-load"+ },+ {+ "description": "Denies the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reload"+ },+ {+ "description": "Denies the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reset"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-save"+ },+ {+ "description": "Denies the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-set"+ },+ {+ "description": "Denies the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-values"+ },+ {+ "description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n",+ "type": "string",+ "const": "updater:default"+ },+ {+ "description": "Enables the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-check"+ },+ {+ "description": "Enables the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download"+ },+ {+ "description": "Enables the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download-and-install"+ },+ {+ "description": "Enables the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-install"+ },+ {+ "description": "Denies the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-check"+ },+ {+ "description": "Denies the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download"+ },+ {+ "description": "Denies the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download-and-install"+ },+ {+ "description": "Denies the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-install"+ }+ ]+ },+ "Value": {+ "description": "All supported ACL values.",+ "anyOf": [+ {+ "description": "Represents a null JSON value.",+ "type": "null"+ },+ {+ "description": "Represents a [`bool`].",+ "type": "boolean"+ },+ {+ "description": "Represents a valid ACL [`Number`].",+ "allOf": [+ {+ "$ref": "#/definitions/Number"+ }+ ]+ },+ {+ "description": "Represents a [`String`].",+ "type": "string"+ },+ {+ "description": "Represents a list of other [`Value`]s.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ {+ "description": "Represents a map of [`String`] keys to [`Value`]s.",+ "type": "object",+ "additionalProperties": {+ "$ref": "#/definitions/Value"+ }+ }+ ]+ },+ "Number": {+ "description": "A valid ACL number.",+ "anyOf": [+ {+ "description": "Represents an [`i64`].",+ "type": "integer",+ "format": "int64"+ },+ {+ "description": "Represents a [`f64`].",+ "type": "number",+ "format": "double"+ }+ ]+ },+ "Target": {+ "description": "Platform target.",+ "oneOf": [+ {+ "description": "MacOS.",+ "type": "string",+ "enum": [+ "macOS"+ ]+ },+ {+ "description": "Windows.",+ "type": "string",+ "enum": [+ "windows"+ ]+ },+ {+ "description": "Linux.",+ "type": "string",+ "enum": [+ "linux"+ ]+ },+ {+ "description": "Android.",+ "type": "string",+ "enum": [+ "android"+ ]+ },+ {+ "description": "iOS.",+ "type": "string",+ "enum": [+ "iOS"+ ]+ }+ ]+ },+ "Application": {+ "description": "Opener scope application.",+ "anyOf": [+ {+ "description": "Open in default application.",+ "type": "null"+ },+ {+ "description": "If true, allow open with any application.",+ "type": "boolean"+ },+ {+ "description": "Allow specific application to open with.",+ "type": "string"+ }+ ]+ },+ "ShellScopeEntryAllowedArg": {+ "description": "A command argument allowed to be executed by the webview API.",+ "anyOf": [+ {+ "description": "A non-configurable argument that is passed to the command in the order it was specified.",+ "type": "string"+ },+ {+ "description": "A variable that is set while calling the command from the webview API.",+ "type": "object",+ "required": [+ "validator"+ ],+ "properties": {+ "raw": {+ "description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",+ "default": false,+ "type": "boolean"+ },+ "validator": {+ "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",+ "type": "string"+ }+ },+ "additionalProperties": false+ }+ ]+ },+ "ShellScopeEntryAllowedArgs": {+ "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",+ "anyOf": [+ {+ "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",+ "type": "boolean"+ },+ {+ "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/ShellScopeEntryAllowedArg"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/openrewind/src-tauri/gen/schemas/macOS-schema.json b/openrewind/src-tauri/gen/schemas/macOS-schema.jsonnew file mode 100644index 000000000..9bf4e459c--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/macOS-schema.json@@ -0,0 +1,6070 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CapabilityFile",+ "description": "Capability formats accepted in a capability file.",+ "anyOf": [+ {+ "description": "A single capability.",+ "allOf": [+ {+ "$ref": "#/definitions/Capability"+ }+ ]+ },+ {+ "description": "A list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ },+ {+ "description": "A list of capabilities.",+ "type": "object",+ "required": [+ "capabilities"+ ],+ "properties": {+ "capabilities": {+ "description": "The list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ }+ }+ }+ ],+ "definitions": {+ "Capability": {+ "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",+ "type": "object",+ "required": [+ "identifier",+ "permissions"+ ],+ "properties": {+ "identifier": {+ "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",+ "type": "string"+ },+ "description": {+ "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.",+ "default": "",+ "type": "string"+ },+ "remote": {+ "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```",+ "anyOf": [+ {+ "$ref": "#/definitions/CapabilityRemote"+ },+ {+ "type": "null"+ }+ ]+ },+ "local": {+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",+ "default": true,+ "type": "boolean"+ },+ "windows": {+ "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "webviews": {+ "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "permissions": {+ "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```",+ "type": "array",+ "items": {+ "$ref": "#/definitions/PermissionEntry"+ },+ "uniqueItems": true+ },+ "platforms": {+ "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Target"+ }+ }+ }+ },+ "CapabilityRemote": {+ "description": "Configuration for remote URLs that are associated with the capability.",+ "type": "object",+ "required": [+ "urls"+ ],+ "properties": {+ "urls": {+ "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+ },+ "PermissionEntry": {+ "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",+ "anyOf": [+ {+ "description": "Reference a permission or permission set by identifier.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ {+ "description": "Reference a permission or permission set by identifier and extends its scope.",+ "type": "object",+ "allOf": [+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ "allow": {+ "description": "Data that defines what is allowed by the scope.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ "deny": {+ "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ }+ }+ }+ ],+ "required": [+ "identifier"+ ]+ }+ ]+ },+ "Identifier": {+ "description": "Permission identifier",+ "oneOf": [+ {+ "description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",+ "type": "string",+ "const": "autostart:default"+ },+ {+ "description": "Enables the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-disable"+ },+ {+ "description": "Enables the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-enable"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-is-enabled"+ },+ {+ "description": "Denies the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-disable"+ },+ {+ "description": "Denies the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-enable"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-is-enabled"+ },+ {+ "description": "Allows reading the CLI matches",+ "type": "string",+ "const": "cli:default"+ },+ {+ "description": "Enables the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:allow-cli-matches"+ },+ {+ "description": "Denies the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:deny-cli-matches"+ },+ {+ "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n",+ "type": "string",+ "const": "core:default"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:app:default"+ },+ {+ "description": "Enables the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-hide"+ },+ {+ "description": "Enables the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-show"+ },+ {+ "description": "Enables the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-default-window-icon"+ },+ {+ "description": "Enables the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-name"+ },+ {+ "description": "Enables the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-set-app-theme"+ },+ {+ "description": "Enables the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-tauri-version"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-version"+ },+ {+ "description": "Denies the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-hide"+ },+ {+ "description": "Denies the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-show"+ },+ {+ "description": "Denies the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-default-window-icon"+ },+ {+ "description": "Denies the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-name"+ },+ {+ "description": "Denies the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-set-app-theme"+ },+ {+ "description": "Denies the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-tauri-version"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-version"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:event:default"+ },+ {+ "description": "Enables the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit"+ },+ {+ "description": "Enables the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit-to"+ },+ {+ "description": "Enables the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-listen"+ },+ {+ "description": "Enables the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-unlisten"+ },+ {+ "description": "Denies the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit"+ },+ {+ "description": "Denies the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit-to"+ },+ {+ "description": "Denies the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-listen"+ },+ {+ "description": "Denies the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-unlisten"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:image:default"+ },+ {+ "description": "Enables the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-bytes"+ },+ {+ "description": "Enables the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-path"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-new"+ },+ {+ "description": "Enables the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-rgba"+ },+ {+ "description": "Enables the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-size"+ },+ {+ "description": "Denies the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-bytes"+ },+ {+ "description": "Denies the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-path"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-new"+ },+ {+ "description": "Denies the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-rgba"+ },+ {+ "description": "Denies the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:menu:default"+ },+ {+ "description": "Enables the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-append"+ },+ {+ "description": "Enables the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-create-default"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-get"+ },+ {+ "description": "Enables the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-insert"+ },+ {+ "description": "Enables the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-checked"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-enabled"+ },+ {+ "description": "Enables the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-items"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-new"+ },+ {+ "description": "Enables the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-popup"+ },+ {+ "description": "Enables the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-prepend"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove"+ },+ {+ "description": "Enables the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove-at"+ },+ {+ "description": "Enables the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-accelerator"+ },+ {+ "description": "Enables the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-app-menu"+ },+ {+ "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Enables the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-window-menu"+ },+ {+ "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Enables the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-checked"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-enabled"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-icon"+ },+ {+ "description": "Enables the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-text"+ },+ {+ "description": "Enables the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-text"+ },+ {+ "description": "Denies the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-append"+ },+ {+ "description": "Denies the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-create-default"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-get"+ },+ {+ "description": "Denies the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-insert"+ },+ {+ "description": "Denies the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-checked"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-enabled"+ },+ {+ "description": "Denies the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-items"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-new"+ },+ {+ "description": "Denies the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-popup"+ },+ {+ "description": "Denies the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-prepend"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove"+ },+ {+ "description": "Denies the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove-at"+ },+ {+ "description": "Denies the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-accelerator"+ },+ {+ "description": "Denies the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-app-menu"+ },+ {+ "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Denies the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-window-menu"+ },+ {+ "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Denies the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-checked"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-enabled"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-icon"+ },+ {+ "description": "Denies the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-text"+ },+ {+ "description": "Denies the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-text"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:path:default"+ },+ {+ "description": "Enables the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-basename"+ },+ {+ "description": "Enables the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-dirname"+ },+ {+ "description": "Enables the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-extname"+ },+ {+ "description": "Enables the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-is-absolute"+ },+ {+ "description": "Enables the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-join"+ },+ {+ "description": "Enables the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-normalize"+ },+ {+ "description": "Enables the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve"+ },+ {+ "description": "Enables the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve-directory"+ },+ {+ "description": "Denies the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-basename"+ },+ {+ "description": "Denies the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-dirname"+ },+ {+ "description": "Denies the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-extname"+ },+ {+ "description": "Denies the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-is-absolute"+ },+ {+ "description": "Denies the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-join"+ },+ {+ "description": "Denies the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-normalize"+ },+ {+ "description": "Denies the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve"+ },+ {+ "description": "Denies the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve-directory"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:resources:default"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:allow-close"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:deny-close"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:tray:default"+ },+ {+ "description": "Enables the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-get-by-id"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-new"+ },+ {+ "description": "Enables the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-remove-by-id"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon"+ },+ {+ "description": "Enables the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon-as-template"+ },+ {+ "description": "Enables the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-menu"+ },+ {+ "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-show-menu-on-left-click"+ },+ {+ "description": "Enables the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-temp-dir-path"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-title"+ },+ {+ "description": "Enables the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-tooltip"+ },+ {+ "description": "Enables the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-visible"+ },+ {+ "description": "Denies the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-get-by-id"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-new"+ },+ {+ "description": "Denies the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-remove-by-id"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon"+ },+ {+ "description": "Denies the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon-as-template"+ },+ {+ "description": "Denies the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-menu"+ },+ {+ "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-show-menu-on-left-click"+ },+ {+ "description": "Denies the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-temp-dir-path"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-title"+ },+ {+ "description": "Denies the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-tooltip"+ },+ {+ "description": "Denies the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-visible"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:webview:default"+ },+ {+ "description": "Enables the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-clear-all-browsing-data"+ },+ {+ "description": "Enables the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview"+ },+ {+ "description": "Enables the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview-window"+ },+ {+ "description": "Enables the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-get-all-webviews"+ },+ {+ "description": "Enables the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-internal-toggle-devtools"+ },+ {+ "description": "Enables the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-print"+ },+ {+ "description": "Enables the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-reparent"+ },+ {+ "description": "Enables the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-focus"+ },+ {+ "description": "Enables the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-position"+ },+ {+ "description": "Enables the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-size"+ },+ {+ "description": "Enables the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-zoom"+ },+ {+ "description": "Enables the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-close"+ },+ {+ "description": "Enables the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-hide"+ },+ {+ "description": "Enables the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-position"+ },+ {+ "description": "Enables the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-show"+ },+ {+ "description": "Enables the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-size"+ },+ {+ "description": "Denies the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-clear-all-browsing-data"+ },+ {+ "description": "Denies the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview"+ },+ {+ "description": "Denies the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview-window"+ },+ {+ "description": "Denies the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-get-all-webviews"+ },+ {+ "description": "Denies the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-internal-toggle-devtools"+ },+ {+ "description": "Denies the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-print"+ },+ {+ "description": "Denies the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-reparent"+ },+ {+ "description": "Denies the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-focus"+ },+ {+ "description": "Denies the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-position"+ },+ {+ "description": "Denies the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-size"+ },+ {+ "description": "Denies the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-zoom"+ },+ {+ "description": "Denies the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-close"+ },+ {+ "description": "Denies the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-hide"+ },+ {+ "description": "Denies the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-position"+ },+ {+ "description": "Denies the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-show"+ },+ {+ "description": "Denies the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:window:default"+ },+ {+ "description": "Enables the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-available-monitors"+ },+ {+ "description": "Enables the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-center"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-close"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-create"+ },+ {+ "description": "Enables the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-current-monitor"+ },+ {+ "description": "Enables the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-cursor-position"+ },+ {+ "description": "Enables the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-destroy"+ },+ {+ "description": "Enables the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-get-all-windows"+ },+ {+ "description": "Enables the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-hide"+ },+ {+ "description": "Enables the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-position"+ },+ {+ "description": "Enables the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-size"+ },+ {+ "description": "Enables the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-internal-toggle-maximize"+ },+ {+ "description": "Enables the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-closable"+ },+ {+ "description": "Enables the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-decorated"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-enabled"+ },+ {+ "description": "Enables the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-focused"+ },+ {+ "description": "Enables the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-fullscreen"+ },+ {+ "description": "Enables the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximizable"+ },+ {+ "description": "Enables the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximized"+ },+ {+ "description": "Enables the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimizable"+ },+ {+ "description": "Enables the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimized"+ },+ {+ "description": "Enables the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-resizable"+ },+ {+ "description": "Enables the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-visible"+ },+ {+ "description": "Enables the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-maximize"+ },+ {+ "description": "Enables the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-minimize"+ },+ {+ "description": "Enables the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-monitor-from-point"+ },+ {+ "description": "Enables the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-position"+ },+ {+ "description": "Enables the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-size"+ },+ {+ "description": "Enables the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-primary-monitor"+ },+ {+ "description": "Enables the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-request-user-attention"+ },+ {+ "description": "Enables the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-scale-factor"+ },+ {+ "description": "Enables the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-bottom"+ },+ {+ "description": "Enables the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-top"+ },+ {+ "description": "Enables the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-closable"+ },+ {+ "description": "Enables the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-content-protected"+ },+ {+ "description": "Enables the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-grab"+ },+ {+ "description": "Enables the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-icon"+ },+ {+ "description": "Enables the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-position"+ },+ {+ "description": "Enables the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-visible"+ },+ {+ "description": "Enables the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-decorations"+ },+ {+ "description": "Enables the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-effects"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-enabled"+ },+ {+ "description": "Enables the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-focus"+ },+ {+ "description": "Enables the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-fullscreen"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-icon"+ },+ {+ "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-ignore-cursor-events"+ },+ {+ "description": "Enables the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-max-size"+ },+ {+ "description": "Enables the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-maximizable"+ },+ {+ "description": "Enables the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-min-size"+ },+ {+ "description": "Enables the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-minimizable"+ },+ {+ "description": "Enables the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-position"+ },+ {+ "description": "Enables the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-progress-bar"+ },+ {+ "description": "Enables the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-resizable"+ },+ {+ "description": "Enables the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-shadow"+ },+ {+ "description": "Enables the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size"+ },+ {+ "description": "Enables the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size-constraints"+ },+ {+ "description": "Enables the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-skip-taskbar"+ },+ {+ "description": "Enables the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-theme"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title"+ },+ {+ "description": "Enables the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title-bar-style"+ },+ {+ "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-visible-on-all-workspaces"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-show"+ },+ {+ "description": "Enables the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-dragging"+ },+ {+ "description": "Enables the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-resize-dragging"+ },+ {+ "description": "Enables the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-theme"+ },+ {+ "description": "Enables the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-title"+ },+ {+ "description": "Enables the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-toggle-maximize"+ },+ {+ "description": "Enables the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unmaximize"+ },+ {+ "description": "Enables the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unminimize"+ },+ {+ "description": "Denies the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-available-monitors"+ },+ {+ "description": "Denies the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-center"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-close"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-create"+ },+ {+ "description": "Denies the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-current-monitor"+ },+ {+ "description": "Denies the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-cursor-position"+ },+ {+ "description": "Denies the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-destroy"+ },+ {+ "description": "Denies the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-get-all-windows"+ },+ {+ "description": "Denies the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-hide"+ },+ {+ "description": "Denies the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-position"+ },+ {+ "description": "Denies the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-size"+ },+ {+ "description": "Denies the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-internal-toggle-maximize"+ },+ {+ "description": "Denies the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-closable"+ },+ {+ "description": "Denies the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-decorated"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-enabled"+ },+ {+ "description": "Denies the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-focused"+ },+ {+ "description": "Denies the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-fullscreen"+ },+ {+ "description": "Denies the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximizable"+ },+ {+ "description": "Denies the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximized"+ },+ {+ "description": "Denies the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimizable"+ },+ {+ "description": "Denies the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimized"+ },+ {+ "description": "Denies the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-resizable"+ },+ {+ "description": "Denies the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-visible"+ },+ {+ "description": "Denies the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-maximize"+ },+ {+ "description": "Denies the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-minimize"+ },+ {+ "description": "Denies the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-monitor-from-point"+ },+ {+ "description": "Denies the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-position"+ },+ {+ "description": "Denies the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-size"+ },+ {+ "description": "Denies the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-primary-monitor"+ },+ {+ "description": "Denies the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-request-user-attention"+ },+ {+ "description": "Denies the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-scale-factor"+ },+ {+ "description": "Denies the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-bottom"+ },+ {+ "description": "Denies the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-top"+ },+ {+ "description": "Denies the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-closable"+ },+ {+ "description": "Denies the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-content-protected"+ },+ {+ "description": "Denies the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-grab"+ },+ {+ "description": "Denies the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-icon"+ },+ {+ "description": "Denies the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-position"+ },+ {+ "description": "Denies the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-visible"+ },+ {+ "description": "Denies the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-decorations"+ },+ {+ "description": "Denies the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-effects"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-enabled"+ },+ {+ "description": "Denies the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-focus"+ },+ {+ "description": "Denies the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-fullscreen"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-icon"+ },+ {+ "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-ignore-cursor-events"+ },+ {+ "description": "Denies the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-max-size"+ },+ {+ "description": "Denies the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-maximizable"+ },+ {+ "description": "Denies the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-min-size"+ },+ {+ "description": "Denies the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-minimizable"+ },+ {+ "description": "Denies the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-position"+ },+ {+ "description": "Denies the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-progress-bar"+ },+ {+ "description": "Denies the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-resizable"+ },+ {+ "description": "Denies the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-shadow"+ },+ {+ "description": "Denies the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size"+ },+ {+ "description": "Denies the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size-constraints"+ },+ {+ "description": "Denies the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-skip-taskbar"+ },+ {+ "description": "Denies the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-theme"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title"+ },+ {+ "description": "Denies the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title-bar-style"+ },+ {+ "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-visible-on-all-workspaces"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-show"+ },+ {+ "description": "Denies the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-dragging"+ },+ {+ "description": "Denies the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-resize-dragging"+ },+ {+ "description": "Denies the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-theme"+ },+ {+ "description": "Denies the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-title"+ },+ {+ "description": "Denies the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-toggle-maximize"+ },+ {+ "description": "Denies the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unmaximize"+ },+ {+ "description": "Denies the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unminimize"+ },+ {+ "description": "Allows reading the opened deep link via the get_current command",+ "type": "string",+ "const": "deep-link:default"+ },+ {+ "description": "Enables the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-get-current"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-register"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-unregister"+ },+ {+ "description": "Denies the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-get-current"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-register"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-unregister"+ },+ {+ "description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",+ "type": "string",+ "const": "dialog:default"+ },+ {+ "description": "Enables the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-ask"+ },+ {+ "description": "Enables the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-confirm"+ },+ {+ "description": "Enables the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-message"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-open"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-save"+ },+ {+ "description": "Denies the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-ask"+ },+ {+ "description": "Denies the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-confirm"+ },+ {+ "description": "Denies the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-message"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-open"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-save"+ },+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ },+ {+ "description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",+ "type": "string",+ "const": "global-shortcut:default"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register"+ },+ {+ "description": "Enables the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register-all"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister"+ },+ {+ "description": "Enables the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister-all"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register"+ },+ {+ "description": "Denies the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register-all"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister"+ },+ {+ "description": "Denies the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister-all"+ },+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ },+ {+ "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",+ "type": "string",+ "const": "notification:default"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch"+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel"+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions"+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel"+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel"+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active"+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending"+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted"+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels"+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify"+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state"+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types"+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener"+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active"+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show"+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch"+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel"+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions"+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel"+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel"+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active"+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending"+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted"+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels"+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify"+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state"+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types"+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener"+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active"+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show"+ },+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ },+ {+ "description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",+ "type": "string",+ "const": "os:default"+ },+ {+ "description": "Enables the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-arch"+ },+ {+ "description": "Enables the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-exe-extension"+ },+ {+ "description": "Enables the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-family"+ },+ {+ "description": "Enables the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-hostname"+ },+ {+ "description": "Enables the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-locale"+ },+ {+ "description": "Enables the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-os-type"+ },+ {+ "description": "Enables the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-platform"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-version"+ },+ {+ "description": "Denies the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-arch"+ },+ {+ "description": "Denies the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-exe-extension"+ },+ {+ "description": "Denies the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-family"+ },+ {+ "description": "Denies the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-hostname"+ },+ {+ "description": "Denies the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-locale"+ },+ {+ "description": "Denies the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-os-type"+ },+ {+ "description": "Denies the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-platform"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-version"+ },+ {+ "description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",+ "type": "string",+ "const": "process:default"+ },+ {+ "description": "Enables the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-exit"+ },+ {+ "description": "Enables the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-restart"+ },+ {+ "description": "Denies the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-exit"+ },+ {+ "description": "Denies the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-restart"+ },+ {+ "description": "Allows all required permissions (envelope, breadcrumb)",+ "type": "string",+ "const": "sentry:default"+ },+ {+ "description": "Enables the breadcrumb command.",+ "type": "string",+ "const": "sentry:allow-breadcrumb"+ },+ {+ "description": "Enables the envelope command.",+ "type": "string",+ "const": "sentry:allow-envelope"+ },+ {+ "description": "Enables the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:allow-event"+ },+ {+ "description": "Denies the breadcrumb command.",+ "type": "string",+ "const": "sentry:deny-breadcrumb"+ },+ {+ "description": "Denies the envelope command.",+ "type": "string",+ "const": "sentry:deny-envelope"+ },+ {+ "description": "Denies the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:deny-event"+ },+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ },+ {+ "description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",+ "type": "string",+ "const": "store:default"+ },+ {+ "description": "Enables the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-clear"+ },+ {+ "description": "Enables the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-delete"+ },+ {+ "description": "Enables the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-entries"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get"+ },+ {+ "description": "Enables the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get-store"+ },+ {+ "description": "Enables the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-has"+ },+ {+ "description": "Enables the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-keys"+ },+ {+ "description": "Enables the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-length"+ },+ {+ "description": "Enables the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-load"+ },+ {+ "description": "Enables the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reload"+ },+ {+ "description": "Enables the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reset"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-save"+ },+ {+ "description": "Enables the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-set"+ },+ {+ "description": "Enables the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-values"+ },+ {+ "description": "Denies the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-clear"+ },+ {+ "description": "Denies the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-delete"+ },+ {+ "description": "Denies the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-entries"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get"+ },+ {+ "description": "Denies the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get-store"+ },+ {+ "description": "Denies the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-has"+ },+ {+ "description": "Denies the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-keys"+ },+ {+ "description": "Denies the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-length"+ },+ {+ "description": "Denies the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-load"+ },+ {+ "description": "Denies the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reload"+ },+ {+ "description": "Denies the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reset"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-save"+ },+ {+ "description": "Denies the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-set"+ },+ {+ "description": "Denies the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-values"+ },+ {+ "description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n",+ "type": "string",+ "const": "updater:default"+ },+ {+ "description": "Enables the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-check"+ },+ {+ "description": "Enables the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download"+ },+ {+ "description": "Enables the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download-and-install"+ },+ {+ "description": "Enables the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-install"+ },+ {+ "description": "Denies the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-check"+ },+ {+ "description": "Denies the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download"+ },+ {+ "description": "Denies the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download-and-install"+ },+ {+ "description": "Denies the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-install"+ }+ ]+ },+ "Value": {+ "description": "All supported ACL values.",+ "anyOf": [+ {+ "description": "Represents a null JSON value.",+ "type": "null"+ },+ {+ "description": "Represents a [`bool`].",+ "type": "boolean"+ },+ {+ "description": "Represents a valid ACL [`Number`].",+ "allOf": [+ {+ "$ref": "#/definitions/Number"+ }+ ]+ },+ {+ "description": "Represents a [`String`].",+ "type": "string"+ },+ {+ "description": "Represents a list of other [`Value`]s.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ {+ "description": "Represents a map of [`String`] keys to [`Value`]s.",+ "type": "object",+ "additionalProperties": {+ "$ref": "#/definitions/Value"+ }+ }+ ]+ },+ "Number": {+ "description": "A valid ACL number.",+ "anyOf": [+ {+ "description": "Represents an [`i64`].",+ "type": "integer",+ "format": "int64"+ },+ {+ "description": "Represents a [`f64`].",+ "type": "number",+ "format": "double"+ }+ ]+ },+ "Target": {+ "description": "Platform target.",+ "oneOf": [+ {+ "description": "MacOS.",+ "type": "string",+ "enum": [+ "macOS"+ ]+ },+ {+ "description": "Windows.",+ "type": "string",+ "enum": [+ "windows"+ ]+ },+ {+ "description": "Linux.",+ "type": "string",+ "enum": [+ "linux"+ ]+ },+ {+ "description": "Android.",+ "type": "string",+ "enum": [+ "android"+ ]+ },+ {+ "description": "iOS.",+ "type": "string",+ "enum": [+ "iOS"+ ]+ }+ ]+ },+ "Application": {+ "description": "Opener scope application.",+ "anyOf": [+ {+ "description": "Open in default application.",+ "type": "null"+ },+ {+ "description": "If true, allow open with any application.",+ "type": "boolean"+ },+ {+ "description": "Allow specific application to open with.",+ "type": "string"+ }+ ]+ },+ "ShellScopeEntryAllowedArg": {+ "description": "A command argument allowed to be executed by the webview API.",+ "anyOf": [+ {+ "description": "A non-configurable argument that is passed to the command in the order it was specified.",+ "type": "string"+ },+ {+ "description": "A variable that is set while calling the command from the webview API.",+ "type": "object",+ "required": [+ "validator"+ ],+ "properties": {+ "raw": {+ "description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",+ "default": false,+ "type": "boolean"+ },+ "validator": {+ "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",+ "type": "string"+ }+ },+ "additionalProperties": false+ }+ ]+ },+ "ShellScopeEntryAllowedArgs": {+ "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",+ "anyOf": [+ {+ "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",+ "type": "boolean"+ },+ {+ "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/ShellScopeEntryAllowedArg"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/openrewind/src-tauri/gen/schemas/windows-schema.json b/openrewind/src-tauri/gen/schemas/windows-schema.jsonnew file mode 100644index 000000000..9bf4e459c--- /dev/null+++ b/openrewind/src-tauri/gen/schemas/windows-schema.json@@ -0,0 +1,6070 @@+{+ "$schema": "http://json-schema.org/draft-07/schema#",+ "title": "CapabilityFile",+ "description": "Capability formats accepted in a capability file.",+ "anyOf": [+ {+ "description": "A single capability.",+ "allOf": [+ {+ "$ref": "#/definitions/Capability"+ }+ ]+ },+ {+ "description": "A list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ },+ {+ "description": "A list of capabilities.",+ "type": "object",+ "required": [+ "capabilities"+ ],+ "properties": {+ "capabilities": {+ "description": "The list of capabilities.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Capability"+ }+ }+ }+ }+ ],+ "definitions": {+ "Capability": {+ "description": "A grouping and boundary mechanism developers can use to isolate access to the IPC layer.\n\nIt controls application windows fine grained access to the Tauri core, application, or plugin commands. If a window is not matching any capability then it has no access to the IPC layer at all.\n\nThis can be done to create groups of windows, based on their required system access, which can reduce impact of frontend vulnerabilities in less privileged windows. Windows can be added to a capability by exact name (e.g. `main-window`) or glob patterns like `*` or `admin-*`. A Window can have none, one, or multiple associated capabilities.\n\n## Example\n\n```json { \"identifier\": \"main-user-files-write\", \"description\": \"This capability allows the `main` window on macOS and Windows access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.\", \"windows\": [ \"main\" ], \"permissions\": [ \"core:default\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] }, ], \"platforms\": [\"macOS\",\"windows\"] } ```",+ "type": "object",+ "required": [+ "identifier",+ "permissions"+ ],+ "properties": {+ "identifier": {+ "description": "Identifier of the capability.\n\n## Example\n\n`main-user-files-write`",+ "type": "string"+ },+ "description": {+ "description": "Description of what the capability is intended to allow on associated windows.\n\nIt should contain a description of what the grouped permissions should allow.\n\n## Example\n\nThis capability allows the `main` window access to `filesystem` write related commands and `dialog` commands to enable programatic access to files selected by the user.",+ "default": "",+ "type": "string"+ },+ "remote": {+ "description": "Configure remote URLs that can use the capability permissions.\n\nThis setting is optional and defaults to not being set, as our default use case is that the content is served from our local application.\n\n:::caution Make sure you understand the security implications of providing remote sources with local system access. :::\n\n## Example\n\n```json { \"urls\": [\"https://*.mydomain.dev\"] } ```",+ "anyOf": [+ {+ "$ref": "#/definitions/CapabilityRemote"+ },+ {+ "type": "null"+ }+ ]+ },+ "local": {+ "description": "Whether this capability is enabled for local app URLs or not. Defaults to `true`.",+ "default": true,+ "type": "boolean"+ },+ "windows": {+ "description": "List of windows that are affected by this capability. Can be a glob pattern.\n\nOn multiwebview windows, prefer [`Self::webviews`] for a fine grained access control.\n\n## Example\n\n`[\"main\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "webviews": {+ "description": "List of webviews that are affected by this capability. Can be a glob pattern.\n\nThis is only required when using on multiwebview contexts, by default all child webviews of a window that matches [`Self::windows`] are linked.\n\n## Example\n\n`[\"sub-webview-one\", \"sub-webview-two\"]`",+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "permissions": {+ "description": "List of permissions attached to this capability.\n\nMust include the plugin name as prefix in the form of `${plugin-name}:${permission-name}`. For commands directly implemented in the application itself only `${permission-name}` is required.\n\n## Example\n\n```json [ \"core:default\", \"shell:allow-open\", \"dialog:open\", { \"identifier\": \"fs:allow-write-text-file\", \"allow\": [{ \"path\": \"$HOME/test.txt\" }] } ] ```",+ "type": "array",+ "items": {+ "$ref": "#/definitions/PermissionEntry"+ },+ "uniqueItems": true+ },+ "platforms": {+ "description": "Limit which target platforms this capability applies to.\n\nBy default all platforms are targeted.\n\n## Example\n\n`[\"macOS\",\"windows\"]`",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Target"+ }+ }+ }+ },+ "CapabilityRemote": {+ "description": "Configuration for remote URLs that are associated with the capability.",+ "type": "object",+ "required": [+ "urls"+ ],+ "properties": {+ "urls": {+ "description": "Remote domains this capability refers to using the [URLPattern standard](https://urlpattern.spec.whatwg.org/).\n\n## Examples\n\n- \"https://*.mydomain.dev\": allows subdomains of mydomain.dev - \"https://mydomain.dev/api/*\": allows any subpath of mydomain.dev/api",+ "type": "array",+ "items": {+ "type": "string"+ }+ }+ }+ },+ "PermissionEntry": {+ "description": "An entry for a permission value in a [`Capability`] can be either a raw permission [`Identifier`] or an object that references a permission and extends its scope.",+ "anyOf": [+ {+ "description": "Reference a permission or permission set by identifier.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ {+ "description": "Reference a permission or permission set by identifier and extends its scope.",+ "type": "object",+ "allOf": [+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "FsScopeEntry",+ "description": "FS scope entry.",+ "anyOf": [+ {+ "description": "FS scope path.",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "path": {+ "description": "FS scope path.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "HttpScopeEntry",+ "description": "HTTP scope entry.",+ "anyOf": [+ {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ },+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "url": {+ "description": "A URL that can be accessed by the webview when using the HTTP APIs. Wildcards can be used following the URL pattern standard.\n\nSee [the URL Pattern spec](https://urlpattern.spec.whatwg.org/) for more information.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin on port 443\n\n- \"https://*:*\" : allows all HTTPS origin on any port\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "OpenerScopeEntry",+ "description": "Opener scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "url"+ ],+ "properties": {+ "app": {+ "description": "An application to open this url with, for example: firefox.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "url": {+ "description": "A URL that can be opened by the webview when using the Opener APIs.\n\nWildcards can be used following the UNIX glob pattern.\n\nExamples:\n\n- \"https://*\" : allows all HTTPS origin\n\n- \"https://*.github.com/tauri-apps/tauri\": allows any subdomain of \"github.com\" with the \"tauri-apps/api\" path\n\n- \"https://myapi.service.com/users/*\": allows access to any URLs that begins with \"https://myapi.service.com/users/\"",+ "type": "string"+ }+ }+ },+ {+ "type": "object",+ "required": [+ "path"+ ],+ "properties": {+ "app": {+ "description": "An application to open this path with, for example: xdg-open.",+ "allOf": [+ {+ "$ref": "#/definitions/Application"+ }+ ]+ },+ "path": {+ "description": "A path that can be opened by the webview when using the Opener APIs.\n\nThe pattern can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$APP`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ }+ }+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "if": {+ "properties": {+ "identifier": {+ "anyOf": [+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ }+ ]+ }+ }+ },+ "then": {+ "properties": {+ "allow": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ },+ "deny": {+ "items": {+ "title": "ShellScopeEntry",+ "description": "Shell scope entry.",+ "anyOf": [+ {+ "type": "object",+ "required": [+ "cmd",+ "name"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "cmd": {+ "description": "The command name. It can start with a variable that resolves to a system base directory. The variables are: `$AUDIO`, `$CACHE`, `$CONFIG`, `$DATA`, `$LOCALDATA`, `$DESKTOP`, `$DOCUMENT`, `$DOWNLOAD`, `$EXE`, `$FONT`, `$HOME`, `$PICTURE`, `$PUBLIC`, `$RUNTIME`, `$TEMPLATE`, `$VIDEO`, `$RESOURCE`, `$LOG`, `$TEMP`, `$APPCONFIG`, `$APPDATA`, `$APPLOCALDATA`, `$APPCACHE`, `$APPLOG`.",+ "type": "string"+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ }+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "required": [+ "name",+ "sidecar"+ ],+ "properties": {+ "args": {+ "description": "The allowed arguments for the command execution.",+ "allOf": [+ {+ "$ref": "#/definitions/ShellScopeEntryAllowedArgs"+ }+ ]+ },+ "name": {+ "description": "The name for this allowed shell command configuration.\n\nThis name will be used inside of the webview API to call this command along with any specified arguments.",+ "type": "string"+ },+ "sidecar": {+ "description": "If this command is a sidecar command.",+ "type": "boolean"+ }+ },+ "additionalProperties": false+ }+ ]+ }+ }+ }+ },+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ }+ }+ },+ {+ "properties": {+ "identifier": {+ "description": "Identifier of the permission or permission set.",+ "allOf": [+ {+ "$ref": "#/definitions/Identifier"+ }+ ]+ },+ "allow": {+ "description": "Data that defines what is allowed by the scope.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ "deny": {+ "description": "Data that defines what is denied by the scope. This should be prioritized by validation logic.",+ "type": [+ "array",+ "null"+ ],+ "items": {+ "$ref": "#/definitions/Value"+ }+ }+ }+ }+ ],+ "required": [+ "identifier"+ ]+ }+ ]+ },+ "Identifier": {+ "description": "Permission identifier",+ "oneOf": [+ {+ "description": "This permission set configures if your\napplication can enable or disable auto\nstarting the application on boot.\n\n#### Granted Permissions\n\nIt allows all to check, enable and\ndisable the automatic start on boot.\n\n",+ "type": "string",+ "const": "autostart:default"+ },+ {+ "description": "Enables the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-disable"+ },+ {+ "description": "Enables the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-enable"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:allow-is-enabled"+ },+ {+ "description": "Denies the disable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-disable"+ },+ {+ "description": "Denies the enable command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-enable"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "autostart:deny-is-enabled"+ },+ {+ "description": "Allows reading the CLI matches",+ "type": "string",+ "const": "cli:default"+ },+ {+ "description": "Enables the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:allow-cli-matches"+ },+ {+ "description": "Denies the cli_matches command without any pre-configured scope.",+ "type": "string",+ "const": "cli:deny-cli-matches"+ },+ {+ "description": "Default core plugins set which includes:\n- 'core:path:default'\n- 'core:event:default'\n- 'core:window:default'\n- 'core:webview:default'\n- 'core:app:default'\n- 'core:image:default'\n- 'core:resources:default'\n- 'core:menu:default'\n- 'core:tray:default'\n",+ "type": "string",+ "const": "core:default"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:app:default"+ },+ {+ "description": "Enables the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-hide"+ },+ {+ "description": "Enables the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-app-show"+ },+ {+ "description": "Enables the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-default-window-icon"+ },+ {+ "description": "Enables the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-name"+ },+ {+ "description": "Enables the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-set-app-theme"+ },+ {+ "description": "Enables the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-tauri-version"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:allow-version"+ },+ {+ "description": "Denies the app_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-hide"+ },+ {+ "description": "Denies the app_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-app-show"+ },+ {+ "description": "Denies the default_window_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-default-window-icon"+ },+ {+ "description": "Denies the name command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-name"+ },+ {+ "description": "Denies the set_app_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-set-app-theme"+ },+ {+ "description": "Denies the tauri_version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-tauri-version"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "core:app:deny-version"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:event:default"+ },+ {+ "description": "Enables the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit"+ },+ {+ "description": "Enables the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-emit-to"+ },+ {+ "description": "Enables the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-listen"+ },+ {+ "description": "Enables the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:allow-unlisten"+ },+ {+ "description": "Denies the emit command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit"+ },+ {+ "description": "Denies the emit_to command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-emit-to"+ },+ {+ "description": "Denies the listen command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-listen"+ },+ {+ "description": "Denies the unlisten command without any pre-configured scope.",+ "type": "string",+ "const": "core:event:deny-unlisten"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:image:default"+ },+ {+ "description": "Enables the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-bytes"+ },+ {+ "description": "Enables the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-from-path"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-new"+ },+ {+ "description": "Enables the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-rgba"+ },+ {+ "description": "Enables the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:allow-size"+ },+ {+ "description": "Denies the from_bytes command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-bytes"+ },+ {+ "description": "Denies the from_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-from-path"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-new"+ },+ {+ "description": "Denies the rgba command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-rgba"+ },+ {+ "description": "Denies the size command without any pre-configured scope.",+ "type": "string",+ "const": "core:image:deny-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:menu:default"+ },+ {+ "description": "Enables the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-append"+ },+ {+ "description": "Enables the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-create-default"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-get"+ },+ {+ "description": "Enables the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-insert"+ },+ {+ "description": "Enables the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-checked"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-is-enabled"+ },+ {+ "description": "Enables the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-items"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-new"+ },+ {+ "description": "Enables the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-popup"+ },+ {+ "description": "Enables the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-prepend"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove"+ },+ {+ "description": "Enables the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-remove-at"+ },+ {+ "description": "Enables the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-accelerator"+ },+ {+ "description": "Enables the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-app-menu"+ },+ {+ "description": "Enables the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Enables the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-window-menu"+ },+ {+ "description": "Enables the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Enables the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-checked"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-enabled"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-icon"+ },+ {+ "description": "Enables the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-set-text"+ },+ {+ "description": "Enables the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:allow-text"+ },+ {+ "description": "Denies the append command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-append"+ },+ {+ "description": "Denies the create_default command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-create-default"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-get"+ },+ {+ "description": "Denies the insert command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-insert"+ },+ {+ "description": "Denies the is_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-checked"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-is-enabled"+ },+ {+ "description": "Denies the items command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-items"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-new"+ },+ {+ "description": "Denies the popup command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-popup"+ },+ {+ "description": "Denies the prepend command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-prepend"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove"+ },+ {+ "description": "Denies the remove_at command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-remove-at"+ },+ {+ "description": "Denies the set_accelerator command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-accelerator"+ },+ {+ "description": "Denies the set_as_app_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-app-menu"+ },+ {+ "description": "Denies the set_as_help_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-help-menu-for-nsapp"+ },+ {+ "description": "Denies the set_as_window_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-window-menu"+ },+ {+ "description": "Denies the set_as_windows_menu_for_nsapp command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-as-windows-menu-for-nsapp"+ },+ {+ "description": "Denies the set_checked command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-checked"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-enabled"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-icon"+ },+ {+ "description": "Denies the set_text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-set-text"+ },+ {+ "description": "Denies the text command without any pre-configured scope.",+ "type": "string",+ "const": "core:menu:deny-text"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:path:default"+ },+ {+ "description": "Enables the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-basename"+ },+ {+ "description": "Enables the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-dirname"+ },+ {+ "description": "Enables the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-extname"+ },+ {+ "description": "Enables the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-is-absolute"+ },+ {+ "description": "Enables the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-join"+ },+ {+ "description": "Enables the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-normalize"+ },+ {+ "description": "Enables the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve"+ },+ {+ "description": "Enables the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:allow-resolve-directory"+ },+ {+ "description": "Denies the basename command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-basename"+ },+ {+ "description": "Denies the dirname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-dirname"+ },+ {+ "description": "Denies the extname command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-extname"+ },+ {+ "description": "Denies the is_absolute command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-is-absolute"+ },+ {+ "description": "Denies the join command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-join"+ },+ {+ "description": "Denies the normalize command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-normalize"+ },+ {+ "description": "Denies the resolve command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve"+ },+ {+ "description": "Denies the resolve_directory command without any pre-configured scope.",+ "type": "string",+ "const": "core:path:deny-resolve-directory"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:resources:default"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:allow-close"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:resources:deny-close"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:tray:default"+ },+ {+ "description": "Enables the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-get-by-id"+ },+ {+ "description": "Enables the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-new"+ },+ {+ "description": "Enables the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-remove-by-id"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon"+ },+ {+ "description": "Enables the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-icon-as-template"+ },+ {+ "description": "Enables the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-menu"+ },+ {+ "description": "Enables the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-show-menu-on-left-click"+ },+ {+ "description": "Enables the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-temp-dir-path"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-title"+ },+ {+ "description": "Enables the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-tooltip"+ },+ {+ "description": "Enables the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:allow-set-visible"+ },+ {+ "description": "Denies the get_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-get-by-id"+ },+ {+ "description": "Denies the new command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-new"+ },+ {+ "description": "Denies the remove_by_id command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-remove-by-id"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon"+ },+ {+ "description": "Denies the set_icon_as_template command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-icon-as-template"+ },+ {+ "description": "Denies the set_menu command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-menu"+ },+ {+ "description": "Denies the set_show_menu_on_left_click command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-show-menu-on-left-click"+ },+ {+ "description": "Denies the set_temp_dir_path command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-temp-dir-path"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-title"+ },+ {+ "description": "Denies the set_tooltip command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-tooltip"+ },+ {+ "description": "Denies the set_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:tray:deny-set-visible"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:webview:default"+ },+ {+ "description": "Enables the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-clear-all-browsing-data"+ },+ {+ "description": "Enables the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview"+ },+ {+ "description": "Enables the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-create-webview-window"+ },+ {+ "description": "Enables the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-get-all-webviews"+ },+ {+ "description": "Enables the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-internal-toggle-devtools"+ },+ {+ "description": "Enables the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-print"+ },+ {+ "description": "Enables the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-reparent"+ },+ {+ "description": "Enables the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-focus"+ },+ {+ "description": "Enables the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-position"+ },+ {+ "description": "Enables the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-size"+ },+ {+ "description": "Enables the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-set-webview-zoom"+ },+ {+ "description": "Enables the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-close"+ },+ {+ "description": "Enables the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-hide"+ },+ {+ "description": "Enables the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-position"+ },+ {+ "description": "Enables the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-show"+ },+ {+ "description": "Enables the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:allow-webview-size"+ },+ {+ "description": "Denies the clear_all_browsing_data command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-clear-all-browsing-data"+ },+ {+ "description": "Denies the create_webview command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview"+ },+ {+ "description": "Denies the create_webview_window command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-create-webview-window"+ },+ {+ "description": "Denies the get_all_webviews command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-get-all-webviews"+ },+ {+ "description": "Denies the internal_toggle_devtools command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-internal-toggle-devtools"+ },+ {+ "description": "Denies the print command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-print"+ },+ {+ "description": "Denies the reparent command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-reparent"+ },+ {+ "description": "Denies the set_webview_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-focus"+ },+ {+ "description": "Denies the set_webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-position"+ },+ {+ "description": "Denies the set_webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-size"+ },+ {+ "description": "Denies the set_webview_zoom command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-set-webview-zoom"+ },+ {+ "description": "Denies the webview_close command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-close"+ },+ {+ "description": "Denies the webview_hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-hide"+ },+ {+ "description": "Denies the webview_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-position"+ },+ {+ "description": "Denies the webview_show command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-show"+ },+ {+ "description": "Denies the webview_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:webview:deny-webview-size"+ },+ {+ "description": "Default permissions for the plugin.",+ "type": "string",+ "const": "core:window:default"+ },+ {+ "description": "Enables the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-available-monitors"+ },+ {+ "description": "Enables the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-center"+ },+ {+ "description": "Enables the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-close"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-create"+ },+ {+ "description": "Enables the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-current-monitor"+ },+ {+ "description": "Enables the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-cursor-position"+ },+ {+ "description": "Enables the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-destroy"+ },+ {+ "description": "Enables the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-get-all-windows"+ },+ {+ "description": "Enables the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-hide"+ },+ {+ "description": "Enables the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-position"+ },+ {+ "description": "Enables the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-inner-size"+ },+ {+ "description": "Enables the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-internal-toggle-maximize"+ },+ {+ "description": "Enables the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-closable"+ },+ {+ "description": "Enables the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-decorated"+ },+ {+ "description": "Enables the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-enabled"+ },+ {+ "description": "Enables the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-focused"+ },+ {+ "description": "Enables the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-fullscreen"+ },+ {+ "description": "Enables the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximizable"+ },+ {+ "description": "Enables the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-maximized"+ },+ {+ "description": "Enables the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimizable"+ },+ {+ "description": "Enables the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-minimized"+ },+ {+ "description": "Enables the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-resizable"+ },+ {+ "description": "Enables the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-is-visible"+ },+ {+ "description": "Enables the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-maximize"+ },+ {+ "description": "Enables the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-minimize"+ },+ {+ "description": "Enables the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-monitor-from-point"+ },+ {+ "description": "Enables the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-position"+ },+ {+ "description": "Enables the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-outer-size"+ },+ {+ "description": "Enables the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-primary-monitor"+ },+ {+ "description": "Enables the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-request-user-attention"+ },+ {+ "description": "Enables the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-scale-factor"+ },+ {+ "description": "Enables the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-bottom"+ },+ {+ "description": "Enables the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-always-on-top"+ },+ {+ "description": "Enables the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-closable"+ },+ {+ "description": "Enables the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-content-protected"+ },+ {+ "description": "Enables the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-grab"+ },+ {+ "description": "Enables the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-icon"+ },+ {+ "description": "Enables the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-position"+ },+ {+ "description": "Enables the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-cursor-visible"+ },+ {+ "description": "Enables the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-decorations"+ },+ {+ "description": "Enables the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-effects"+ },+ {+ "description": "Enables the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-enabled"+ },+ {+ "description": "Enables the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-focus"+ },+ {+ "description": "Enables the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-fullscreen"+ },+ {+ "description": "Enables the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-icon"+ },+ {+ "description": "Enables the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-ignore-cursor-events"+ },+ {+ "description": "Enables the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-max-size"+ },+ {+ "description": "Enables the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-maximizable"+ },+ {+ "description": "Enables the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-min-size"+ },+ {+ "description": "Enables the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-minimizable"+ },+ {+ "description": "Enables the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-position"+ },+ {+ "description": "Enables the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-progress-bar"+ },+ {+ "description": "Enables the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-resizable"+ },+ {+ "description": "Enables the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-shadow"+ },+ {+ "description": "Enables the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size"+ },+ {+ "description": "Enables the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-size-constraints"+ },+ {+ "description": "Enables the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-skip-taskbar"+ },+ {+ "description": "Enables the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-theme"+ },+ {+ "description": "Enables the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title"+ },+ {+ "description": "Enables the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-title-bar-style"+ },+ {+ "description": "Enables the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-set-visible-on-all-workspaces"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-show"+ },+ {+ "description": "Enables the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-dragging"+ },+ {+ "description": "Enables the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-start-resize-dragging"+ },+ {+ "description": "Enables the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-theme"+ },+ {+ "description": "Enables the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-title"+ },+ {+ "description": "Enables the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-toggle-maximize"+ },+ {+ "description": "Enables the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unmaximize"+ },+ {+ "description": "Enables the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:allow-unminimize"+ },+ {+ "description": "Denies the available_monitors command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-available-monitors"+ },+ {+ "description": "Denies the center command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-center"+ },+ {+ "description": "Denies the close command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-close"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-create"+ },+ {+ "description": "Denies the current_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-current-monitor"+ },+ {+ "description": "Denies the cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-cursor-position"+ },+ {+ "description": "Denies the destroy command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-destroy"+ },+ {+ "description": "Denies the get_all_windows command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-get-all-windows"+ },+ {+ "description": "Denies the hide command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-hide"+ },+ {+ "description": "Denies the inner_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-position"+ },+ {+ "description": "Denies the inner_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-inner-size"+ },+ {+ "description": "Denies the internal_toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-internal-toggle-maximize"+ },+ {+ "description": "Denies the is_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-closable"+ },+ {+ "description": "Denies the is_decorated command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-decorated"+ },+ {+ "description": "Denies the is_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-enabled"+ },+ {+ "description": "Denies the is_focused command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-focused"+ },+ {+ "description": "Denies the is_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-fullscreen"+ },+ {+ "description": "Denies the is_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximizable"+ },+ {+ "description": "Denies the is_maximized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-maximized"+ },+ {+ "description": "Denies the is_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimizable"+ },+ {+ "description": "Denies the is_minimized command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-minimized"+ },+ {+ "description": "Denies the is_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-resizable"+ },+ {+ "description": "Denies the is_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-is-visible"+ },+ {+ "description": "Denies the maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-maximize"+ },+ {+ "description": "Denies the minimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-minimize"+ },+ {+ "description": "Denies the monitor_from_point command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-monitor-from-point"+ },+ {+ "description": "Denies the outer_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-position"+ },+ {+ "description": "Denies the outer_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-outer-size"+ },+ {+ "description": "Denies the primary_monitor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-primary-monitor"+ },+ {+ "description": "Denies the request_user_attention command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-request-user-attention"+ },+ {+ "description": "Denies the scale_factor command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-scale-factor"+ },+ {+ "description": "Denies the set_always_on_bottom command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-bottom"+ },+ {+ "description": "Denies the set_always_on_top command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-always-on-top"+ },+ {+ "description": "Denies the set_closable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-closable"+ },+ {+ "description": "Denies the set_content_protected command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-content-protected"+ },+ {+ "description": "Denies the set_cursor_grab command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-grab"+ },+ {+ "description": "Denies the set_cursor_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-icon"+ },+ {+ "description": "Denies the set_cursor_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-position"+ },+ {+ "description": "Denies the set_cursor_visible command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-cursor-visible"+ },+ {+ "description": "Denies the set_decorations command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-decorations"+ },+ {+ "description": "Denies the set_effects command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-effects"+ },+ {+ "description": "Denies the set_enabled command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-enabled"+ },+ {+ "description": "Denies the set_focus command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-focus"+ },+ {+ "description": "Denies the set_fullscreen command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-fullscreen"+ },+ {+ "description": "Denies the set_icon command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-icon"+ },+ {+ "description": "Denies the set_ignore_cursor_events command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-ignore-cursor-events"+ },+ {+ "description": "Denies the set_max_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-max-size"+ },+ {+ "description": "Denies the set_maximizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-maximizable"+ },+ {+ "description": "Denies the set_min_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-min-size"+ },+ {+ "description": "Denies the set_minimizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-minimizable"+ },+ {+ "description": "Denies the set_position command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-position"+ },+ {+ "description": "Denies the set_progress_bar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-progress-bar"+ },+ {+ "description": "Denies the set_resizable command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-resizable"+ },+ {+ "description": "Denies the set_shadow command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-shadow"+ },+ {+ "description": "Denies the set_size command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size"+ },+ {+ "description": "Denies the set_size_constraints command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-size-constraints"+ },+ {+ "description": "Denies the set_skip_taskbar command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-skip-taskbar"+ },+ {+ "description": "Denies the set_theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-theme"+ },+ {+ "description": "Denies the set_title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title"+ },+ {+ "description": "Denies the set_title_bar_style command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-title-bar-style"+ },+ {+ "description": "Denies the set_visible_on_all_workspaces command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-set-visible-on-all-workspaces"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-show"+ },+ {+ "description": "Denies the start_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-dragging"+ },+ {+ "description": "Denies the start_resize_dragging command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-start-resize-dragging"+ },+ {+ "description": "Denies the theme command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-theme"+ },+ {+ "description": "Denies the title command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-title"+ },+ {+ "description": "Denies the toggle_maximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-toggle-maximize"+ },+ {+ "description": "Denies the unmaximize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unmaximize"+ },+ {+ "description": "Denies the unminimize command without any pre-configured scope.",+ "type": "string",+ "const": "core:window:deny-unminimize"+ },+ {+ "description": "Allows reading the opened deep link via the get_current command",+ "type": "string",+ "const": "deep-link:default"+ },+ {+ "description": "Enables the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-get-current"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-register"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:allow-unregister"+ },+ {+ "description": "Denies the get_current command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-get-current"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-register"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "deep-link:deny-unregister"+ },+ {+ "description": "This permission set configures the types of dialogs\navailable from the dialog plugin.\n\n#### Granted Permissions\n\nAll dialog types are enabled.\n\n\n",+ "type": "string",+ "const": "dialog:default"+ },+ {+ "description": "Enables the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-ask"+ },+ {+ "description": "Enables the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-confirm"+ },+ {+ "description": "Enables the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-message"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-open"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:allow-save"+ },+ {+ "description": "Denies the ask command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-ask"+ },+ {+ "description": "Denies the confirm command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-confirm"+ },+ {+ "description": "Denies the message command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-message"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-open"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "dialog:deny-save"+ },+ {+ "description": "This set of permissions describes the what kind of\nfile system access the `fs` plugin has enabled or denied by default.\n\n#### Granted Permissions\n\nThis default permission set enables read access to the\napplication specific directories (AppConfig, AppData, AppLocalData, AppCache,\nAppLog) and all files and sub directories created in it.\nThe location of these directories depends on the operating system,\nwhere the application is run.\n\nIn general these directories need to be manually created\nby the application at runtime, before accessing files or folders\nin it is possible.\n\nTherefore, it is also allowed to create all of these folders via\nthe `mkdir` command.\n\n#### Denied Permissions\n\nThis default permission set prevents access to critical components\nof the Tauri application by default.\nOn Windows the webview data folder access is denied.\n\n",+ "type": "string",+ "const": "fs:default"+ },+ {+ "description": "This allows non-recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the application folders, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-app-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-read"+ },+ {+ "description": "This allows full recursive read access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the application folders.",+ "type": "string",+ "const": "fs:allow-app-write"+ },+ {+ "description": "This allows full recursive write access to the complete application folders, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-app-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appcache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:allow-appcache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appcache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPCONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appconfig-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:allow-appconfig-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPCONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appconfig-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-appdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:allow-appdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-appdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applocaldata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-applocaldata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applocaldata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$APPLOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-applog-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:allow-applog-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$APPLOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-applog-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$AUDIO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-audio-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:allow-audio-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$AUDIO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-audio-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CACHE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-cache-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CACHE` folder.",+ "type": "string",+ "const": "fs:allow-cache-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CACHE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-cache-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$CONFIG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-config-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:allow-config-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$CONFIG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-config-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-data-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DATA` folder.",+ "type": "string",+ "const": "fs:allow-data-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-data-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DESKTOP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-desktop-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:allow-desktop-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DESKTOP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-desktop-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOCUMENT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-document-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:allow-document-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOCUMENT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-document-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$DOWNLOAD` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-download-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:allow-download-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$DOWNLOAD` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-download-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$EXE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-exe-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$EXE` folder.",+ "type": "string",+ "const": "fs:allow-exe-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$EXE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-exe-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$FONT` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-font-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$FONT` folder.",+ "type": "string",+ "const": "fs:allow-font-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$FONT` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-font-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$HOME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-home-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$HOME` folder.",+ "type": "string",+ "const": "fs:allow-home-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$HOME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-home-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOCALDATA` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-localdata-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:allow-localdata-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOCALDATA` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-localdata-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$LOG` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-log-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$LOG` folder.",+ "type": "string",+ "const": "fs:allow-log-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$LOG` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-log-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PICTURE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-picture-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:allow-picture-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PICTURE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-picture-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$PUBLIC` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-public-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:allow-public-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$PUBLIC` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-public-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RESOURCE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-resource-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:allow-resource-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RESOURCE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-resource-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$RUNTIME` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-runtime-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:allow-runtime-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$RUNTIME` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-runtime-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMP` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-temp-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMP` folder.",+ "type": "string",+ "const": "fs:allow-temp-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMP` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-temp-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$TEMPLATE` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-template-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:allow-template-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$TEMPLATE` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-template-write-recursive"+ },+ {+ "description": "This allows non-recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta"+ },+ {+ "description": "This allows full recursive read access to metadata of the `$VIDEO` folder, including file listing and statistics.",+ "type": "string",+ "const": "fs:allow-video-meta-recursive"+ },+ {+ "description": "This allows non-recursive read access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-read"+ },+ {+ "description": "This allows full recursive read access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-read-recursive"+ },+ {+ "description": "This allows non-recursive write access to the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:allow-video-write"+ },+ {+ "description": "This allows full recursive write access to the complete `$VIDEO` folder, files and subdirectories.",+ "type": "string",+ "const": "fs:allow-video-write-recursive"+ },+ {+ "description": "This denies access to dangerous Tauri relevant files and folders by default.",+ "type": "string",+ "const": "fs:deny-default"+ },+ {+ "description": "Enables the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-copy-file"+ },+ {+ "description": "Enables the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-create"+ },+ {+ "description": "Enables the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-exists"+ },+ {+ "description": "Enables the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-fstat"+ },+ {+ "description": "Enables the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-ftruncate"+ },+ {+ "description": "Enables the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-lstat"+ },+ {+ "description": "Enables the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-mkdir"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-open"+ },+ {+ "description": "Enables the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read"+ },+ {+ "description": "Enables the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-dir"+ },+ {+ "description": "Enables the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-file"+ },+ {+ "description": "Enables the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file"+ },+ {+ "description": "Enables the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines"+ },+ {+ "description": "Enables the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-read-text-file-lines-next"+ },+ {+ "description": "Enables the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-remove"+ },+ {+ "description": "Enables the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-rename"+ },+ {+ "description": "Enables the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-seek"+ },+ {+ "description": "Enables the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-stat"+ },+ {+ "description": "Enables the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-truncate"+ },+ {+ "description": "Enables the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-unwatch"+ },+ {+ "description": "Enables the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-watch"+ },+ {+ "description": "Enables the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write"+ },+ {+ "description": "Enables the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-file"+ },+ {+ "description": "Enables the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:allow-write-text-file"+ },+ {+ "description": "This permissions allows to create the application specific directories.\n",+ "type": "string",+ "const": "fs:create-app-specific-dirs"+ },+ {+ "description": "Denies the copy_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-copy-file"+ },+ {+ "description": "Denies the create command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-create"+ },+ {+ "description": "Denies the exists command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-exists"+ },+ {+ "description": "Denies the fstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-fstat"+ },+ {+ "description": "Denies the ftruncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-ftruncate"+ },+ {+ "description": "Denies the lstat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-lstat"+ },+ {+ "description": "Denies the mkdir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-mkdir"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-open"+ },+ {+ "description": "Denies the read command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read"+ },+ {+ "description": "Denies the read_dir command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-dir"+ },+ {+ "description": "Denies the read_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-file"+ },+ {+ "description": "Denies the read_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file"+ },+ {+ "description": "Denies the read_text_file_lines command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines"+ },+ {+ "description": "Denies the read_text_file_lines_next command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-read-text-file-lines-next"+ },+ {+ "description": "Denies the remove command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-remove"+ },+ {+ "description": "Denies the rename command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-rename"+ },+ {+ "description": "Denies the seek command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-seek"+ },+ {+ "description": "Denies the stat command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-stat"+ },+ {+ "description": "Denies the truncate command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-truncate"+ },+ {+ "description": "Denies the unwatch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-unwatch"+ },+ {+ "description": "Denies the watch command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-watch"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA` folder on linux as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-linux"+ },+ {+ "description": "This denies read access to the\n`$APPLOCALDATA/EBWebView` folder on windows as the webview data and configuration values are stored here.\nAllowing access can lead to sensitive information disclosure and should be well considered.",+ "type": "string",+ "const": "fs:deny-webview-data-windows"+ },+ {+ "description": "Denies the write command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write"+ },+ {+ "description": "Denies the write_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-file"+ },+ {+ "description": "Denies the write_text_file command without any pre-configured scope.",+ "type": "string",+ "const": "fs:deny-write-text-file"+ },+ {+ "description": "This enables all read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-all"+ },+ {+ "description": "This permission allows recursive read functionality on the application\nspecific base directories. \n",+ "type": "string",+ "const": "fs:read-app-specific-dirs-recursive"+ },+ {+ "description": "This enables directory read and file metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-dirs"+ },+ {+ "description": "This enables file read related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-files"+ },+ {+ "description": "This enables all index or metadata related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:read-meta"+ },+ {+ "description": "An empty permission you can use to modify the global scope.",+ "type": "string",+ "const": "fs:scope"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the application folders.",+ "type": "string",+ "const": "fs:scope-app"+ },+ {+ "description": "This scope permits to list all files and folders in the application directories.",+ "type": "string",+ "const": "fs:scope-app-index"+ },+ {+ "description": "This scope permits recursive access to the complete application folders, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-app-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCACHE` folder.",+ "type": "string",+ "const": "fs:scope-appcache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCACHE`folder.",+ "type": "string",+ "const": "fs:scope-appcache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appcache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPCONFIG` folder.",+ "type": "string",+ "const": "fs:scope-appconfig"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPCONFIG`folder.",+ "type": "string",+ "const": "fs:scope-appconfig-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPCONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appconfig-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPDATA` folder.",+ "type": "string",+ "const": "fs:scope-appdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPDATA`folder.",+ "type": "string",+ "const": "fs:scope-appdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-appdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-applocaldata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-applocaldata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applocaldata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$APPLOG` folder.",+ "type": "string",+ "const": "fs:scope-applog"+ },+ {+ "description": "This scope permits to list all files and folders in the `$APPLOG`folder.",+ "type": "string",+ "const": "fs:scope-applog-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$APPLOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-applog-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$AUDIO` folder.",+ "type": "string",+ "const": "fs:scope-audio"+ },+ {+ "description": "This scope permits to list all files and folders in the `$AUDIO`folder.",+ "type": "string",+ "const": "fs:scope-audio-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$AUDIO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-audio-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CACHE` folder.",+ "type": "string",+ "const": "fs:scope-cache"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CACHE`folder.",+ "type": "string",+ "const": "fs:scope-cache-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CACHE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-cache-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$CONFIG` folder.",+ "type": "string",+ "const": "fs:scope-config"+ },+ {+ "description": "This scope permits to list all files and folders in the `$CONFIG`folder.",+ "type": "string",+ "const": "fs:scope-config-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$CONFIG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-config-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DATA` folder.",+ "type": "string",+ "const": "fs:scope-data"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DATA`folder.",+ "type": "string",+ "const": "fs:scope-data-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-data-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DESKTOP` folder.",+ "type": "string",+ "const": "fs:scope-desktop"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DESKTOP`folder.",+ "type": "string",+ "const": "fs:scope-desktop-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DESKTOP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-desktop-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOCUMENT` folder.",+ "type": "string",+ "const": "fs:scope-document"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOCUMENT`folder.",+ "type": "string",+ "const": "fs:scope-document-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOCUMENT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-document-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$DOWNLOAD` folder.",+ "type": "string",+ "const": "fs:scope-download"+ },+ {+ "description": "This scope permits to list all files and folders in the `$DOWNLOAD`folder.",+ "type": "string",+ "const": "fs:scope-download-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$DOWNLOAD` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-download-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$EXE` folder.",+ "type": "string",+ "const": "fs:scope-exe"+ },+ {+ "description": "This scope permits to list all files and folders in the `$EXE`folder.",+ "type": "string",+ "const": "fs:scope-exe-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$EXE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-exe-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$FONT` folder.",+ "type": "string",+ "const": "fs:scope-font"+ },+ {+ "description": "This scope permits to list all files and folders in the `$FONT`folder.",+ "type": "string",+ "const": "fs:scope-font-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$FONT` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-font-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$HOME` folder.",+ "type": "string",+ "const": "fs:scope-home"+ },+ {+ "description": "This scope permits to list all files and folders in the `$HOME`folder.",+ "type": "string",+ "const": "fs:scope-home-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$HOME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-home-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOCALDATA` folder.",+ "type": "string",+ "const": "fs:scope-localdata"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOCALDATA`folder.",+ "type": "string",+ "const": "fs:scope-localdata-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOCALDATA` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-localdata-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$LOG` folder.",+ "type": "string",+ "const": "fs:scope-log"+ },+ {+ "description": "This scope permits to list all files and folders in the `$LOG`folder.",+ "type": "string",+ "const": "fs:scope-log-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$LOG` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-log-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PICTURE` folder.",+ "type": "string",+ "const": "fs:scope-picture"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PICTURE`folder.",+ "type": "string",+ "const": "fs:scope-picture-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PICTURE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-picture-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$PUBLIC` folder.",+ "type": "string",+ "const": "fs:scope-public"+ },+ {+ "description": "This scope permits to list all files and folders in the `$PUBLIC`folder.",+ "type": "string",+ "const": "fs:scope-public-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$PUBLIC` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-public-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RESOURCE` folder.",+ "type": "string",+ "const": "fs:scope-resource"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RESOURCE`folder.",+ "type": "string",+ "const": "fs:scope-resource-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RESOURCE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-resource-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$RUNTIME` folder.",+ "type": "string",+ "const": "fs:scope-runtime"+ },+ {+ "description": "This scope permits to list all files and folders in the `$RUNTIME`folder.",+ "type": "string",+ "const": "fs:scope-runtime-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$RUNTIME` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-runtime-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMP` folder.",+ "type": "string",+ "const": "fs:scope-temp"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMP`folder.",+ "type": "string",+ "const": "fs:scope-temp-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMP` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-temp-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$TEMPLATE` folder.",+ "type": "string",+ "const": "fs:scope-template"+ },+ {+ "description": "This scope permits to list all files and folders in the `$TEMPLATE`folder.",+ "type": "string",+ "const": "fs:scope-template-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$TEMPLATE` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-template-recursive"+ },+ {+ "description": "This scope permits access to all files and list content of top level directories in the `$VIDEO` folder.",+ "type": "string",+ "const": "fs:scope-video"+ },+ {+ "description": "This scope permits to list all files and folders in the `$VIDEO`folder.",+ "type": "string",+ "const": "fs:scope-video-index"+ },+ {+ "description": "This scope permits recursive access to the complete `$VIDEO` folder, including sub directories and files.",+ "type": "string",+ "const": "fs:scope-video-recursive"+ },+ {+ "description": "This enables all write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-all"+ },+ {+ "description": "This enables all file write related commands without any pre-configured accessible paths.",+ "type": "string",+ "const": "fs:write-files"+ },+ {+ "description": "No features are enabled by default, as we believe\nthe shortcuts can be inherently dangerous and it is\napplication specific if specific shortcuts should be\nregistered or unregistered.\n",+ "type": "string",+ "const": "global-shortcut:default"+ },+ {+ "description": "Enables the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-is-registered"+ },+ {+ "description": "Enables the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register"+ },+ {+ "description": "Enables the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-register-all"+ },+ {+ "description": "Enables the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister"+ },+ {+ "description": "Enables the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:allow-unregister-all"+ },+ {+ "description": "Denies the is_registered command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-is-registered"+ },+ {+ "description": "Denies the register command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register"+ },+ {+ "description": "Denies the register_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-register-all"+ },+ {+ "description": "Denies the unregister command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister"+ },+ {+ "description": "Denies the unregister_all command without any pre-configured scope.",+ "type": "string",+ "const": "global-shortcut:deny-unregister-all"+ },+ {+ "description": "This permission set configures what kind of\nfetch operations are available from the http plugin.\n\nThis enables all fetch operations but does not\nallow explicitly any origins to be fetched. This needs to\nbe manually configured before usage.\n\n#### Granted Permissions\n\nAll fetch operations are enabled.\n\n",+ "type": "string",+ "const": "http:default"+ },+ {+ "description": "Enables the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch"+ },+ {+ "description": "Enables the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-cancel"+ },+ {+ "description": "Enables the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-read-body"+ },+ {+ "description": "Enables the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:allow-fetch-send"+ },+ {+ "description": "Denies the fetch command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch"+ },+ {+ "description": "Denies the fetch_cancel command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-cancel"+ },+ {+ "description": "Denies the fetch_read_body command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-read-body"+ },+ {+ "description": "Denies the fetch_send command without any pre-configured scope.",+ "type": "string",+ "const": "http:deny-fetch-send"+ },+ {+ "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n",+ "type": "string",+ "const": "notification:default"+ },+ {+ "description": "Enables the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-batch"+ },+ {+ "description": "Enables the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-cancel"+ },+ {+ "description": "Enables the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-check-permissions"+ },+ {+ "description": "Enables the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-create-channel"+ },+ {+ "description": "Enables the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-delete-channel"+ },+ {+ "description": "Enables the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-active"+ },+ {+ "description": "Enables the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-get-pending"+ },+ {+ "description": "Enables the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-is-permission-granted"+ },+ {+ "description": "Enables the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-list-channels"+ },+ {+ "description": "Enables the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-notify"+ },+ {+ "description": "Enables the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-permission-state"+ },+ {+ "description": "Enables the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-action-types"+ },+ {+ "description": "Enables the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-register-listener"+ },+ {+ "description": "Enables the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-remove-active"+ },+ {+ "description": "Enables the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-request-permission"+ },+ {+ "description": "Enables the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:allow-show"+ },+ {+ "description": "Denies the batch command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-batch"+ },+ {+ "description": "Denies the cancel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-cancel"+ },+ {+ "description": "Denies the check_permissions command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-check-permissions"+ },+ {+ "description": "Denies the create_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-create-channel"+ },+ {+ "description": "Denies the delete_channel command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-delete-channel"+ },+ {+ "description": "Denies the get_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-active"+ },+ {+ "description": "Denies the get_pending command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-get-pending"+ },+ {+ "description": "Denies the is_permission_granted command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-is-permission-granted"+ },+ {+ "description": "Denies the list_channels command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-list-channels"+ },+ {+ "description": "Denies the notify command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-notify"+ },+ {+ "description": "Denies the permission_state command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-permission-state"+ },+ {+ "description": "Denies the register_action_types command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-action-types"+ },+ {+ "description": "Denies the register_listener command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-register-listener"+ },+ {+ "description": "Denies the remove_active command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-remove-active"+ },+ {+ "description": "Denies the request_permission command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-request-permission"+ },+ {+ "description": "Denies the show command without any pre-configured scope.",+ "type": "string",+ "const": "notification:deny-show"+ },+ {+ "description": "This permission set allows opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application\nas well as reveal file in directories using default file explorer",+ "type": "string",+ "const": "opener:default"+ },+ {+ "description": "This enables opening `mailto:`, `tel:`, `https://` and `http://` urls using their default application.",+ "type": "string",+ "const": "opener:allow-default-urls"+ },+ {+ "description": "Enables the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-path"+ },+ {+ "description": "Enables the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-open-url"+ },+ {+ "description": "Enables the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:allow-reveal-item-in-dir"+ },+ {+ "description": "Denies the open_path command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-path"+ },+ {+ "description": "Denies the open_url command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-open-url"+ },+ {+ "description": "Denies the reveal_item_in_dir command without any pre-configured scope.",+ "type": "string",+ "const": "opener:deny-reveal-item-in-dir"+ },+ {+ "description": "This permission set configures which\noperating system information are available\nto gather from the frontend.\n\n#### Granted Permissions\n\nAll information except the host name are available.\n\n",+ "type": "string",+ "const": "os:default"+ },+ {+ "description": "Enables the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-arch"+ },+ {+ "description": "Enables the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-exe-extension"+ },+ {+ "description": "Enables the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-family"+ },+ {+ "description": "Enables the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-hostname"+ },+ {+ "description": "Enables the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-locale"+ },+ {+ "description": "Enables the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-os-type"+ },+ {+ "description": "Enables the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-platform"+ },+ {+ "description": "Enables the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:allow-version"+ },+ {+ "description": "Denies the arch command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-arch"+ },+ {+ "description": "Denies the exe_extension command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-exe-extension"+ },+ {+ "description": "Denies the family command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-family"+ },+ {+ "description": "Denies the hostname command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-hostname"+ },+ {+ "description": "Denies the locale command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-locale"+ },+ {+ "description": "Denies the os_type command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-os-type"+ },+ {+ "description": "Denies the platform command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-platform"+ },+ {+ "description": "Denies the version command without any pre-configured scope.",+ "type": "string",+ "const": "os:deny-version"+ },+ {+ "description": "This permission set configures which\nprocess feeatures are by default exposed.\n\n#### Granted Permissions\n\nThis enables to quit via `allow-exit` and restart via `allow-restart`\nthe application.\n",+ "type": "string",+ "const": "process:default"+ },+ {+ "description": "Enables the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-exit"+ },+ {+ "description": "Enables the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:allow-restart"+ },+ {+ "description": "Denies the exit command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-exit"+ },+ {+ "description": "Denies the restart command without any pre-configured scope.",+ "type": "string",+ "const": "process:deny-restart"+ },+ {+ "description": "Allows all required permissions (envelope, breadcrumb)",+ "type": "string",+ "const": "sentry:default"+ },+ {+ "description": "Enables the breadcrumb command.",+ "type": "string",+ "const": "sentry:allow-breadcrumb"+ },+ {+ "description": "Enables the envelope command.",+ "type": "string",+ "const": "sentry:allow-envelope"+ },+ {+ "description": "Enables the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:allow-event"+ },+ {+ "description": "Denies the breadcrumb command.",+ "type": "string",+ "const": "sentry:deny-breadcrumb"+ },+ {+ "description": "Denies the envelope command.",+ "type": "string",+ "const": "sentry:deny-envelope"+ },+ {+ "description": "Denies the event command without any pre-configured scope.",+ "type": "string",+ "const": "sentry:deny-event"+ },+ {+ "description": "This permission set configures which\nshell functionality is exposed by default.\n\n#### Granted Permissions\n\nIt allows to use the `open` functionality without any specific\nscope pre-configured. It will allow opening `http(s)://`,\n`tel:` and `mailto:` links.\n",+ "type": "string",+ "const": "shell:default"+ },+ {+ "description": "Enables the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-execute"+ },+ {+ "description": "Enables the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-kill"+ },+ {+ "description": "Enables the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-open"+ },+ {+ "description": "Enables the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-spawn"+ },+ {+ "description": "Enables the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:allow-stdin-write"+ },+ {+ "description": "Denies the execute command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-execute"+ },+ {+ "description": "Denies the kill command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-kill"+ },+ {+ "description": "Denies the open command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-open"+ },+ {+ "description": "Denies the spawn command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-spawn"+ },+ {+ "description": "Denies the stdin_write command without any pre-configured scope.",+ "type": "string",+ "const": "shell:deny-stdin-write"+ },+ {+ "description": "This permission set configures what kind of\noperations are available from the store plugin.\n\n#### Granted Permissions\n\nAll operations are enabled by default.\n\n",+ "type": "string",+ "const": "store:default"+ },+ {+ "description": "Enables the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-clear"+ },+ {+ "description": "Enables the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-delete"+ },+ {+ "description": "Enables the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-entries"+ },+ {+ "description": "Enables the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get"+ },+ {+ "description": "Enables the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-get-store"+ },+ {+ "description": "Enables the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-has"+ },+ {+ "description": "Enables the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-keys"+ },+ {+ "description": "Enables the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-length"+ },+ {+ "description": "Enables the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-load"+ },+ {+ "description": "Enables the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reload"+ },+ {+ "description": "Enables the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-reset"+ },+ {+ "description": "Enables the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-save"+ },+ {+ "description": "Enables the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-set"+ },+ {+ "description": "Enables the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:allow-values"+ },+ {+ "description": "Denies the clear command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-clear"+ },+ {+ "description": "Denies the delete command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-delete"+ },+ {+ "description": "Denies the entries command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-entries"+ },+ {+ "description": "Denies the get command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get"+ },+ {+ "description": "Denies the get_store command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-get-store"+ },+ {+ "description": "Denies the has command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-has"+ },+ {+ "description": "Denies the keys command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-keys"+ },+ {+ "description": "Denies the length command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-length"+ },+ {+ "description": "Denies the load command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-load"+ },+ {+ "description": "Denies the reload command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reload"+ },+ {+ "description": "Denies the reset command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-reset"+ },+ {+ "description": "Denies the save command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-save"+ },+ {+ "description": "Denies the set command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-set"+ },+ {+ "description": "Denies the values command without any pre-configured scope.",+ "type": "string",+ "const": "store:deny-values"+ },+ {+ "description": "This permission set configures which kind of\nupdater functions are exposed to the frontend.\n\n#### Granted Permissions\n\nThe full workflow from checking for updates to installing them\nis enabled.\n\n",+ "type": "string",+ "const": "updater:default"+ },+ {+ "description": "Enables the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-check"+ },+ {+ "description": "Enables the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download"+ },+ {+ "description": "Enables the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-download-and-install"+ },+ {+ "description": "Enables the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:allow-install"+ },+ {+ "description": "Denies the check command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-check"+ },+ {+ "description": "Denies the download command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download"+ },+ {+ "description": "Denies the download_and_install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-download-and-install"+ },+ {+ "description": "Denies the install command without any pre-configured scope.",+ "type": "string",+ "const": "updater:deny-install"+ }+ ]+ },+ "Value": {+ "description": "All supported ACL values.",+ "anyOf": [+ {+ "description": "Represents a null JSON value.",+ "type": "null"+ },+ {+ "description": "Represents a [`bool`].",+ "type": "boolean"+ },+ {+ "description": "Represents a valid ACL [`Number`].",+ "allOf": [+ {+ "$ref": "#/definitions/Number"+ }+ ]+ },+ {+ "description": "Represents a [`String`].",+ "type": "string"+ },+ {+ "description": "Represents a list of other [`Value`]s.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/Value"+ }+ },+ {+ "description": "Represents a map of [`String`] keys to [`Value`]s.",+ "type": "object",+ "additionalProperties": {+ "$ref": "#/definitions/Value"+ }+ }+ ]+ },+ "Number": {+ "description": "A valid ACL number.",+ "anyOf": [+ {+ "description": "Represents an [`i64`].",+ "type": "integer",+ "format": "int64"+ },+ {+ "description": "Represents a [`f64`].",+ "type": "number",+ "format": "double"+ }+ ]+ },+ "Target": {+ "description": "Platform target.",+ "oneOf": [+ {+ "description": "MacOS.",+ "type": "string",+ "enum": [+ "macOS"+ ]+ },+ {+ "description": "Windows.",+ "type": "string",+ "enum": [+ "windows"+ ]+ },+ {+ "description": "Linux.",+ "type": "string",+ "enum": [+ "linux"+ ]+ },+ {+ "description": "Android.",+ "type": "string",+ "enum": [+ "android"+ ]+ },+ {+ "description": "iOS.",+ "type": "string",+ "enum": [+ "iOS"+ ]+ }+ ]+ },+ "Application": {+ "description": "Opener scope application.",+ "anyOf": [+ {+ "description": "Open in default application.",+ "type": "null"+ },+ {+ "description": "If true, allow open with any application.",+ "type": "boolean"+ },+ {+ "description": "Allow specific application to open with.",+ "type": "string"+ }+ ]+ },+ "ShellScopeEntryAllowedArg": {+ "description": "A command argument allowed to be executed by the webview API.",+ "anyOf": [+ {+ "description": "A non-configurable argument that is passed to the command in the order it was specified.",+ "type": "string"+ },+ {+ "description": "A variable that is set while calling the command from the webview API.",+ "type": "object",+ "required": [+ "validator"+ ],+ "properties": {+ "raw": {+ "description": "Marks the validator as a raw regex, meaning the plugin should not make any modification at runtime.\n\nThis means the regex will not match on the entire string by default, which might be exploited if your regex allow unexpected input to be considered valid. When using this option, make sure your regex is correct.",+ "default": false,+ "type": "boolean"+ },+ "validator": {+ "description": "[regex] validator to require passed values to conform to an expected input.\n\nThis will require the argument value passed to this variable to match the `validator` regex before it will be executed.\n\nThe regex string is by default surrounded by `^...$` to match the full string. For example the `https?://\\w+` regex would be registered as `^https?://\\w+$`.\n\n[regex]: <https://docs.rs/regex/latest/regex/#syntax>",+ "type": "string"+ }+ },+ "additionalProperties": false+ }+ ]+ },+ "ShellScopeEntryAllowedArgs": {+ "description": "A set of command arguments allowed to be executed by the webview API.\n\nA value of `true` will allow any arguments to be passed to the command. `false` will disable all arguments. A list of [`ShellScopeEntryAllowedArg`] will set those arguments as the only valid arguments to be passed to the attached command configuration.",+ "anyOf": [+ {+ "description": "Use a simple boolean to allow all or disable all arguments to this command configuration.",+ "type": "boolean"+ },+ {+ "description": "A specific set of [`ShellScopeEntryAllowedArg`] that are valid to call for the command configuration.",+ "type": "array",+ "items": {+ "$ref": "#/definitions/ShellScopeEntryAllowedArg"+ }+ }+ ]+ }+ }+}\ No newline at end of filediff --git a/openrewind/src-tauri/icons/1024x1024.png b/openrewind/src-tauri/icons/1024x1024.pngnew file mode 100644index 000000000..d6ab8103cBinary files /dev/null and b/openrewind/src-tauri/icons/1024x1024.png differdiff --git a/openrewind/src-tauri/icons/128x128.png b/openrewind/src-tauri/icons/128x128.pngnew file mode 100644index 000000000..0f7f8c12cBinary files /dev/null and b/openrewind/src-tauri/icons/128x128.png differdiff --git a/openrewind/src-tauri/icons/[email protected] b/openrewind/src-tauri/icons/[email protected]new file mode 100644index 000000000..d9eb44220Binary files /dev/null and b/openrewind/src-tauri/icons/[email protected] differdiff --git a/openrewind/src-tauri/icons/256x256.png b/openrewind/src-tauri/icons/256x256.pngnew file mode 100644index 000000000..c667e4d8bBinary files /dev/null and b/openrewind/src-tauri/icons/256x256.png differdiff --git a/openrewind/src-tauri/icons/32x32.png b/openrewind/src-tauri/icons/32x32.pngnew file mode 100644index 000000000..0efd554afBinary files /dev/null and b/openrewind/src-tauri/icons/32x32.png differdiff --git a/openrewind/src-tauri/icons/512x512.png b/openrewind/src-tauri/icons/512x512.pngnew file mode 100644index 000000000..7a4c518beBinary files /dev/null and b/openrewind/src-tauri/icons/512x512.png differdiff --git a/openrewind/src-tauri/icons/Square107x107Logo.png b/openrewind/src-tauri/icons/Square107x107Logo.pngnew file mode 100644index 000000000..059e85f0aBinary files /dev/null and b/openrewind/src-tauri/icons/Square107x107Logo.png differdiff --git a/openrewind/src-tauri/icons/Square142x142Logo.png b/openrewind/src-tauri/icons/Square142x142Logo.pngnew file mode 100644index 000000000..b49094364Binary files /dev/null and b/openrewind/src-tauri/icons/Square142x142Logo.png differdiff --git a/openrewind/src-tauri/icons/Square150x150Logo.png b/openrewind/src-tauri/icons/Square150x150Logo.pngnew file mode 100644index 000000000..76a4b46d0Binary files /dev/null and b/openrewind/src-tauri/icons/Square150x150Logo.png differdiff --git a/openrewind/src-tauri/icons/Square284x284Logo.png b/openrewind/src-tauri/icons/Square284x284Logo.pngnew file mode 100644index 000000000..7c85aa437Binary files /dev/null and b/openrewind/src-tauri/icons/Square284x284Logo.png differdiff --git a/openrewind/src-tauri/icons/Square30x30Logo.png b/openrewind/src-tauri/icons/Square30x30Logo.pngnew file mode 100644index 000000000..2f494e3ccBinary files /dev/null and b/openrewind/src-tauri/icons/Square30x30Logo.png differdiff --git a/openrewind/src-tauri/icons/Square310x310Logo.png b/openrewind/src-tauri/icons/Square310x310Logo.pngnew file mode 100644index 000000000..521a92d0aBinary files /dev/null and b/openrewind/src-tauri/icons/Square310x310Logo.png differdiff --git a/openrewind/src-tauri/icons/Square44x44Logo.png b/openrewind/src-tauri/icons/Square44x44Logo.pngnew file mode 100644index 000000000..b6f294c99Binary files /dev/null and b/openrewind/src-tauri/icons/Square44x44Logo.png differdiff --git a/openrewind/src-tauri/icons/Square71x71Logo.png b/openrewind/src-tauri/icons/Square71x71Logo.pngnew file mode 100644index 000000000..40ad5eaa7Binary files /dev/null and b/openrewind/src-tauri/icons/Square71x71Logo.png differdiff --git a/openrewind/src-tauri/icons/Square89x89Logo.png b/openrewind/src-tauri/icons/Square89x89Logo.pngnew file mode 100644index 000000000..b6a36cc8aBinary files /dev/null and b/openrewind/src-tauri/icons/Square89x89Logo.png differdiff --git a/openrewind/src-tauri/icons/StoreLogo.png b/openrewind/src-tauri/icons/StoreLogo.pngnew file mode 100644index 000000000..46ac23565Binary files /dev/null and b/openrewind/src-tauri/icons/StoreLogo.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher.pngnew file mode 100644index 000000000..5a4b8c5deBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.pngnew file mode 100644index 000000000..e7334d229Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.pngnew file mode 100644index 000000000..5a4b8c5deBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher.pngnew file mode 100644index 000000000..f53f3dc05Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.pngnew file mode 100644index 000000000..6438290d1Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.pngnew file mode 100644index 000000000..f53f3dc05Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.pngnew file mode 100644index 000000000..b5e5a1da2Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.pngnew file mode 100644index 000000000..9c52e72e0Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.pngnew file mode 100644index 000000000..b5e5a1da2Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.pngnew file mode 100644index 000000000..a74b7b20eBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.pngnew file mode 100644index 000000000..d94748981Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.pngnew file mode 100644index 000000000..a74b7b20eBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.pngnew file mode 100644index 000000000..b009c32cfBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.pngnew file mode 100644index 000000000..13760d990Binary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png differdiff --git a/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.pngnew file mode 100644index 000000000..b009c32cfBinary files /dev/null and b/openrewind/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png differdiff --git a/openrewind/src-tauri/icons/icon.icns b/openrewind/src-tauri/icons/icon.icnsnew file mode 100644index 000000000..87dc94546Binary files /dev/null and b/openrewind/src-tauri/icons/icon.icns differdiff --git a/openrewind/src-tauri/icons/icon.ico b/openrewind/src-tauri/icons/icon.iconew file mode 100644index 000000000..5be4ba27aBinary files /dev/null and b/openrewind/src-tauri/icons/icon.ico differdiff --git a/openrewind/src-tauri/icons/icon.png b/openrewind/src-tauri/icons/icon.pngnew file mode 100644index 000000000..7078f175cBinary files /dev/null and b/openrewind/src-tauri/icons/icon.png differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..7c60eba8dBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..d7a51851bBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..d7a51851bBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..3e2c07b51Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..545ff04e7Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..9791ad515Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..9791ad515Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..c06e9d083Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..d7a51851bBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..cd8a904fdBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..cd8a904fdBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..e259211efBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..372da21fbBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..e259211efBinary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..305e7e2e3Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..bc5ee3364Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..4fc959478Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/ios/[email protected] b/openrewind/src-tauri/icons/ios/[email protected]new file mode 100644index 000000000..ea8c15d63Binary files /dev/null and b/openrewind/src-tauri/icons/ios/[email protected] differdiff --git a/openrewind/src-tauri/icons/screenpipe-logo-tray-black.png b/openrewind/src-tauri/icons/screenpipe-logo-tray-black.pngnew file mode 100644index 000000000..7f492169bBinary files /dev/null and b/openrewind/src-tauri/icons/screenpipe-logo-tray-black.png differdiff --git a/openrewind/src-tauri/icons/screenpipe-logo-tray-failed.png b/openrewind/src-tauri/icons/screenpipe-logo-tray-failed.pngnew file mode 100644index 000000000..6c18ae091Binary files /dev/null and b/openrewind/src-tauri/icons/screenpipe-logo-tray-failed.png differdiff --git a/openrewind/src-tauri/src/analytics.rs b/openrewind/src-tauri/src/analytics.rsnew file mode 100755index 000000000..b984281ca--- /dev/null+++ b/openrewind/src-tauri/src/analytics.rs@@ -0,0 +1,260 @@+use log::{error, warn};+use reqwest::Client;+use serde_derive::Deserialize;+use serde_json::json;+use std::path::PathBuf;+use std::sync::Arc;+use std::time::Duration;+use sysinfo::{System, SystemExt};+use tokio::sync::Mutex;+use tokio::time::interval;++pub struct AnalyticsManager {+ client: Client,+ posthog_api_key: String,+ distinct_id: String,+ email: String,+ interval: Duration,+ enabled: Arc<Mutex<bool>>,+ api_host: String,+ local_api_base_url: String,+ screenpipe_dir_path: PathBuf,+}++impl AnalyticsManager {+ pub fn new(+ posthog_api_key: String,+ distinct_id: String,+ email: String,+ interval_hours: u64,+ local_api_base_url: String,+ screenpipe_dir_path: PathBuf,+ analytics_enabled: bool,+ ) -> Self {+ Self {+ client: Client::new(),+ posthog_api_key,+ distinct_id,+ email,+ interval: Duration::from_secs(interval_hours * 36),+ enabled: Arc::new(Mutex::new(analytics_enabled)),+ api_host: "https://eu.i.posthog.com".to_string(),+ local_api_base_url,+ screenpipe_dir_path,+ }+ }++ pub async fn send_event(+ &self,+ event: &str,+ properties: Option<serde_json::Value>,+ ) -> Result<(), Box<dyn std::error::Error>> {+ if !*self.enabled.lock().await {+ return Ok(());+ }++ let posthog_url = format!("{}/capture/", self.api_host);+ let system = System::new_all();++ let mut payload = json!({+ "api_key": self.posthog_api_key,+ "event": event,+ "properties": {+ "distinct_id": self.distinct_id,+ "$lib": "rust-reqwest",+ "$email": self.email,+ "os_name": system.name().unwrap_or_default(),+ "os_version": system.os_version().unwrap_or_default(),+ "kernel_version": system.kernel_version().unwrap_or_default(),+ "host_name": system.host_name().unwrap_or_default(),+ "cpu_count": system.cpus().len(),+ "total_memory": system.total_memory(),+ },+ });++ // Add disk usage information+ let disk_usage_result = crate::disk_usage::disk_usage(&self.screenpipe_dir_path).await;++ if let Ok(Some(disk_usage)) = disk_usage_result {+ if let Some(payload_props) = payload["properties"].as_object_mut() {+ let disk_data = json!({+ "disk_total_data_size": disk_usage.total_data_size,+ "disk_total_cache_size": disk_usage.total_cache_size,+ "disk_available_space": disk_usage.avaiable_space,+ "disk_media_videos_size": disk_usage.media.videos_size,+ "disk_media_audios_size": disk_usage.media.audios_size,+ "disk_total_pipes_size": disk_usage.pipes.total_pipes_size,+ });+ payload_props.extend(disk_data.as_object().unwrap().clone());+ }+ } else {+ warn!("failed to get disk usage: {:?}", disk_usage_result);+ }++ if let Some(props) = properties {+ if let Some(payload_props) = payload["properties"].as_object_mut() {+ payload_props.extend(props.as_object().unwrap_or(&serde_json::Map::new()).clone());+ }+ }+++ let response = self.client.post(posthog_url).json(&payload).send().await?;++ if !response.status().is_success() {+ return Err(format!("PostHog API error: {}", response.status()).into());+ }++ Ok(())+ }++ pub async fn start_periodic_event(&self) {+ let mut interval = interval(self.interval);++ loop {+ interval.tick().await;+ if *self.enabled.lock().await {+ // Get health status+ let health_status = match self.check_recording_health().await {+ Ok(status) => status,+ Err(e) => {+ error!("failed to check recording health: {}", e);+ json!({+ "is_healthy": false,+ "frame_status": "error",+ "audio_status": "error",+ "ui_status": "error",+ "error": e.to_string()+ })+ }+ };++ // Send periodic event with health data+ if let Err(e) = self+ .send_event("app_still_running", Some(health_status))+ .await+ {+ error!("failed to send periodic posthog event: {}", e);+ }++ // Track enabled pipes+ if let Err(e) = self.track_enabled_pipes().await {+ warn!("failed to track enabled pipes: {}, is screenpipe up?", e);+ }+ }+ }+ }++ async fn check_recording_health(+ &self,+ ) -> Result<serde_json::Value, Box<dyn std::error::Error>> {+ let health_url = format!("{}/health", self.local_api_base_url);+ let response = self.client.get(&health_url).send().await?;++ if !response.status().is_success() {+ return Ok(json!({+ "is_healthy": false,+ "frame_status": "error",+ "audio_status": "error",+ "ui_status": "error",+ "error": format!("Health check failed with status: {}", response.status())+ }));+ }++ let health: serde_json::Value = response.json().await?;++ // Extract relevant status fields+ let frame_status = health["frame_status"].as_str().unwrap_or("unknown");+ let audio_status = health["audio_status"].as_str().unwrap_or("unknown");+ let ui_status = health["ui_status"].as_str().unwrap_or("unknown");++ // Consider healthy if all enabled systems are "ok"+ let is_healthy = (frame_status == "ok" || frame_status == "disabled")+ && (audio_status == "ok" || audio_status == "disabled")+ && (ui_status == "ok" || ui_status == "disabled");++ Ok(json!({+ "is_healthy": is_healthy,+ "frame_status": frame_status,+ "audio_status": audio_status,+ "ui_status": ui_status+ }))+ }++ async fn track_enabled_pipes(&self) -> Result<(), Box<dyn std::error::Error>> {+ let pipes_url = format!("{}/pipes/list", self.local_api_base_url);+ let response: PipeListResponse = self.client.get(&pipes_url).send().await?.json().await?;++ let enabled_pipes: Vec<String> = response+ .data+ .into_iter()+ .filter(|pipe| pipe.enabled)+ .map(|pipe| pipe.id)+ .collect();++ let properties = json!({+ "enabled_pipes": enabled_pipes,+ "enabled_pipe_count": enabled_pipes.len(),+ });++ self.send_event("enabled_pipes_hourly", Some(properties))+ .await+ }+}++pub fn start_analytics(+ unique_id: String,+ email: String,+ posthog_api_key: String,+ interval_hours: u64,+ local_api_base_url: String,+ screenpipe_dir_path: PathBuf,+ analytics_enabled: bool,+) -> Result<Arc<AnalyticsManager>, Box<dyn std::error::Error>> {+ let is_debug = std::env::var("TAURI_ENV_DEBUG").unwrap_or("false".to_string()) == "true";++ // Skip analytics in debug mode or when debug assertions are enabled+ let should_enable_analytics = analytics_enabled && !is_debug && !cfg!(debug_assertions);++ let analytics_manager = Arc::new(AnalyticsManager::new(+ posthog_api_key,+ unique_id,+ email,+ interval_hours,+ local_api_base_url,+ screenpipe_dir_path,+ should_enable_analytics,+ ));++ // Send initial event at boot+ tokio::spawn({+ let analytics_manager = analytics_manager.clone();+ async move {+ if let Err(e) = analytics_manager.send_event("app_started", None).await {+ error!("Failed to send initial PostHog event: {}", e);+ }+ }+ });++ // Start periodic events+ tokio::spawn({+ let analytics_manager = analytics_manager.clone();+ async move {+ analytics_manager.start_periodic_event().await;+ }+ });++ Ok(analytics_manager)+}++#[derive(Deserialize)]+struct PipeInfo {+ id: String,+ enabled: bool,+}++#[derive(Deserialize)]+struct PipeListResponse {+ data: Vec<PipeInfo>,+ #[allow(dead_code)]+ success: bool,+}diff --git a/openrewind/src-tauri/src/commands.rs b/openrewind/src-tauri/src/commands.rsnew file mode 100644index 000000000..d8d3eb1ca--- /dev/null+++ b/openrewind/src-tauri/src/commands.rs@@ -0,0 +1,237 @@+use crate::get_data_dir;+use serde::Serialize;+use tauri::Manager;+use tracing::{error, info};++#[tauri::command]+pub fn set_tray_unhealth_icon(app_handle: tauri::AppHandle<tauri::Wry>) {+ if let Some(main_tray) = app_handle.tray_by_id("screenpipe_main") {+ let _ = main_tray.set_icon(Some(+ tauri::image::Image::from_path("icons/screenpipe-logo-tray-failed.png").unwrap(),+ ));+ }+}++#[tauri::command]+pub fn set_tray_health_icon(app_handle: tauri::AppHandle<tauri::Wry>) {+ if let Some(main_tray) = app_handle.tray_by_id("screenpipe_main") {+ let _ = main_tray.set_icon(Some(+ tauri::image::Image::from_path("icons/screenpipe-logo-tray-black.png").unwrap(),+ ));+ }+}++#[tauri::command]+pub fn show_main_window(app_handle: &tauri::AppHandle<tauri::Wry>, overlay: bool) {+ if let Some(window) = app_handle.get_webview_window("main") {+ #[cfg(target_os = "macos")]+ if overlay {+ let _ = app_handle.set_activation_policy(tauri::ActivationPolicy::Accessory);+ }++ let _ = window.set_visible_on_all_workspaces(overlay);+ let _ = window.set_always_on_top(overlay);+ let _ = window.show();++ if !overlay {+ let _ = window.set_focus();+ }++ // event listener for the window close event+ let window_clone = window.clone();+ window.on_window_event(move |event| {+ if let tauri::WindowEvent::CloseRequested { api, .. } = event {+ if window_clone.is_fullscreen().unwrap_or(false) {+ let _ = window_clone.destroy().unwrap();+ } else {+ let _ = window_clone.hide().unwrap();+ api.prevent_close();+ }+ }+ });+ } else {+ let _ = tauri::WebviewWindowBuilder::new(+ app_handle,+ "main",+ tauri::WebviewUrl::App("index.html".into()),+ )+ .title("Screenpipe")+ .build();+ }+}++#[tauri::command]+pub fn hide_main_window(app_handle: &tauri::AppHandle<tauri::Wry>) {+ if let Some(window) = app_handle.get_webview_window("main") {+ let _ = window.close();+ }+}++const DEFAULT_SHORTCUT: &str = "Super+Alt+S";++#[tauri::command(rename_all = "snake_case")]+pub fn update_show_screenpipe_shortcut(+ app_handle: tauri::AppHandle<tauri::Wry>,+ new_shortcut: String,+ enabled: bool,+) -> Result<(), String> {+ use tauri_plugin_global_shortcut::{GlobalShortcutExt, Shortcut};++ // Unregister all existing shortcuts+ if let Err(e) = app_handle.global_shortcut().unregister_all() {+ info!("failed to unregister shortcuts: {}", e);+ // Continue execution to try setting the default shortcut+ }++ // Try to parse the new shortcut, fall back to default if it fails+ let shortcut_str = match new_shortcut.parse::<Shortcut>() {+ Ok(_s) => new_shortcut,+ Err(e) => {+ info!(+ "invalid shortcut '{}': {}, falling back to default",+ new_shortcut, e+ );+ DEFAULT_SHORTCUT.to_string()+ }+ };++ // Parse the shortcut string (will be either new_shortcut or default)+ let show_window_shortcut = match shortcut_str.parse::<Shortcut>() {+ Ok(s) => s,+ Err(e) => {+ return Err(format!("failed to parse shortcut: {}", e));+ }+ };++ if !enabled {+ let _ = app_handle+ .global_shortcut()+ .unregister(show_window_shortcut);++ return Ok(());+ }++ // Register the new shortcut+ if let Err(e) = app_handle.global_shortcut().on_shortcut(+ show_window_shortcut,+ move |app_handle, _event, _shortcut| {+ show_main_window(app_handle, true);+ },+ ) {+ info!("failed to register shortcut: {}", e);++ // Try to register the default shortcut as fallback+ if let Ok(default_shortcut) = DEFAULT_SHORTCUT.parse::<Shortcut>() {+ let _ = app_handle.global_shortcut().on_shortcut(+ default_shortcut,+ move |app_handle, _event, _shortcut| {+ show_main_window(app_handle, true);+ },+ );+ }++ return Err("failed to set shortcut, reverted to default".to_string());+ }++ Ok(())+}++// Add these new structs+#[derive(Debug, Serialize)]+pub struct AuthStatus {+ authenticated: bool,+ message: Option<String>,+}++#[tauri::command]+pub async fn open_pipe_window(+ app_handle: tauri::AppHandle<tauri::Wry>,+ port: u16,+ title: String,+) -> Result<(), String> {+ // Close existing window if it exists+ if let Some(existing_window) = app_handle.get_webview_window(&title) {+ if let Err(e) = existing_window.destroy() {+ error!("failed to destroy existing window: {}", e);+ }+ tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;+ }++ let window = match tauri::WebviewWindowBuilder::new(+ &app_handle,+ &title,+ tauri::WebviewUrl::External(format!("http://localhost:{}", port).parse().unwrap()),+ )+ .title(title)+ .inner_size(1200.0, 850.0)+ .min_inner_size(600.0, 400.0)+ .focused(true)+ .fullscreen(false)+ .build()+ {+ Ok(window) => window,+ Err(e) => {+ error!("failed to create window: {}", e);+ return Err(format!("failed to create window: {}", e));+ }+ };++ // flag to prevent infinite loop+ let is_closing = std::sync::Arc::new(std::sync::Mutex::new(false));+ let is_closing_clone = std::sync::Arc::clone(&is_closing);++ // event listener for the window close event+ let window_clone = window.clone();+ window.on_window_event(move |event| {+ if let tauri::WindowEvent::CloseRequested { api, .. } = event {+ let mut is_closing = is_closing_clone.lock().unwrap();+ if *is_closing {+ return;+ }+ *is_closing = true;+ if window_clone.is_fullscreen().unwrap_or(false) {+ let _ = window_clone.destroy().unwrap();+ } else {+ api.prevent_close();+ let _ = window_clone.close().unwrap();+ }+ }+ });++ // Only try to manipulate window if creation succeeded+ if let Err(e) = window.set_focus() {+ error!("failed to set window focus: {}", e);+ }+ if let Err(e) = window.show() {+ error!("failed to show window: {}", e);+ }++ #[cfg(target_os = "macos")]+ if let Err(e) = app_handle.set_activation_policy(tauri::ActivationPolicy::Regular) {+ error!("failed to set activation policy: {}", e);+ }++ Ok(())+}++#[tauri::command]+pub async fn get_disk_usage(+ app_handle: tauri::AppHandle<tauri::Wry>,+) -> Result<serde_json::Value, String> {+ let screenpipe_dir_path =+ get_data_dir(&app_handle).unwrap_or_else(|_| dirs::home_dir().unwrap().join(".screenpipe"));+ match crate::disk_usage::disk_usage(&screenpipe_dir_path).await {+ Ok(Some(disk_usage)) => match serde_json::to_value(&disk_usage) {+ Ok(json_value) => Ok(json_value),+ Err(e) => {+ error!("Failed to serialize disk usage: {}", e);+ Err(format!("Failed to serialize disk usage: {}", e))+ }+ },+ Ok(None) => Err("No disk usage data found".to_string()),+ Err(e) => {+ error!("Failed to get disk usage: {}", e);+ Err(format!("Failed to get disk usage: {}", e))+ }+ }+}diff --git a/openrewind/src-tauri/src/config.rs b/openrewind/src-tauri/src/config.rsnew file mode 100644index 000000000..0cf11d075--- /dev/null+++ b/openrewind/src-tauri/src/config.rs@@ -0,0 +1,14 @@+use std::{fs, path::PathBuf};+use tauri::Manager;++pub fn get_base_dir(+ app: &tauri::AppHandle,+ custom_path: Option<String>,+) -> anyhow::Result<PathBuf> {+ let default_path = app.path().local_data_dir().unwrap().join("openrewind");++ let local_data_dir = custom_path.map(PathBuf::from).unwrap_or(default_path);++ fs::create_dir_all(local_data_dir.join("data"))?;+ Ok(local_data_dir)+}diff --git a/openrewind/src-tauri/src/disk_usage.rs b/openrewind/src-tauri/src/disk_usage.rsnew file mode 100644index 000000000..f670e0cca--- /dev/null+++ b/openrewind/src-tauri/src/disk_usage.rs@@ -0,0 +1,205 @@+use chrono;+use serde::{Deserialize, Serialize};+use serde_json;+use std::fs;+use std::io;+use std::path::{Path, PathBuf};+use sysinfo::{DiskExt, System, SystemExt};+use tracing::{info, warn};++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct DiskUsage {+ pub pipes: DiskUsedByPipes,+ pub media: DiskUsedByMedia,+ pub total_data_size: String,+ pub total_cache_size: String,+ pub avaiable_space: String,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct DiskUsedByPipes {+ pub pipes: Vec<(String, String)>, // why not pipes' size??+ pub total_pipes_size: String,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct DiskUsedByMedia {+ pub videos_size: String,+ pub audios_size: String,+ pub total_media_size: String,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct CachedDiskUsage {+ pub timestamp: i64,+ pub usage: DiskUsage,+}++pub fn get_cache_dir() -> Result<Option<PathBuf>, String> {+ let proj_dirs = dirs::cache_dir().ok_or_else(|| "failed to get cache dir".to_string())?;+ Ok(Some(proj_dirs.join("screenpipe")))+}++pub fn directory_size(path: &Path) -> io::Result<Option<u64>> {+ if !path.exists() {+ return Ok(None);+ }+ let mut size = 0;+ for entry in fs::read_dir(path)? {+ let entry = entry?;+ let metadata = entry.metadata()?;+ if metadata.is_dir() {+ size += directory_size(&entry.path())?.unwrap_or(0);+ } else {+ size += metadata.len();+ }+ }+ Ok(Some(size))+}++pub fn readable(size: u64) -> String {+ let units = ["KB", "MB", "GB"];+ let mut size = size as f64 / 1024.0;+ let mut unit = 0;+ while size >= 1024.0 && unit < units.len() - 1 {+ size /= 1024.0;+ unit += 1;+ }+ if units[unit] == "GB" {+ format!("{:.2} {}", size, units[unit])+ } else {+ format!("{:.1} {}", size, units[unit])+ }+}++pub async fn disk_usage(screenpipe_dir: &PathBuf) -> Result<Option<DiskUsage>, String> {+ let pipes_dir = screenpipe_dir.join("pipes");+ let data_dir = screenpipe_dir.join("data");++ let cache_dir = match get_cache_dir()? {+ Some(dir) => dir,+ None => return Err("Cache directory not found".to_string()),+ };++ fs::create_dir_all(&cache_dir).map_err(|e| e.to_string())?;+ let cache_file = cache_dir.join("disk_usage.json");++ if let Ok(content) = fs::read_to_string(&cache_file) {+ warn!("disk cache file found: {}", cache_file.to_string_lossy());+ if content.contains("---") {+ info!("possibly some values in disk usgae haven't calculated, recalculating...");+ } else {+ if let Ok(cached) = serde_json::from_str::<CachedDiskUsage>(&content) {+ let now = chrono::Local::now().timestamp();+ let two_days = 2 * 24 * 60 * 60; // 2 days in seconds+ if now - cached.timestamp < two_days {+ return Ok(Some(cached.usage));+ }+ }+ }+ }++ let mut pipes = Vec::new();+ let mut total_video_size: Option<u64> = Some(0);+ let mut total_audio_size: Option<u64> = Some(0);++ if pipes_dir.exists() {+ for entry in fs::read_dir(&pipes_dir).map_err(|e| e.to_string())? {+ let entry = entry.map_err(|e| e.to_string())?;+ let path = entry.path();+ if path.is_dir() {+ let size = directory_size(&path).map_err(|e| e.to_string())?;+ let size_str = match size {+ Some(s) => readable(s),+ None => "---".to_string(),+ };+ pipes.push((+ path.file_name().unwrap().to_string_lossy().to_string(),+ size_str,+ ));+ }+ }+ } else {+ warn!("there are no pipes to calculate sizes");+ }++ let total_data_size = match directory_size(screenpipe_dir).map_err(|e| e.to_string())? {+ Some(size) => readable(size),+ None => "---".to_string(),+ };+ let total_media_size = match directory_size(&data_dir).map_err(|e| e.to_string())? {+ Some(size) => readable(size),+ None => "---".to_string(),+ };+ let total_pipes_size = match directory_size(&pipes_dir).map_err(|e| e.to_string())? {+ Some(size) => readable(size),+ None => "---".to_string(),+ };+ let total_cache_size = match directory_size(&cache_dir).map_err(|e| e.to_string())? {+ Some(size) => readable(size),+ None => "---".to_string(),+ };++ if data_dir.exists() {+ for entry in fs::read_dir(&data_dir).map_err(|e| e.to_string())? {+ let entry = entry.map_err(|e| e.to_string())?;+ let path = entry.path();+ if path.is_file() {+ let size = entry.metadata().map_err(|e| e.to_string())?.len();+ let file_name = path.file_name().unwrap().to_string_lossy().to_string();+ if file_name.contains("input") || file_name.contains("output") {+ total_audio_size = total_audio_size.map(|s| s + size);+ } else {+ total_video_size = total_video_size.map(|s| s + size);+ }+ }+ }+ } else {+ warn!("no data dir to calculate disk usage");+ total_audio_size = None;+ total_video_size = None;+ }++ let videos_size_str = total_video_size.map_or("---".to_string(), |s| readable(s));+ let audios_size_str = total_audio_size.map_or("---".to_string(), |s| readable(s));++ let avaiable_space = {+ let mut sys = System::new();+ sys.refresh_disks_list();+ let path_obj = Path::new(&screenpipe_dir);+ sys.disks()+ .iter()+ .find(|disk| path_obj.starts_with(disk.mount_point()))+ .map(|disk| disk.available_space())+ .unwrap_or(0)+ };++ let disk_usage = DiskUsage {+ pipes: DiskUsedByPipes {+ pipes,+ total_pipes_size,+ },+ media: DiskUsedByMedia {+ videos_size: videos_size_str,+ audios_size: audios_size_str,+ total_media_size,+ },+ total_data_size,+ total_cache_size,+ avaiable_space: readable(avaiable_space),+ };++ // Cache the result+ let cached = CachedDiskUsage {+ timestamp: chrono::Local::now().timestamp(),+ usage: disk_usage.clone(),+ };++ info!("writing disk usage cache file: {}", cache_file.to_string_lossy());++ if let Err(e) = fs::write(&cache_file, serde_json::to_string_pretty(&cached).unwrap()) {+ info!("Failed to write cache file: {}", e);+ }++ Ok(Some(disk_usage))+}diff --git a/openrewind/src-tauri/src/health.rs b/openrewind/src-tauri/src/health.rsnew file mode 100644index 000000000..1a7ca1c2f--- /dev/null+++ b/openrewind/src-tauri/src/health.rs@@ -0,0 +1,111 @@+use anyhow::Result;+use dark_light::Mode;+use serde::Deserialize;+use tauri::{path::BaseDirectory, Manager};+use tokio::time::{interval, Duration};++#[derive(Debug, Deserialize)]+#[allow(dead_code)]+struct HealthCheckResponse {+ status: String,+ #[serde(rename = "last_frame_timestamp")]+ last_frame_timestamp: Option<String>,+ #[serde(rename = "last_audio_timestamp")]+ last_audio_timestamp: Option<String>,+ #[serde(rename = "last_ui_timestamp")]+ last_ui_timestamp: Option<String>,+ frame_status: String,+ audio_status: String,+ ui_status: String,+ message: String,+ #[serde(rename = "verbose_instructions")]+ verbose_instructions: Option<String>,+}++/// Starts a background task that periodically checks the health of the sidecar+/// and updates the tray icon accordingly.+pub async fn start_health_check(app: tauri::AppHandle) -> Result<()> {+ let mut interval = interval(Duration::from_secs(1));+ let client = reqwest::Client::new();+ let mut last_status = String::new();+ let mut last_theme = dark_light::detect().unwrap_or(Mode::Dark); // Track the last known theme++ tokio::spawn(async move {+ loop {+ interval.tick().await;++ let theme = dark_light::detect().unwrap_or(Mode::Dark); // Get current theme+ let health_result = check_health(&client).await;+ let current_status = match health_result {+ Ok(health) if health.status == "unhealthy" || health.status == "error" => {+ "unhealthy"+ }+ Ok(_) => "healthy",+ Err(_) => "error",+ };++ // Update icon if either health status OR theme changes+ if current_status != last_status || theme != last_theme {+ last_status = current_status.to_string();+ last_theme = theme;++ if let Some(main_tray) = app.tray_by_id("screenpipe_main") {+ let icon_path = if current_status == "unhealthy" || current_status == "error" {+ if theme == Mode::Light {+ "assets/screenpipe-logo-tray-black-failed.png"+ } else {+ "assets/screenpipe-logo-tray-white-failed.png"+ }+ } else {+ if theme == Mode::Light {+ "assets/screenpipe-logo-tray-black.png"+ } else {+ "assets/screenpipe-logo-tray-white.png"+ }+ };++ let icon_path = app+ .path()+ .resolve(icon_path, BaseDirectory::Resource)+ .expect("failed to resolve icon path");++ let _ = main_tray+ .set_icon(Some(tauri::image::Image::from_path(&icon_path).unwrap()))+ .and_then(|_| main_tray.set_icon_as_template(true));+ }+ }+ }+ });++ Ok(())+}++/// Checks the health of the sidecar by making a request to its health endpoint.+/// Returns an error if the sidecar is not running or not responding.+async fn check_health(client: &reqwest::Client) -> Result<HealthCheckResponse> {+ match client+ .get("http://localhost:3030/health")+ .header("Cache-Control", "no-cache")+ .header("Pragma", "no-cache")+ .timeout(Duration::from_secs(5)) // on windows it never times out+ .send()+ .await+ {+ Ok(response) if response.status().is_success() => response+ .json::<HealthCheckResponse>()+ .await+ .map_err(|e| anyhow::anyhow!("failed to parse sidecar response: {}", e)),+ Ok(response) => {+ anyhow::bail!("health check failed with status: {}", response.status())+ }+ Err(e) if e.is_timeout() => {+ anyhow::bail!("health check timeout, sidecar may not be running")+ }+ Err(e) if e.is_connect() => {+ anyhow::bail!("sidecar connection refused, it may not be running")+ }+ Err(e) => {+ anyhow::bail!("sidecar health check error: {}", e)+ }+ }+}diff --git a/openrewind/src-tauri/src/icons.rs b/openrewind/src-tauri/src/icons.rsnew file mode 100644index 000000000..a8122c541--- /dev/null+++ b/openrewind/src-tauri/src/icons.rs@@ -0,0 +1,352 @@+use serde::{Deserialize, Serialize};++#[derive(Debug, Serialize, Deserialize)]+pub struct AppIcon {+ pub data: Vec<u8>,+ pub path: Option<String>,+}++#[cfg(target_os = "macos")]+pub async fn get_app_icon(+ app_name: &str,+ app_path: Option<String>,+) -> Result<Option<AppIcon>, String> {+ use cocoa::base::{id, nil};+ use cocoa::foundation::{NSAutoreleasePool, NSData, NSString};+ use objc::{class, msg_send, sel, sel_impl};++ unsafe {+ let pool = NSAutoreleasePool::new(nil);++ let result = (|| {+ let workspace: id = msg_send![class!(NSWorkspace), sharedWorkspace];++ let path = if let Some(path) = app_path {+ path+ } else {+ let ns_app_name = NSString::alloc(nil).init_str(app_name);+ let path: id = msg_send![workspace, fullPathForApplication: ns_app_name];+ let _: () = msg_send![ns_app_name, release];++ if path == nil {+ return Ok(None);+ }+ let path: id = msg_send![path, UTF8String];+ std::ffi::CStr::from_ptr(path as *const _)+ .to_string_lossy()+ .into_owned()+ };++ let ns_path = NSString::alloc(nil).init_str(&path);+ let icon: id = msg_send![workspace, iconForFile:ns_path];+ let _: () = msg_send![ns_path, release];++ if icon == nil {+ return Ok(None);+ }++ let tiff_data: id = msg_send![icon, TIFFRepresentation];+ let image_rep: id = msg_send![class!(NSBitmapImageRep), imageRepWithData: tiff_data];+ let jpeg_data: id = msg_send![image_rep, representationUsingType:3 properties:nil]; // Type 3 is JPEG++ let length = NSData::length(jpeg_data);+ let bytes = NSData::bytes(jpeg_data);+ let data = std::slice::from_raw_parts(bytes as *const u8, length as usize).to_vec();++ Ok(Some(AppIcon {+ data,+ path: Some(path),+ }))+ })();++ let _: () = msg_send![pool, drain];++ result+ }+}++#[cfg(target_os = "windows")]+use lazy_static::lazy_static;+#[cfg(target_os = "windows")]+use std::sync::Arc;+#[cfg(target_os = "windows")]+use tokio::sync::Semaphore;++#[cfg(target_os = "windows")]+lazy_static! {+ static ref SEMAPHORE: Arc<Semaphore> = Arc::new(Semaphore::new(5));+}++#[cfg(target_os = "windows")]+pub async fn get_app_icon(+ app_name: &str,+ app_path: Option<String>,+) -> Result<Option<AppIcon>, String> {+ use image::codecs::png::PngEncoder;+ use image::{ExtendedColorType, ImageEncoder};+ use std::io::Cursor;+ use windows_icons::get_icon_by_path;++ async fn find_exe_path(app_name: &str) -> Option<String> {+ if let Some(path) = get_exe_by_reg_key(app_name) {+ return Some(path);+ }+ if let Some(path) = get_exe_by_appx(app_name).await {+ return Some(path);+ }+ if let Some(path) = get_exe_from_potential_path(app_name).await {+ return Some(path);+ }+ None+ }++ let path = match app_path {+ Some(p) => p,+ None => find_exe_path(app_name)+ .await+ .ok_or_else(|| "app_path is None and could not find executable path".to_string())?,+ };++ let image_buffer = async { get_icon_by_path(&path) }+ .await+ .map_err(|e| e.to_string())?;++ let mut data = Vec::new();+ {+ let mut cursor = Cursor::new(&mut data);+ let encoder = PngEncoder::new(&mut cursor);+ encoder+ .write_image(+ &image_buffer,+ image_buffer.width(),+ image_buffer.height(),+ ExtendedColorType::Rgba8,+ )+ .map_err(|e| e.to_string())?;+ }+ Ok(Some(AppIcon {+ data,+ path: Some(path),+ }))+}++#[cfg(target_os = "windows")]+fn get_exe_by_reg_key(app_name: &str) -> Option<String> {+ use winreg::enums::*;+ use winreg::RegKey;++ let hklm = RegKey::predef(HKEY_LOCAL_MACHINE);+ let hkcu = RegKey::predef(HKEY_CURRENT_USER);+ let reg_paths = [+ "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall",+ "Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall",+ "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths",+ "Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\App Paths",+ ];++ for path in ®_paths {+ let keys = [hklm.open_subkey(path), hkcu.open_subkey(path)];+ for key in keys.iter().filter_map(|k| k.as_ref().ok()) {+ for subkey in key.enum_keys().filter_map(Result::ok) {+ if let Ok(app_key) = key.open_subkey(&subkey) {+ if let Ok(display_name) = app_key.get_value::<String, _>("DisplayName") {+ if display_name+ .to_lowercase()+ .contains(&app_name.to_lowercase())+ {+ if let Ok(path) = app_key.get_value::<String, _>("DisplayIcon") {+ let cleaned_path = path+ .split(',')+ .next()+ .unwrap_or(&path)+ .to_string()+ .trim_matches('"')+ .to_string();+ return Some(cleaned_path);+ } else if let Ok(path) = app_key.get_value::<String, _>("(default)") {+ let cleaned_path = path+ .split(',')+ .next()+ .unwrap_or(&path)+ .to_string()+ .trim_matches('"')+ .to_string();+ return Some(cleaned_path);+ }+ }+ }+ }+ }+ }+ }+ None+}++#[cfg(target_os = "windows")]+async fn get_exe_from_potential_path(app_name: &str) -> Option<String> {+ const CREATE_NO_WINDOW: u32 = 0x08000000;+ let app_name = app_name.strip_suffix(".exe").unwrap_or(&app_name);+ let potential_paths = [+ (+ r"C:\ProgramData\Microsoft\Windows\Start Menu\Programs",+ true,+ ),+ (r"C:\Windows\", false),+ ];+ for (path, recursive) in &potential_paths {+ let command = if *recursive {+ format!(+ r#"+ Get-ChildItem -Path "{}" -Filter "*{}*.exe" -Recurse | ForEach-Object {{ $_.FullName }}+ "#,+ path, app_name+ )+ } else {+ format!(+ r#"+ Get-ChildItem -Path "{}" -Filter "*{}*.exe" | ForEach-Object {{ $_.FullName }}+ "#,+ path, app_name+ )+ };++ let _permit = SEMAPHORE.acquire().await.unwrap();++ let output = tokio::process::Command::new("powershell")+ .arg("-NoProfile")+ .arg("-WindowStyle")+ .arg("hidden")+ .arg("-Command")+ .arg(command)+ .creation_flags(CREATE_NO_WINDOW)+ .output()+ .await+ .ok()?;++ if output.status.success() {+ let stdout = std::str::from_utf8(&output.stdout).ok()?;+ if !stdout.is_empty() {+ return stdout.lines().next().map(str::to_string);+ }+ }+ }+ None+}++#[cfg(target_os = "windows")]+async fn get_exe_by_appx(app_name: &str) -> Option<String> {+ use std::str;++ const CREATE_NO_WINDOW: u32 = 0x08000000;+ let app_name = app_name.strip_suffix(".exe").unwrap_or(&app_name);+ let app_name_withoutspace = app_name.replace(" ", "");++ let _permit = SEMAPHORE.acquire().await.unwrap();++ let output = tokio::process::Command::new("powershell")+ .arg("-NoProfile")+ .arg("-WindowStyle")+ .arg("hidden")+ .arg("-Command")+ .arg(format!(+ r#"Get-AppxPackage | Where-Object {{ $_.Name -like "*{}*" }}"#,+ app_name_withoutspace+ ))+ .creation_flags(CREATE_NO_WINDOW)+ .output()+ .await+ .expect("failed to execute powershell command");++ if !output.status.success() {+ return None;+ }++ let stdout = str::from_utf8(&output.stdout).ok()?;+ let package_name = stdout+ .lines()+ .find(|line| line.contains("PackageFullName"))+ .and_then(|line| line.split(':').nth(1))+ .map(str::trim)?;++ let exe_output = tokio::process::Command::new("powershell")+ .arg("-NoProfile")+ .arg("-WindowStyle")+ .arg("hidden")+ .arg("-Command")+ .arg(format!(+ r#"+ Get-ChildItem -Path "C:\Program Files\WindowsApps\{}\*" -Filter "*{}*.exe" -Recurse | ForEach-Object {{ $_.FullName }}+ "#,+ package_name,+ app_name_withoutspace+ ))+ .creation_flags(CREATE_NO_WINDOW)+ .output()+ .await+ .ok()?;++ if exe_output.status.success() {+ let exe_stdout = str::from_utf8(&exe_output.stdout).ok()?;+ if !exe_stdout.is_empty() {+ return exe_stdout.lines().next().map(str::to_string);+ }+ }+ // second attempt with space if the first attempt couldn't find exe+ let exe_output = tokio::process::Command::new("powershell")+ .arg("-NoProfile")+ .arg("-WindowStyle")+ .arg("hidden")+ .arg("-Command")+ .arg(format!(+ r#"+ Get-ChildItem -Path "C:\Program Files\WindowsApps\{}\*" -Filter "*{}*.exe" -Recurse | ForEach-Object {{ $_.FullName }}+ "#,+ package_name,+ app_name+ ))+ .creation_flags(CREATE_NO_WINDOW)+ .output()+ .await+ .ok()?;++ if exe_output.status.success() {+ let exe_stdout = str::from_utf8(&exe_output.stdout).ok()?;+ if !exe_stdout.is_empty() {+ return exe_stdout.lines().next().map(str::to_string);+ }+ }+ None+}++#[cfg(target_os = "linux")]+pub async fn get_app_icon(+ app_name: &str,+ app_path: Option<String>,+) -> Result<Option<AppIcon>, String> {+ use gtk::prelude::IconThemeExt;+ use std::fs;++ if gtk::init().is_err() {+ return Err("failed to initialize GTK".to_string());+ }++ fn find_icon_path(app_name: &str) -> Option<String> {+ let icon_theme = gtk::IconTheme::default().unwrap();+ let icon_info = icon_theme.lookup_icon(app_name, 64, gtk::IconLookupFlags::empty())?;+ icon_info+ .filename()+ .map(|s| s.to_string_lossy().into_owned())+ }++ let path = match app_path {+ Some(p) => p,+ None => find_icon_path(app_name).ok_or_else(|| "could not find icon path".to_string())?,+ };++ let data = fs::read(&path).map_err(|e| e.to_string())?;++ Ok(Some(AppIcon {+ data,+ path: Some(path),+ }))+}diff --git a/openrewind/src-tauri/src/main.rs b/openrewind/src-tauri/src/main.rsnew file mode 100755index 000000000..54223db1f--- /dev/null+++ b/openrewind/src-tauri/src/main.rs@@ -0,0 +1,886 @@+// Prevents additional console window on Windows in release, DO NOT REMOVE!!+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]++use analytics::AnalyticsManager;+use commands::show_main_window;+use serde_json::json;+use serde_json::Value;+use std::env;+use std::fs::File;+use std::path::PathBuf;+use std::sync::Arc;+use tauri::Config;+use tauri::Emitter;+use tauri::Manager;+use tauri_plugin_autostart::MacosLauncher;+use tauri_plugin_autostart::ManagerExt;+use tauri_plugin_global_shortcut::ShortcutState;+#[allow(unused_imports)]+use tauri_plugin_shell::process::CommandEvent;+use tauri_plugin_store::StoreBuilder;+use tokio::sync::mpsc;+use tokio::sync::Mutex;+use tracing::{debug, error, info, warn};+use tracing_appender::rolling::{RollingFileAppender, Rotation};+use tracing_subscriber::prelude::*;+use tracing_subscriber::EnvFilter;+use updates::start_update_check;+mod analytics;+mod icons;+use crate::analytics::start_analytics;++mod commands;+mod disk_usage;+mod permissions;+mod server;+mod sidecar;+mod store;+mod tray;+mod updates;+mod window_api;++pub use server::*;++pub use sidecar::*;++pub use icons::*;+pub use store::*;++mod config;+pub use config::get_base_dir;++pub use commands::set_tray_health_icon;+pub use commands::set_tray_unhealth_icon;+pub use server::spawn_server;+pub use sidecar::spawn_screenpipe;+pub use sidecar::stop_screenpipe;+pub use store::get_profiles_store;+pub use store::get_store;++use crate::commands::hide_main_window;+pub use permissions::do_permissions_check;+pub use permissions::open_permission_settings;+pub use permissions::request_permission;+use std::collections::HashMap;+use tauri::AppHandle;+use tauri_plugin_global_shortcut::GlobalShortcutExt;+use tauri_plugin_global_shortcut::{Code, Modifiers, Shortcut};+use tauri_plugin_sentry::sentry;+mod health;+use health::start_health_check;++// New struct to hold shortcut configuration+#[derive(Debug, Default)]+struct ShortcutConfig {+ show: String,+ start: String,+ stop: String,+ start_audio: String,+ stop_audio: String,+ profile_shortcuts: HashMap<String, String>,+ disabled: Vec<String>,+}++impl ShortcutConfig {+ async fn from_store(app: &AppHandle) -> Result<Self, String> {+ let store = get_store(app, None).map_err(|e| e.to_string())?;++ let profile_shortcuts = match get_profiles_store(app) {+ Ok(profiles_store) => {+ let profiles = profiles_store+ .get("profiles")+ .and_then(|v| serde_json::from_value::<Vec<String>>(v.clone()).ok())+ .unwrap_or_default();++ profiles+ .into_iter()+ .filter_map(|profile| {+ profiles_store+ .get(format!("shortcuts.{}", profile))+ .and_then(|v| v.as_str().map(String::from))+ .map(|shortcut| (profile, shortcut))+ })+ .collect()+ }+ Err(_) => HashMap::new(),+ };++ Ok(Self {+ show: store+ .get("showScreenpipeShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_else(|| "Super+Alt+S".to_string()),+ start: store+ .get("startRecordingShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_else(|| "Super+Alt+U".to_string()),+ stop: store+ .get("stopRecordingShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_else(|| "Super+Alt+X".to_string()),+ start_audio: store+ .get("startAudioShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_default(),+ stop_audio: store+ .get("stopAudioShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_default(),+ profile_shortcuts,+ disabled: store+ .get("disabledShortcuts")+ .and_then(|v| serde_json::from_value(v.clone()).ok())+ .unwrap_or_default(),+ })+ }++ fn is_disabled(&self, shortcut_type: &str) -> bool {+ self.disabled.contains(&shortcut_type.to_string())+ }+}++// Helper to register a single shortcut+async fn register_shortcut(+ app: &AppHandle,+ shortcut_str: &str,+ is_disabled: bool,+ handler: impl Fn(&AppHandle) + Send + Sync + 'static,+) -> Result<(), String> {+ if shortcut_str.is_empty() || is_disabled {+ return Ok(());+ }++ let shortcut = parse_shortcut(shortcut_str)?;++ let global_shortcut = app.global_shortcut();++ global_shortcut+ .on_shortcut(shortcut, move |app, _shortcut, event| {+ // Only trigger on key press, not release+ if matches!(event.state, ShortcutState::Pressed) {+ handler(app);+ }+ })+ .map_err(|e| e.to_string())+}++#[tauri::command]+#[allow(clippy::too_many_arguments)]+async fn update_global_shortcuts(+ app: AppHandle,+ show_shortcut: String,+ start_shortcut: String,+ stop_shortcut: String,+ start_audio_shortcut: String,+ stop_audio_shortcut: String,+ profile_shortcuts: HashMap<String, String>,+) -> Result<(), String> {+ let config = ShortcutConfig {+ show: show_shortcut,+ start: start_shortcut,+ stop: stop_shortcut,+ start_audio: start_audio_shortcut,+ stop_audio: stop_audio_shortcut,+ profile_shortcuts,+ disabled: ShortcutConfig::from_store(&app).await?.disabled,+ };+ apply_shortcuts(&app, &config).await+}++async fn initialize_global_shortcuts(app: &AppHandle) -> Result<(), String> {+ let config = ShortcutConfig::from_store(app).await?;+ apply_shortcuts(app, &config).await+}++async fn apply_shortcuts(app: &AppHandle, config: &ShortcutConfig) -> Result<(), String> {+ let global_shortcut = app.global_shortcut();+ global_shortcut.unregister_all().unwrap();++ // Register show shortcut+ register_shortcut(app, &config.show, config.is_disabled("show"), |app| {+ info!("show shortcut triggered");+ if let Some(window) = app.get_webview_window("main") {+ match window.is_visible() {+ Ok(true) => {+ info!("window is visible, hiding main window");+ hide_main_window(app)+ }+ Ok(false) | Err(_) => {+ info!(+ "window is not visible or error checking visibility, showing main window"+ );+ show_main_window(app, false)+ }+ }+ } else {+ debug!("main window not found");+ }+ })+ .await?;++ // Register start shortcut+ register_shortcut(+ app,+ &config.start,+ config.is_disabled("start_recording"),+ |app| {+ let _ = app.emit("shortcut-start-recording", ());+ },+ )+ .await?;++ // Register stop shortcut+ register_shortcut(+ app,+ &config.stop,+ config.is_disabled("stop_recording"),+ |app| {+ let _ = app.emit("shortcut-stop-recording", ());+ },+ )+ .await?;++ // Register profile shortcuts+ for (profile, shortcut) in &config.profile_shortcuts {+ if !shortcut.is_empty() {+ let profile = profile.clone();+ register_shortcut(app, shortcut, false, move |app| {+ info!("switch-profile shortcut triggered for profile: {}", profile);+ let _ = app.emit("switch-profile", profile.clone());+ })+ .await?;+ }+ }++ // Register start audio shortcut+ register_shortcut(+ app,+ &config.start_audio,+ config.is_disabled("start_audio"),+ |app| {+ let store = get_store(app, None).unwrap();+ store.set("disableAudio", false);+ store.save().unwrap();+ let _ = app.emit("shortcut-start-audio", ());+ info!("start audio shortcut triggered");+ },+ )+ .await?;++ // Register stop audio shortcut+ register_shortcut(+ app,+ &config.stop_audio,+ config.is_disabled("stop_audio"),+ |app| {+ let store = get_store(app, None).unwrap();+ store.set("disableAudio", true);+ store.save().unwrap();+ let _ = app.emit("shortcut-stop-audio", ());+ info!("stop audio shortcut triggered");+ },+ )+ .await?;++ Ok(())+}++#[tauri::command]+fn get_env(name: &str) -> String {+ std::env::var(String::from(name)).unwrap_or(String::from(""))+}++#[derive(Debug, serde::Serialize)]+pub struct LogFile {+ name: String,+ path: String,+ modified_at: u64,+}++#[tauri::command]+async fn get_log_files(app: AppHandle) -> Result<Vec<LogFile>, String> {+ let data_dir = get_data_dir(&app).map_err(|e| e.to_string())?;+ let mut log_files = Vec::new();++ // Collect all entries first+ let mut entries = Vec::new();+ let mut dir = tokio::fs::read_dir(&data_dir)+ .await+ .map_err(|e| e.to_string())?;+ while let Some(entry) = dir.next_entry().await.map_err(|e| e.to_string())? {+ // Get metadata immediately for each entry+ if let Ok(metadata) = entry.metadata().await {+ entries.push((entry, metadata));+ }+ }++ // Sort by modified time descending (newest first)+ entries.sort_by_key(|(_, metadata)| {+ std::cmp::Reverse(+ metadata+ .modified()+ .ok()+ .and_then(|m| m.duration_since(std::time::SystemTime::UNIX_EPOCH).ok())+ .map(|d| d.as_secs())+ .unwrap_or(0),+ )+ });++ // Process sorted entries+ for (entry, metadata) in entries {+ let path = entry.path();+ if let Some(extension) = path.extension() {+ if extension == "log" {+ let modified = metadata+ .modified()+ .map_err(|e| e.to_string())?+ .duration_since(std::time::SystemTime::UNIX_EPOCH)+ .map_err(|e| e.to_string())?+ .as_secs();++ log_files.push(LogFile {+ name: path+ .file_name()+ .unwrap_or_default()+ .to_string_lossy()+ .to_string(),+ path: path.to_string_lossy().to_string(),+ modified_at: modified,+ });+ }+ }+ }++ Ok(log_files)+}++fn get_data_dir(app: &tauri::AppHandle) -> anyhow::Result<PathBuf> {+ // Create a new runtime for this synchronous function++ let store = get_store(app, None)?;++ let default_path = app.path().home_dir().unwrap().join(".screenpipe");++ let data_dir = store+ .get("dataDir")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("default"));++ if data_dir == "default" || data_dir.is_empty() {+ Ok(default_path)+ } else {+ get_base_dir(app, Some(data_dir))+ }+}++use tokio::time::{sleep, Duration};++#[tauri::command]+async fn upload_file_to_s3(file_path: &str, signed_url: &str) -> Result<bool, String> {+ debug!("Starting upload for file: {}", file_path);++ // Read file contents - do this outside retry loop to avoid multiple reads+ let file_contents = match tokio::fs::read(file_path).await {+ Ok(contents) => {+ debug!("Successfully read file of size: {} bytes", contents.len());+ contents+ }+ Err(e) => {+ error!("Failed to read file: {}", e);+ return Err(e.to_string());+ }+ };++ let client = reqwest::Client::new();+ let max_retries = 3;+ let mut attempt = 0;+ let mut last_error = String::new();++ while attempt < max_retries {+ attempt += 1;+ debug!("Upload attempt {} of {}", attempt, max_retries);++ match client+ .put(signed_url)+ .body(file_contents.clone())+ .send()+ .await+ {+ Ok(response) => {+ if response.status().is_success() {+ debug!("Successfully uploaded file on attempt {}", attempt);+ return Ok(true);+ }+ last_error = format!("Upload failed with status: {}", response.status());+ error!("{} (attempt {}/{})", last_error, attempt, max_retries);+ }+ Err(e) => {+ last_error = format!("Request failed: {}", e);+ error!("{} (attempt {}/{})", last_error, attempt, max_retries);+ }+ }++ if attempt < max_retries {+ let delay = Duration::from_secs(2u64.pow(attempt as u32 - 1)); // Exponential backoff+ debug!("Waiting {}s before retry...", delay.as_secs());+ sleep(delay).await;+ }+ }++ Err(format!(+ "Upload failed after {} attempts. Last error: {}",+ max_retries, last_error+ ))+}++// Helper function to parse shortcut string+fn parse_shortcut(shortcut_str: &str) -> Result<Shortcut, String> {+ let parts: Vec<&str> = shortcut_str.split('+').collect();+ let key = parts.last().ok_or("Invalid shortcut format")?;++ let mut modifiers = Modifiers::empty();+ for modifier in &parts[..parts.len() - 1] {+ match modifier.to_uppercase().as_str() {+ "SUPER" | "CMD" | "COMMAND" => modifiers |= Modifiers::META,+ "CTRL" | "CONTROL" => modifiers |= Modifiers::CONTROL,+ "ALT" | "OPTION" => modifiers |= Modifiers::ALT,+ "SHIFT" => modifiers |= Modifiers::SHIFT,+ _ => return Err(format!("Unknown modifier: {}", modifier)),+ }+ }++ // Parse the key code - make case insensitive+ let code = match key.to_uppercase().as_str() {+ // Letters+ "A" => Code::KeyA,+ "B" => Code::KeyB,+ "C" => Code::KeyC,+ "D" => Code::KeyD,+ "E" => Code::KeyE,+ "F" => Code::KeyF,+ "G" => Code::KeyG,+ "H" => Code::KeyH,+ "I" => Code::KeyI,+ "J" => Code::KeyJ,+ "K" => Code::KeyK,+ "L" => Code::KeyL,+ "M" => Code::KeyM,+ "N" => Code::KeyN,+ "O" => Code::KeyO,+ "P" => Code::KeyP,+ "Q" => Code::KeyQ,+ "R" => Code::KeyR,+ "S" => Code::KeyS,+ "T" => Code::KeyT,+ "U" => Code::KeyU,+ "V" => Code::KeyV,+ "W" => Code::KeyW,+ "X" => Code::KeyX,+ "Y" => Code::KeyY,+ "Z" => Code::KeyZ,++ // Numbers+ "0" => Code::Digit0,+ "1" => Code::Digit1,+ "2" => Code::Digit2,+ "3" => Code::Digit3,+ "4" => Code::Digit4,+ "5" => Code::Digit5,+ "6" => Code::Digit6,+ "7" => Code::Digit7,+ "8" => Code::Digit8,+ "9" => Code::Digit9,++ // Function keys+ "F1" => Code::F1,+ "F2" => Code::F2,+ "F3" => Code::F3,+ "F4" => Code::F4,+ "F5" => Code::F5,+ "F6" => Code::F6,+ "F7" => Code::F7,+ "F8" => Code::F8,+ "F9" => Code::F9,+ "F10" => Code::F10,+ "F11" => Code::F11,+ "F12" => Code::F12,++ // Special keys+ "SPACE" => Code::Space,+ "TAB" => Code::Tab,+ "ENTER" => Code::Enter,+ "ESCAPE" | "ESC" => Code::Escape,+ "UP" => Code::ArrowUp,+ "DOWN" => Code::ArrowDown,+ "LEFT" => Code::ArrowLeft,+ "RIGHT" => Code::ArrowRight,++ _ => return Err(format!("Unsupported key: {}", key)),+ };++ Ok(Shortcut::new(Some(modifiers), code))+}++#[tokio::main]+async fn main() {+ let _ = fix_path_env::fix();++ // Initialize Sentry early+ let sentry_guard = sentry::init((+ "https://8770b0b106954e199df089bf4ffa89cf@o4507617161314304.ingest.us.sentry.io/4508716587876352", // Replace with your actual Sentry DSN+ sentry::ClientOptions {+ release: sentry::release_name!(),+ ..Default::default()+ },+ ));++ // Set permanent OLLAMA_ORIGINS env var on Windows if not present+ #[cfg(target_os = "windows")]+ {+ if env::var("OLLAMA_ORIGINS").is_err() {+ let output = std::process::Command::new("setx")+ .args(&["OLLAMA_ORIGINS", "*"])+ .output()+ .expect("failed to execute process");++ if !output.status.success() {+ error!(+ "failed to set OLLAMA_ORIGINS: {}",+ String::from_utf8_lossy(&output.stderr)+ );+ } else {+ info!("permanently set OLLAMA_ORIGINS=* for user");+ }+ }+ }++ let sidecar_state = SidecarState(Arc::new(tokio::sync::Mutex::new(None)));+ #[allow(clippy::single_match)]+ let app = tauri::Builder::default()+ .plugin(tauri_plugin_opener::init())+ .plugin(tauri_plugin_deep_link::init())+ .plugin(tauri_plugin_http::init())+ .on_window_event(|window, event| match event {+ tauri::WindowEvent::CloseRequested { api, .. } => {+ let _ = window.set_always_on_top(false);+ let _ = window.set_visible_on_all_workspaces(false);+ #[cfg(target_os = "macos")]+ let _ = window+ .app_handle()+ .set_activation_policy(tauri::ActivationPolicy::Regular);+ window.hide().unwrap();+ api.prevent_close();+ }+ _ => {}+ })+ .plugin(tauri_plugin_os::init())+ .plugin(tauri_plugin_updater::Builder::new().build())+ .plugin(tauri_plugin_dialog::init())+ .plugin(tauri_plugin_store::Builder::new().build())+ .plugin(tauri_plugin_shell::init())+ .plugin(tauri_plugin_notification::init())+ .plugin(tauri_plugin_fs::init())+ .plugin(tauri_plugin_process::init())+ .plugin(tauri_plugin_autostart::init(+ MacosLauncher::LaunchAgent,+ None,+ ))+ .plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {+ let windows = app.webview_windows();+ windows+ .values()+ .next()+ .expect("Sorry, no window found")+ .set_focus()+ .expect("Can't focus window!");+ }))+ .plugin(tauri_plugin_updater::Builder::new().build())+ .plugin(tauri_plugin_global_shortcut::Builder::new().build())+ .plugin(tauri_plugin_sentry::init(&sentry_guard))+ .manage(sidecar_state)+ .invoke_handler(tauri::generate_handler![+ spawn_screenpipe,+ stop_screenpipe,+ permissions::open_permission_settings,+ permissions::request_permission,+ permissions::do_permissions_check,+ set_tray_unhealth_icon,+ set_tray_health_icon,+ commands::update_show_screenpipe_shortcut,+ commands::get_disk_usage,+ commands::open_pipe_window,+ get_log_files,+ upload_file_to_s3,+ update_global_shortcuts,+ get_env,+ ])+ .setup(|app| {+ //deep link register_all+ #[cfg(any(windows, target_os = "linux"))]+ {+ use tauri_plugin_deep_link::DeepLinkExt;+ app.deep_link().register_all()?;+ }++ // Logging setup+ let app_handle = app.handle();+ let base_dir =+ get_base_dir(app_handle, None).expect("Failed to ensure local data directory");++ // Set up rolling file appender+ let file_appender = RollingFileAppender::builder()+ .rotation(Rotation::DAILY)+ .filename_prefix("screenpipe-app")+ .filename_suffix("log")+ .max_log_files(5)+ .build(+ get_data_dir(app.handle())+ .unwrap_or_else(|_| dirs::home_dir().unwrap().join(".screenpipe")),+ )?;++ // Create a custom layer for file logging+ let file_layer = tracing_subscriber::fmt::layer()+ .with_writer(file_appender)+ .with_ansi(false)+ .with_filter(EnvFilter::new("info,hyper=error,tower_http=error"));++ // Create a custom layer for console logging+ let console_layer = tracing_subscriber::fmt::layer()+ .with_writer(std::io::stdout)+ .with_filter(EnvFilter::new("info,hyper=error,tower_http=error"));++ // Initialize the tracing subscriber with both layers+ tracing_subscriber::registry()+ .with(file_layer)+ .with(console_layer)+ .init();++ // Windows-specific setup+ if cfg!(windows) {+ let exe_dir = env::current_exe()+ .expect("Failed to get current executable path")+ .parent()+ .expect("Failed to get parent directory of executable")+ .to_path_buf();+ let tessdata_path = exe_dir.join("tessdata");+ env::set_var("TESSDATA_PREFIX", tessdata_path);+ }++ // Autostart setup+ let autostart_manager = app.autolaunch();++ info!("Local data directory: {}", base_dir.display());++ // PostHog analytics setup+ let posthog_api_key = "phc_Bt8GoTBPgkCpDrbaIZzJIEYt0CrJjhBiuLaBck1clce".to_string();+ let interval_hours = 6;++ let path = base_dir.join("store.bin");+ if !path.exists() {+ let _ = File::create(path.clone()).unwrap();+ }++ // Store setup and initialization - must be done first+ let store = StoreBuilder::new(app.handle(), path.clone())+ .build()+ .unwrap();++ // Initialize default store values if empty+ if store.is_empty() {+ store.set("analyticsEnabled".to_string(), Value::Bool(true));+ store.set(+ "config".to_string(),+ serde_json::to_value(Config::default())?,+ );+ store.save()?;+ }++ // Ensure store is saved and managed+ store.save()?;+ app.manage(store.clone());++ // Get app handle once for all initializations+ let app_handle = app.handle().clone();++ // Initialize server first (core service)+ let server_shutdown_tx = spawn_server(app_handle.clone(), 11435);+ app.manage(server_shutdown_tx);++ // Initialize sidecar manager and check dev mode+ let sidecar_manager = Arc::new(Mutex::new(SidecarManager::new()));+ app.manage(sidecar_manager.clone());++ // Dev mode check and sidecar initialization+ let use_dev_mode = store+ .get("devMode")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ info!("use_dev_mode: {}", use_dev_mode);++ // Start sidecar in non-dev mode (production behavior)+ if !use_dev_mode {+ let sidecar_manager_clone = sidecar_manager.clone();+ let app_handle_clone = app_handle.clone();+ tauri::async_runtime::spawn(async move {+ let mut manager = sidecar_manager_clone.lock().await;+ if let Err(e) = manager.spawn(&app_handle_clone, None).await {+ error!("Failed to spawn initial sidecar: {}", e);+ }+ });+ } else {+ debug!("Skipping sidecar spawn: dev_mode enabled");+ }++ // Initialize update check+ let update_manager = start_update_check(&app_handle, 5)?;++ // Setup tray+ if let Some(_) = app_handle.tray_by_id("screenpipe_main") {+ let update_item = update_manager.update_now_menu_item_ref().clone();+ if let Err(e) = tray::setup_tray(&app_handle, &update_item) {+ error!("Failed to setup tray: {}", e);+ }+ }++ // Check analytics settings from store+ let is_analytics_enabled = store+ .get("analyticsEnabled")+ .unwrap_or(Value::Bool(true))+ .as_bool()+ .unwrap_or(true);++ let is_autostart_enabled = store+ .get("autoStartEnabled")+ .unwrap_or(Value::Bool(true))+ .as_bool()+ .unwrap_or(true);++ if is_autostart_enabled {+ let _ = autostart_manager.enable();+ } else {+ let _ = autostart_manager.disable();+ }++ debug!(+ "registered for autostart? {}",+ autostart_manager.is_enabled().unwrap()+ );++ let unique_id = store+ .get("user.id")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_default();++ let email = store+ .get("user.email")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_default();++ if is_analytics_enabled {+ match start_analytics(+ unique_id,+ email,+ posthog_api_key,+ interval_hours,+ "http://localhost:3030".to_string(),+ base_dir.clone(),+ is_analytics_enabled,+ ) {+ Ok(analytics_manager) => {+ app.manage(analytics_manager);+ }+ Err(e) => {+ error!("Failed to start analytics: {}", e);+ }+ }+ }++ // Start health check service (macos only)+ let app_handle_clone = app_handle.clone();+ tauri::async_runtime::spawn(async move {+ if let Err(e) = start_health_check(app_handle_clone).await {+ error!("Failed to start health check service: {}", e);+ }+ });++ #[cfg(target_os = "macos")]+ app.set_activation_policy(tauri::ActivationPolicy::Regular);++ // Initialize global shortcuts+ let app_handle_clone = app_handle.clone();+ tauri::async_runtime::spawn(async move {+ if let Err(e) = initialize_global_shortcuts(&app_handle_clone).await {+ warn!("Failed to initialize global shortcuts: {}", e);+ }+ });+ Ok(())+ })+ .build(tauri::generate_context!())+ .expect("error while building tauri application");++ // set_tray_unhealth_icon(app.app_handle().clone());+ app.run(|app_handle, event| match event {+ tauri::RunEvent::Ready { .. } => {+ debug!("Ready event");+ // Send app started event+ let app_handle = app_handle.app_handle().clone();+ tauri::async_runtime::spawn(async move {+ if let Some(analytics) = app_handle.try_state::<Arc<AnalyticsManager>>() {+ let _ = analytics+ .send_event(+ "app_started",+ Some(json!({+ "startup_type": "normal"+ })),+ )+ .await;+ }+ });+ }+ tauri::RunEvent::ExitRequested { .. } => {+ debug!("ExitRequested event");++ // Send app closed event before shutdown+ let app_handle_v2 = app_handle.app_handle().clone();+ tauri::async_runtime::spawn(async move {+ if let Some(analytics) = app_handle_v2.try_state::<Arc<AnalyticsManager>>() {+ let _ = analytics+ .send_event(+ "app_closed",+ Some(json!({+ "shutdown_type": "normal"+ })),+ )+ .await;+ }+ });++ // Shutdown server+ if let Some(server_shutdown_tx) = app_handle.try_state::<mpsc::Sender<()>>() {+ drop(server_shutdown_tx.send(()));+ }+ }+ tauri::RunEvent::WindowEvent {+ label,+ event: tauri::WindowEvent::Focused(focused),+ ..+ } => {+ if label == "main" && focused {+ let window = app_handle.get_webview_window("main").unwrap();+ window.show().unwrap();+ window.set_focus().unwrap();+ }+ }+ #[cfg(target_os = "macos")]+ tauri::RunEvent::Reopen {+ has_visible_windows,+ ..+ } => {+ if !has_visible_windows {+ show_main_window(app_handle, false);+ }+ }+ _ => {}+ });+}diff --git a/openrewind/src-tauri/src/permissions.rs b/openrewind/src-tauri/src/permissions.rsnew file mode 100644index 000000000..3aec29091--- /dev/null+++ b/openrewind/src-tauri/src/permissions.rs@@ -0,0 +1,187 @@+use serde::{Deserialize, Serialize};++#[cfg(target_os = "macos")]+#[link(name = "ApplicationServices", kind = "framework")]+extern "C" {+ fn AXIsProcessTrusted() -> bool;+ fn AXIsProcessTrustedWithOptions(options: core_foundation::dictionary::CFDictionaryRef)+ -> bool;+}++#[derive(Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub enum OSPermission {+ ScreenRecording,+ Microphone,+ Accessibility,+}++#[tauri::command(async)]+pub fn open_permission_settings(permission: OSPermission) {+ #[cfg(target_os = "macos")]+ {+ use std::process::Command;++ match permission {+ OSPermission::ScreenRecording => Command::new("open")+ .arg(+ "x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture",+ )+ .spawn()+ .expect("Failed to open Screen Recording settings"),+ OSPermission::Microphone => Command::new("open")+ .arg("x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone")+ .spawn()+ .expect("Failed to open Microphone settings"),+ OSPermission::Accessibility => Command::new("open")+ .arg(+ "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility",+ )+ .spawn()+ .expect("Failed to open Accessibility settings"),+ };+ }+}++#[tauri::command]+pub async fn request_permission(permission: OSPermission) {+ #[cfg(target_os = "macos")]+ {+ use nokhwa_bindings_macos::AVMediaType;+ match permission {+ OSPermission::ScreenRecording => {+ use core_graphics_helmer_fork::access::ScreenCaptureAccess;+ ScreenCaptureAccess.request();+ }+ OSPermission::Microphone => request_av_permission(AVMediaType::Audio),+ OSPermission::Accessibility => request_accessibility_permission(),+ }+ }+}++#[cfg(target_os = "macos")]+fn request_av_permission(media_type: nokhwa_bindings_macos::AVMediaType) {+ use objc::{runtime::*, *};+ use tauri_nspanel::block::ConcreteBlock;++ let callback = move |_: BOOL| {};+ let cls = class!(AVCaptureDevice);+ let objc_fn_block: ConcreteBlock<(BOOL,), (), _> = ConcreteBlock::new(callback);+ let objc_fn_pass = objc_fn_block.copy();+ unsafe {+ let _: () = msg_send![cls, requestAccessForMediaType:media_type.into_ns_str() completionHandler:objc_fn_pass];+ };+}++#[derive(Serialize, Deserialize, Debug, PartialEq)]+#[serde(rename_all = "camelCase")]+pub enum OSPermissionStatus {+ // This platform does not require this permission+ NotNeeded,+ // The user has neither granted nor denied permission+ Empty,+ // The user has explicitly granted permission+ Granted,+ // The user has denied permission, or has granted it but not yet restarted+ Denied,+}++impl OSPermissionStatus {+ pub fn permitted(&self) -> bool {+ matches!(self, Self::NotNeeded | Self::Granted)+ }+}++#[derive(Serialize, Deserialize, Debug)]+#[serde(rename_all = "camelCase")]+pub struct OSPermissionsCheck {+ pub screen_recording: OSPermissionStatus,+ pub microphone: OSPermissionStatus,+ pub accessibility: OSPermissionStatus,+}++impl OSPermissionsCheck {+ pub fn necessary_granted(&self) -> bool {+ self.screen_recording.permitted() && self.accessibility.permitted()+ }+}++#[tauri::command(async)]+pub fn do_permissions_check(initial_check: bool) -> OSPermissionsCheck {+ #[cfg(target_os = "macos")]+ {+ use nokhwa_bindings_macos::AVMediaType;++ fn check_av_permission(media_type: AVMediaType) -> OSPermissionStatus {+ use nokhwa_bindings_macos::AVAuthorizationStatus;+ use objc::*;++ let cls = objc::class!(AVCaptureDevice);+ let status: AVAuthorizationStatus =+ unsafe { msg_send![cls, authorizationStatusForMediaType:media_type.into_ns_str()] };+ match status {+ AVAuthorizationStatus::NotDetermined => OSPermissionStatus::Empty,+ AVAuthorizationStatus::Authorized => OSPermissionStatus::Granted,+ _ => OSPermissionStatus::Denied,+ }+ }++ OSPermissionsCheck {+ screen_recording: {+ use core_graphics_helmer_fork::access::ScreenCaptureAccess;+ let result = ScreenCaptureAccess.preflight();+ match (result, initial_check) {+ (true, _) => OSPermissionStatus::Granted,+ (false, true) => OSPermissionStatus::Empty,+ (false, false) => OSPermissionStatus::Denied,+ }+ },+ microphone: check_av_permission(AVMediaType::Audio),+ accessibility: { check_accessibility_permission() },+ }+ }++ #[cfg(not(target_os = "macos"))]+ {+ OSPermissionsCheck {+ screen_recording: OSPermissionStatus::NotNeeded,+ microphone: OSPermissionStatus::NotNeeded,+ accessibility: OSPermissionStatus::NotNeeded,+ }+ }+}++pub fn check_accessibility_permission() -> OSPermissionStatus {+ #[cfg(target_os = "macos")]+ {+ if unsafe { AXIsProcessTrusted() } {+ OSPermissionStatus::Granted+ } else {+ OSPermissionStatus::Denied+ }+ }+ #[cfg(not(target_os = "macos"))]+ {+ // For non-macOS platforms, assume permission is granted+ OSPermissionStatus::NotNeeded+ }+}++pub fn request_accessibility_permission() {+ #[cfg(target_os = "macos")]+ {+ use core_foundation::base::TCFType;+ use core_foundation::dictionary::CFDictionary; // Import CFDictionaryRef+ use core_foundation::string::CFString;++ let prompt_key = CFString::new("AXTrustedCheckOptionPrompt");+ let prompt_value = core_foundation::boolean::CFBoolean::true_value();++ let options =+ CFDictionary::from_CFType_pairs(&[(prompt_key.as_CFType(), prompt_value.as_CFType())]);++ unsafe {+ AXIsProcessTrustedWithOptions(options.as_concrete_TypeRef());+ }+ }+}diff --git a/openrewind/src-tauri/src/server.rs b/openrewind/src-tauri/src/server.rsnew file mode 100644index 000000000..c95cb1917--- /dev/null+++ b/openrewind/src-tauri/src/server.rs@@ -0,0 +1,530 @@+use crate::window_api::{close_window, show_specific_window};+use crate::{get_base_dir, get_store, register_shortcut};+use axum::body::Bytes;+use axum::response::sse::{Event, Sse};+use axum::response::IntoResponse;+use axum::{+ extract::{Query, State},+ http::{Method, StatusCode},+ Json, Router,+};+use futures::stream::Stream;+use http::header::{HeaderValue, CONTENT_TYPE};+use notify::RecursiveMode;+use notify::Watcher;+use reqwest::Client;+use serde::{Deserialize, Serialize};+use std::convert::Infallible;+use std::net::SocketAddr;+use tauri::Emitter;+use tauri::Manager;+#[allow(unused_imports)]+use tauri_plugin_notification::NotificationExt;+use tokio::sync::broadcast;+use tokio::sync::mpsc;+use tower_http::cors::{Any, CorsLayer};+use tower_http::trace::{DefaultMakeSpan, TraceLayer};+use tracing::{error, info};++#[derive(Clone, serde::Serialize, serde::Deserialize)]+struct LogEntry {+ pipe_id: String,+ level: String,+ message: String,+ timestamp: String,+}++#[derive(Clone)]+pub struct ServerState {+ pub app_handle: tauri::AppHandle,+ settings_tx: broadcast::Sender<String>,+}++#[derive(Serialize, Deserialize, Debug)]+struct NotificationPayload {+ title: String,+ body: String,+}++#[derive(Serialize)]+struct ApiResponse {+ success: bool,+ message: String,+}++#[derive(Serialize, Deserialize, Debug)]+struct InboxMessagePayload {+ title: String,+ body: String,+ #[serde(rename = "type")]+ message_type: String,+ actions: Option<Vec<InboxMessageAction>>,+ action_server_port: Option<u16>,+}++#[derive(Serialize, Deserialize, Debug)]+struct InboxMessageAction {+ label: String,+ action: String,+ port: u16,+}++#[derive(Deserialize, Debug)]+struct AuthPayload {+ token: Option<String>,+ email: Option<String>,+ user_id: Option<String>,+}++#[derive(Serialize, Deserialize, Debug, Clone)]+struct AuthData {+ token: String,+ email: String,+ user_id: String,+}++#[derive(Debug, Deserialize)]+struct AppIconQuery {+ name: String,+ path: Option<String>,+}++#[derive(Deserialize, Debug)]+struct WindowSizePayload {+ title: String,+ width: f64,+ height: f64,+}++#[derive(Deserialize, Debug)]+struct ShortcutRegistrationPayload {+ shortcut: String,+ endpoint: String,+ method: String,+ #[serde(default)]+ body: Option<serde_json::Value>,+}++async fn settings_stream(+ State(state): State<ServerState>,+) -> Sse<impl Stream<Item = Result<Event, Infallible>>> {+ let mut rx = state.settings_tx.subscribe();++ let stream = async_stream::stream! {+ let store = get_store(&state.app_handle, None).unwrap();+ let settings = serde_json::to_string(&store.entries()).unwrap();+ yield Ok(Event::default().data(settings));++ while let Ok(settings) = rx.recv().await {+ yield Ok(Event::default().data(settings));+ }+ };++ Sse::new(stream).keep_alive(+ axum::response::sse::KeepAlive::new()+ .interval(std::time::Duration::from_secs(1))+ .text("keep-alive-text"),+ )+}++pub async fn run_server(app_handle: tauri::AppHandle, port: u16) {+ let (settings_tx, _) = broadcast::channel(100);+ let settings_tx_clone = settings_tx.clone();+ let app_handle_clone = app_handle.clone();++ let base_dir = get_base_dir(&app_handle, None).expect("Failed to ensure local data directory");+ let store_path = base_dir.join("store.bin");++ let mut watcher = notify::recommended_watcher(move |res: notify::Result<notify::Event>| {+ if let Ok(event) = res {+ if event.kind.is_modify() {+ if let Ok(store) = get_store(&app_handle_clone, None) {+ let _ = store.reload();+ if let Ok(settings) = serde_json::to_string(&store.entries()) {+ let _ = settings_tx_clone.send(settings);+ }+ }+ }+ }+ })+ .unwrap();++ watcher+ .watch(&store_path, RecursiveMode::NonRecursive)+ .unwrap();++ let state = ServerState {+ app_handle,+ settings_tx,+ };++ let cors = CorsLayer::new()+ .allow_origin("*".parse::<HeaderValue>().unwrap())+ .allow_methods([Method::GET, Method::POST, Method::OPTIONS])+ .allow_headers(Any)+ .allow_credentials(false);++ let app = Router::new()+ .route("/notify", axum::routing::post(send_notification))+ .route("/inbox", axum::routing::post(send_inbox_message))+ .route("/log", axum::routing::post(log_message))+ .route("/auth", axum::routing::post(handle_auth))+ .route("/app-icon", axum::routing::get(get_app_icon_handler))+ .route("/window-size", axum::routing::post(set_window_size))+ .route("/sse/settings", axum::routing::get(settings_stream))+ .route("/sidecar/start", axum::routing::post(start_sidecar))+ .route("/sidecar/stop", axum::routing::post(stop_sidecar))+ .route("/window", axum::routing::post(show_specific_window))+ .route("/window/close", axum::routing::post(close_window))+ .route(+ "/shortcuts/register",+ axum::routing::post(register_http_shortcut),+ )+ .layer(cors)+ .layer(+ TraceLayer::new_for_http()+ .make_span_with(DefaultMakeSpan::new().level(tracing::Level::INFO))+ .on_request(())+ .on_response(()),+ )+ .with_state(state);++ let addr = SocketAddr::from(([127, 0, 0, 1], port));+ info!("Server listening on {}", addr);++ axum::Server::bind(&addr)+ .serve(app.into_make_service())+ .await+ .unwrap();+}++async fn send_notification(+ State(state): State<ServerState>,+ Json(payload): Json<NotificationPayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("Received notification request: {:?}", payload);+ match state.app_handle.emit("notification-requested", &payload) {+ Ok(e) => {+ info!("Notification sent: {:?}", e);+ Ok(Json(ApiResponse {+ success: true,+ message: "Notification sent successfully".to_string(),+ }))+ }+ Err(e) => {+ error!("Failed to send notification: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("Failed to send notification: {}", e),+ ))+ }+ }+}++async fn send_inbox_message(+ State(state): State<ServerState>,+ Json(payload): Json<InboxMessagePayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received inbox message request: {:?}", payload);+ match state.app_handle.emit("inbox-message-received", &payload) {+ Ok(e) => {+ info!("inbox message sent: {:?}", e);+ Ok(Json(ApiResponse {+ success: true,+ message: "inbox message sent successfully".to_string(),+ }))+ }+ Err(e) => {+ error!("failed to send inbox message: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to send inbox message: {}", e),+ ))+ }+ }+}++async fn log_message(+ State(state): State<ServerState>,+ Json(log_entry): Json<LogEntry>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ match state.app_handle.emit("log-message", &log_entry) {+ Ok(e) => {+ info!("Log message sent: {:?}", e);+ Ok(Json(ApiResponse {+ success: true,+ message: "Log message sent successfully".to_string(),+ }))+ }+ Err(e) => {+ error!("Failed to send log message: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("Failed to send log message: {}", e),+ ))+ }+ }+}++async fn handle_auth(+ State(state): State<ServerState>,+ Json(payload): Json<AuthPayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received auth data: {:?}", payload);++ let store = get_store(&state.app_handle, None).unwrap();++ if payload.token.is_some() {+ let auth_data = AuthData {+ token: payload.token.unwrap(),+ email: payload.email.unwrap_or_default(),+ user_id: payload.user_id.unwrap_or_default(),+ };++ info!("saving auth data: {:?}", auth_data);++ store.set("user", serde_json::to_value(Some(auth_data)).unwrap());+ } else {+ store.set(+ "user",+ serde_json::to_value::<Option<AuthData>>(None).unwrap(),+ );+ }++ if let Err(e) = store.save() {+ error!("failed to save store: {}", e);+ return Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ "failed to save auth data".to_string(),+ ));+ }++ state.app_handle.emit("cli-login", ()).unwrap();++ Ok(Json(ApiResponse {+ success: true,+ message: "auth data stored successfully".to_string(),+ }))+}++async fn get_app_icon_handler(+ State(_): State<ServerState>,+ Query(app_name): Query<AppIconQuery>,+) -> Result<impl IntoResponse, (StatusCode, String)> {+ info!("received app icon request: {:?}", app_name);++ #[cfg(any(target_os = "macos", target_os = "windows", target_os = "linux"))]+ {+ match crate::icons::get_app_icon(&app_name.name, app_name.path).await {+ Ok(Some(icon)) => {+ let headers = [+ (CONTENT_TYPE, HeaderValue::from_static("image/jpeg")),+ (+ http::header::CACHE_CONTROL,+ HeaderValue::from_static("public, max-age=604800"),+ ),+ ];+ Ok((headers, Bytes::from(icon.data)))+ }+ Ok(None) => Err((StatusCode::NOT_FOUND, "Icon not found".to_string())),+ Err(e) => {+ error!("failed to get app icon: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to get app icon: {}", e),+ ))+ }+ }+ }++ #[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]+ {+ Err((+ StatusCode::NOT_IMPLEMENTED,+ "app icon retrieval not supported on this platform".to_string(),+ ))+ }+}++async fn set_window_size(+ State(state): State<ServerState>,+ Json(payload): Json<WindowSizePayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received window size request: {:?}", payload);++ if let Some(window) = state.app_handle.get_webview_window(&payload.title) {+ match window.set_size(tauri::LogicalSize::new(payload.width, payload.height)) {+ Ok(_) => Ok(Json(ApiResponse {+ success: true,+ message: "window size updated successfully".to_string(),+ })),+ Err(e) => {+ error!("failed to set window size: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to set window size: {}", e),+ ))+ }+ }+ } else {+ Err((+ StatusCode::NOT_FOUND,+ format!("window with title '{}' not found", payload.title),+ ))+ }+}++async fn start_sidecar(+ State(state): State<ServerState>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received request to start sidecar");++ let app_handle = state.app_handle.clone();+ match crate::sidecar::spawn_screenpipe(+ app_handle.clone().state::<crate::SidecarState>(),+ app_handle,+ None,+ )+ .await+ {+ Ok(_) => Ok(Json(ApiResponse {+ success: true,+ message: "sidecar started successfully".to_string(),+ })),+ Err(e) => {+ error!("failed to start sidecar: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to start sidecar: {}", e),+ ))+ }+ }+}++async fn stop_sidecar(+ State(state): State<ServerState>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received request to stop sidecar");++ let app_handle = state.app_handle.clone();+ match crate::sidecar::stop_screenpipe(+ app_handle.clone().state::<crate::SidecarState>(),+ app_handle,+ )+ .await+ {+ Ok(_) => Ok(Json(ApiResponse {+ success: true,+ message: "sidecar stopped successfully".to_string(),+ })),+ Err(e) => {+ error!("failed to stop sidecar: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to stop sidecar: {}", e),+ ))+ }+ }+}++async fn register_http_shortcut(+ State(state): State<ServerState>,+ Json(payload): Json<ShortcutRegistrationPayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("registering http shortcut: {:?}", payload);++ let client = Client::new();+ let endpoint = payload.endpoint.clone();+ let method = payload.method.clone();+ let body = payload.body.clone();++ let handler = move |_app: &tauri::AppHandle| {+ info!("executing http shortcut");+ let client = client.clone();+ let endpoint = endpoint.clone();+ let method = method.clone();+ let body = body.clone();++ tokio::spawn(async move {+ let request = match method.to_uppercase().as_str() {+ "GET" => client.get(&endpoint),+ "POST" => client.post(&endpoint),+ "PUT" => client.put(&endpoint),+ "DELETE" => client.delete(&endpoint),+ _ => {+ error!("unsupported http method: {}", method);+ return;+ }+ };++ let request = if let Some(body) = body {+ request.json(&body)+ } else {+ request+ };++ match request.send().await {+ Ok(response) => {+ info!(+ "http shortcut request completed with status: {}",+ response.status()+ );+ }+ Err(e) => {+ error!("http shortcut request failed: {}", e);+ }+ }+ });+ };++ // TODO persist in settings?++ match register_shortcut(&state.app_handle, &payload.shortcut, false, handler).await {+ Ok(_) => Ok(Json(ApiResponse {+ success: true,+ message: format!("shortcut {} registered successfully", payload.shortcut),+ })),+ Err(e) => {+ error!("failed to register shortcut: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to register shortcut: {}", e),+ ))+ }+ }+}++pub fn spawn_server(app_handle: tauri::AppHandle, port: u16) -> mpsc::Sender<()> {+ let (tx, mut rx) = mpsc::channel(1);++ tokio::spawn(async move {+ tokio::select! {+ _ = run_server(app_handle, port) => {},+ _ = rx.recv() => {+ info!("Received shutdown signal for server");+ }+ }+ });++ tx+}++/*++curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Test Notification", "body": "This is a test notification body"}'++ curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Special Characters: !@#$%^&*()", "body": "Testing with émojis 😀🎉"}'++ curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Long Notification", "body": "This is a much longer notification body to test how the system handles larger amounts of text. It might wrap or be truncated depending on the system'\''s limitations."}'++ curl -X POST http://localhost:11435/notify \+ -H "Content-Type: application/json" \+ -d '{"title": "Malformed JSON", "body": "This JSON is malformed}'++*/diff --git a/openrewind/src-tauri/src/sidecar.rs b/openrewind/src-tauri/src/sidecar.rsnew file mode 100644index 000000000..4a21db3a4--- /dev/null+++ b/openrewind/src-tauri/src/sidecar.rs@@ -0,0 +1,587 @@+use crate::get_store;+use serde::{Deserialize, Serialize};+use serde_json::Value;+use std::sync::Arc;+use tauri::Emitter;+use tauri::{Manager, State};+use tauri_plugin_shell::process::{CommandChild, CommandEvent};+use tauri_plugin_shell::ShellExt;+use tauri_plugin_store::Store;+use tokio::sync::Mutex;+use tracing::{debug, error, info};++pub struct SidecarState(pub Arc<tokio::sync::Mutex<Option<SidecarManager>>>);++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct UserCredits {+ #[serde(rename = "user.credits.amount")]+ pub amount: i64,+ #[serde(rename = "user.credits.created_at", default)]+ pub created_at: Option<String>,+}++#[derive(Debug, Serialize, Deserialize, Clone)]+pub struct User {+ #[serde(rename = "user.id", default)]+ pub id: Option<String>,+ #[serde(rename = "user.email", default)]+ pub email: Option<String>,+ #[serde(rename = "user.name", default)]+ pub name: Option<String>,+ #[serde(rename = "user.image", default)]+ pub image: Option<String>,+ #[serde(rename = "user.token", default)]+ pub token: Option<String>,+ #[serde(rename = "user.clerk_id", default)]+ pub clerk_id: Option<String>,+ #[serde(default)]+ pub credits: Option<UserCredits>,+ #[serde(rename = "user.cloud_subscribed", default)]+ pub cloud_subscribed: Option<bool>,+}++impl User {+ pub fn from_store<R: tauri::Runtime>(store: &Store<R>) -> Self {+ Self {+ id: store+ .get("user.id")+ .and_then(|v| v.as_str().map(String::from)),+ email: store+ .get("user.email")+ .and_then(|v| v.as_str().map(String::from)),+ name: store+ .get("user.name")+ .and_then(|v| v.as_str().map(String::from)),+ image: store+ .get("user.image")+ .and_then(|v| v.as_str().map(String::from)),+ token: store+ .get("user.token")+ .and_then(|v| v.as_str().map(String::from)),+ clerk_id: store+ .get("user.clerk_id")+ .and_then(|v| v.as_str().map(String::from)),+ credits: Some(UserCredits {+ amount: store+ .get("user.credits.amount")+ .and_then(|v| v.as_i64())+ .unwrap_or(0),+ created_at: store+ .get("user.credits.created_at")+ .and_then(|v| v.as_str().map(String::from)),+ }),+ cloud_subscribed: store.get("user.cloud_subscribed").and_then(|v| v.as_bool()),+ }+ }+}++#[tauri::command]+pub async fn stop_screenpipe(+ state: State<'_, SidecarState>,+ _app: tauri::AppHandle,+) -> Result<(), String> {+ debug!("Killing screenpipe");++ #[cfg(target_os = "macos")]+ {+ let mut manager = state.0.lock().await;+ if let Some(manager) = manager.as_mut() {+ if let Some(child) = manager.child.take() {+ if let Err(e) = child.kill() {+ error!("Failed to kill child process: {}", e);+ }+ }+ }+ match tokio::process::Command::new("pkill")+ .arg("-9")+ .arg("-f")+ .arg("screenpipe")+ .output()+ .await+ {+ Ok(_) => {+ debug!("Successfully killed screenpipe processes");+ Ok(())+ }+ Err(e) => {+ error!("Failed to kill screenpipe processes: {}", e);+ Err(format!("Failed to kill screenpipe processes: {}", e))+ }+ }+ }++ #[cfg(target_os = "windows")]+ {+ const CREATE_NO_WINDOW: u32 = 0x08000000;+ tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;+ match tokio::process::Command::new("powershell")+ .arg("-NoProfile")+ .arg("-WindowStyle")+ .arg("hidden")+ .arg("-Command")+ .arg(r#"taskkill.exe /F /T /IM screenpipe.exe"#)+ .creation_flags(CREATE_NO_WINDOW)+ .output()+ .await+ {+ Ok(_) => {+ debug!("Successfully killed screenpipe processes");+ Ok(())+ }+ Err(e) => {+ error!("Failed to kill screenpipe processes: {}", e);+ Err(format!("Failed to kill screenpipe processes: {}", e))+ }+ }+ }++ #[cfg(target_os = "linux")]+ {+ // -15 from gnu man page+ // ref: https://www.gnu.org/software/coreutils/manual/html_node/kill-invocation.html+ let command = format!(+ "pgrep -x screenpipe | xargs -I {{}} kill -15 {{}}",+ );+ match tokio::process::Command::new("sh")+ .arg("-c")+ .arg(command)+ .output()+ .await+ {+ Ok(_) => {+ debug!("Successfully killed screenpipe processes");+ Ok(())+ }+ Err(e) => {+ error!("Failed to kill screenpipe processes: {}", e);+ Err(format!("Failed to kill screenpipe processes: {}", e))+ }+ }+ }+}++#[tauri::command]+pub async fn spawn_screenpipe(+ state: tauri::State<'_, SidecarState>,+ app: tauri::AppHandle,+ override_args: Option<Vec<String>>,+) -> Result<(), String> {+ let mut manager = state.0.lock().await;+ if manager.is_none() {+ *manager = Some(SidecarManager::new());+ }+ if let Some(manager) = manager.as_mut() {+ manager.spawn(&app, override_args).await+ } else {+ debug!("Sidecar already running");+ Ok(())+ }+}++fn spawn_sidecar(app: &tauri::AppHandle, override_args: Option<Vec<String>>) -> Result<CommandChild, String> {+ let store = get_store(app, None).unwrap();++ let audio_transcription_engine = store+ .get("audioTranscriptionEngine")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("default"));++ let ocr_engine = store+ .get("ocrEngine")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("default"));++ let monitor_ids = store+ .get("monitorIds")+ .and_then(|v| v.as_array().cloned())+ .unwrap_or_default();++ let audio_devices = store+ .get("audioDevices")+ .and_then(|v| v.as_array().cloned())+ .unwrap_or_default();++ let use_pii_removal = store+ .get("usePiiRemoval")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let port = store.get("port").and_then(|v| v.as_u64()).unwrap_or(3030);++ let disable_audio = store+ .get("disableAudio")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let ignored_windows = store+ .get("ignoredWindows")+ .and_then(|v| v.as_array().cloned())+ .unwrap_or_default();++ let included_windows = store+ .get("includedWindows")+ .and_then(|v| v.as_array().cloned())+ .unwrap_or_default();++ let deepgram_api_key = store+ .get("deepgramApiKey")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("default"));++ let fps = store.get("fps").and_then(|v| v.as_f64()).unwrap_or(0.2);++ let dev_mode = store+ .get("devMode")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let vad_sensitivity = store+ .get("vadSensitivity")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("high"));++ let audio_chunk_duration = store+ .get("audioChunkDuration")+ .and_then(|v| v.as_u64())+ .unwrap_or(30);++ let telemetry_enabled = store+ .get("analyticsEnabled")+ .and_then(|v| v.as_bool())+ .unwrap_or(true);++ let use_chinese_mirror = store+ .get("useChineseMirror")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let languages = store+ .get("languages")+ .and_then(|v| v.as_array().cloned())+ .unwrap_or_default();++ let enable_beta = store+ .get("enableBeta")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let enable_frame_cache = store+ .get("enableFrameCache")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let enable_ui_monitoring = store+ .get("enableUiMonitoring")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let data_dir = store+ .get("dataDir")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or(String::from("default"));++ let enable_realtime_audio_transcription = store+ .get("enableRealtimeAudioTranscription")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let enable_realtime_vision = store+ .get("enableRealtimeVision")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let _use_all_monitors = store+ .get("useAllMonitors")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ let user = User::from_store(&store);++ println!("user: {:?}", user);+ println!("audio_chunk_duration: {}", audio_chunk_duration);++ let port_str = port.to_string();+ let mut args = vec!["--port", port_str.as_str()];+ let fps_str = fps.to_string();+ if fps != 0.2 {+ args.push("--fps");+ args.push(fps_str.as_str());+ }++ if audio_transcription_engine != "default" {+ args.push("--audio-transcription-engine");+ let model = if audio_transcription_engine == "screenpipe-cloud" {+ "deepgram"+ } else {+ audio_transcription_engine.as_str()+ };+ args.push(model);+ }++ if ocr_engine != "default" {+ args.push("--ocr-engine");+ let model = ocr_engine.as_str();+ args.push(model);+ }++ if !monitor_ids.is_empty() && monitor_ids[0] != Value::String("default".to_string()) {+ for monitor in &monitor_ids {+ args.push("--monitor-id");+ args.push(monitor.as_str().unwrap());+ }+ }++ if !languages.is_empty() && languages[0] != Value::String("default".to_string()) {+ for language in &languages {+ args.push("--language");+ args.push(language.as_str().unwrap());+ }+ }++ if deepgram_api_key != "default" && deepgram_api_key != "" {+ args.push("--deepgram-api-key");+ let key = deepgram_api_key.as_str();+ args.push(key);+ }++ if !audio_devices.is_empty() && audio_devices[0] != Value::String("default".to_string()) {+ for device in &audio_devices {+ args.push("--audio-device");+ args.push(device.as_str().unwrap());+ }+ }++ if use_pii_removal {+ args.push("--use-pii-removal");+ }++ if disable_audio {+ args.push("--disable-audio");+ }++ if !ignored_windows.is_empty() {+ for window in &ignored_windows {+ args.push("--ignored-windows");+ args.push(window.as_str().unwrap());+ }+ }++ if !included_windows.is_empty() {+ for window in &included_windows {+ args.push("--included-windows");+ args.push(window.as_str().unwrap());+ }+ }+ let current_pid = std::process::id();+ let current_pid_str = current_pid.to_string();+ // Set auto-destruct PID if not in dev mode+ if !dev_mode {+ args.push("--auto-destruct-pid");+ args.push(current_pid_str.as_str());+ }++ if vad_sensitivity != "high" {+ args.push("--vad-sensitivity");+ args.push(vad_sensitivity.as_str());+ }++ let audio_chunk_duration_str = audio_chunk_duration.to_string();+ if audio_chunk_duration != 30 {+ args.push("--audio-chunk-duration");+ args.push(audio_chunk_duration_str.as_str());+ }++ if !telemetry_enabled {+ args.push("--disable-telemetry");+ }++ if enable_beta {+ args.push("--enable-beta");+ }++ if enable_frame_cache {+ args.push("--enable-frame-cache");+ }++ if enable_ui_monitoring {+ args.push("--enable-ui-monitoring");+ }++ if data_dir != "default" && !data_dir.is_empty() {+ args.push("--data-dir");+ args.push(data_dir.as_str());+ }++ if enable_realtime_audio_transcription {+ args.push("--enable-realtime-audio-transcription");+ }++ if enable_realtime_vision {+ args.push("--enable-realtime-vision");+ }++ // if use_all_monitors {+ // args.push("--use-all-monitors");+ // }++ let disable_vision = store+ .get("disableVision")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ if disable_vision {+ args.push("--disable-vision");+ }++ // args.push("--debug");++ let override_args_as_vec = override_args.unwrap_or_default();++ if cfg!(windows) {+ let mut c = app.shell().sidecar("screenpipe").unwrap();+ if use_chinese_mirror {+ c = c.env("HF_ENDPOINT", "https://hf-mirror.com");+ }++ // if a user with credits is provided, add the AI proxy env var api url for deepgram as env var https://ai-proxy.i-f9f.workers.dev/v1/listen+ if user.cloud_subscribed.is_some()+ && (deepgram_api_key == "default" || deepgram_api_key == "")+ {+ c = c.env(+ "DEEPGRAM_API_URL",+ "https://ai-proxy.i-f9f.workers.dev/v1/listen",+ );+ c = c.env("DEEPGRAM_WEBSOCKET_URL", "wss://ai-proxy.i-f9f.workers.dev");+ // Add token if screenpipe-cloud is selected and user has a token+ if user.id.is_some() {+ c = c.env("CUSTOM_DEEPGRAM_API_TOKEN", user.id.as_ref().unwrap());+ args.push("--deepgram-api-key");+ args.push(user.id.as_ref().unwrap());+ }+ }++ c = c.env("SENTRY_RELEASE_NAME_APPEND", "tauri");++ // only supports --enable-realtime-vision for now, avoid adding if already present+ if !args.contains(&"--enable-realtime-vision") && override_args_as_vec.contains(&"--enable-realtime-vision".to_string()) {+ args.extend(override_args_as_vec.iter().map(|s| s.as_str()));+ }+ let c = c.args(&args);++ let (_, child) = c.spawn().map_err(|e| {+ error!("Failed to spawn sidecar: {}", e);+ e.to_string()+ })?;++ info!("Spawned sidecar with args: {:?}", args);++ return Ok(child);+ }++ let mut c = app.shell().sidecar("screenpipe").unwrap();++ if use_chinese_mirror {+ c = c.env("HF_ENDPOINT", "https://hf-mirror.com");+ }++ // if a user with credits is provided, add the AI proxy env var api url for deepgram as env var https://ai-proxy.i-f9f.workers.dev/v1/listen+ if user.cloud_subscribed.is_some() && (deepgram_api_key == "default" || deepgram_api_key == "")+ {+ info!(+ "Adding AI proxy env vars for deepgram: {:?}",+ user.id.as_ref().unwrap()+ );+ c = c.env(+ "DEEPGRAM_API_URL",+ "https://ai-proxy.i-f9f.workers.dev/v1/listen",+ );+ c = c.env("DEEPGRAM_WEBSOCKET_URL", "wss://ai-proxy.i-f9f.workers.dev");+ // Add token if screenpipe-cloud is selected and user has a token+ if user.id.is_some() {+ c = c.env("CUSTOM_DEEPGRAM_API_TOKEN", user.id.as_ref().unwrap());+ args.push("--deepgram-api-key");+ args.push(user.id.as_ref().unwrap());+ }+ }++ c = c.env("SENTRY_RELEASE_NAME_APPEND", "tauri");++ // only supports --enable-realtime-vision for now, avoid adding if already present+ if !args.contains(&"--enable-realtime-vision") && override_args_as_vec.contains(&"--enable-realtime-vision".to_string()) {+ args.extend(override_args_as_vec.iter().map(|s| s.as_str()));+ }+ let c = c.args(&args);++ let result = c.spawn();+ if let Err(e) = result {+ error!("Failed to spawn sidecar: {}", e);+ return Err(e.to_string());+ }++ let (mut rx, child) = result.unwrap();+ let app_handle = app.app_handle().clone();++ tauri::async_runtime::spawn(async move {+ while let Some(event) = rx.recv().await {+ match event {+ CommandEvent::Stdout(line) => {+ let log_line = String::from_utf8(line).unwrap();+ print!("{}", log_line);+ app_handle.emit("sidecar_log", log_line).unwrap();+ }+ CommandEvent::Stderr(line) => {+ let log_line = String::from_utf8(line).unwrap();+ error!("Sidecar stderr: {}", log_line);+ app_handle+ .emit("sidecar_log", format!("ERROR: {}", log_line))+ .unwrap();+ }+ _ => {}+ }+ }+ });++ info!("Spawned sidecar with args: {:?}", args);++ Ok(child)+}+pub struct SidecarManager {+ child: Option<CommandChild>,+ dev_mode: Arc<Mutex<bool>>,+}++impl SidecarManager {+ pub fn new() -> Self {+ Self {+ child: None,+ dev_mode: Arc::new(Mutex::new(false)),+ }+ }++ pub async fn spawn(&mut self, app: &tauri::AppHandle, override_args: Option<Vec<String>>) -> Result<(), String> {+ info!("Spawning sidecar with override args: {:?}", override_args);+ // Update settings from store+ self.update_settings(app).await?;++ // Spawn the sidecar+ let child = spawn_sidecar(app, override_args)?;+ self.child = Some(child);++ Ok(())+ }++ async fn update_settings(&mut self, app: &tauri::AppHandle) -> Result<(), String> {+ let store = get_store(app, None).unwrap();++ let dev_mode = store+ .get("devMode")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);++ debug!("dev_mode: {}", dev_mode);++ *self.dev_mode.lock().await = dev_mode;++ Ok(())+ }+}diff --git a/openrewind/src-tauri/src/store.rs b/openrewind/src-tauri/src/store.rsnew file mode 100644index 000000000..928600e82--- /dev/null+++ b/openrewind/src-tauri/src/store.rs@@ -0,0 +1,64 @@+use super::get_base_dir;+use std::sync::Arc;+use tauri::AppHandle;+use tauri_plugin_store::StoreBuilder;+use tracing::debug;++#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]+pub struct ProfilesConfig {+ active_profile: String,+ profiles: Vec<String>,+}++impl Default for ProfilesConfig {+ fn default() -> Self {+ Self {+ active_profile: "default".to_string(),+ profiles: vec!["default".to_string()],+ }+ }+}++pub fn get_profiles_store(+ app: &AppHandle,+) -> anyhow::Result<Arc<tauri_plugin_store::Store<tauri::Wry>>> {+ let base_dir = get_base_dir(app, None)?;+ let profiles_path = base_dir.join("profiles.bin");+ Ok(StoreBuilder::new(app, profiles_path).build()?)+}++pub fn get_store(+ app: &AppHandle,+ profile_name: Option<String>,+) -> anyhow::Result<Arc<tauri_plugin_store::Store<tauri::Wry>>> {+ let base_dir = get_base_dir(app, None)?;+ let profiles_path = base_dir.join("profiles.bin");++ // Try to load profiles configuration, fallback to default if file doesn't exist+ let profile = if profiles_path.exists() {+ let profiles_store = StoreBuilder::new(app, profiles_path.clone()).build()?;+ match profile_name {+ Some(name) => name,+ None => profiles_store+ .get("activeProfile")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_else(|| "default".to_string()),+ }+ } else {+ "default".to_string()+ };++ debug!("Using settings profile: {}", profile);++ // Determine store file path based on profile+ let store_path = if profile == "default" {+ base_dir.join("store.bin")+ } else {+ base_dir.join(format!("store-{}.bin", profile))+ };++ // Build and return the store wrapped in Arc+ StoreBuilder::new(app, store_path)+ .build()+ .map_err(|e| anyhow::anyhow!(e))+}diff --git a/openrewind/src-tauri/src/tray.rs b/openrewind/src-tauri/src/tray.rsnew file mode 100644index 000000000..d3563532d--- /dev/null+++ b/openrewind/src-tauri/src/tray.rs@@ -0,0 +1,256 @@+use crate::commands::show_main_window;+use crate::store::get_store;+use anyhow::Result;+use once_cell::sync::Lazy;+use std::collections::HashMap;+use std::sync::Mutex;+use tauri::tray::{MouseButton, MouseButtonState, TrayIcon};+use tauri::Emitter;+use tauri::{+ menu::{MenuBuilder, MenuItemBuilder, PredefinedMenuItem},+ AppHandle, Manager, Wry,+};+use tauri_plugin_opener::OpenerExt;++use tracing::{debug, error};++// Track last known state to avoid unnecessary updates+static LAST_MENU_STATE: Lazy<Mutex<MenuState>> = Lazy::new(|| Mutex::new(MenuState::default()));++#[derive(Default, PartialEq, Clone)]+struct MenuState {+ shortcuts: HashMap<String, String>,+}++pub fn setup_tray(app: &AppHandle, update_item: &tauri::menu::MenuItem<Wry>) -> Result<()> {+ if let Some(main_tray) = app.tray_by_id("screenpipe_main") {+ // Initial menu setup with empty state+ let menu = create_dynamic_menu(app, &MenuState::default(), update_item)?;+ main_tray.set_menu(Some(menu))?;++ // Setup click handlers+ setup_tray_click_handlers(&main_tray)?;++ // Start menu updater+ setup_tray_menu_updater(app.clone(), update_item);+ }+ Ok(())+}++fn create_dynamic_menu(+ app: &AppHandle,+ _state: &MenuState,+ update_item: &tauri::menu::MenuItem<Wry>,+) -> Result<tauri::menu::Menu<Wry>> {+ let store = get_store(app, None)?;+ let mut menu_builder = MenuBuilder::new(app);++ // Get the show shortcut from store+ let show_shortcut = store+ .get("showScreenpipeShortcut")+ .and_then(|v| v.as_str().map(String::from))+ .unwrap_or_else(|| "Super+Alt+S".to_string());++ // Show item with formatted shortcut in label+ menu_builder = menu_builder.item(+ &MenuItemBuilder::with_id(+ "show",+ format!("show screenpipe ({})", format_shortcut(&show_shortcut)),+ )+ .build(app)?,+ );++ // Version and update items+ menu_builder = menu_builder+ .item(&PredefinedMenuItem::separator(app)?)+ .item(+ &MenuItemBuilder::with_id("version", format!("version {}", app.package_info().version))+ .enabled(false)+ .build(app)?,+ )+ .item(update_item);++ // Only show recording controls if not in dev mode+ let dev_mode = store+ .get("devMode")+ .and_then(|v| v.as_bool())+ .unwrap_or(false);+ if !dev_mode {+ menu_builder = menu_builder+ .item(&PredefinedMenuItem::separator(app)?)+ .item(&MenuItemBuilder::with_id("start_recording", "start recording").build(app)?)+ .item(&MenuItemBuilder::with_id("stop_recording", "stop recording").build(app)?);+ }++ // Settings and quit+ menu_builder = menu_builder+ .item(&PredefinedMenuItem::separator(app)?)+ .item(&MenuItemBuilder::with_id("quick_start", "quick start").build(app)?)+ .item(&MenuItemBuilder::with_id("settings", "settings").build(app)?)+ .item(&MenuItemBuilder::with_id("changelog", "changelog").build(app)?)+ .item(&MenuItemBuilder::with_id("status", "status").build(app)?)+ .item(&PredefinedMenuItem::separator(app)?)+ .item(&MenuItemBuilder::with_id("quit", "quit screenpipe").build(app)?);++ menu_builder.build().map_err(Into::into)+}++fn setup_tray_click_handlers(main_tray: &TrayIcon) -> Result<()> {+ main_tray.on_menu_event(move |app_handle, event| {+ handle_menu_event(app_handle, event);+ });++ main_tray.on_tray_icon_event(move |tray, event| {+ if let tauri::tray::TrayIconEvent::Click {+ button,+ button_state,+ ..+ } = event+ {+ if button == MouseButton::Left && button_state == MouseButtonState::Up {+ let app = tray.app_handle();+ if let Some(window) = app.get_webview_window("main") {+ let _ = window.show();+ let _ = window.set_focus();+ } else {+ show_main_window(app, true);+ }+ }+ }+ });++ Ok(())+}++fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {+ match event.id().as_ref() {+ "show" => {+ show_main_window(app_handle, false);+ }+ "start_recording" => {+ let _ = app_handle.emit("shortcut-start-recording", ());+ }+ "stop_recording" => {+ let _ = app_handle.emit("shortcut-stop-recording", ());+ }+ "quick_start" => {+ // focus on the main window+ let _ = app_handle.get_webview_window("main").unwrap().set_focus();+ let _ = app_handle+ .opener()+ .open_url("screenpipe://onboarding", None::<&str>);+ }+ "settings" => {+ let _ = app_handle.get_webview_window("main").unwrap().set_focus();+ let _ = app_handle+ .opener()+ .open_url("screenpipe://settings", None::<&str>);+ }+ "changelog" => {+ let _ = app_handle.get_webview_window("main").unwrap().set_focus();+ let _ = app_handle+ .opener()+ .open_url("screenpipe://changelog", None::<&str>);+ }+ "status" => {+ let _ = app_handle.get_webview_window("main").unwrap().set_focus();+ let _ = app_handle+ .opener()+ .open_url("screenpipe://status", None::<&str>);+ }+ "quit" => {+ debug!("Quit requested");++ app_handle.exit(0);+ }+ _ => debug!("Unhandled menu event: {:?}", event.id()),+ }+}++async fn update_menu_if_needed(+ app: &AppHandle,+ update_item: &tauri::menu::MenuItem<Wry>,+) -> Result<()> {+ // Get current state+ let new_state = MenuState {+ shortcuts: get_current_shortcuts(app)?,+ };++ // Compare with last state+ let should_update = {+ let mut last_state = LAST_MENU_STATE.lock().unwrap();+ if *last_state != new_state {+ *last_state = new_state.clone();+ true+ } else {+ false+ }+ };++ if should_update {+ if let Some(tray) = app.tray_by_id("screenpipe_main") {+ let menu = create_dynamic_menu(app, &new_state, update_item)?;+ tray.set_menu(Some(menu))?;+ }+ }++ Ok(())+}++fn get_current_shortcuts(app: &AppHandle) -> Result<HashMap<String, String>> {+ let _store = get_store(app, None)?;+ let shortcuts = HashMap::new();+ Ok(shortcuts)+}++pub fn setup_tray_menu_updater(app: AppHandle, update_item: &tauri::menu::MenuItem<Wry>) {+ let update_item = update_item.clone();+ tauri::async_runtime::spawn(async move {+ let mut interval = tokio::time::interval(std::time::Duration::from_secs(5));+ loop {+ interval.tick().await;+ if let Err(e) = update_menu_if_needed(&app, &update_item).await {+ error!("Failed to update tray menu: {:#}", e);+ }+ }+ });+}++fn format_shortcut(shortcut: &str) -> String {+ // Add parentheses inside the formatting to ensure consistent styling+ shortcut+ .to_lowercase()+ .replace(+ "super",+ if cfg!(target_os = "macos") {+ "⌘"+ } else {+ "win"+ },+ )+ .replace(+ "alt",+ if cfg!(target_os = "macos") {+ "⌥"+ } else {+ "alt"+ },+ )+ .replace(+ "shift",+ if cfg!(target_os = "macos") {+ "⇧"+ } else {+ "shift"+ },+ )+ .replace(+ "ctrl",+ if cfg!(target_os = "macos") {+ "⌃"+ } else {+ "ctrl"+ },+ )+ .replace("+", " ")+}diff --git a/openrewind/src-tauri/src/updates.rs b/openrewind/src-tauri/src/updates.rsnew file mode 100644index 000000000..688717a9f--- /dev/null+++ b/openrewind/src-tauri/src/updates.rs@@ -0,0 +1,210 @@+use crate::stop_screenpipe;+use crate::SidecarState;+use anyhow::Error;+use dark_light::Mode;+use log::{error, info};+use std::sync::Arc;+use std::time::Duration;+use tauri::menu::{MenuItem, MenuItemBuilder};+use tauri::{Emitter, Manager, Wry};+use tauri_plugin_dialog::DialogExt;+use tauri_plugin_dialog::MessageDialogButtons;+use tauri_plugin_updater::UpdaterExt;+use tokio::sync::oneshot;+use tokio::sync::Mutex;+use tokio::time::interval;++pub struct UpdatesManager {+ interval: Duration,+ update_available: Arc<Mutex<bool>>,+ app: tauri::AppHandle,+ update_menu_item: MenuItem<Wry>,+ update_installed: Arc<Mutex<bool>>,+}++impl UpdatesManager {+ pub fn new(app: &tauri::AppHandle, interval_minutes: u64) -> Result<Self, Error> {+ Ok(Self {+ interval: Duration::from_secs(interval_minutes * 60),+ update_available: Arc::new(Mutex::new(false)),+ update_installed: Arc::new(Mutex::new(false)),+ app: app.clone(),+ update_menu_item: MenuItemBuilder::with_id("update_now", "screenpipe is up to date")+ .enabled(false)+ .build(app)?,+ })+ }++ pub async fn check_for_updates(+ &self,+ show_dialog: bool,+ ) -> Result<bool, Box<dyn std::error::Error>> {+ if let Ok(val) = std::env::var("TAURI_ENV_DEBUG") {+ if val == "true" {+ info!("dev mode is enabled, skipping update check");+ return Result::Ok(false);+ }+ }+ if cfg!(debug_assertions) {+ info!("dev mode is enabled, skipping update check");+ return Result::Ok(false);+ }++ if let Err(err) = self.app.emit("update-all-pipes", ()) {+ error!("Failed to update all pipes: {}", err);+ }++ if let Some(update) = self.app.updater()?.check().await? {+ *self.update_available.lock().await = true;++ #[cfg(target_os = "windows")]+ {+ self.update_menu_item.set_enabled(true)?;+ self.update_menu_item.set_text("update now")?;+ }++ #[cfg(not(target_os = "windows"))]+ {+ self.update_menu_item.set_enabled(false)?;+ self.update_menu_item+ .set_text("downloading latest version of screenpipe")?;+ }++ if let Some(tray) = self.app.tray_by_id("screenpipe_main") {+ let theme = dark_light::detect().unwrap_or(Mode::Dark);+ let icon_path = if theme == Mode::Light {+ "assets/screenpipe-logo-tray-updates-black.png"+ } else {+ "assets/screenpipe-logo-tray-updates-white.png"+ };++ let path = self+ .app+ .path()+ .resolve(icon_path, tauri::path::BaseDirectory::Resource)?;++ if let Ok(image) = tauri::image::Image::from_path(path) {+ tray.set_icon(Some(image))?;+ tray.set_icon_as_template(true)?;+ }+ }++ #[cfg(not(target_os = "windows"))]+ {+ update.download_and_install(|_, _| {}, || {}).await?;+ *self.update_installed.lock().await = true;+ self.update_menu_item.set_enabled(true)?;+ self.update_menu_item.set_text("update now")?;+ }++ if show_dialog {+ let (tx, rx) = oneshot::channel();+ let update_dialog = self+ .app+ .dialog()+ .message("update available")+ .title("screenpipe update")+ .buttons(MessageDialogButtons::OkCancelCustom(+ "update now".to_string(),+ "later".to_string(),+ ))+ .parent(&self.app.get_webview_window("main").unwrap());++ update_dialog.show(move |answer| {+ let _ = tx.send(answer);+ });++ if rx.await? {+ #[cfg(target_os = "windows")]+ {++ self.update_menu_item.set_enabled(false)?;+ self.update_menu_item+ .set_text("downloading latest version of screenpipe")?;++ if let Err(err) =+ stop_screenpipe(self.app.state::<SidecarState>(), self.app.clone())+ .await+ {+ error!("Failed to kill sidecar: {}", err);+ }++ update.download_and_install(|_, _| {}, || {}).await?;+ *self.update_installed.lock().await = true;++ self.update_menu_item.set_enabled(true)?;+ self.update_menu_item.set_text("update now")?;+ }+ // Proceed with the update++ // i think it shouldn't kill if we're in dev mode (on macos, windows need to kill)+ // bad UX: i use CLI and it kills my CLI because i updated app++ #[cfg(not(target_os = "windows"))]+ {+ if let Err(err) =+ stop_screenpipe(self.app.state::<SidecarState>(), self.app.clone())+ .await+ {+ error!("Failed to kill sidecar: {}", err);+ }+ }+ self.update_screenpipe();+ }+ }++ return Result::Ok(true);+ }++ Result::Ok(false)+ }++ pub fn update_now_menu_item_ref(&self) -> &MenuItem<Wry> {+ &self.update_menu_item+ }++ pub fn update_screenpipe(&self) -> Option<Error> {+ self.app.restart();+ }++ pub async fn start_periodic_event(&self) {+ let mut interval = interval(self.interval);++ loop {+ interval.tick().await;+ if !*self.update_available.lock().await {+ if let Err(e) = self.check_for_updates(true).await {+ error!("Failed to check for updates: {}", e);+ }+ }+ }+ }+}++pub fn start_update_check(+ app: &tauri::AppHandle,+ interval_minutes: u64,+) -> Result<Arc<UpdatesManager>, Box<dyn std::error::Error>> {+ let updates_manager = Arc::new(UpdatesManager::new(app, interval_minutes)?);++ // Check for updates at boot+ tokio::spawn({+ let updates_manager = updates_manager.clone();+ async move {+ if let Err(e) = updates_manager.check_for_updates(false).await {+ error!("Failed to check for updates: {}", e);+ }+ info!("Update check started");+ }+ });++ // Start periodic events+ tokio::spawn({+ let updates_manager = updates_manager.clone();+ async move {+ updates_manager.start_periodic_event().await;+ }+ });++ Ok(updates_manager)+}diff --git a/openrewind/src-tauri/src/window_api.rs b/openrewind/src-tauri/src/window_api.rsnew file mode 100644index 000000000..9d1682561--- /dev/null+++ b/openrewind/src-tauri/src/window_api.rs@@ -0,0 +1,131 @@+use axum::{extract::State, http::StatusCode, Json};+use serde::{Deserialize, Serialize};+use tauri::Manager;+use tracing::{error, info};++use crate::ServerState;++#[derive(Deserialize, Debug)]+pub struct OpenLocalPathPayload {+ path: String,+ port: u16,+ title: String,+ width: f64,+ height: f64,+ x: Option<i32>,+ y: Option<i32>,+ always_on_top: Option<bool>,+ transparent: Option<bool>,+ decorations: Option<bool>,+ hidden_title: Option<bool>,+ is_focused: Option<bool>,+ visible_on_all_workspaces: Option<bool>,+}++#[derive(Serialize)]+pub struct ApiResponse {+ success: bool,+ message: String,+}++pub async fn show_specific_window(+ State(state): State<ServerState>,+ Json(payload): Json<OpenLocalPathPayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("opening local path: {}", payload.path);++ // Close existing window if it exists+ if let Some(existing_window) = state.app_handle.get_webview_window(&payload.title) {+ if let Err(e) = existing_window.destroy() {+ error!("failed to close existing window: {}", e);+ }+ tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;+ }+ #[cfg(target_os = "macos")]+ let _ = state+ .app_handle+ .set_activation_policy(tauri::ActivationPolicy::Accessory);+ let url = format!("http://localhost:{}{}", payload.port, payload.path);+ let mut builder = tauri::WebviewWindowBuilder::new(+ &state.app_handle,+ &payload.title,+ tauri::WebviewUrl::External(url.parse().unwrap()),+ )+ .title(&payload.title)+ .transparent(payload.transparent.unwrap_or(true))+ .decorations(payload.decorations.unwrap_or(false))+ .focused(payload.is_focused.unwrap_or(true))+ .inner_size(payload.width, payload.height)+ .always_on_top(payload.always_on_top.unwrap_or(true))+ .visible_on_all_workspaces(payload.visible_on_all_workspaces.unwrap_or(true));++ #[cfg(target_os = "macos")]+ {+ builder = builder.hidden_title(payload.hidden_title.unwrap_or(true));+ }++ let window = builder.build();++ match window {+ Ok(window) => {+ // Set position if provided+ if let (Some(x), Some(y)) = (payload.x, payload.y) {+ let _ = window+ .set_position(tauri::Position::Physical(tauri::PhysicalPosition { x, y }));+ }++ if let Err(e) = window.show() {+ error!("failed to show window: {}", e);+ return Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to show window: {}", e),+ ));+ }++ Ok(Json(ApiResponse {+ success: true,+ message: "window opened successfully".to_string(),+ }))+ }+ Err(e) => {+ error!("failed to create window: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to create window: {}", e),+ ))+ }+ }+}++#[derive(Deserialize, Debug)]+pub struct CloseWindowPayload {+ title: String,+}++pub async fn close_window(+ State(state): State<ServerState>,+ Json(payload): Json<CloseWindowPayload>,+) -> Result<Json<ApiResponse>, (StatusCode, String)> {+ info!("received window close request: {:?}", payload);++ if let Some(window) = state.app_handle.get_webview_window(&payload.title) {+ match window.destroy() {+ Ok(_) => Ok(Json(ApiResponse {+ success: true,+ message: "window closed successfully".to_string(),+ })),+ Err(e) => {+ error!("failed to close window: {}", e);+ Err((+ StatusCode::INTERNAL_SERVER_ERROR,+ format!("failed to close window: {}", e),+ ))+ }+ }+ } else {+ Err((+ StatusCode::NOT_FOUND,+ format!("window with title '{}' not found", payload.title),+ ))+ }+}diff --git a/openrewind/src-tauri/tauri.conf.json b/openrewind/src-tauri/tauri.conf.jsonnew file mode 100644index 000000000..7f78dd6e0--- /dev/null+++ b/openrewind/src-tauri/tauri.conf.json@@ -0,0 +1,127 @@+{+ "$schema": "https://schema.tauri.app/config/2",+ "productName": "openrewind",+ "identifier": "screenpi.pe",+ "build": {+ "beforeDevCommand": "bun run dev",+ "beforeBuildCommand": "bun run build",+ "frontendDist": "../out",+ "devUrl": "http://localhost:3000"+ },+ "bundle": {+ "createUpdaterArtifacts": true,+ "active": true,+ "category": "DeveloperTool",+ "copyright": "",+ "targets": [+ "app",+ "dmg",+ "deb",+ "appimage",+ "nsis"+ ],+ "externalBin": [],+ "icon": [+ "icons/32x32.png",+ "icons/128x128.png",+ "icons/[email protected]",+ "icons/256x256.png",+ "icons/512x512.png",+ "icons/1024x1024.png",+ "icons/icon.icns",+ "icons/icon.ico",+ "icons/screenpipe-logo-tray-failed.png",+ "icons/screenpipe-logo-tray-black.png"+ ],+ "resources": [+ "assets/*"+ ]+ },+ "plugins": {+ "updater": {+ "active": true,+ "dialog": true,+ "endpoints": [+ "https://cdn.crabnebula.app/update/mediar/screenpipe/{{target}}-{{arch}}/{{current_version}}"+ ],+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDIyQjQ2RkQzMUNBOUFDMTcKUldRWHJLa2MwMiswSWl3RlBGUW5zYUE0Zm0vNFFRRTltNUZZTUVxR2FxUDNtSWdUSHgyL3JNcmcK"+ },+ "deep-link": {+ "desktop": {+ "schemes": [+ "screenpipe"+ ]+ },+ "mobile": [+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/auth"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/stripe-connect"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/purchase-successful"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/settings"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/changelog"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/onboarding"+ ]+ },+ {+ "host": "screenpi.pe",+ "pathPrefix": [+ "/status"+ ]+ }+ ]+ }+ },+ "app": {+ "withGlobalTauri": true,+ "trayIcon": {+ "id": "screenpipe_main",+ "iconPath": "assets/screenpipe-logo-tray-white.png",+ "iconAsTemplate": true+ },+ "windows": [+ {+ "title": "openrewind",+ "width": 1200,+ "height": 850,+ "resizable": true+ }+ ],+ "security": {+ "assetProtocol": {+ "enable": true,+ "scope": [+ "$APPDATA/**"+ ]+ },+ "csp": null+ },+ "macOSPrivateApi": true+ }+}diff --git a/openrewind/src-tauri/tauri.linux.conf.json b/openrewind/src-tauri/tauri.linux.conf.jsonnew file mode 100644index 000000000..99fa8af26--- /dev/null+++ b/openrewind/src-tauri/tauri.linux.conf.json@@ -0,0 +1,17 @@+{+ "bundle": {+ "externalBin": [+ "screenpipe",+ "bun"+ ],+ "linux": {+ "deb": {+ "depends": [+ "tesseract-ocr",+ "libtesseract-dev",+ "ffmpeg"+ ]+ }+ }+ }+}diff --git a/openrewind/src-tauri/tauri.macos.conf.json b/openrewind/src-tauri/tauri.macos.conf.jsonnew file mode 100644index 000000000..2cf020465--- /dev/null+++ b/openrewind/src-tauri/tauri.macos.conf.json@@ -0,0 +1,20 @@+{+ "bundle": {+ "macOS": {+ "entitlements": "entitlements.plist",+ "hardenedRuntime": true,+ "exceptionDomain": "screenpi.pe",+ "provisioningProfile": null,+ "dmg": {+ "background": "assets/dmg-background.png"+ }+ },+ "externalBin": [+ "screenpipe",+ "bun",+ "ui_monitor",+ "ffmpeg",+ "ffprobe"+ ]+ }+}diff --git a/openrewind/src-tauri/tauri.windows.conf.json b/openrewind/src-tauri/tauri.windows.conf.jsonnew file mode 100644index 000000000..4208ca1c5--- /dev/null+++ b/openrewind/src-tauri/tauri.windows.conf.json@@ -0,0 +1,30 @@+{+ "bundle": {+ "windows": {+ "nsis": {+ "headerImage": "assets/nsis-header.bmp",+ "sidebarImage": "assets/nsis-sidebar.bmp",+ "installerIcon": "icons/icon.ico"+ }+ },+ "externalBin": [+ "screenpipe",+ "bun"+ ],+ "targets": [+ "nsis"+ ],+ "resources": {+ "ffmpeg\\bin\\ffmpeg.exe": "./",+ "ffmpeg\\bin\\ffprobe.exe": "./",+ "ffmpeg\\bin\\*.dll": "./",+ "ffmpeg\\lib\\*": "./",+ "onnxruntime*\\lib\\onnxruntime.dll": "./",+ "onnxruntime*\\lib\\onnxruntime_providers_cuda.dll": "./",+ "onnxruntime*\\lib\\onnxruntime_providers_shared.dll": "./",+ "mkl\\*.dll": "./",+ "vcredist\\*.dll": "./",+ "assets/*": "./assets/"+ }+ }+}diff --git a/openrewind/src-tauri/ui_monitor-aarch64-apple-darwin b/openrewind/src-tauri/ui_monitor-aarch64-apple-darwinnew file mode 100755index 000000000..1b39f2ee3Binary files /dev/null and b/openrewind/src-tauri/ui_monitor-aarch64-apple-darwin differdiff --git a/openrewind/src-tauri/ui_monitor-x86_64-apple-darwin b/openrewind/src-tauri/ui_monitor-x86_64-apple-darwinnew file mode 100755index 000000000..a9760b232Binary files /dev/null and b/openrewind/src-tauri/ui_monitor-x86_64-apple-darwin differdiff --git a/openrewind/tailwind.config.ts b/openrewind/tailwind.config.tsnew file mode 100644index 000000000..4088bfe16--- /dev/null+++ b/openrewind/tailwind.config.ts@@ -0,0 +1,127 @@+/** @type {import('tailwindcss').Config} */+module.exports = {+ darkMode: ["class"],+ content: [+ "./pages/**/*.{ts,tsx}",+ "./components/**/*.{ts,tsx}",+ "./app/**/*.{ts,tsx}",+ "./src/**/*.{ts,tsx}",+ ],+ prefix: "",+ theme: {+ container: {+ center: "true",+ padding: "2rem",+ screens: {+ "2xl": "1400px",+ },+ },+ extend: {+ fontFamily: {+ sans: ["var(--font-geist-sans)"],+ mono: ["var(--font-geist-mono)"],+ },+ colors: {+ border: "hsl(var(--border))",+ input: "hsl(var(--input))",+ ring: "hsl(var(--ring))",+ background: "hsl(var(--background))",+ foreground: "hsl(var(--foreground))",+ primary: {+ DEFAULT: "hsl(var(--primary))",+ foreground: "hsl(var(--primary-foreground))",+ },+ secondary: {+ DEFAULT: "hsl(var(--secondary))",+ foreground: "hsl(var(--secondary-foreground))",+ },+ destructive: {+ DEFAULT: "hsl(var(--destructive))",+ foreground: "hsl(var(--destructive-foreground))",+ },+ muted: {+ DEFAULT: "hsl(var(--muted))",+ foreground: "hsl(var(--muted-foreground))",+ },+ accent: {+ DEFAULT: "hsl(var(--accent))",+ foreground: "hsl(var(--accent-foreground))",+ },+ popover: {+ DEFAULT: "hsl(var(--popover))",+ foreground: "hsl(var(--popover-foreground))",+ },+ card: {+ DEFAULT: "hsl(var(--card))",+ foreground: "hsl(var(--card-foreground))",+ },+ "color-1": "hsl(var(--color-1))",+ "color-2": "hsl(var(--color-2))",+ "color-3": "hsl(var(--color-3))",+ "color-4": "hsl(var(--color-4))",+ "color-5": "hsl(var(--color-5))",+ sidebar: {+ DEFAULT: "hsl(var(--sidebar-background))",+ foreground: "hsl(var(--sidebar-foreground))",+ primary: "hsl(var(--sidebar-primary))",+ "primary-foreground": "hsl(var(--sidebar-primary-foreground))",+ accent: "hsl(var(--sidebar-accent))",+ "accent-foreground": "hsl(var(--sidebar-accent-foreground))",+ border: "hsl(var(--sidebar-border))",+ ring: "hsl(var(--sidebar-ring))",+ },+ },+ borderRadius: {+ lg: "var(--radius)",+ md: "calc(var(--radius) - 2px)",+ sm: "calc(var(--radius) - 4px)",+ },+ keyframes: {+ blink: {+ "0%, 100%": { opacity: "1" },+ "50%": { opacity: "0" },+ },+ "accordion-down": {+ from: {+ height: "0",+ },+ to: {+ height: "var(--radix-accordion-content-height)",+ },+ },+ "accordion-up": {+ from: {+ height: "var(--radix-accordion-content-height)",+ },+ to: {+ height: "0",+ },+ },+ pulse: {+ "0%, 100%": {+ opacity: "1",+ },+ "50%": {+ opacity: ".5",+ },+ },+ rainbow: {+ "0%": {+ "background-position": "0%",+ },+ "100%": {+ "background-position": "200%",+ },+ },+ },+ animation: {+ "accordion-down": "accordion-down 0.2s ease-out",+ "accordion-up": "accordion-up 0.2s ease-out",+ pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",+ rainbow: "rainbow var(--speed, 2s) infinite linear",+ },+ }++ },+ plugins: [require("tailwindcss-animate"), require("@tailwindcss/typography")],+};diff --git a/openrewind/tsconfig.json b/openrewind/tsconfig.jsonnew file mode 100644index 000000000..7e47c1df1--- /dev/null+++ b/openrewind/tsconfig.json@@ -0,0 +1,43 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "lib": [+ "dom",+ "dom.iterable",+ "esnext"+ ],+ "allowJs": true,+ "skipLibCheck": true,+ "strict": true,+ "noEmit": true,+ "esModuleInterop": true,+ "module": "esnext",+ "moduleResolution": "bundler",+ "resolveJsonModule": true,+ "isolatedModules": true,+ "jsx": "preserve",+ "incremental": true,+ "plugins": [+ {+ "name": "next"+ }+ ],+ "paths": {+ "@/*": [+ "./*"+ ]+ },+ "types": ["@wdio/globals/types", "@wdio/mocha-framework","@tauri-apps/api"]+ },+ "include": [+ "next-env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ ".next/types/**/*.ts"+ ],+ "exclude": [+ "node_modules",+ "src-tauri",+ "scripts"+ ]+}\ No newline at end of filediff --git a/openrewind/wdio.conf.js b/openrewind/wdio.conf.jsnew file mode 100644index 000000000..7a8bfb82e--- /dev/null+++ b/openrewind/wdio.conf.js@@ -0,0 +1,81 @@+const { TestRecorder } = require('./e2e/record.js');+const { spawn, execSync } = require('node:child_process');+const os = require('node:os');+const path = require('node:path');+const fs = require('node:fs');++const videoRecorder = new TestRecorder();+let tauriDriver;++// Helper function to find the correct executable path+const findExecutablePath = () => {+ const paths = [+ './src-tauri/target/release/screenpipe-app.exe',+ './src-tauri/target/x86_64-pc-windows-msvc/release/screenpipe-app.exe',+ './src-tauri/target/release/screenpipe-app',+ './src-tauri/target/x86_64-unknown-linux-gnu/release/screenpipe-app'+ ];++ for (const p of paths) {+ if (fs.existsSync(p)) {+ return p;+ }+ }++ throw new Error('Could not find screenpipe-app.exe in any of the expected locations');+};++const executablePath = findExecutablePath();+exports.config = {+ hostname: '127.0.0.1',+ port: 4444,+ specs: ['./e2e/tests/**/*.js'],+ maxInstances: 1,+ capabilities: [+ {+ maxInstances: 1,+ 'tauri:options': {+ application: executablePath+ }+ }+ ],+ reporters: ['spec'],+ framework: 'mocha',+ mochaOpts: {+ ui: 'bdd',+ timeout: 60000+ },++ waitforTimeout: 10000,+ connectionRetryTimeout: 120000,+ connectionRetryCount: 0,++ before: async function() {+ // Initialize browser object+ // await browser.setWindowSize(1200, 850);+ },++ beforeTest: function (test) {+ const videoPath = path.join(__dirname, '/e2e/videos');+ videoRecorder.start(test, videoPath);+ },++ afterTest: async function () {+ await videoRecorder.stop();+ },++ // ensure we are running `tauri-driver` before the session starts so that we can proxy the webdriver requests+ beforeSession: () =>+ (tauriDriver = spawn(path.resolve(os.homedir(), '.cargo', 'bin', 'tauri-driver'), [], {+ stdio: [null, process.stdout, process.stderr]+ })),++ afterSession: async () => {+ // Make sure to stop the video recorder before killing the tauri driver+ await videoRecorder.stop();++ if (tauriDriver) {+ tauriDriver.kill();+ }+ },+};\ No newline at end of file