The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
Delete the Tauri app, and everything that only existed for it
Jareer5a6648962e02
diff --git a/.gitignore b/.gitignoreindex bfabe242..3d50ec1d 100644--- a/.gitignore+++ b/.gitignore@@ -7,21 +7,6 @@ target/**/target/*.pdb-# Node-node_modules/-dist/-dist-ssr/-.vite/-*.local-npm-debug.log*-yarn-debug.log*-yarn-error.log*-pnpm-debug.log*--# Tauri build output-desktop/src-tauri/gen/-desktop/src-tauri/target/-# Python (tooling and one-off scripts live at the repo root for now)__pycache__/*.py[cod]@@ -59,23 +44,8 @@ desktop.ini.env.env.local-# FFmpeg development build for the FFI decoder (headers + import libs).-# Large, machine-specific, and not needed for a normal build - see BUILD.md.+# An FFmpeg development build unpacked locally for the linked engine+# (headers + import libraries), pointed at with FFMPEG_DIR. Large and+# machine-specific./vendor/--# Bundled FFmpeg, staged for packaging. Produced by .github/workflows/ffmpeg.yml-# or copied from a dev build - either way it is a binary artifact, not source.-# The README stays tracked so the directory exists on a fresh checkout - the-# `ffmpeg/*` resources glob in tauri.conf.json fails the build if it matches-# nothing.-desktop/src-tauri/ffmpeg/*-!desktop/src-tauri/ffmpeg/README.md--# Guard against staging-script cwd mistakes: a `desktop/...`-relative copy run-# from inside desktop/ once committed a whisper-cli binary to git history.-desktop/desktop/--# ts-rs's default export directory. The real output goes to-# desktop/src/lib/generated/ via scripts/generate-ipc-types.sh; this appears-# only when the `types` feature's tests run without TS_RS_EXPORT_DIR set.-desktop/src-tauri/bindings/+/ffmpeg-dev/diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex 1534cf3d..cc27fd21 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -15,7 +15,7 @@ references are current as of this writing.flowchart LRsubgraph WINDOW["engine/crates/concat — the window (Slint)"]UI["ui/*.slint<br/>panes, dialogs, primitives"]- MAIN["src/main.rs<br/>state, bindings, demo data"]+ MAIN["src/main.rs · studio.rs<br/>bindings, view state"]endsubgraph HOST["concat-host · concat-speech"]SESSION[Session]@@ -75,7 +75,7 @@ rendering. `concat-media` is the only crate that knows FFmpeg exists.| `concat-host` | 3.4k | 22 | Sessions, project folders and recents, media caches beside the project, the monitor's reader pool, the export slot, audio playback, templates, one-at-a-time job slots, app directories. || `concat-speech` | 1.2k | 6 | Transcription (whisper.cpp in-process) and text to speech (Kokoro via sherpa-onnx), with model downloads. || `concat-cli` | 0.2k | 3 | Probe/render vertical slice for testing the engine without the app. |-| `concat` | 5.0k Rust + 14.9k Slint | 0 | The window. Every pane, dialog and primitive, and - today - a demo model that stands in for the engine. |+| `concat` | 4.5k Rust + 14.9k Slint | 3 | The window. Every pane, dialog and primitive, bound to the host layer: sessions, imports, gestures as commands, the monitor, playback, export, speech. |---@@ -269,43 +269,35 @@ Hybrid pipeline in `concat-export`, unchanged in shape:----## 7. The window, and the wiring that is not done+## 7. The window`engine/crates/concat` is the Slint tree ported from the wc-ui-rnd researchrepository: 14.9k lines of `.slint` across the workspace (dockable seatsholding four views), the timeline (lanes, tabs, track headers, tray), theinspector, the media bin, the launch screen, the export and settings sheets,menus, tooltips, toasts, and the primitives under them. Fonts and effect-previews are embedded in the binary. It builds under the workspace's edition-and lints and it runs.+previews are embedded in the binary.-What drives it today is `src/main.rs`: 5k lines binding every callback of-the `Editor` global to a **demo model** - `Studio`, `TimelineDoc`,-`ClipDoc`, `Library`, `ExportState`, `SettingsState` - with fake media,-synthetic waveforms and simulated downloads. That model exists so the UI-could be built and judged before the engine was attached. It is the thing to-replace, and replacing it is the single largest open item in the codebase.+The Rust side is small and split by what it owns:-The mapping is direct, which is why it was worth porting the window first:--| Demo state in `main.rs` | Becomes |+| File | Owns ||---|---|-| `TimelineDoc` / `ClipDoc` / `TrackDoc` | `concat_project::Project` read through `Session::project()`; edits become `Command`s |-| `Library` (bin rows, counts, filter) | `Project::media` plus `concat_host::media::probe` on import |-| `wave_path` from a seeded synthesiser | `concat_host::media::peaks` → the same SVG path builder |-| the empty preview stage | `Monitor::frame` → `slint::Image` |-| `playing` / `playhead` ticked by a timer | `Playback` and its clock |-| `ExportState`'s simulated progress | `Exporter` + `export::run` on a thread, progress through `invoke_from_event_loop` |-| `demo_transcribers` / `demo_voices` | `Transcriber::status` / `Speech::status`, downloads with real progress |-| `StartState` / `demo_recents` | `projects::create` / `open` / `list` / `forget` |-| `Dock` layout, gestures, selection, tool, zoom | stay in the window: this is what the UI genuinely owns |--Recommended order, each step leaving a runnable app: projects and recents →-media import with real probes and peaks → the timeline reading `Project`-and writing `Command`s → the monitor → playback → export → speech →-templates. Threading pattern for all of it: `std::thread::spawn` the work,-`slint::invoke_from_event_loop` the result; never block the event loop on a-decoder.+| `main.rs` | Startup (renderer selection, the services), and one binding per callback the `Editor` global exposes. Every handler is "mutate the state, then republish". |+| `studio.rs` | The window's state. Reads the engine's `Project` through the open `Session`; writes every edit as a `Command`. Holds what the document does not: selection, playhead, zoom, tool, which lanes are locked, the dock tree, what the sheets show. Publishes it all into Slint's models. |+| `host.rs` | The engine's services (playback, monitor, exporter, transcriber, speech, app directories) and the bridge from worker threads back to the event loop. |+| `dock.rs` | The workspace's arrangement as a tree, walked flat for Slint. |+| `chips.rs` · `format.rs` · `prefs.rs` · `sysinfo.rs` | Drag chips, formatting and the waveform path, remembered preferences, the About block. |++Two mechanisms carry the whole design:++- **The echo.** A press clones the project; the pointer mutates the clone;+ `publish` draws whichever exists; release turns the difference into one+ `MoveClips` or `TrimClip`. The inspector's knobs do the same and commit+ as one batch. Undo therefore undoes the gesture, never a pixel of it.+- **`spawn` and `Shell::with`.** Anything slow runs on its own thread and+ hands its result to `slint::invoke_from_event_loop`, where the state is+ reached again through a thread-local. Nothing but the event-loop thread+ ever touches the state, which is why it needs no lock.---@@ -314,17 +306,21 @@ decoder.The honest list, ordered by how much they matter. Nothing here is on fire,but several are traps for a contributor who does not know the invariant.-### 8.1 The window is a demo (highest priority)+### 8.1 The window is newly wired (highest priority)-Everything in §7. Until the wiring lands, the app cannot open a real-project. The host and engine are complete enough to support every feature-the Tauri app had; the gap is entirely in `main.rs`.+The wiring landed in one pass and has had one afternoon of use. Known from+that afternoon: the clip context menu's actions did not take effect in one+report, timeline clips draw no filmstrip (only audio clips draw their+waveform; `lanes.slint` still has the slot the reference tiled a filmstrip+into), and the monitor's failures used to be swallowed - they now log to+stderr and toast once. Expect more of this: every flow in §7 needs a real+project put through it, and the window has no tests of its own.### 8.2 Title clips have no rasteriser-The Tauri UI rasterised text clips to PNGs in the webview (`rasterize.ts`)-and shipped them into the export as image clips - `ExportRequest` still-expects titles that way. Nothing in the Rust tree draws text into a `Frame`.+The earlier web-based UI rasterised text clips to PNGs in the browser and+shipped them into the export as image clips - `ExportRequest` still expects+titles that way. Nothing in the Rust tree draws text into a `Frame`.This needs a text rasteriser (a `cosmic-text`/`fontdue`-shaped crate againstthe embedded Inter and Synonym faces) in the engine, so titles renderidentically in the monitor and the export. Until then, text clips are@@ -360,10 +356,9 @@ rebuildable) and apply it once.`mix_graph` is pinned by a dozen unit tests, and the export loop has teststhat render synthetic video; `mix_to_file` and `mux` are exercised by no-test with real audio. The old subprocess path was covered by-`desktop/src-tauri/tests/export_integration.rs`, which died with the host.-Write the replacement against a generated tone before anything else touches-the audio path.+test with real audio; the integration test that covered the old subprocess+path went with the host it lived in. Write the replacement against a+generated tone before anything else touches the audio path.### 8.7 Build-environment fragility@@ -379,19 +374,12 @@ the audio path.for all of this and have not yet run green on all three platforms. Windows in particular(libclang via chocolatey, `FFMPEG_DIR`, MSVC for whisper.cpp) is untested.-### 8.8 Dead code still in the repository+### 8.8 Shapes left over from the wire-- `desktop/` no longer builds: its host Rust moved into `concat-host` and- `concat-speech`, the media API it used is gone, and the Tauri commands were- its only reason to exist. It stays as a reference for UI behaviour until- the Slint window reproduces it, then it should be deleted along with the- `types` features of `concat-project` and `concat-export` (ts-rs exports- for a TypeScript that no longer exists),- and the `desktop/src/lib/...` references in `chains.rs`'s comments.-- `flake.nix` packages the Tauri app and therefore does not build either.-- `ExportClip`, `ExportRequest` and `PreviewFrameRequest` are wire types- shaped for JSON; with no wire, `concat-export` could take the engine's- `Project` and settings directly and drop the flattening-through-a-DTO.+`ExportClip`, `ExportRequest` and `PreviewFrameRequest` are wire types+shaped for JSON; with no wire, `concat-export` could take the engine's+`Project` and settings directly and drop the flattening-through-a-DTO. The+`serde` derives on the host's view types are the same vestige.### 8.9 Panics in runtime paths@@ -406,8 +394,8 @@ tests, which is fine.- **Zero TODO/FIXME/HACK comments** in the tree. Invariants live in prosecomments instead; keep it that way.- Comments in `concat/ui/*.slint` still cite `web/` (the React reference in- the wc-ui-rnd repository) and `desktop/` (the Tauri app). They are history,- not pointers; rewrite them as the files are touched.+ the wc-ui-rnd repository) and `desktop/` (the earlier app, deleted). They+ are history, not pointers; rewrite them as the files are touched.- Code comments still cite `docs/decisions/…` paths deleted long ago. Eitherrestore the records or strip the references.- `cargo fmt --check` is not clean across the older crates and is not@@ -422,7 +410,7 @@ tests, which is fine.| Engine crates | 174 (core 31, media 39, project 41, render 28, export 32, cli 3) | `mix_to_file`/`mux` untested end to end (§8.6); `gpu` feature untested at defaults || Host | 22 | `Playback` (threads, cpal) has unit tests only for the WAV walk and the sweep; no test drives the decode workers || Speech | 6 | Model downloads and whisper itself are network- and model-bound; test with `tiny.en` behind an opt-in feature |-| Window | 0 | Nothing yet; once wired, drive `Session` from a headless harness and snapshot the Slint models |+| Window | 3 | Formatting helpers only. Drive `Studio` against a `Session` from a headless harness and snapshot what it publishes |The real-media tests generate their own fixtures with the linked encoder(a 90-frame colour ramp, a 60-frame strip) so they run anywhere the engine@@ -433,16 +421,15 @@ variable frame rate, and odd containers are the cases most likely to bite.## 10. Where to improve first (opinionated)-1. **Wire the window** (§7), in the order given, committing after each step.+1. **Put a real project through every flow in the window** (§8.1) and fix+ what breaks; then filmstrips on the lanes.2. **A tone-based mix test** (§8.6) before touching the audio path again.3. **A text rasteriser in the engine** (§8.2) - the one feature the Rusttree cannot express today.-4. **Delete `desktop/`** and the ts-rs vestiges (§8.8) once the window covers- its features; it is a liability every day it looks like code.-5. **One poison policy** in `playback.rs` (§8.4) - mechanical, removes the+4. **One poison policy** in `playback.rs` (§8.4) - mechanical, removes thecascade failure mode.-6. **Cap the redo stack** (§8.5) - a small patch, a real leak.-7. **Green CI on all three platforms** (§8.7), then package the window and+5. **Cap the redo stack** (§8.5) - a small patch, a real leak.+6. **Green CI on all three platforms** (§8.7), then package the window andrestore automatic alpha releases.-8. **Frame-for-frame compare an exported dissolve** against a build from+7. **Frame-for-frame compare an exported dissolve** against a build frombefore the FFI move (§8.3).diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f304396c..d938e783 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,11 +13,10 @@ behaviour.- Releases are archives now, built by the `release.yml` workflow from apushed `v*` tag: one binary per platform, with FFmpeg's runtime librariesbeside it on Windows and Linux. Installers return with packaging.-- The editor window is being rebuilt in Slint as the `concat` crate inside- the engine workspace: a native Rust window with no web view, embedding its- own fonts and effect previews. It is not what releases ship yet — the- Tauri + React app in `desktop/` is deprecated but still the release build- until the Slint window is wired to the engine.+- The editor window is rebuilt in Slint as the `concat` crate inside the+ engine workspace: one native Rust binary with no web view, embedding its+ own fonts and effect previews, driving the engine in-process. The Tauri ++ React app is gone, and with it Node, npm and the Nix flake.- Text to speech: File → Text to speech turns typed narration into an audioclip at the playhead, spoken by one of 36 Kokoro voices (American andBritish English, Chinese) at a chosen pace. Generation runs entirely ondiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 5602f0f3..69940df4 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -24,37 +24,22 @@ down for reasons that were invisible from outside.## Setting up-The repo is a Nix flake, which is the shortest path to a working toolchain:--```sh-nix develop # shell with ffmpeg, whisper and the Rust/Node toolchains-npm run app # run the editor-```--Without Nix you will need Rust (see `rust-version` in `engine/Cargo.toml`),-the FFmpeg 7+ development libraries (`brew install ffmpeg`; see-`engine/README.md` for Windows and Linux), cmake and a C++ compiler. Then:+You will need Rust (see `rust-version` in `engine/Cargo.toml`), the FFmpeg+7+ development libraries (`brew install ffmpeg`; see `engine/README.md` for+Windows and Linux), cmake and a C++ compiler. Then:```shcd engine && cargo run -p concat```-That is the Slint editor window, which is where new UI work goes. The Tauri +-React app in `desktop/` is deprecated: it is what releases still ship until-the Slint window can do everything it did, so bug fixes there are welcome,-but features are not. Running it additionally needs Node:--```sh-cd desktop && npm install && npm run app-```+That is the editor window. Everything - the engine, the host layer and the+Slint UI - is one Cargo workspace under `engine/`.## Layout| Path | What lives there ||---|---|-| `engine/crates/` | The Rust engine — core, media, render, export, project, cli — and `concat`, the Slint editor window |-| `desktop/src/` | The React editor UI (deprecated) |-| `desktop/src-tauri/` | Tauri host: commands, session lifecycle, IPC (deprecated) |+| `engine/crates/` | The engine (core, media, render, export, project), the host layer (`concat-host`, `concat-speech`), the CLI, and `concat`, the Slint editor window || `test/` | Media and analysis fixtures |[`ARCHITECTURE.md`](ARCHITECTURE.md) explains how these fit together and where@@ -65,8 +50,7 @@ the sharp edges are. Read it before touching the engine.Run these before opening a PR:```sh-cd engine && cargo fmt --check && cargo clippy --all-targets && cargo test-cd desktop && npm run typecheck && npm run lint && npm test # only if you touched desktop/+cd engine && cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test```New source files need a licence header — see below. Match the style of the code@@ -103,10 +87,6 @@ Every source file starts with:Keep your own copyright line if you want one — add it, don't replace what'sthere.-Generated files are exempt: `desktop/src/lib/generated/` is ts-rs output and is-rewritten wholesale, so headers there would not survive. Those files are covered-by the repository licence like everything else.-### Third-party codeIf your patch brings in code you did not write, say so in the PR: what it is,diff --git a/README.md b/README.mdindex cc51d248..4d785100 100644--- a/README.md+++ b/README.md@@ -28,9 +28,9 @@ interface does the editing, and it all runs on your machine: install it andstart cutting, no account, no extra downloads, no setup.> [!NOTE]-> The interface is moving from Tauri + React (`desktop/`) to Slint, as the-> `concat` crate in `engine/`. Releases still ship the Tauri app while the-> Slint window catches up; see [`engine/README.md`](./engine/README.md).+> The interface was rebuilt in Slint in September 2026 - one native Rust+> binary, no web view. It lives in [`engine/crates/concat`](./engine/crates/concat);+> see [`engine/README.md`](./engine/README.md) for how to build it.## Highlights@@ -66,12 +66,6 @@ Concat is currently in **Alpha (pre-release)**. Download the latest build from [**Status:** ✅ Supported · 🚧 Work in progress · 🧪 To be tested-### Nix (Linux)--The repository is a flake. `nix run github:jub0t/Concat` starts the editor-with ffmpeg and whisper wired in; `nix develop` opens a shell with everything-`npm run app` needs.-## Contribution> [!IMPORTANT]diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.mdindex 5decc6a1..dfe47c54 100644--- a/THIRD_PARTY_NOTICES.md+++ b/THIRD_PARTY_NOTICES.md@@ -14,9 +14,6 @@ terms. Which FFmpeg a binary carries depends on the machine that built it:Homebrew's on macOS, a BtbN `shared` build (https://github.com/BtbN/FFmpeg-Builds)on Windows and in CI. FFmpeg source code: https://ffmpeg.org/download.html-The deprecated Tauri app in `desktop/` still bundles `ffmpeg` and `ffprobe`-binaries as separate programs; that arrangement goes away with it.-## whisper.cppTranscription compiles whisper.cpp (https://github.com/ggml-org/whisper.cpp,@@ -59,10 +56,7 @@ resolved set of any given build.## Fonts-Cabinet Grotesk and Synonym are bundled under the ITF Free Font License; the-full texts ship beside the font files in `desktop/src/assets/fonts/`.--The Slint window embeds its fonts into the binary+The window embeds its fonts into the binary(`engine/crates/concat/build.rs`, `EmbedResourcesKind::EmbedFiles`), so adistributed binary carries them and their licences travel with it. Full textsare in `engine/crates/concat/ui/fonts/`.@@ -98,6 +92,6 @@ bundled with the app.The effect catalogue thumbnails are rendered from a photograph byVitaly Gariev on Unsplash (https://unsplash.com/@silverkblack), usedunder the Unsplash License. The source still lives at-`assets/effect-preview-source.jpg`; regenerate the tiles with-`scripts/generate-effect-previews.mjs`. The Slint window embeds its own copy-of the tiles from `engine/crates/concat/ui/assets/effect-previews/`.+`assets/effect-preview-source.jpg`; the tiles are each effect's real FFmpeg+chain (`concat-export`'s `chains.rs`) run over it, and are embedded from+`engine/crates/concat/ui/assets/effect-previews/`.diff --git a/TRANSLATING.md b/TRANSLATING.mdindex 40749201..057d7098 100644--- a/TRANSLATING.md+++ b/TRANSLATING.md@@ -1,46 +1,10 @@# Translating Concat-Concat's interface speaks whatever your system speaks, when a translation-exists. Adding one takes a text editor and nothing else — no build tools, no-code beyond two registry lines.--## What is translated--The desktop app's interface: menus, panels, dialogs, tooltips, toasts. Not-translated (yet): error text coming from the engine, and the website.--## Adding a language--1. Copy `desktop/src/locales/en.json` to `desktop/src/locales/<tag>.json`,- where `<tag>` is the [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag)- tag for your language — `zh-CN` for Simplified Chinese, `de` for German.-2. Translate the **values** only. Keys stay exactly as they are.-3. Register the language in `desktop/src/lib/i18n.ts`: one entry in `LOCALES`- (use the language's **native** name — `简体中文`, not `Chinese`) and one- line in `CATALOGS`.-4. Check your work: `cd desktop && npm install && npm test`. The i18n test- names every key you missed, every stale key, and every placeholder that- doesn't match.--Then open a pull request. That's the whole process.--## Rules that keep translations working--- **Translate whole sentences.** Word order differs between languages, which- is why no message is ever assembled from fragments.-- **Keep `{placeholders}` exactly as written.** You can move them anywhere in- the sentence, but the name inside the braces must survive verbatim —- `"Save failed: {message}"` → `"保存失败:{message}"`.-- **Fill both plural forms.** Keys ending in `.one` and `.other` are plural- pairs (`{count}` is available in both). If your language doesn't- distinguish — Chinese doesn't — put the same text in both. The right form- is picked by your language's own rules, not by English's.-- **Leave alone:** font names, technical units (dB, st, GB, fps), and- keyboard shortcut hints, unless your platform's convention truly differs.--## Keeping a translation current--When new interface text lands, `en.json` gains keys and your file is-temporarily behind — the app falls back to English for those strings, and-`npm test` lists exactly which keys your file lacks. Update the file, run the-test, open a pull request.+The interface is being rebuilt in Slint, and its strings are not yet+wrapped for translation. The earlier web-based editor shipped with a+JSON-per-language scheme and a Simplified Chinese translation; that scheme+went with it.++The plan is Slint's own `@tr()` mechanism, which produces standard gettext+`.po` files translators already know how to work with. Until that lands+there is nothing to translate yet - watch this file and the changelog.diff --git a/desktop/.gitignore b/desktop/.gitignoredeleted file mode 100644index a547bf36..00000000--- a/desktop/.gitignore+++ /dev/null@@ -1,24 +0,0 @@-# Logs-logs-*.log-npm-debug.log*-yarn-debug.log*-yarn-error.log*-pnpm-debug.log*-lerna-debug.log*--node_modules-dist-dist-ssr-*.local--# Editor directories and files-.vscode/*-!.vscode/extensions.json-.idea-.DS_Store-*.suo-*.ntvs*-*.njsproj-*.sln-*.sw?diff --git a/desktop/.vscode/extensions.json b/desktop/.vscode/extensions.jsondeleted file mode 100644index 24d7cc6d..00000000--- a/desktop/.vscode/extensions.json+++ /dev/null@@ -1,3 +0,0 @@-{- "recommendations": ["tauri-apps.tauri-vscode", "rust-lang.rust-analyzer"]-}diff --git a/desktop/README.md b/desktop/README.mddeleted file mode 100644index fba3352a..00000000--- a/desktop/README.md+++ /dev/null@@ -1,131 +0,0 @@-<p align="center">- <img src="../assets/concat_logo_512.png" alt="Concat logo" width="160" />-</p>--# Concat Desktop--> [!WARNING]-> **Deprecated.** Concat is moving from Tauri + React to Slint. The-> replacement is the `concat` crate in [`../engine/crates/concat`](../engine/crates/concat),-> and that is where UI work goes now. This tree no longer builds: its host-> Rust moved into `engine/crates/concat-host` and `concat-speech`, and the-> engine links FFmpeg instead of spawning it. It stays only as a reference-> for the UI behaviour the Slint window is reproducing, and will be deleted.--The editor front end. Tauri v2 + React 19 + Tailwind v4, talking to the Rust-engine in [`../engine`](../engine).--## Run it--```sh-npm install-npm run app # tauri dev - builds the Rust host and opens the window-npm run app:build # production bundle (msi/nsis on Windows)-npm run typecheck # tsc --noEmit-npm test # vitest - the engine-mirror and IPC-registry suites-```--`npm run dev` alone serves the UI in a browser, which is useful for pure layout-work - but every `invoke` fails there, because there is no Rust host behind it.--## Layout--```-src/- App.tsx editor shell: panel grid, window state, keyboard map- components/- TitleBar.tsx custom title bar - the window is undecorated- StartScreen.tsx launch screen: new project, recents, template gallery- Icon.tsx the whole icon set, plus the standard IconButton- Panel.tsx Panel / Bar / Divider / Empty - all shared chrome- Menu.tsx dropdown menus (title bar)- ContextMenu.tsx right-click menus (portal, edge-clamped)- Resizer.tsx draggable panel dividers- MediaBin.tsx the library: media, text, transitions, effects, templates- Preview.tsx program monitor: live approximation + the engine's true still- TimelinePanel.tsx toolbar, track headers, and the timeline canvas- RightPanel.tsx the selection's tab strip, hosting the panels below- Inspector.tsx properties of the selection (read-only)- AdjustPanel.tsx volume, fades, speed, transform- FiltersPanel.tsx the clip's audio filter chain- EffectsPanel.tsx the clip's video effect chain and incoming transition- TextPanel.tsx title styling and custom fonts- ExportDialog.tsx render settings, progress, title rasterisation- TtsDialog.tsx text to speech: narration in, a clip at the playhead out- SettingsDialog.tsx transcriber and speech model setup- SaveTemplateDialog.tsx names and saves the open project as a template- TemplateThumb.tsx a template's poster, shared by gallery and library- ConfirmDialog.tsx the are-you-sure sheet for destructive actions- ErrorNotice.tsx inline error strip- controls.tsx sliders and fields shared by the panels- lib/- engine.ts the ONLY file that calls invoke(). Typed IPC boundary.- editor.ts type mirrors of the engine model, selectors, gesture echo- transport.ts the playback clock (follows the engine's position events)- effects.ts video effect & transition catalogue -> ffmpeg chains + live previews- filters.ts audio filter catalogue -> ffmpeg chains- text.ts title styles and bundled fonts- assets.ts filmstrips and waveforms, cached in the project folder- rasterize.ts titles -> full-frame PNGs at export time- theme.ts light / dark, and the canvas palette reads- time.ts display formatting. No time arithmetic lives in the UI.- settings.ts localStorage preferences- styles.css Tailwind entry point, tokens, and the `surface` utility-src-tauri/- src/lib.rs Tauri commands: engine types in, JSON out. Nothing else.- src/editor_api.rs the engine-owned editing session (open / apply / undo / save)- src/export.rs transition resolution, timeline build, render, preview_frame- src/playback.rs audio decode, mix, and the transport clock- src/projects.rs project folders on disk and the recents list- src/templates.rs template bundles: save, list, instantiate, delete- src/transcribe.rs whisper-cli discovery, models, transcription- src/tts.rs Kokoro text to speech: model downloads, synthesis-```--## Rules that keep this fast--- **`lib/engine.ts` is the only file that calls `invoke`.** One place to fix- when a command changes, and the compiler finds every call site.-- **The timeline is not DOM.** One canvas, one rAF loop. See decision 0002.-- **No time arithmetic in TypeScript.** The engine works in exact rational- seconds; JS numbers are `f64` and drift. `lib/time.ts` formats, nothing more.-- **The engine owns the edit.** Every mutation is an `editor_apply` command- into `wolfcut-project` (engine decision 0007); the UI renders the state that- comes back and holds only a transient gesture echo while a drag is in- flight. Undo, serialisation and the operations themselves live in Rust -- do not reintroduce model logic in TypeScript.--## Keyboard--| Key | Action |-|---|---|-| `Space` | Play / pause |-| `←` `→` | Step one frame (`Shift` for ten) |-| `Home` `End` | Jump to start / end |-| `V` `C` | Select tool / razor tool |-| `S` / `Ctrl`+`B` | Split at playhead |-| `M` | Merge selected clips |-| `N` | Toggle snapping |-| `Del` | Delete selection |-| `Ctrl`+`S` | Save |-| `Ctrl`+`E` | Export |-| `Ctrl`+wheel | Zoom the timeline about the pointer |-| wheel | Pan the timeline |--## Adding a command--1. Write the function in `src-tauri/src/lib.rs`, `#[tauri::command]`, returning- `Result<T, String>`.-2. Register it in `generate_handler![..]`.-3. Add the matching type and wrapper to `src/lib/engine.ts`.--The IPC boundary is JSON, so the compiler cannot check steps 1 and 3 against-each other - `src/lib/ipc-registry.test.ts` does: `npm test` fails on a-registered command with no wrapper, a wrapper naming an unregistered command,-or an `invoke` call anywhere outside `lib/engine.ts`.--## Not decided yet--- **No state library.** React state is enough while the engine owns the model.- If it stops being enough, the answer is a store outside React (so timeline- updates do not re-render the tree), not more `useState`.diff --git a/desktop/eslint.config.js b/desktop/eslint.config.jsdeleted file mode 100644index 6e61e59c..00000000--- a/desktop/eslint.config.js+++ /dev/null@@ -1,28 +0,0 @@-// Flat ESLint config. The point of this file is the react-hooks plugin --// dependency-array mistakes are invisible to tsc and this codebase leans hard-// on effects with deliberate exemptions, which only mean something when the-// non-exempted arrays are actually checked. TypeScript already enforces the-// rest of what a heavier preset would.-import js from "@eslint/js";-import tseslint from "typescript-eslint";-import reactHooks from "eslint-plugin-react-hooks";--export default tseslint.config(- { ignores: ["dist/", "src-tauri/", "node_modules/"] },- {- files: ["src/**/*.{ts,tsx}", "*.config.ts"],- extends: [js.configs.recommended, ...tseslint.configs.recommended],- plugins: { "react-hooks": reactHooks },- rules: {- // The two classic hooks rules, at error. The plugin's newer- // React-Compiler-era rules (refs/purity/set-state-in-effect) reject the- // latest-ref idiom (`ref.current = value` during render) this codebase- // uses deliberately; adopting them is a compiler-migration decision,- // not a lint setting.- "react-hooks/rules-of-hooks": "error",- "react-hooks/exhaustive-deps": "error",- // tsc's noUnusedLocals already covers this, with better fix locations.- "@typescript-eslint/no-unused-vars": "off",- },- }-);diff --git a/desktop/index.html b/desktop/index.htmldeleted file mode 100644index 4b57260b..00000000--- a/desktop/index.html+++ /dev/null@@ -1,14 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="UTF-8" />- <link rel="icon" type="image/svg+xml" href="/vite.svg" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>WolfCut</title>- </head>-- <body>- <div id="root"></div>- <script type="module" src="/src/main.tsx"></script>- </body>-</html>diff --git a/desktop/package-lock.json b/desktop/package-lock.jsondeleted file mode 100644index 5f248a7e..00000000--- a/desktop/package-lock.json+++ /dev/null@@ -1,4913 +0,0 @@-{- "name": "concat-desktop",- "version": "0.2.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "concat-desktop",- "version": "0.2.0",- "license": "AGPL-3.0-or-later",- "dependencies": {- "@fontsource-variable/inter": "^5.3.0",- "@heroicons/react": "^2.2.0",- "@tauri-apps/api": "^2",- "@tauri-apps/plugin-dialog": "^2.7.2",- "@tauri-apps/plugin-opener": "^2",- "lucide-react": "^1.37.0",- "react": "^19.1.0",- "react-dom": "^19.1.0"- },- "devDependencies": {- "@eslint/js": "^10.0.1",- "@tailwindcss/vite": "^4",- "@tauri-apps/cli": "^2",- "@types/node": "^26.4.0",- "@types/react": "^19.1.8",- "@types/react-dom": "^19.1.6",- "@vitejs/plugin-react": "^4.6.0",- "eslint": "^10.9.1",- "eslint-plugin-react-hooks": "^7.1.1",- "jsdom": "^30.0.1",- "tailwindcss": "^4",- "typescript": "~5.8.3",- "typescript-eslint": "^8.68.0",- "vite": "^7.0.4",- "vitest": "^4.1.11"- }- },- "node_modules/@asamuzakjp/css-color": {- "version": "6.0.7",- "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-6.0.7.tgz",- "integrity": "sha512-vC/bk1Lz7Tn/EfU9/apOTBk80/8dyGyWMowPoV1tJ52muDGsDqt2HPT2klrFUiY60MQmQv9q8yIht15JnBgDGw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@csstools/css-calc": "^3.3.0",- "@csstools/css-color-parser": "^4.1.10",- "@csstools/css-parser-algorithms": "^4.0.0",- "@csstools/css-tokenizer": "^4.0.0",- "lru-cache": "^11.5.2"- },- "engines": {- "node": "^22.13.0 || >=24.0.0"- }- },- "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {- "version": "11.5.2",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz",- "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==",- "dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": "20 || >=22"- }- },- "node_modules/@asamuzakjp/dom-selector": {- "version": "8.3.2",- "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-8.3.2.tgz",- "integrity": "sha512-93Z1N+BQNXysodoicpOIyNh2drHfz/CTf9nnT0FEx72GJcIiwgydD7tGAr78j41LsYn3hlRn+LdGPuBLn1Bl8Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "bidi-js": "^1.0.3",- "css-tree": "^3.2.1",- "is-potential-custom-element-name": "^1.0.1",- "lru-cache": "^11.5.2"- },- "engines": {- "node": "^22.13.0 || >=24.0.0"- }- },- "node_modules/@asamuzakjp/dom-selector/node_modules/lru-cache": {- "version": "11.5.2",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz",- "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==",- "dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": "20 || >=22"- }- },- "node_modules/@babel/code-frame": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz",- "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-validator-identifier": "^7.29.7",- "js-tokens": "^4.0.0",- "picocolors": "^1.1.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/compat-data": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz",- "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/core": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz",- "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.29.7",- "@babel/generator": "^7.29.7",- "@babel/helper-compilation-targets": "^7.29.7",- "@babel/helper-module-transforms": "^7.29.7",- "@babel/helpers": "^7.29.7",- "@babel/parser": "^7.29.7",- "@babel/template": "^7.29.7",- "@babel/traverse": "^7.29.7",- "@babel/types": "^7.29.7",- "@jridgewell/remapping": "^2.3.5",- "convert-source-map": "^2.0.0",- "debug": "^4.1.0",- "gensync": "^1.0.0-beta.2",- "json5": "^2.2.3",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/babel"- }- },- "node_modules/@babel/generator": {- "version": "7.29.8",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz",- "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.29.8",- "@babel/types": "^7.29.8",- "@jridgewell/gen-mapping": "^0.3.12",- "@jridgewell/trace-mapping": "^0.3.28",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz",- "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.29.7",- "@babel/helper-validator-option": "^7.29.7",- "browserslist": "^4.24.0",- "lru-cache": "^5.1.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-globals": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz",- "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-imports": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz",- "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.29.7",- "@babel/types": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-transforms": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz",- "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.29.7",- "@babel/helper-validator-identifier": "^7.29.7",- "@babel/traverse": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-plugin-utils": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz",- "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz",- "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz",- "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz",- "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helpers": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz",- "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.29.7",- "@babel/types": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.29.8",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz",- "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.29.8"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-self": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz",- "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-source": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz",- "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/template": {- "version": "7.29.7",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz",- "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.29.7",- "@babel/parser": "^7.29.7",- "@babel/types": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/traverse": {- "version": "7.29.8",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz",- "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.29.7",- "@babel/generator": "^7.29.8",- "@babel/helper-globals": "^7.29.7",- "@babel/parser": "^7.29.8",- "@babel/template": "^7.29.7",- "@babel/types": "^7.29.8",- "debug": "^4.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/types": {- "version": "7.29.8",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz",- "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.29.7",- "@babel/helper-validator-identifier": "^7.29.7"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@bramus/specificity": {- "version": "2.4.2",- "resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",- "integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",- "dev": true,- "license": "MIT",- "dependencies": {- "css-tree": "^3.0.0"- },- "bin": {- "specificity": "bin/cli.js"- }- },- "node_modules/@csstools/color-helpers": {- "version": "6.1.1",- "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.1.tgz",- "integrity": "sha512-gLNsunvwf3mCi5u5o46/Z/JcJMnhbHSaZ69rkgPzNM3J4s8hWwpPUQB6/tt0EDFyCiWzxANlx+2LJwpYj4zS1w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT-0",- "engines": {- "node": ">=20.19.0"- }- },- "node_modules/@csstools/css-calc": {- "version": "3.3.0",- "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.3.0.tgz",- "integrity": "sha512-c5ihYsPkdG6JCkU2zTMm4+k6r7RXuGxtWYhu5DHMIiF1FHzrfmHL5so11AoFpUv/tu61xfcmT4AmKoFfMPoqdQ==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT",- "engines": {- "node": ">=20.19.0"- },- "peerDependencies": {- "@csstools/css-parser-algorithms": "^4.0.0",- "@csstools/css-tokenizer": "^4.0.0"- }- },- "node_modules/@csstools/css-color-parser": {- "version": "4.2.1",- "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.1.tgz",- "integrity": "sha512-YpAJZhaHplYQkG8ib+/Fx5Y0eF2lVWi3tIvMJA6i39TLyUNp2439cifzW8VMjhlqrBjHzK5hVGugRRm2zTKI/A==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT",- "dependencies": {- "@csstools/color-helpers": "^6.1.1",- "@csstools/css-calc": "^3.3.0"- },- "engines": {- "node": ">=20.19.0"- },- "peerDependencies": {- "@csstools/css-parser-algorithms": "^4.0.0",- "@csstools/css-tokenizer": "^4.0.0"- }- },- "node_modules/@csstools/css-parser-algorithms": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz",- "integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT",- "engines": {- "node": ">=20.19.0"- },- "peerDependencies": {- "@csstools/css-tokenizer": "^4.0.0"- }- },- "node_modules/@csstools/css-syntax-patches-for-csstree": {- "version": "1.1.9",- "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.9.tgz",- "integrity": "sha512-iGGw4OsAYsS6pD29MdJ2bX/nJx65a04ZZiw6x+VwWlP2DdXf6f++Zmuv/OzALpdyfVhjbduIIF2cXM7HWBIe9A==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT-0",- "peerDependencies": {- "css-tree": "^3.2.1"- },- "peerDependenciesMeta": {- "css-tree": {- "optional": true- }- }- },- "node_modules/@csstools/css-tokenizer": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz",- "integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/csstools"- },- {- "type": "opencollective",- "url": "https://opencollective.com/csstools"- }- ],- "license": "MIT",- "engines": {- "node": ">=20.19.0"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",- "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",- "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",- "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",- "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",- "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",- "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",- "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",- "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",- "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",- "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",- "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",- "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",- "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",- "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",- "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",- "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",- "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",- "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",- "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",- "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",- "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/openharmony-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",- "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",- "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",- "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",- "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",- "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=18"- }- },- "node_modules/@eslint-community/eslint-utils": {- "version": "4.10.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz",- "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"- }- },- "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",- "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/@eslint-community/regexpp": {- "version": "4.12.2",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",- "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"- }- },- "node_modules/@eslint/config-array": {- "version": "0.23.5",- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",- "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/object-schema": "^3.0.5",- "debug": "^4.3.1",- "minimatch": "^10.2.4"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/config-helpers": {- "version": "0.7.0",- "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.7.0.tgz",- "integrity": "sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/core": "^1.2.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/core": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",- "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@types/json-schema": "^7.0.15"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/js": {- "version": "10.0.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",- "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://eslint.org/donate"- },- "peerDependencies": {- "eslint": "^10.0.0"- },- "peerDependenciesMeta": {- "eslint": {- "optional": true- }- }- },- "node_modules/@eslint/object-schema": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",- "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/plugin-kit": {- "version": "0.7.2",- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.2.tgz",- "integrity": "sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/core": "^1.2.1",- "levn": "^0.4.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@exodus/bytes": {- "version": "1.15.1",- "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.1.tgz",- "integrity": "sha512-S6mL0yNB/Abt9Ei4tq8gDhcczc4S3+vQ4ra7vxnAf+YHC02srtqxKKZghx2Dq6p0e66THKwR6r8N6P95wEty7Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"- },- "peerDependencies": {- "@noble/hashes": "^1.8.0 || ^2.0.0"- },- "peerDependenciesMeta": {- "@noble/hashes": {- "optional": true- }- }- },- "node_modules/@fontsource-variable/inter": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.3.0.tgz",- "integrity": "sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==",- "license": "OFL-1.1",- "funding": {- "url": "https://github.com/sponsors/ayuhito"- }- },- "node_modules/@heroicons/react": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.2.0.tgz",- "integrity": "sha512-LMcepvRaS9LYHJGsF0zzmgKCUim/X3N/DQKc4jepAXJ7l8QxJ1PmxJzqplF2Z3FE4PqBAIGyJAQ/w4B5dsqbtQ==",- "license": "MIT",- "peerDependencies": {- "react": ">= 16 || ^19.0.0-rc"- }- },- "node_modules/@humanfs/core": {- "version": "0.19.2",- "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz",- "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanfs/types": "^0.15.0"- },- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanfs/node": {- "version": "0.16.8",- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz",- "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanfs/core": "^0.19.2",- "@humanfs/types": "^0.15.0",- "@humanwhocodes/retry": "^0.4.0"- },- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanfs/types": {- "version": "0.15.0",- "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz",- "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanwhocodes/module-importer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.22"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/retry": {- "version": "0.4.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",- "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@napi-rs/lzma-linux-x64-gnu": {- "version": "1.5.1",- "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz",- "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": "^22.20 || ^24.12 || >=25"- }- },- "node_modules/@rolldown/pluginutils": {- "version": "1.0.0-beta.27",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",- "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",- "dev": true,- "license": "MIT"- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.63.0.tgz",- "integrity": "sha512-70TeIFezKKy65LgAVyQh+w94/gjWhvPWaLaGGeMEgVrPkQhuj/M5bAYYZzIFUj9Y69oHyTm5Um/R6gcLh4A8JA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.63.0.tgz",- "integrity": "sha512-YC86tYIHK6M1IV+wbzO+Bxk8RCBr6ZyWYgWxUCzaZD8mc8rrFoIJDNzDrkHBYRc/wKdrsIXmm6/F7NzrAO+OrA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.63.0.tgz",- "integrity": "sha512-oI+ECtUcli0y0fi4xpW82GdPIXdTkI8G8DSjG2LRuw09fPAGykaWYH/hXxiKuTxiAjiPSTIIuYUqof5Z2hShWw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.63.0.tgz",- "integrity": "sha512-NwV+1s7TiKrMe4owHyKB/dTLD7ZJD0YEBEhIz+hvav1Cu1GReJjF+rsdNwjzENQeIAbE/CoNiaAc5Vz2h5DPAA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.63.0.tgz",- "integrity": "sha512-tWtHBTu5gOPK4u4Urtk4qAHW3zZ9rQAmbssO8gp7ELvGTGI3aCiq6NqyTQ0PCIg7KbHJF2UkGDDs77YZGxfjCA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.63.0.tgz",- "integrity": "sha512-2qPoJiwTvtHQ27NnYvTnsgk8laXWYuVmNESG8WFZBcEPKLfZ3I27qBJarjVRQtwGeYyRfq5ZowHXih9lm2BItw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.63.0.tgz",- "integrity": "sha512-FQwsTRvLNuHoTdICABJQfbPUSEueISGmnpT06tXTMpfprf5NiKLSXKA0A+w45wJnCmZAnzgqBwbt6ARFuyOi5w==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.63.0.tgz",- "integrity": "sha512-BBVTXziw8mY1a4ZbWME9tZyfzqXCDPqaC7Z3heQ29p5dkvXzwL0NwelO8zLa8c3RBKvl3YTuSnBgsBhYBtwjIw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.63.0.tgz",- "integrity": "sha512-w2Iyy9+RqKwx3d9qWMKsJg0FfRBsY0/pXNv0mCQ3ueRvJI6+QAScfD4nrMlzFLs2HNVW6Ew+mtZfDl9b7Ew5/Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.63.0.tgz",- "integrity": "sha512-YK++KtrFRHYE0P6/RtYEAy9t8F37znP+K03RrIuLPYOL6SVlObRumf/0OE4V/h63xL9DwkWbNssZfmA9hawuDA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.63.0.tgz",- "integrity": "sha512-aBfOG6fP7YkkPmTqPwufRJeFyz7WPpECv9XNbnsk9+vg7rxdih0lbtEel7jcRng4LZrrmU3FfitCFyEj4BWDWg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.63.0.tgz",- "integrity": "sha512-LGaHEOeHNAag9VuS1Crs5DFg4RrU9MPi2nVnNJk9DTePx/B6RRYKVmrIXt2h7YOJlwjaFJ6lwtFDliZxScTLrQ==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.63.0.tgz",- "integrity": "sha512-jClvk+J0FC3b7Udvegiw5/4hErbHtmsNsQgENnKXDWtNCJXsJYZH5WURvu7imDOO38xYml24eeh5x3A04ppwCw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-musl": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.63.0.tgz",- "integrity": "sha512-0OJlaGK+8+B777Ql5okIpD7ua5Ro9+VB9Ve0OKa28OQJZ1RbuUBVNHK/e3pr4BROqsyPl1JrPO1ZxJseCNffcA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.63.0.tgz",- "integrity": "sha512-Ygsx+HoNH7afwi1bTIXbnTvVnsO+zurPLSYxybV1hHFVU72OWOCl6v05ql/z0hkpAPx+DK7Kn9Bi7MayCcjLTA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.63.0.tgz",- "integrity": "sha512-pDQxtMGb+OvG3fLwR2OkZlSd47hW+kWg4BYMG/++sR6RqorQccwPTDsxda5hPwiIeIErAnCF9ma3SAU06bdQtQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.63.0.tgz",- "integrity": "sha512-0BnUG9mS8I4SSHr3XsxVhuCMEiu+rX61xxZF5vujso4LaiAGFZFxvDjg6Xn6tLPNTUAfuCvQYas4LMQMVsKRSQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.63.0.tgz",- "integrity": "sha512-Adu/VttB1dpPNW+FEacrZ+xVm9tFty84+RrFzsqlFaPxoJB+9XXyDGtp5dCOoBwGBIEVH0To7lExFXEx0BIF4A==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.63.0.tgz",- "integrity": "sha512-NQ3bDvjUbFKmP23671xUlXtKmqVsUBd6M4PQCvbmNtOy06hnQIdKHy8oG/6S3R/S6He1JgPk6A5VT+prAJMYEw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openbsd-x64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.63.0.tgz",- "integrity": "sha512-u2eDAl4+0aFvA13GxlGBtTI3SS3sdgwgtV0HyjZ0QaQVCgNE+jqNGey+GtxWiq+wxr/UycAx/OnfJzApCFamvA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.63.0.tgz",- "integrity": "sha512-XvRb5vfW3wAZQ+ZUG21AnHHDKtNcw99eigzEhjr//NZ3u7SoBaPP0seSc7FgP7p1epAEdAoZckMW9WY/+4w70w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.63.0.tgz",- "integrity": "sha512-iZPmniy4kNBf5yo2RezbkYNNK5HPbXE9+g+twnbqSng7dtLEJy1SKoxiE/ni4FDacjyuZpEeb9U054N4EoKHYw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.63.0.tgz",- "integrity": "sha512-mFBBd+LF37fnE8JnYUOH+imj0aPFPK30vpar4ehJkgnLj9sZn8ZxiRENmLtgIwxK7TC8klF6N57fxdNBwQoqOA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.63.0.tgz",- "integrity": "sha512-ujeqEY3B+zbGn3Z4Q03cUBG/LGWnBJncVT36WER31LcOsQk9+1dmINKKtvmmfChUvRbK1G0R8OhMWFgHgaZtAw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.63.0.tgz",- "integrity": "sha512-hncn90N4sOky0L2LKE5oESKLbxCPeVo4eLA2LSMoDzM+879ml4WSr+Rr4DWknNIVVvS1Hirkc9hx02W6YxS8rQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@standard-schema/spec": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz",- "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==",- "dev": true,- "license": "MIT"- },- "node_modules/@tailwindcss/node": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.3.tgz",- "integrity": "sha512-/T8IKEsf9VTU6tLjgC7+sv2mOPtQxzE2jMw7u4Tt40Tx+QSZxpzh95/H6cMKoja9XuW7iMdLJYBB0o9G1CaAgg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/remapping": "^2.3.5",- "enhanced-resolve": "^5.24.1",- "jiti": "^2.7.0",- "lightningcss": "1.32.0",- "magic-string": "^0.30.21",- "source-map-js": "^1.2.1",- "tailwindcss": "4.3.3"- }- },- "node_modules/@tailwindcss/oxide": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.3.tgz",- "integrity": "sha512-krXjAikiaFSPaK/FkAQT5UTx3VormQaiZ5hBFlJZ9UFQGB/rwg1MZIhHAG9smMQRTdyJxP6Qt5MwMtdyU5FWrA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 20"- },- "optionalDependencies": {- "@tailwindcss/oxide-android-arm64": "4.3.3",- "@tailwindcss/oxide-darwin-arm64": "4.3.3",- "@tailwindcss/oxide-darwin-x64": "4.3.3",- "@tailwindcss/oxide-freebsd-x64": "4.3.3",- "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.3",- "@tailwindcss/oxide-linux-arm64-gnu": "4.3.3",- "@tailwindcss/oxide-linux-arm64-musl": "4.3.3",- "@tailwindcss/oxide-linux-x64-gnu": "4.3.3",- "@tailwindcss/oxide-linux-x64-musl": "4.3.3",- "@tailwindcss/oxide-wasm32-wasi": "4.3.3",- "@tailwindcss/oxide-win32-arm64-msvc": "4.3.3",- "@tailwindcss/oxide-win32-x64-msvc": "4.3.3"- }- },- "node_modules/@tailwindcss/oxide-android-arm64": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.3.tgz",- "integrity": "sha512-Y85A2gmPSkl5Ve5qR86GL4HT509cFqQh1aes9p3sSkyTPwt0Pppf3GkwGe4JPACcRYjgJIEhQgM6dBClnr0NYw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-darwin-arm64": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.3.tgz",- "integrity": "sha512-BiaWatpBcERQFDlOjRDpIVXuFK5PJez5SA4JMg6VYZdBYU+qKfV/vqjcIs+IYmtitf1xYQZTwXvU/8y4lfZUGw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-darwin-x64": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.3.tgz",- "integrity": "sha512-fAeUqfV5ndhxRwai8cXGzdLvul9utWOmeTkv69unv4ZXixjn61Z+p9lCWdwOwA3TYboG3BwdVuN/RDjhBRl0mw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-freebsd-x64": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.3.tgz",- "integrity": "sha512-iyf5bV6+wnAlflVeEy7R25dupxTNECZN5QMI0qNT6eT+EgaGdZcKhGkr5SdoaWiLJ3spLqIY9VCeSGrwmtg4kw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.3.tgz",- "integrity": "sha512-aAYUprJAJQWWbRrPvtjdroZ56Md+JM8pMiopS6xGEwDfLhqj+2ver2p4nU4Mb3CRqcMmNBjo8KkUgcxhkzVQGQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.3.tgz",- "integrity": "sha512-nDxldcEENOxZRzC2uu9jrutZdAAQtb+8WWDCSnWL1zvBk1+FN+x6MtDViPB5AJMfttVCUhehGWus3XBPgatM/w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-linux-arm64-musl": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.3.tgz",- "integrity": "sha512-Md44bD6veX/PC5iyF8cDVnw4HBIANZepRZZ7a8DQOvkfo5WUBwcp6iAuCUz23u+4SUkhJlD3eL7hNdW8ezd/kA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-linux-x64-gnu": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.3.tgz",- "integrity": "sha512-tx7us1muwOKAKWao2v/GaafFeQboE6aj88vC6ziN2NCGcRm8gWUhwjzg+YdVB1e4boAtdtma4L43onunI6NS4w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-linux-x64-musl": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.3.tgz",- "integrity": "sha512-SJxX60smvHgasZoBy11dX6YRjXJFovwWBoedhbQPOBzgFWBHGB+TVPWB9BxzR7TTxU8FQZAI2AyiNCMzFm8Img==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.3.tgz",- "integrity": "sha512-jx1+rPhY/5Ympkktd656HBWEBLxP7dH06losBLjjf5vgCODXvi9KhtftWcMIwTFIDqBr7cRnQkdLnAG+IOlGvQ==",- "bundleDependencies": [- "@napi-rs/wasm-runtime",- "@emnapi/core",- "@emnapi/runtime",- "@tybys/wasm-util",- "@emnapi/wasi-threads",- "tslib"- ],- "cpu": [- "wasm32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/core": "^1.11.1",- "@emnapi/runtime": "^1.11.1",- "@emnapi/wasi-threads": "^1.2.2",- "@napi-rs/wasm-runtime": "^1.1.4",- "@tybys/wasm-util": "^0.10.2",- "tslib": "^2.8.1"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {- "version": "1.11.1",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/wasi-threads": "1.2.2",- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {- "version": "1.11.1",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {- "version": "1.2.2",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {- "version": "1.1.4",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@tybys/wasm-util": "^0.10.1"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/Brooooooklyn"- },- "peerDependencies": {- "@emnapi/core": "^1.7.1",- "@emnapi/runtime": "^1.7.1"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {- "version": "0.10.2",- "dev": true,- "inBundle": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {- "version": "2.8.1",- "dev": true,- "inBundle": true,- "license": "0BSD",- "optional": true- },- "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",- "integrity": "sha512-3rc292Ca2ceK6Ulcc/bAVnTs/3nDtoPhyEKlgPv+yQJQi/JS/AMJlqzxvlDacL1nekbrcf6bTqp/jV4qgnPxNQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/oxide-win32-x64-msvc": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.3.tgz",- "integrity": "sha512-yJ0pwIVc/nYeGoV02WtsN8KYyLQv7kyI2wDnkezyJlGGjkd4QLwDGAwl47YpPJeuI0M0ObaXGSPjvWDPeTPggw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 20"- }- },- "node_modules/@tailwindcss/vite": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.3.tgz",- "integrity": "sha512-yYU8cogLeSh/ms2jh8Fj7jaba/EWa7Ja6GoUqYZaraEuCI5YS6ms6ObZgjjedm+jm6XZjdNRWBpPP6Z86oOxcw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@tailwindcss/node": "4.3.3",- "@tailwindcss/oxide": "4.3.3",- "tailwindcss": "4.3.3"- },- "peerDependencies": {- "vite": "^5.2.0 || ^6 || ^7 || ^8"- }- },- "node_modules/@tauri-apps/api": {- "version": "2.11.1",- "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.11.1.tgz",- "integrity": "sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==",- "license": "Apache-2.0 OR MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/tauri"- }- },- "node_modules/@tauri-apps/cli": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.4.tgz",- "integrity": "sha512-R8xGtMpwyetawSqm9kYOuMmEqkhUbvcUy8n0aNXIxollKBLESUu5f4Fx+64hgASYm1H+jSWq6jCW6zqTnH6hqQ==",- "dev": true,- "license": "Apache-2.0 OR MIT",- "bin": {- "tauri": "tauri.js"- },- "engines": {- "node": ">= 10"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/tauri"- },- "optionalDependencies": {- "@tauri-apps/cli-darwin-arm64": "2.11.4",- "@tauri-apps/cli-darwin-x64": "2.11.4",- "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.4",- "@tauri-apps/cli-linux-arm64-gnu": "2.11.4",- "@tauri-apps/cli-linux-arm64-musl": "2.11.4",- "@tauri-apps/cli-linux-riscv64-gnu": "2.11.4",- "@tauri-apps/cli-linux-x64-gnu": "2.11.4",- "@tauri-apps/cli-linux-x64-musl": "2.11.4",- "@tauri-apps/cli-win32-arm64-msvc": "2.11.4",- "@tauri-apps/cli-win32-ia32-msvc": "2.11.4",- "@tauri-apps/cli-win32-x64-msvc": "2.11.4"- }- },- "node_modules/@tauri-apps/cli-darwin-arm64": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.4.tgz",- "integrity": "sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-darwin-x64": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.4.tgz",- "integrity": "sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.4.tgz",- "integrity": "sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm64-gnu": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.4.tgz",- "integrity": "sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-arm64-musl": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.4.tgz",- "integrity": "sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.4.tgz",- "integrity": "sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-x64-gnu": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.4.tgz",- "integrity": "sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-linux-x64-musl": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.4.tgz",- "integrity": "sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-arm64-msvc": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.4.tgz",- "integrity": "sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-ia32-msvc": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.4.tgz",- "integrity": "sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/cli-win32-x64-msvc": {- "version": "2.11.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.4.tgz",- "integrity": "sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "Apache-2.0 OR MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 10"- }- },- "node_modules/@tauri-apps/plugin-dialog": {- "version": "2.7.2",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-dialog/-/plugin-dialog-2.7.2.tgz",- "integrity": "sha512-pX0IGm1I3I6wc+zeKYcq1GSqogK6okCNX5fOdaNU5ab1AjGS6l1E5wFNjEb7meg7ZFSp0JUs+0jQGQNyOvLrsg==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.11.0"- }- },- "node_modules/@tauri-apps/plugin-opener": {- "version": "2.5.4",- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.5.4.tgz",- "integrity": "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ==",- "license": "MIT OR Apache-2.0",- "dependencies": {- "@tauri-apps/api": "^2.11.0"- }- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.2"- }- },- "node_modules/@types/chai": {- "version": "5.2.3",- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",- "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/deep-eql": "*",- "assertion-error": "^2.0.1"- }- },- "node_modules/@types/deep-eql": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",- "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/esrecurse": {- "version": "4.3.1",- "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",- "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/estree": {- "version": "1.0.9",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz",- "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/json-schema": {- "version": "7.0.15",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/node": {- "version": "26.4.0",- "resolved": "https://registry.npmjs.org/@types/node/-/node-26.4.0.tgz",- "integrity": "sha512-faiGnoIrLH/V8cibOMEAZ8pMw6oXqSukl29ra4mN8GdaB2ZewzeaLj+INpV5N+Z1eKWzY+IzaIZH2EIR6YZRNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "undici-types": "~8.3.0"- }- },- "node_modules/@types/react": {- "version": "19.2.18",- "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.18.tgz",- "integrity": "sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w==",- "dev": true,- "license": "MIT",- "dependencies": {- "csstype": "^3.2.2"- }- },- "node_modules/@types/react-dom": {- "version": "19.2.5",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.5.tgz",- "integrity": "sha512-fMPwH9v7r/pp43yUd2/Mbiex5KouJwwR3dzHkhLREUC6764VyDsqxhAxv6OFEYR1RhjOyD1naqba8ECDBe7ZQg==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "^19.2.0"- }- },- "node_modules/@typescript-eslint/eslint-plugin": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.68.0.tgz",- "integrity": "sha512-WASHDpCm6qO5jj9g1a+8NiW5+GCkAyLReR56/4VruYmNgfUmqpxOfZ2Yfb8xGfJPWv5Qi6LSD8sXdces3vbp/Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/regexpp": "^4.12.2",- "@typescript-eslint/scope-manager": "8.68.0",- "@typescript-eslint/type-utils": "8.68.0",- "@typescript-eslint/utils": "8.68.0",- "@typescript-eslint/visitor-keys": "8.68.0",- "ignore": "^7.0.5",- "natural-compare": "^1.4.0",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "@typescript-eslint/parser": "^8.68.0",- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz",- "integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/@typescript-eslint/parser": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.68.0.tgz",- "integrity": "sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/scope-manager": "8.68.0",- "@typescript-eslint/types": "8.68.0",- "@typescript-eslint/typescript-estree": "8.68.0",- "@typescript-eslint/visitor-keys": "8.68.0",- "debug": "^4.4.3"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/project-service": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.68.0.tgz",- "integrity": "sha512-5GQtWZCXFcFYux955pvoS02WLc49pXNlvIxocKjS0clvwo3in1RdlzVKyiqQH9vE5AKWFLTaUgeQkOrTS+0Qxw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/tsconfig-utils": "^8.68.0",- "@typescript-eslint/types": "^8.68.0",- "debug": "^4.4.3"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/scope-manager": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.68.0.tgz",- "integrity": "sha512-T5eXpcaJNg8bhjHJ8Rjp68Vq/QBteYtTKY8TZqVNPaUbuz0f6jI9t6aDkylwvalpAB9XTTFeFOjrjXAZ3YvmVA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.68.0",- "@typescript-eslint/visitor-keys": "8.68.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/tsconfig-utils": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.68.0.tgz",- "integrity": "sha512-F7zrGQfiJHojPwi8vhxZQC1tWtJzvL74cK/nqri2lk8YUXvYaYwl263xOJ69jDWPUk1hmcdoayFwk9lX09npVw==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/type-utils": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.68.0.tgz",- "integrity": "sha512-X77zqoY1EjeWGs/0JNxeaMfp5C5lIz4Tw8y66F1Ne8Faq6g424sBNYM6xBAqElfGZPLpWS+CZAp0DXyKDzWiHg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.68.0",- "@typescript-eslint/typescript-estree": "8.68.0",- "@typescript-eslint/utils": "8.68.0",- "debug": "^4.4.3",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/types": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.68.0.tgz",- "integrity": "sha512-9RnpsGJjrAllCMefGVVsImJM24YurhC0Q1h4UbvivtvOqXmR/vEJge2OoE++z9m6hyg8T1Q8t5SNT6tHSbrxcg==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/typescript-estree": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.68.0.tgz",- "integrity": "sha512-OKKsD0tYmoNiU5PW2zehO1yO56jYOm1ShYlxon/Z0SJNidAkdVg86eg9ruRuoXf8xfnuWZGbwDsStkoXbZtIIA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/project-service": "8.68.0",- "@typescript-eslint/tsconfig-utils": "8.68.0",- "@typescript-eslint/types": "8.68.0",- "@typescript-eslint/visitor-keys": "8.68.0",- "debug": "^4.4.3",- "minimatch": "^10.2.2",- "semver": "^7.7.3",- "tinyglobby": "^0.2.15",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {- "version": "7.8.5",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@typescript-eslint/utils": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.68.0.tgz",- "integrity": "sha512-PB5gJMMOg0Q5P1tsgWtEAqQacJXq0qEqRHDX/YJ4FaTMLfZPpHB3gjl2EJuiZyPABxmj4ZQYiY9m1bdAJ5y7tQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.9.1",- "@typescript-eslint/scope-manager": "8.68.0",- "@typescript-eslint/types": "8.68.0",- "@typescript-eslint/typescript-estree": "8.68.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/visitor-keys": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.68.0.tgz",- "integrity": "sha512-YR65gGdGvTUAWLldC3xLOvOzamdGzB4A5/N8rehEaHs3Zvoe39BhgY+u0SPch1OvrVTfLcc55wsSgK2NcnTS/A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.68.0",- "eslint-visitor-keys": "^5.0.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@vitejs/plugin-react": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",- "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.28.0",- "@babel/plugin-transform-react-jsx-self": "^7.27.1",- "@babel/plugin-transform-react-jsx-source": "^7.27.1",- "@rolldown/pluginutils": "1.0.0-beta.27",- "@types/babel__core": "^7.20.5",- "react-refresh": "^0.17.0"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "peerDependencies": {- "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"- }- },- "node_modules/@vitest/expect": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz",- "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@standard-schema/spec": "^1.1.0",- "@types/chai": "^5.2.2",- "@vitest/spy": "4.1.11",- "@vitest/utils": "4.1.11",- "chai": "^6.2.2",- "tinyrainbow": "^3.1.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/mocker": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz",- "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/spy": "4.1.11",- "estree-walker": "^3.0.3",- "magic-string": "^0.30.21"- },- "funding": {- "url": "https://opencollective.com/vitest"- },- "peerDependencies": {- "msw": "^2.4.9",- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"- },- "peerDependenciesMeta": {- "msw": {- "optional": true- },- "vite": {- "optional": true- }- }- },- "node_modules/@vitest/pretty-format": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz",- "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==",- "dev": true,- "license": "MIT",- "dependencies": {- "tinyrainbow": "^3.1.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/runner": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz",- "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/utils": "4.1.11",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/snapshot": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz",- "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "4.1.11",- "@vitest/utils": "4.1.11",- "magic-string": "^0.30.21",- "pathe": "^2.0.3"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/spy": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz",- "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/@vitest/utils": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz",- "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/pretty-format": "4.1.11",- "convert-source-map": "^2.0.0",- "tinyrainbow": "^3.1.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- }- },- "node_modules/acorn": {- "version": "8.18.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz",- "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/ajv": {- "version": "6.15.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",- "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",- "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/assertion-error": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- }- },- "node_modules/balanced-match": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",- "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "18 || 20 || >=22"- }- },- "node_modules/baseline-browser-mapping": {- "version": "2.11.19",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.19.tgz",- "integrity": "sha512-Grytf1xOxOEMTGRwx6rLGKkTabd4vMg3VrKdj/7joCmV0qgh4QwMMO6xh34YEXQqirAuUdgQGa5orJQQ+69RBw==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "baseline-browser-mapping": "dist/cli.cjs"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/bidi-js": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",- "integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",- "dev": true,- "license": "MIT",- "dependencies": {- "require-from-string": "^2.0.2"- }- },- "node_modules/brace-expansion": {- "version": "5.0.9",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",- "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^4.0.2"- },- "engines": {- "node": "20 || >=22"- }- },- "node_modules/browserslist": {- "version": "4.28.8",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.8.tgz",- "integrity": "sha512-V2NpofLblG64mfOtSgDhOJESZEGogzDMBv/q+W6oc4LXWP/q75eOXoOaaOu1EOadB9U4Bwx/e0yzbvwKH8zalA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "baseline-browser-mapping": "^2.11.12",- "caniuse-lite": "^1.0.30001809",- "electron-to-chromium": "^1.5.402",- "node-releases": "^2.0.53",- "update-browserslist-db": "^1.3.0"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001810",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz",- "integrity": "sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==",- "dev": true,- "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/chai": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",- "integrity": "sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/cross-spawn": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^3.1.0",- "shebang-command": "^2.0.0",- "which": "^2.0.1"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/css-tree": {- "version": "3.2.1",- "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",- "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",- "dev": true,- "license": "MIT",- "dependencies": {- "mdn-data": "2.27.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"- }- },- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "dev": true,- "license": "MIT"- },- "node_modules/data-urls": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz",- "integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==",- "dev": true,- "license": "MIT",- "dependencies": {- "whatwg-mimetype": "^5.0.0",- "whatwg-url": "^16.0.0"- },- "engines": {- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"- }- },- "node_modules/data-urls/node_modules/whatwg-url": {- "version": "16.0.1",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz",- "integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@exodus/bytes": "^1.11.0",- "tr46": "^6.0.0",- "webidl-conversions": "^8.0.1"- },- "engines": {- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"- }- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/decimal.js": {- "version": "10.6.0",- "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",- "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",- "dev": true,- "license": "MIT"- },- "node_modules/deep-is": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",- "dev": true,- "license": "MIT"- },- "node_modules/detect-libc": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=8"- }- },- "node_modules/electron-to-chromium": {- "version": "1.5.414",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.414.tgz",- "integrity": "sha512-aYlviXiaXBbzvKgyALpcMmqa3Np3sDr0XnZbEG62n2UpZFbEcjQ4EEMOLGzVPhwVnwTz0lvKY+GcARbunuHekw==",- "dev": true,- "license": "ISC"- },- "node_modules/enhanced-resolve": {- "version": "5.24.5",- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz",- "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==",- "dev": true,- "license": "MIT",- "dependencies": {- "graceful-fs": "^4.2.4",- "tapable": "^2.3.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/entities": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/entities/-/entities-8.0.0.tgz",- "integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=20.19.0"- },- "funding": {- "url": "https://github.com/fb55/entities?sponsor=1"- }- },- "node_modules/es-module-lexer": {- "version": "2.3.2",- "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz",- "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==",- "dev": true,- "license": "MIT"- },- "node_modules/esbuild": {- "version": "0.28.2",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",- "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=18"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.28.2",- "@esbuild/android-arm": "0.28.2",- "@esbuild/android-arm64": "0.28.2",- "@esbuild/android-x64": "0.28.2",- "@esbuild/darwin-arm64": "0.28.2",- "@esbuild/darwin-x64": "0.28.2",- "@esbuild/freebsd-arm64": "0.28.2",- "@esbuild/freebsd-x64": "0.28.2",- "@esbuild/linux-arm": "0.28.2",- "@esbuild/linux-arm64": "0.28.2",- "@esbuild/linux-ia32": "0.28.2",- "@esbuild/linux-loong64": "0.28.2",- "@esbuild/linux-mips64el": "0.28.2",- "@esbuild/linux-ppc64": "0.28.2",- "@esbuild/linux-riscv64": "0.28.2",- "@esbuild/linux-s390x": "0.28.2",- "@esbuild/linux-x64": "0.28.2",- "@esbuild/netbsd-arm64": "0.28.2",- "@esbuild/netbsd-x64": "0.28.2",- "@esbuild/openbsd-arm64": "0.28.2",- "@esbuild/openbsd-x64": "0.28.2",- "@esbuild/openharmony-arm64": "0.28.2",- "@esbuild/sunos-x64": "0.28.2",- "@esbuild/win32-arm64": "0.28.2",- "@esbuild/win32-ia32": "0.28.2",- "@esbuild/win32-x64": "0.28.2"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint": {- "version": "10.9.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.9.1.tgz",- "integrity": "sha512-9VaAkDURekixUQJy0oJYl2DcN6oKMfxay7XzaGYAWQwsb6qfKf+x76R2k1L8kb1boc+FyCAaTA9GmiKaaiaF+A==",- "dev": true,- "license": "MIT",- "workspaces": [- "packages/*"- ],- "dependencies": {- "@eslint-community/eslint-utils": "^4.8.0",- "@eslint-community/regexpp": "^4.12.2",- "@eslint/config-array": "^0.23.5",- "@eslint/config-helpers": "^0.7.0",- "@eslint/core": "^1.2.1",- "@eslint/plugin-kit": "^0.7.2",- "@humanfs/node": "^0.16.6",- "@humanwhocodes/module-importer": "^1.0.1",- "@humanwhocodes/retry": "^0.4.2",- "@types/estree": "^1.0.6",- "ajv": "^6.14.0",- "cross-spawn": "^7.0.6",- "debug": "^4.3.2",- "escape-string-regexp": "^4.0.0",- "eslint-scope": "^9.1.2",- "eslint-visitor-keys": "^5.0.1",- "espree": "^11.2.0",- "esquery": "^1.7.0",- "esutils": "^2.0.2",- "fast-deep-equal": "^3.1.3",- "file-entry-cache": "^8.0.0",- "find-up": "^5.0.0",- "glob-parent": "^6.0.2",- "ignore": "^5.2.0",- "imurmurhash": "^0.1.4",- "is-glob": "^4.0.0",- "json-stable-stringify-without-jsonify": "^1.0.1",- "minimatch": "^10.2.5",- "natural-compare": "^1.4.0",- "optionator": "^0.9.3"- },- "bin": {- "eslint": "bin/eslint.js"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://eslint.org/donate"- },- "peerDependencies": {- "jiti": "*"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- }- }- },- "node_modules/eslint-plugin-react-hooks": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.1.1.tgz",- "integrity": "sha512-f2I7Gw6JbvCexzIInuSbZpfdQ44D7iqdWX01FKLvrPgqxoE7oMj8clOfto8U6vYiz4yd5oKu39rRSVOe1zRu0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.24.4",- "@babel/parser": "^7.24.4",- "hermes-parser": "^0.25.1",- "zod": "^3.25.0 || ^4.0.0",- "zod-validation-error": "^3.5.0 || ^4.0.0"- },- "engines": {- "node": ">=18"- },- "peerDependencies": {- "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0 || ^10.0.0"- }- },- "node_modules/eslint-scope": {- "version": "9.1.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",- "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@types/esrecurse": "^4.3.1",- "@types/estree": "^1.0.8",- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-visitor-keys": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/espree": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",- "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "acorn": "^8.16.0",- "acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^5.0.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esquery": {- "version": "1.7.0",- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",- "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "estraverse": "^5.1.0"- },- "engines": {- "node": ">=0.10"- }- },- "node_modules/esrecurse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "estraverse": "^5.2.0"- },- "engines": {- "node": ">=4.0"- }- },- "node_modules/estraverse": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/estree-walker": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",- "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0"- }- },- "node_modules/esutils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/expect-type": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz",- "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.0.0"- }- },- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-levenshtein": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",- "dev": true,- "license": "MIT"- },- "node_modules/fdir": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",- "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12.0.0"- },- "peerDependencies": {- "picomatch": "^3 || ^4"- },- "peerDependenciesMeta": {- "picomatch": {- "optional": true- }- }- },- "node_modules/file-entry-cache": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",- "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "flat-cache": "^4.0.0"- },- "engines": {- "node": ">=16.0.0"- }- },- "node_modules/find-up": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",- "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": "4.0.1",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",- "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",- "dev": true,- "license": "MIT",- "dependencies": {- "flatted": "^3.2.9",- "keyv": "^4.5.4"- },- "engines": {- "node": ">=16"- }- },- "node_modules/flatted": {- "version": "3.4.4",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",- "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",- "dev": true,- "license": "ISC"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/graceful-fs": {- "version": "4.2.11",- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",- "dev": true,- "license": "ISC"- },- "node_modules/hermes-estree": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",- "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==",- "dev": true,- "license": "MIT"- },- "node_modules/hermes-parser": {- "version": "0.25.1",- "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz",- "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==",- "dev": true,- "license": "MIT",- "dependencies": {- "hermes-estree": "0.25.1"- }- },- "node_modules/html-encoding-sniffer": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",- "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@exodus/bytes": "^1.6.0"- },- "engines": {- "node": "^20.19.0 || ^22.12.0 || >=24.0.0"- }- },- "node_modules/ignore": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.19"- }- },- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-potential-custom-element-name": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",- "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",- "dev": true,- "license": "MIT"- },- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "dev": true,- "license": "ISC"- },- "node_modules/jiti": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz",- "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",- "dev": true,- "license": "MIT",- "bin": {- "jiti": "lib/jiti-cli.mjs"- }- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "dev": true,- "license": "MIT"- },- "node_modules/jsdom": {- "version": "30.0.1",- "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-30.0.1.tgz",- "integrity": "sha512-52v7mUVUfNQVYYqE1lcdaymWL0njO7lTLUog6ZvW2U5KsbiLk/GnZlVJ+qx0xfNJZ6Gn+KSpPNE52vurbxZwrA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@asamuzakjp/css-color": "^6.0.5",- "@asamuzakjp/dom-selector": "^8.3.0",- "@bramus/specificity": "^2.4.2",- "@csstools/css-syntax-patches-for-csstree": "^1.1.7",- "@exodus/bytes": "^1.15.1",- "css-tree": "^3.2.1",- "data-urls": "^7.0.0",- "decimal.js": "^10.6.0",- "html-encoding-sniffer": "^6.0.0",- "is-potential-custom-element-name": "^1.0.1",- "lru-cache": "^11.5.2",- "parse5": "^8.0.1",- "saxes": "^6.0.0",- "symbol-tree": "^3.2.4",- "tough-cookie": "^6.0.2",- "undici": "^8.9.0",- "w3c-xmlserializer": "^5.0.0",- "webidl-conversions": "^8.0.1",- "whatwg-mimetype": "^5.0.0",- "whatwg-url": "^17.1.0",- "xml-name-validator": "^5.0.0"- },- "engines": {- "node": "^22.22.2 || ^24.15.0 || >=26.0.0"- },- "peerDependencies": {- "canvas": "^3.2.3"- },- "peerDependenciesMeta": {- "canvas": {- "optional": true- }- }- },- "node_modules/jsdom/node_modules/lru-cache": {- "version": "11.5.2",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz",- "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==",- "dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": "20 || >=22"- }- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "dev": true,- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },- "engines": {- "node": ">=6"- }- },- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,- "license": "MIT"- },- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true,- "license": "MIT"- },- "node_modules/json-stable-stringify-without-jsonify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,- "license": "MIT",- "bin": {- "json5": "lib/cli.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",- "dev": true,- "license": "MIT",- "dependencies": {- "json-buffer": "3.0.1"- }- },- "node_modules/levn": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1",- "type-check": "~0.4.0"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/lightningcss": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",- "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",- "dev": true,- "license": "MPL-2.0",- "dependencies": {- "detect-libc": "^2.0.3"- },- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- },- "optionalDependencies": {- "lightningcss-android-arm64": "1.32.0",- "lightningcss-darwin-arm64": "1.32.0",- "lightningcss-darwin-x64": "1.32.0",- "lightningcss-freebsd-x64": "1.32.0",- "lightningcss-linux-arm-gnueabihf": "1.32.0",- "lightningcss-linux-arm64-gnu": "1.32.0",- "lightningcss-linux-arm64-musl": "1.32.0",- "lightningcss-linux-x64-gnu": "1.32.0",- "lightningcss-linux-x64-musl": "1.32.0",- "lightningcss-win32-arm64-msvc": "1.32.0",- "lightningcss-win32-x64-msvc": "1.32.0"- }- },- "node_modules/lightningcss-android-arm64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",- "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-arm64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",- "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-x64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",- "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-freebsd-x64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",- "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm-gnueabihf": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",- "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-gnu": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",- "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-musl": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",- "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-gnu": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",- "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-musl": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",- "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-arm64-msvc": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",- "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-x64-msvc": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",- "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/locate-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^5.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"- }- },- "node_modules/lucide-react": {- "version": "1.37.0",- "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.37.0.tgz",- "integrity": "sha512-LPsB4rD1TD6wZu1djKOf9vUnS1jTNaHbolXebXDgiTdb6jeA1agIJhJsIybCmjKmQClcOaal1o1OaiYahEftyQ==",- "license": "ISC",- "peerDependencies": {- "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"- }- },- "node_modules/magic-string": {- "version": "0.30.21",- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.5"- }- },- "node_modules/mdn-data": {- "version": "2.27.1",- "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",- "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",- "dev": true,- "license": "CC0-1.0"- },- "node_modules/minimatch": {- "version": "10.2.6",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",- "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "brace-expansion": "^5.0.8"- },- "engines": {- "node": "18 || 20 || >=22"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true,- "license": "MIT"- },- "node_modules/nanoid": {- "version": "3.3.18",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.18.tgz",- "integrity": "sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==",- "dev": true,- "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",- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",- "dev": true,- "license": "MIT"- },- "node_modules/node-releases": {- "version": "2.0.53",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.53.tgz",- "integrity": "sha512-D9UOmYG3UH1V+ENW56t5QXBwJw1YEY18ruVeus89Rw+SyIgjPkCO84bRzO3uNIYosJbNwiabWVn48o3uJLjxFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/obug": {- "version": "2.1.4",- "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.4.tgz",- "integrity": "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA==",- "dev": true,- "funding": [- "https://github.com/sponsors/sxzz",- "https://opencollective.com/debug"- ],- "license": "MIT",- "engines": {- "node": ">=12.20.0"- }- },- "node_modules/optionator": {- "version": "0.9.4",- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",- "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",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^0.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/p-locate": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^3.0.2"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/parse5": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz",- "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==",- "dev": true,- "license": "MIT",- "dependencies": {- "entities": "^8.0.0"- },- "funding": {- "url": "https://github.com/inikulin/parse5?sponsor=1"- }- },- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/pathe": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",- "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",- "dev": true,- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/picomatch": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",- "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/postcss": {- "version": "8.5.26",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.26.tgz",- "integrity": "sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==",- "dev": true,- "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.17",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/prelude-ls": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/punycode": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/react": {- "version": "19.2.8",- "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz",- "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==",- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/react-dom": {- "version": "19.2.8",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz",- "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==",- "license": "MIT",- "dependencies": {- "scheduler": "^0.27.0"- },- "peerDependencies": {- "react": "^19.2.8"- }- },- "node_modules/react-refresh": {- "version": "0.17.0",- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",- "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/require-from-string": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",- "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/rollup": {- "version": "4.63.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.63.0.tgz",- "integrity": "sha512-T5vnZ2y4QqC3/4P+w2+JO+Q/OVdnPsv4XcSYJYMEn0R9/jjl5AgLwO9LAZMzP2lN71O6pypn91rB7lDstUkfrQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.9"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@napi-rs/lzma-linux-x64-gnu": "1.5.1",- "@rollup/rollup-android-arm-eabi": "4.63.0",- "@rollup/rollup-android-arm64": "4.63.0",- "@rollup/rollup-darwin-arm64": "4.63.0",- "@rollup/rollup-darwin-x64": "4.63.0",- "@rollup/rollup-freebsd-arm64": "4.63.0",- "@rollup/rollup-freebsd-x64": "4.63.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.63.0",- "@rollup/rollup-linux-arm-musleabihf": "4.63.0",- "@rollup/rollup-linux-arm64-gnu": "4.63.0",- "@rollup/rollup-linux-arm64-musl": "4.63.0",- "@rollup/rollup-linux-loong64-gnu": "4.63.0",- "@rollup/rollup-linux-loong64-musl": "4.63.0",- "@rollup/rollup-linux-ppc64-gnu": "4.63.0",- "@rollup/rollup-linux-ppc64-musl": "4.63.0",- "@rollup/rollup-linux-riscv64-gnu": "4.63.0",- "@rollup/rollup-linux-riscv64-musl": "4.63.0",- "@rollup/rollup-linux-s390x-gnu": "4.63.0",- "@rollup/rollup-linux-x64-gnu": "4.63.0",- "@rollup/rollup-linux-x64-musl": "4.63.0",- "@rollup/rollup-openbsd-x64": "4.63.0",- "@rollup/rollup-openharmony-arm64": "4.63.0",- "@rollup/rollup-win32-arm64-msvc": "4.63.0",- "@rollup/rollup-win32-ia32-msvc": "4.63.0",- "@rollup/rollup-win32-x64-gnu": "4.63.0",- "@rollup/rollup-win32-x64-msvc": "4.63.0",- "fsevents": "~2.3.2"- }- },- "node_modules/saxes": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",- "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",- "dev": true,- "license": "ISC",- "dependencies": {- "xmlchars": "^2.2.0"- },- "engines": {- "node": ">=v12.22.7"- }- },- "node_modules/scheduler": {- "version": "0.27.0",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",- "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",- "license": "MIT"- },- "node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/shebang-command": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "shebang-regex": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/shebang-regex": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/siginfo": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",- "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",- "dev": true,- "license": "ISC"- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/stackback": {- "version": "0.0.2",- "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",- "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",- "dev": true,- "license": "MIT"- },- "node_modules/std-env": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz",- "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==",- "dev": true,- "license": "MIT"- },- "node_modules/symbol-tree": {- "version": "3.2.4",- "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",- "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",- "dev": true,- "license": "MIT"- },- "node_modules/tailwindcss": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz",- "integrity": "sha512-gOhV3P7ufE62QDGg1zVaTgCR+EtPv92k2nIhVcVKcLmxT1sUBsQGhnZj175j+MqRt4zLF7ic+sCYjfhxMxj7YQ==",- "dev": true,- "license": "MIT"- },- "node_modules/tapable": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",- "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/webpack"- }- },- "node_modules/tinybench": {- "version": "2.9.0",- "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",- "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",- "dev": true,- "license": "MIT"- },- "node_modules/tinyexec": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz",- "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- }- },- "node_modules/tinyglobby": {- "version": "0.2.17",- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",- "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",- "dev": true,- "license": "MIT",- "dependencies": {- "fdir": "^6.5.0",- "picomatch": "^4.0.4"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "url": "https://github.com/sponsors/SuperchupuDev"- }- },- "node_modules/tinyrainbow": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz",- "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/tldts": {- "version": "7.4.11",- "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.11.tgz",- "integrity": "sha512-aBiNayCfTQxuIJBm06M+xR14cYaYlDlSXZbgsnKzKNxDKUVq7KFwTjwBSsb7m9Y5xO8WfPnBc63WaYFMTGlvqw==",- "dev": true,- "license": "MIT",- "dependencies": {- "tldts-core": "^7.4.11"- },- "bin": {- "tldts": "bin/cli.js"- }- },- "node_modules/tldts-core": {- "version": "7.4.11",- "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.11.tgz",- "integrity": "sha512-CW3WN2rIIE/Of21mulhgnGOwoDyEFNygyIBOONSdyAuSATgMMUCpLeUlB+E8sAwA5xRV9hYPl+kyZ9citHCaKg==",- "dev": true,- "license": "MIT"- },- "node_modules/tough-cookie": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz",- "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "tldts": "^7.0.5"- },- "engines": {- "node": ">=16"- }- },- "node_modules/tr46": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz",- "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==",- "dev": true,- "license": "MIT",- "dependencies": {- "punycode": "^2.3.1"- },- "engines": {- "node": ">=20"- }- },- "node_modules/ts-api-utils": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",- "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18.12"- },- "peerDependencies": {- "typescript": ">=4.8.4"- }- },- "node_modules/type-check": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/typescript": {- "version": "5.8.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",- "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/typescript-eslint": {- "version": "8.68.0",- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.68.0.tgz",- "integrity": "sha512-MHy0Y0ynqeEbx/S45+i/bBssdy3X6KNBfmJAP35GrgtNxu2TQ5K5xsFDhAnmsq1jvpdoZOPG1LGtJo0HWqYCrQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/eslint-plugin": "8.68.0",- "@typescript-eslint/parser": "8.68.0",- "@typescript-eslint/typescript-estree": "8.68.0",- "@typescript-eslint/utils": "8.68.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/undici": {- "version": "8.10.0",- "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.0.tgz",- "integrity": "sha512-HvltHd7avK13QIw/oLe4qoOLyoVSoafqJ2jYOrtMRBkbYT31eiBQ8O0ehRKZiEZCMEyLFQNIADpgCWC5fALvYQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=22.19.0"- }- },- "node_modules/undici-types": {- "version": "8.3.0",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",- "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",- "dev": true,- "license": "MIT"- },- "node_modules/update-browserslist-db": {- "version": "1.3.1",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.1.tgz",- "integrity": "sha512-ZZ61DsRsOnakl74HAmp3oSN4aXUmEWXf+i/yv0h7tIBfICc3VdrFErQKUUKPgu3AMsTUMbcongALEN4l6GSUrQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "escalade": "^3.2.0",- "picocolors": "^1.1.1"- },- "bin": {- "update-browserslist-db": "cli.js"- },- "peerDependencies": {- "browserslist": ">= 4.21.0"- }- },- "node_modules/uri-js": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "punycode": "^2.1.0"- }- },- "node_modules/vite": {- "version": "7.3.6",- "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.6.tgz",- "integrity": "sha512-4XP60spRGjSZFf1qYH+dJIkK2znL3zQfl9KkOV9MkkRR/3Dls0dxaBsQPTloEc5BLXWPL9vsOxopxyKoMmDueg==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.27.0 || ^0.28.0",- "fdir": "^6.5.0",- "picomatch": "^4.0.3",- "postcss": "^8.5.6",- "rollup": "^4.43.0",- "tinyglobby": "^0.2.15"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^20.19.0 || >=22.12.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^20.19.0 || >=22.12.0",- "jiti": ">=1.21.0",- "less": "^4.0.0",- "lightningcss": "^1.21.0",- "sass": "^1.70.0",- "sass-embedded": "^1.70.0",- "stylus": ">=0.54.8",- "sugarss": "^5.0.0",- "terser": "^5.16.0",- "tsx": "^4.8.1",- "yaml": "^2.4.2"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "jiti": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- },- "tsx": {- "optional": true- },- "yaml": {- "optional": true- }- }- },- "node_modules/vitest": {- "version": "4.1.11",- "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz",- "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@vitest/expect": "4.1.11",- "@vitest/mocker": "4.1.11",- "@vitest/pretty-format": "4.1.11",- "@vitest/runner": "4.1.11",- "@vitest/snapshot": "4.1.11",- "@vitest/spy": "4.1.11",- "@vitest/utils": "4.1.11",- "es-module-lexer": "^2.0.0",- "expect-type": "^1.3.0",- "magic-string": "^0.30.21",- "obug": "^2.1.1",- "pathe": "^2.0.3",- "picomatch": "^4.0.3",- "std-env": "^4.0.0-rc.1",- "tinybench": "^2.9.0",- "tinyexec": "^1.0.2",- "tinyglobby": "^0.2.15",- "tinyrainbow": "^3.1.0",- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0",- "why-is-node-running": "^2.3.0"- },- "bin": {- "vitest": "vitest.mjs"- },- "engines": {- "node": "^20.0.0 || ^22.0.0 || >=24.0.0"- },- "funding": {- "url": "https://opencollective.com/vitest"- },- "peerDependencies": {- "@edge-runtime/vm": "*",- "@opentelemetry/api": "^1.9.0",- "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",- "@vitest/browser-playwright": "4.1.11",- "@vitest/browser-preview": "4.1.11",- "@vitest/browser-webdriverio": "4.1.11",- "@vitest/coverage-istanbul": "4.1.11",- "@vitest/coverage-v8": "4.1.11",- "@vitest/ui": "4.1.11",- "happy-dom": "*",- "jsdom": "*",- "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"- },- "peerDependenciesMeta": {- "@edge-runtime/vm": {- "optional": true- },- "@opentelemetry/api": {- "optional": true- },- "@types/node": {- "optional": true- },- "@vitest/browser-playwright": {- "optional": true- },- "@vitest/browser-preview": {- "optional": true- },- "@vitest/browser-webdriverio": {- "optional": true- },- "@vitest/coverage-istanbul": {- "optional": true- },- "@vitest/coverage-v8": {- "optional": true- },- "@vitest/ui": {- "optional": true- },- "happy-dom": {- "optional": true- },- "jsdom": {- "optional": true- },- "vite": {- "optional": false- }- }- },- "node_modules/w3c-xmlserializer": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",- "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "xml-name-validator": "^5.0.0"- },- "engines": {- "node": ">=18"- }- },- "node_modules/webidl-conversions": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",- "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=20"- }- },- "node_modules/whatwg-mimetype": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",- "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=20"- }- },- "node_modules/whatwg-url": {- "version": "17.1.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-17.1.0.tgz",- "integrity": "sha512-3GeworPmc2ZfEEHP7lEbUfBX/L75wdEsi0rLNhXcXxnoN5jyq0SL5gCy06SGW2cyTIZdTvWIDQNQoza++vKeaw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@exodus/bytes": "^1.15.1",- "tr46": "^6.0.0",- "webidl-conversions": "^8.0.1"- },- "engines": {- "node": "^22.14.0 || >=24.0.0"- }- },- "node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dev": true,- "license": "ISC",- "dependencies": {- "isexe": "^2.0.0"- },- "bin": {- "node-which": "bin/node-which"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/why-is-node-running": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",- "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",- "dev": true,- "license": "MIT",- "dependencies": {- "siginfo": "^2.0.0",- "stackback": "0.0.2"- },- "bin": {- "why-is-node-running": "cli.js"- },- "engines": {- "node": ">=8"- }- },- "node_modules/word-wrap": {- "version": "1.2.5",- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",- "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/xml-name-validator": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",- "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18"- }- },- "node_modules/xmlchars": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",- "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",- "dev": true,- "license": "MIT"- },- "node_modules/yallist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",- "dev": true,- "license": "ISC"- },- "node_modules/yocto-queue": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/zod": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz",- "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- },- "node_modules/zod-validation-error": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz",- "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18.0.0"- },- "peerDependencies": {- "zod": "^3.25.0 || ^4.0.0"- }- }- }-}diff --git a/desktop/package.json b/desktop/package.jsondeleted file mode 100644index 0c24ff5a..00000000--- a/desktop/package.json+++ /dev/null@@ -1,45 +0,0 @@-{- "name": "concat-desktop",- "private": true,- "version": "0.2.0",- "type": "module",- "scripts": {- "dev": "vite",- "build": "tsc && vite build",- "preview": "vite preview",- "tauri": "tauri",- "app": "tauri dev",- "app:build": "tauri build",- "typecheck": "tsc --noEmit",- "test": "vitest run",- "lint": "eslint ."- },- "dependencies": {- "@fontsource-variable/inter": "^5.3.0",- "@heroicons/react": "^2.2.0",- "@tauri-apps/api": "^2",- "@tauri-apps/plugin-dialog": "^2.7.2",- "@tauri-apps/plugin-opener": "^2",- "lucide-react": "^1.37.0",- "react": "^19.1.0",- "react-dom": "^19.1.0"- },- "devDependencies": {- "@eslint/js": "^10.0.1",- "@tailwindcss/vite": "^4",- "@tauri-apps/cli": "^2",- "@types/node": "^26.4.0",- "@types/react": "^19.1.8",- "@types/react-dom": "^19.1.6",- "@vitejs/plugin-react": "^4.6.0",- "eslint": "^10.9.1",- "eslint-plugin-react-hooks": "^7.1.1",- "jsdom": "^30.0.1",- "tailwindcss": "^4",- "typescript": "~5.8.3",- "typescript-eslint": "^8.68.0",- "vite": "^7.0.4",- "vitest": "^4.1.11"- },- "license": "AGPL-3.0-or-later"-}diff --git a/desktop/public/tauri.svg b/desktop/public/tauri.svgdeleted file mode 100644index 31b62c92..00000000--- a/desktop/public/tauri.svg+++ /dev/null@@ -1,6 +0,0 @@-<svg width="206" height="231" viewBox="0 0 206 231" fill="none" xmlns="http://www.w3.org/2000/svg">-<path d="M143.143 84C143.143 96.1503 133.293 106 121.143 106C108.992 106 99.1426 96.1503 99.1426 84C99.1426 71.8497 108.992 62 121.143 62C133.293 62 143.143 71.8497 143.143 84Z" fill="#FFC131"/>-<ellipse cx="84.1426" cy="147" rx="22" ry="22" transform="rotate(180 84.1426 147)" fill="#24C8DB"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M166.738 154.548C157.86 160.286 148.023 164.269 137.757 166.341C139.858 160.282 141 153.774 141 147C141 144.543 140.85 142.121 140.558 139.743C144.975 138.204 149.215 136.139 153.183 133.575C162.73 127.404 170.292 118.608 174.961 108.244C179.63 97.8797 181.207 86.3876 179.502 75.1487C177.798 63.9098 172.884 53.4021 165.352 44.8883C157.82 36.3744 147.99 30.2165 137.042 27.1546C126.095 24.0926 114.496 24.2568 103.64 27.6274C92.7839 30.998 83.1319 37.4317 75.8437 46.1553C74.9102 47.2727 74.0206 48.4216 73.176 49.5993C61.9292 50.8488 51.0363 54.0318 40.9629 58.9556C44.2417 48.4586 49.5653 38.6591 56.679 30.1442C67.0505 17.7298 80.7861 8.57426 96.2354 3.77762C111.685 -1.01901 128.19 -1.25267 143.769 3.10474C159.348 7.46215 173.337 16.2252 184.056 28.3411C194.775 40.457 201.767 55.4101 204.193 71.404C206.619 87.3978 204.374 103.752 197.73 118.501C191.086 133.25 180.324 145.767 166.738 154.548ZM41.9631 74.275L62.5557 76.8042C63.0459 72.813 63.9401 68.9018 65.2138 65.1274C57.0465 67.0016 49.2088 70.087 41.9631 74.275Z" fill="#FFC131"/>-<path fill-rule="evenodd" clip-rule="evenodd" d="M38.4045 76.4519C47.3493 70.6709 57.2677 66.6712 67.6171 64.6132C65.2774 70.9669 64 77.8343 64 85.0001C64 87.1434 64.1143 89.26 64.3371 91.3442C60.0093 92.8732 55.8533 94.9092 51.9599 97.4256C42.4128 103.596 34.8505 112.392 30.1816 122.756C25.5126 133.12 23.9357 144.612 25.6403 155.851C27.3449 167.09 32.2584 177.598 39.7906 186.112C47.3227 194.626 57.153 200.784 68.1003 203.846C79.0476 206.907 90.6462 206.743 101.502 203.373C112.359 200.002 122.011 193.568 129.299 184.845C130.237 183.722 131.131 182.567 131.979 181.383C143.235 180.114 154.132 176.91 164.205 171.962C160.929 182.49 155.596 192.319 148.464 200.856C138.092 213.27 124.357 222.426 108.907 227.222C93.458 232.019 76.9524 232.253 61.3736 227.895C45.7948 223.538 31.8055 214.775 21.0867 202.659C10.3679 190.543 3.37557 175.59 0.949823 159.596C-1.47592 143.602 0.768139 127.248 7.41237 112.499C14.0566 97.7497 24.8183 85.2327 38.4045 76.4519ZM163.062 156.711L163.062 156.711C162.954 156.773 162.846 156.835 162.738 156.897C162.846 156.835 162.954 156.773 163.062 156.711Z" fill="#24C8DB"/>-</svg>diff --git a/desktop/public/vite.svg b/desktop/public/vite.svgdeleted file mode 100644index e7b8dfb1..00000000--- a/desktop/public/vite.svg+++ /dev/null@@ -1 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>\ No newline at end of filediff --git a/desktop/src-tauri/.gitignore b/desktop/src-tauri/.gitignoredeleted file mode 100644index 3e889b5d..00000000--- a/desktop/src-tauri/.gitignore+++ /dev/null@@ -1,12 +0,0 @@-# Generated by Cargo-# will have compiled files and executables-/target/--# Generated by Tauri-# will have schema files for capabilities auto-completion-/gen/schemas--# Staged FFmpeg pair for bundled builds (downloaded in CI, ~100 MB)-/ffmpeg/-/whisper/whisper-cli*-/whisper/*.dlldiff --git a/desktop/src-tauri/Cargo.lock b/desktop/src-tauri/Cargo.lockdeleted file mode 100644index 93e5d20d..00000000--- a/desktop/src-tauri/Cargo.lock+++ /dev/null@@ -1,6216 +0,0 @@-# This file is automatically @generated by Cargo.-# It is not intended for manual editing.-version = 4--[[package]]-name = "adler2"-version = "2.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"--[[package]]-name = "aho-corasick"-version = "1.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"-dependencies = [- "memchr",-]--[[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.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195"-dependencies = [- "alloc-no-stdlib",-]--[[package]]-name = "allocator-api2"-version = "0.2.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"--[[package]]-name = "alsa"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed7572b7ba83a31e20d1b48970ee402d2e3e0537dcfe0a3ff4d6eb7508617d43"-dependencies = [- "alsa-sys",- "bitflags 2.13.1",- "cfg-if",- "libc",-]--[[package]]-name = "alsa-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "db8fee663d06c4e303404ef5f40488a53e062f89ba8bfed81f42325aafad1527"-dependencies = [- "libc",- "pkg-config",-]--[[package]]-name = "android_system_properties"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"-dependencies = [- "libc",-]--[[package]]-name = "anyhow"-version = "1.0.104"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"--[[package]]-name = "arrayvec"-version = "0.7.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"--[[package]]-name = "ash"-version = "0.38.0+1.3.281"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"-dependencies = [- "libloading 0.8.9",-]--[[package]]-name = "async-broadcast"-version = "0.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"-dependencies = [- "event-listener",- "event-listener-strategy",- "futures-core",- "pin-project-lite",-]--[[package]]-name = "async-channel"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2"-dependencies = [- "concurrent-queue",- "event-listener-strategy",- "futures-core",- "pin-project-lite",-]--[[package]]-name = "async-executor"-version = "1.14.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"-dependencies = [- "async-task",- "concurrent-queue",- "fastrand",- "futures-lite",- "pin-project-lite",- "slab",-]--[[package]]-name = "async-io"-version = "2.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc"-dependencies = [- "autocfg",- "cfg-if",- "concurrent-queue",- "futures-io",- "futures-lite",- "parking",- "polling",- "rustix",- "slab",- "windows-sys 0.61.2",-]--[[package]]-name = "async-lock"-version = "3.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"-dependencies = [- "event-listener",- "event-listener-strategy",- "pin-project-lite",-]--[[package]]-name = "async-process"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"-dependencies = [- "async-channel",- "async-io",- "async-lock",- "async-signal",- "async-task",- "blocking",- "cfg-if",- "event-listener",- "futures-lite",- "rustix",-]--[[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.119",-]--[[package]]-name = "async-signal"-version = "0.2.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485"-dependencies = [- "async-io",- "async-lock",- "atomic-waker",- "cfg-if",- "futures-core",- "futures-io",- "rustix",- "signal-hook-registry",- "slab",- "windows-sys 0.61.2",-]--[[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.92"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "atk"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b"-dependencies = [- "atk-sys",- "glib",- "libc",-]--[[package]]-name = "atk-sys"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086"-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 = "autocfg"-version = "1.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"--[[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-set"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"-dependencies = [- "bit-vec 0.8.0",-]--[[package]]-name = "bit-set"-version = "0.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d"-dependencies = [- "bit-vec 0.9.1",-]--[[package]]-name = "bit-vec"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"--[[package]]-name = "bit-vec"-version = "0.9.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51"--[[package]]-name = "bitflags"-version = "1.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"--[[package]]-name = "bitflags"-version = "2.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"-dependencies = [- "serde_core",-]--[[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.6.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"-dependencies = [- "objc2",-]--[[package]]-name = "blocking"-version = "1.7.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa"-dependencies = [- "async-channel",- "async-task",- "futures-io",- "futures-lite",- "piper",-]--[[package]]-name = "brotli"-version = "8.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3"-dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",- "brotli-decompressor",-]--[[package]]-name = "brotli-decompressor"-version = "5.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583"-dependencies = [- "alloc-no-stdlib",- "alloc-stdlib",-]--[[package]]-name = "bs58"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4"-dependencies = [- "tinyvec",-]--[[package]]-name = "bumpalo"-version = "3.20.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"--[[package]]-name = "bytemuck"-version = "1.25.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"-dependencies = [- "bytemuck_derive",-]--[[package]]-name = "bytemuck_derive"-version = "1.12.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc0e56a716f1e132ff6bf4bdac1c944a3fcdc1cae65f70a4a2a1ac3b401d2d1f"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "byteorder"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"--[[package]]-name = "bytes"-version = "1.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"-dependencies = [- "serde",-]--[[package]]-name = "bzip2"-version = "0.4.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8"-dependencies = [- "bzip2-sys",- "libc",-]--[[package]]-name = "bzip2"-version = "0.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f3a53fac24f34a81bc9954b5d6cfce0c21e18ec6959f44f56e8e90e4bb7c346c"-dependencies = [- "libbz2-rs-sys",-]--[[package]]-name = "bzip2-sys"-version = "0.1.13+1.0.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14"-dependencies = [- "cc",- "pkg-config",-]--[[package]]-name = "cairo-rs"-version = "0.18.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2"-dependencies = [- "bitflags 2.13.1",- "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.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb1307f12aa967b5a58416e87b3653360e0fd614a016b6e970db08fecbb1b80d"-dependencies = [- "serde_core",-]--[[package]]-name = "cargo-platform"-version = "0.1.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea"-dependencies = [- "serde",-]--[[package]]-name = "cargo_metadata"-version = "0.19.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba"-dependencies = [- "camino",- "cargo-platform",- "semver",- "serde",- "serde_json",- "thiserror 2.0.20",-]--[[package]]-name = "cargo_toml"-version = "0.22.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"-dependencies = [- "serde",- "toml 0.9.12+spec-1.1.0",-]--[[package]]-name = "cc"-version = "1.4.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ad534f4357a5264cce5019c989cf66a4f0dc4e0d1b1d15f8aacec0ff7360273"-dependencies = [- "find-msvc-tools",- "shlex",-]--[[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 = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"--[[package]]-name = "cfg_aliases"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"--[[package]]-name = "chrono"-version = "0.4.45"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"-dependencies = [- "iana-time-zone",- "num-traits",- "serde",- "windows-link 0.2.1",-]--[[package]]-name = "codespan-reporting"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"-dependencies = [- "serde",- "termcolor",- "unicode-width",-]--[[package]]-name = "combine"-version = "4.6.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cfc320937d09e6de266b31b9afb480f197d7a861be86be7cb2ea7e5d1bfffc5e"-dependencies = [- "bytes",- "memchr",-]--[[package]]-name = "concat-core"-version = "0.2.0"--[[package]]-name = "concat-desktop"-version = "0.2.0"-dependencies = [- "bzip2 0.6.1",- "concat-core",- "concat-export",- "concat-media",- "concat-project",- "concat-render",- "cpal",- "memmap2",- "serde",- "serde_json",- "sherpa-onnx",- "tar",- "tauri",- "tauri-build",- "tauri-plugin-dialog",- "tauri-plugin-opener",- "ts-rs",- "ureq",-]--[[package]]-name = "concat-export"-version = "0.2.0"-dependencies = [- "concat-core",- "concat-media",- "concat-project",- "concat-render",- "serde",-]--[[package]]-name = "concat-media"-version = "0.2.0"-dependencies = [- "concat-core",- "serde_json",- "thiserror 2.0.20",-]--[[package]]-name = "concat-project"-version = "0.2.0"-dependencies = [- "serde",- "serde_json",- "thiserror 2.0.20",- "ts-rs",-]--[[package]]-name = "concat-render"-version = "0.2.0"-dependencies = [- "concat-core",- "pollster",- "wgpu",-]--[[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 = "cookie"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87"-dependencies = [- "time",- "version_check",-]--[[package]]-name = "core-foundation"-version = "0.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"-dependencies = [- "core-foundation-sys",- "libc",-]--[[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.25.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97"-dependencies = [- "bitflags 2.13.1",- "core-foundation",- "core-graphics-types",- "foreign-types",- "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.13.1",- "core-foundation",- "libc",-]--[[package]]-name = "coreaudio-rs"-version = "0.13.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1aae284fbaf7d27aa0e292f7677dfbe26503b0d555026f702940805a630eac17"-dependencies = [- "bitflags 1.3.2",- "libc",- "objc2-audio-toolbox",- "objc2-core-audio",- "objc2-core-audio-types",- "objc2-core-foundation",-]--[[package]]-name = "cpal"-version = "0.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cbd307f43cc2a697e2d1f8bc7a1d824b5269e052209e28883e5bc04d095aaa3f"-dependencies = [- "alsa",- "coreaudio-rs",- "dasp_sample",- "jni",- "js-sys",- "libc",- "mach2",- "ndk",- "ndk-context",- "num-derive",- "num-traits",- "objc2-audio-toolbox",- "objc2-core-audio",- "objc2-core-audio-types",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",- "windows 0.54.0",-]--[[package]]-name = "cpufeatures"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"-dependencies = [- "libc",-]--[[package]]-name = "crc32fast"-version = "1.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8498c871161e1742aaa9d52551b2d6ebdd4c3d45a3be423e3728f33b955be550"-dependencies = [- "cfg-if",-]--[[package]]-name = "crossbeam-channel"-version = "0.5.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d85363c37faeca707aef026efa9f3b34d077bce547e48f770770625c6013679e"-dependencies = [- "crossbeam-utils",-]--[[package]]-name = "crossbeam-utils"-version = "0.8.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"--[[package]]-name = "crunchy"-version = "0.2.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"--[[package]]-name = "crypto-common"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"-dependencies = [- "generic-array",- "typenum",-]--[[package]]-name = "cssparser"-version = "0.36.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"-dependencies = [- "cssparser-macros",- "dtoa-short",- "itoa",- "phf",- "smallvec",-]--[[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.119",-]--[[package]]-name = "ctor"-version = "0.8.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"-dependencies = [- "ctor-proc-macro",- "dtor",-]--[[package]]-name = "ctor-proc-macro"-version = "0.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"--[[package]]-name = "darling"-version = "0.23.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"-dependencies = [- "darling_core",- "darling_macro",-]--[[package]]-name = "darling_core"-version = "0.23.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"-dependencies = [- "ident_case",- "proc-macro2",- "quote",- "strsim",- "syn 2.0.119",-]--[[package]]-name = "darling_macro"-version = "0.23.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"-dependencies = [- "darling_core",- "quote",- "syn 2.0.119",-]--[[package]]-name = "dasp_sample"-version = "0.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c87e182de0887fd5361989c677c4e8f5000cd9491d6d563161a8f3a5519fc7f"--[[package]]-name = "dbus"-version = "0.9.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3ab69f03cc8c4340c9c8e315114e1658e6775a9b16a04357973aa21cec22b32e"-dependencies = [- "libc",- "libdbus-sys",- "windows-sys 0.61.2",-]--[[package]]-name = "defmt"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e2953bfe4f93bbd20cc71198842756f77d161884c99ebbabc41d80231ded88d1"-dependencies = [- "bitflags 1.3.2",- "defmt-macros",-]--[[package]]-name = "defmt-macros"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bad9c72e7ca2137e0dc3813245a0d282fd6daad32fd800af018306a9169b5fe8"-dependencies = [- "defmt-parser",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "defmt-parser"-version = "1.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "10d60334b3b2e7c9d91ef8150abfb6fa4c1c39ebbcf4a81c2e346aad939fee3e"-dependencies = [- "thiserror 2.0.20",-]--[[package]]-name = "deranged"-version = "0.5.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"-dependencies = [- "serde_core",-]--[[package]]-name = "derive_more"-version = "2.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"-dependencies = [- "derive_more-impl",-]--[[package]]-name = "derive_more-impl"-version = "2.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"-dependencies = [- "proc-macro2",- "quote",- "rustc_version",- "syn 2.0.119",-]--[[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 = "6.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"-dependencies = [- "dirs-sys",-]--[[package]]-name = "dirs-sys"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"-dependencies = [- "libc",- "option-ext",- "redox_users",- "windows-sys 0.61.2",-]--[[package]]-name = "dispatch2"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38"-dependencies = [- "bitflags 2.13.1",- "block2",- "libc",- "objc2",-]--[[package]]-name = "displaydoc"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "dlib"-version = "0.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a"-dependencies = [- "libloading 0.8.9",-]--[[package]]-name = "dlopen2"-version = "0.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4"-dependencies = [- "dlopen2_derive",- "libc",- "once_cell",- "winapi",-]--[[package]]-name = "dlopen2_derive"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "document-features"-version = "0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"-dependencies = [- "litrs",-]--[[package]]-name = "dom_query"-version = "0.27.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"-dependencies = [- "bit-set 0.8.0",- "cssparser",- "foldhash",- "html5ever",- "precomputed-hash",- "selectors",- "tendril",-]--[[package]]-name = "dpi"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"-dependencies = [- "serde",-]--[[package]]-name = "dtoa"-version = "1.0.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590"--[[package]]-name = "dtoa-short"-version = "0.3.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87"-dependencies = [- "dtoa",-]--[[package]]-name = "dtor"-version = "0.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"-dependencies = [- "dtor-proc-macro",-]--[[package]]-name = "dtor-proc-macro"-version = "0.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"--[[package]]-name = "dunce"-version = "1.0.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"--[[package]]-name = "dyn-clone"-version = "1.0.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"--[[package]]-name = "embed-resource"-version = "3.0.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fbfdaacccebec3b28e4866b8973543c7647797db5ada1bdab552e48fe665fbbd"-dependencies = [- "cc",- "memchr",- "rustc_version",- "toml 1.1.4+spec-1.1.0",- "vswhom",- "winreg",-]--[[package]]-name = "embed_plist"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7"--[[package]]-name = "endi"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"--[[package]]-name = "enumflags2"-version = "0.7.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"-dependencies = [- "enumflags2_derive",- "serde",-]--[[package]]-name = "enumflags2_derive"-version = "0.7.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "equivalent"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"--[[package]]-name = "erased-serde"-version = "0.4.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"-dependencies = [- "serde",- "serde_core",- "typeid",-]--[[package]]-name = "errno"-version = "0.3.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"-dependencies = [- "libc",- "windows-sys 0.61.2",-]--[[package]]-name = "event-listener"-version = "5.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"-dependencies = [- "parking",- "pin-project-lite",-]--[[package]]-name = "event-listener-strategy"-version = "0.5.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"-dependencies = [- "event-listener",- "pin-project-lite",-]--[[package]]-name = "fastrand"-version = "2.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"--[[package]]-name = "fdeflate"-version = "0.3.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"-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.29"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"-dependencies = [- "cfg-if",- "libc",-]--[[package]]-name = "find-msvc-tools"-version = "0.1.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d45db016d36b838f563236e9193d0ee6ce38f3f68b6c94e914b4929c96bbb890"--[[package]]-name = "flate2"-version = "1.1.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"-dependencies = [- "crc32fast",- "miniz_oxide",-]--[[package]]-name = "fnv"-version = "1.0.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"--[[package]]-name = "foldhash"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"--[[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",-]--[[package]]-name = "foreign-types-macros"-version = "0.2.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"-dependencies = [- "percent-encoding",-]--[[package]]-name = "futures-channel"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"-dependencies = [- "futures-core",-]--[[package]]-name = "futures-core"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"--[[package]]-name = "futures-executor"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"-dependencies = [- "futures-core",- "futures-task",- "futures-util",-]--[[package]]-name = "futures-io"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"--[[package]]-name = "futures-lite"-version = "2.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"-dependencies = [- "fastrand",- "futures-core",- "futures-io",- "parking",- "pin-project-lite",-]--[[package]]-name = "futures-macro"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "futures-sink"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"--[[package]]-name = "futures-task"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"--[[package]]-name = "futures-util"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"-dependencies = [- "futures-core",- "futures-io",- "futures-macro",- "futures-sink",- "futures-task",- "memchr",- "pin-project-lite",- "slab",-]--[[package]]-name = "gdk"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691"-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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7"-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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69"-dependencies = [- "gdk-sys",- "glib-sys",- "gobject-sys",- "libc",- "pkg-config",- "system-deps",-]--[[package]]-name = "gdkx11"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe"-dependencies = [- "gdk",- "gdkx11-sys",- "gio",- "glib",- "libc",- "x11",-]--[[package]]-name = "gdkx11-sys"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d"-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 = "getrandom"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"-dependencies = [- "cfg-if",- "libc",- "wasi",-]--[[package]]-name = "getrandom"-version = "0.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"-dependencies = [- "cfg-if",- "libc",- "r-efi 5.3.0",- "wasip2",-]--[[package]]-name = "getrandom"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"-dependencies = [- "cfg-if",- "libc",- "r-efi 6.0.0",-]--[[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 = "gl_generator"-version = "0.14.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d"-dependencies = [- "khronos_api",- "log",- "xml-rs",-]--[[package]]-name = "glib"-version = "0.18.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5"-dependencies = [- "bitflags 2.13.1",- "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.2",- "proc-macro-error",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[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.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"--[[package]]-name = "glow"-version = "0.17.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5"-dependencies = [- "js-sys",- "slotmap",- "wasm-bindgen",- "web-sys",-]--[[package]]-name = "glutin_wgl_sys"-version = "0.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"-dependencies = [- "gl_generator",-]--[[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 = "gpu-allocator"-version = "0.28.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795"-dependencies = [- "ash",- "hashbrown 0.16.1",- "log",- "presser",- "thiserror 2.0.20",- "windows 0.62.2",-]--[[package]]-name = "gtk"-version = "0.18.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a"-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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414"-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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d"-dependencies = [- "proc-macro-crate 1.3.1",- "proc-macro-error",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "half"-version = "2.7.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"-dependencies = [- "cfg-if",- "crunchy",- "num-traits",- "zerocopy",-]--[[package]]-name = "hashbrown"-version = "0.12.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"--[[package]]-name = "hashbrown"-version = "0.16.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"-dependencies = [- "allocator-api2",- "equivalent",- "foldhash",-]--[[package]]-name = "hashbrown"-version = "0.17.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"-dependencies = [- "foldhash",-]--[[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.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"--[[package]]-name = "hex"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"--[[package]]-name = "html5ever"-version = "0.38.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"-dependencies = [- "log",- "markup5ever",-]--[[package]]-name = "http"-version = "1.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"-dependencies = [- "bytes",- "itoa",-]--[[package]]-name = "http-body"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"-dependencies = [- "bytes",- "http",-]--[[package]]-name = "http-body-util"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"-dependencies = [- "bytes",- "futures-core",- "http",- "http-body",- "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 = "httparse"-version = "1.10.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"--[[package]]-name = "hyper"-version = "1.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72"-dependencies = [- "atomic-waker",- "bytes",- "futures-channel",- "futures-core",- "http",- "http-body",- "httparse",- "itoa",- "pin-project-lite",- "smallvec",- "tokio",- "want",-]--[[package]]-name = "hyper-util"-version = "0.1.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"-dependencies = [- "base64 0.22.1",- "bytes",- "futures-channel",- "futures-util",- "http",- "http-body",- "hyper",- "ipnet",- "libc",- "percent-encoding",- "pin-project-lite",- "socket2",- "tokio",- "tower-service",- "tracing",-]--[[package]]-name = "iana-time-zone"-version = "0.1.65"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"-dependencies = [- "android_system_properties",- "core-foundation-sys",- "iana-time-zone-haiku",- "js-sys",- "log",- "wasm-bindgen",- "windows-core 0.62.2",-]--[[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.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"-dependencies = [- "byteorder",- "png 0.17.16",-]--[[package]]-name = "icu_collections"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"-dependencies = [- "displaydoc",- "potential_utf",- "utf8_iter",- "yoke",- "zerofrom",- "zerovec",-]--[[package]]-name = "icu_locale_core"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"-dependencies = [- "displaydoc",- "litemap",- "tinystr",- "writeable",- "zerovec",-]--[[package]]-name = "icu_normalizer"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"-dependencies = [- "icu_collections",- "icu_normalizer_data",- "icu_properties",- "icu_provider",- "smallvec",- "zerovec",-]--[[package]]-name = "icu_normalizer_data"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"--[[package]]-name = "icu_properties"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"-dependencies = [- "displaydoc",- "icu_collections",- "icu_locale_core",- "icu_properties_data",- "icu_provider",- "zerotrie",- "zerovec",-]--[[package]]-name = "icu_properties_data"-version = "2.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"--[[package]]-name = "icu_provider"-version = "2.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"-dependencies = [- "displaydoc",- "icu_locale_core",- "writeable",- "yoke",- "zerofrom",- "zerotrie",- "zerovec",-]--[[package]]-name = "ident_case"-version = "1.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"--[[package]]-name = "idna"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"-dependencies = [- "idna_adapter",- "smallvec",- "utf8_iter",-]--[[package]]-name = "idna_adapter"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"-dependencies = [- "icu_normalizer",- "icu_properties",-]--[[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.14.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"-dependencies = [- "equivalent",- "hashbrown 0.17.1",- "serde",- "serde_core",-]--[[package]]-name = "infer"-version = "0.19.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"-dependencies = [- "cfb",-]--[[package]]-name = "ipnet"-version = "2.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"--[[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 = "itoa"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"--[[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 = "jiff"-version = "0.2.35"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "668b7183bd07af9a4885f5c35b0cc5c83c4607a913c16b7e17291832910d2dcc"-dependencies = [- "defmt",- "jiff-core",- "jiff-static",- "jiff-tzdb-platform",- "log",- "portable-atomic",- "portable-atomic-util",- "serde_core",- "windows-link 0.2.1",-]--[[package]]-name = "jiff-core"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7feca88439efe53da3754500c1851dedf3cb36c524dd5cf8225cc0794de95d09"-dependencies = [- "defmt",-]--[[package]]-name = "jiff-static"-version = "0.2.35"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3a69dcb3a21cfb32ce1cd056169337ca284af0766dd766e7878819b251a49204"-dependencies = [- "jiff-core",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "jiff-tzdb"-version = "0.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "142bd39932ad231f10513df9ab62661fead8719872150b7ad02a2df79f4e141e"--[[package]]-name = "jiff-tzdb-platform"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "875a5a69ac2bab1a891711cf5eccbec1ce0341ea805560dcd90b7a2e925132e8"-dependencies = [- "jiff-tzdb",-]--[[package]]-name = "jni"-version = "0.21.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"-dependencies = [- "cesu8",- "cfg-if",- "combine",- "jni-sys 0.3.1",- "log",- "thiserror 1.0.69",- "walkdir",- "windows-sys 0.45.0",-]--[[package]]-name = "jni-sys"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258"-dependencies = [- "jni-sys 0.4.1",-]--[[package]]-name = "jni-sys"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2"-dependencies = [- "jni-sys-macros",-]--[[package]]-name = "jni-sys-macros"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264"-dependencies = [- "quote",- "syn 2.0.119",-]--[[package]]-name = "js-sys"-version = "0.3.104"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"-dependencies = [- "cfg-if",- "futures-util",- "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.13.1",- "serde",- "unicode-segmentation",-]--[[package]]-name = "khronos-egl"-version = "6.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"-dependencies = [- "libc",- "libloading 0.8.9",- "pkg-config",-]--[[package]]-name = "khronos_api"-version = "3.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"--[[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 = "libbz2-rs-sys"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "34b357333733e8260735ba5894eb928c02ecc69c78715f01a8019e7fa7f2db4c"--[[package]]-name = "libc"-version = "0.2.189"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"--[[package]]-name = "libdbus-sys"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043"-dependencies = [- "pkg-config",-]--[[package]]-name = "libloading"-version = "0.7.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"-dependencies = [- "cfg-if",- "winapi",-]--[[package]]-name = "libloading"-version = "0.8.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"-dependencies = [- "cfg-if",- "windows-link 0.2.1",-]--[[package]]-name = "libm"-version = "0.2.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"--[[package]]-name = "libredox"-version = "0.1.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "28d0a00925a9f930d679b6789b721e3a7f9ed110f41b86d2497caa780c3a070a"-dependencies = [- "libc",-]--[[package]]-name = "linux-raw-sys"-version = "0.12.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"--[[package]]-name = "litemap"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"--[[package]]-name = "litrs"-version = "1.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"--[[package]]-name = "lock_api"-version = "0.4.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"-dependencies = [- "scopeguard",-]--[[package]]-name = "log"-version = "0.4.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"--[[package]]-name = "mach2"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d640282b302c0bb0a2a8e0233ead9035e3bed871f0b7e81fe4a1ec829765db44"-dependencies = [- "libc",-]--[[package]]-name = "markup5ever"-version = "0.38.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"-dependencies = [- "log",- "tendril",- "web_atoms",-]--[[package]]-name = "memchr"-version = "2.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"--[[package]]-name = "memmap2"-version = "0.9.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0"-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 = "mime"-version = "0.3.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"--[[package]]-name = "miniz_oxide"-version = "0.8.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"-dependencies = [- "adler2",- "simd-adler32",-]--[[package]]-name = "mio"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"-dependencies = [- "libc",- "wasi",- "windows-sys 0.61.2",-]--[[package]]-name = "muda"-version = "0.19.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878"-dependencies = [- "crossbeam-channel",- "dpi",- "gtk",- "keyboard-types",- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-foundation",- "once_cell",- "png 0.18.1",- "serde",- "thiserror 2.0.20",- "windows-sys 0.61.2",-]--[[package]]-name = "naga"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130"-dependencies = [- "arrayvec",- "bit-set 0.10.0",- "bitflags 2.13.1",- "cfg-if",- "cfg_aliases",- "codespan-reporting",- "half",- "hashbrown 0.17.1",- "indexmap 2.14.0",- "libm",- "log",- "naga-types",- "num-traits",- "once_cell",- "rustc-hash 1.1.0",- "spirv",- "thiserror 2.0.20",- "unicode-ident",-]--[[package]]-name = "naga-types"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "590afbf58a6f4f62873cd5cff4468061844bafa1cdf399cc954537c22d768d49"-dependencies = [- "hashbrown 0.17.1",- "indexmap 2.14.0",- "rustc-hash 1.1.0",- "thiserror 2.0.20",-]--[[package]]-name = "ndk"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"-dependencies = [- "bitflags 2.13.1",- "jni-sys 0.3.1",- "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 0.3.1",-]--[[package]]-name = "new_debug_unreachable"-version = "1.0.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"--[[package]]-name = "num-conv"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"--[[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.119",-]--[[package]]-name = "num-traits"-version = "0.2.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"-dependencies = [- "autocfg",- "libm",-]--[[package]]-name = "num_enum"-version = "0.7.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26"-dependencies = [- "num_enum_derive",- "rustversion",-]--[[package]]-name = "num_enum_derive"-version = "0.7.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8"-dependencies = [- "proc-macro-crate 3.5.0",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "objc2"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f"-dependencies = [- "objc2-encode",- "objc2-exception-helper",-]--[[package]]-name = "objc2-app-kit"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"-dependencies = [- "bitflags 2.13.1",- "block2",- "objc2",- "objc2-core-foundation",- "objc2-foundation",-]--[[package]]-name = "objc2-audio-toolbox"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6948501a91121d6399b79abaa33a8aa4ea7857fe019f341b8c23ad6e81b79b08"-dependencies = [- "bitflags 2.13.1",- "libc",- "objc2",- "objc2-core-audio",- "objc2-core-audio-types",- "objc2-core-foundation",- "objc2-foundation",-]--[[package]]-name = "objc2-cloud-kit"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"-dependencies = [- "bitflags 2.13.1",- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-core-audio"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e1eebcea8b0dbff5f7c8504f3107c68fc061a3eb44932051c8cf8a68d969c3b2"-dependencies = [- "dispatch2",- "objc2",- "objc2-core-audio-types",- "objc2-core-foundation",-]--[[package]]-name = "objc2-core-audio-types"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5a89f2ec274a0cf4a32642b2991e8b351a404d290da87bb6a9a9d8632490bd1c"-dependencies = [- "bitflags 2.13.1",- "objc2",-]--[[package]]-name = "objc2-core-data"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"-dependencies = [- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-core-foundation"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"-dependencies = [- "bitflags 2.13.1",- "dispatch2",- "objc2",-]--[[package]]-name = "objc2-core-graphics"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"-dependencies = [- "bitflags 2.13.1",- "dispatch2",- "objc2",- "objc2-core-foundation",- "objc2-io-surface",-]--[[package]]-name = "objc2-core-image"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"-dependencies = [- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-core-location"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009"-dependencies = [- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-core-text"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d"-dependencies = [- "bitflags 2.13.1",- "objc2",- "objc2-core-foundation",- "objc2-core-graphics",-]--[[package]]-name = "objc2-encode"-version = "4.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"--[[package]]-name = "objc2-exception-helper"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a"-dependencies = [- "cc",-]--[[package]]-name = "objc2-foundation"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"-dependencies = [- "bitflags 2.13.1",- "block2",- "libc",- "objc2",- "objc2-core-foundation",-]--[[package]]-name = "objc2-io-surface"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d"-dependencies = [- "bitflags 2.13.1",- "objc2",- "objc2-core-foundation",-]--[[package]]-name = "objc2-metal"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794"-dependencies = [- "bitflags 2.13.1",- "block2",- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-quartz-core"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"-dependencies = [- "bitflags 2.13.1",- "objc2",- "objc2-core-foundation",- "objc2-core-graphics",- "objc2-foundation",- "objc2-metal",-]--[[package]]-name = "objc2-ui-kit"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22"-dependencies = [- "bitflags 2.13.1",- "block2",- "objc2",- "objc2-cloud-kit",- "objc2-core-data",- "objc2-core-foundation",- "objc2-core-graphics",- "objc2-core-image",- "objc2-core-location",- "objc2-core-text",- "objc2-foundation",- "objc2-quartz-core",- "objc2-user-notifications",-]--[[package]]-name = "objc2-user-notifications"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e"-dependencies = [- "objc2",- "objc2-foundation",-]--[[package]]-name = "objc2-web-kit"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f"-dependencies = [- "bitflags 2.13.1",- "block2",- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-foundation",-]--[[package]]-name = "once_cell"-version = "1.21.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"--[[package]]-name = "open"-version = "5.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ade3be4664bc1ef537ce133015f04c176b737815c2ba9fd60edf212d6e90dd55"-dependencies = [- "dunce",- "is-wsl",- "libc",-]--[[package]]-name = "option-ext"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"--[[package]]-name = "ordered-float"-version = "5.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0"-dependencies = [- "num-traits",-]--[[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 = "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.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"--[[package]]-name = "parking_lot"-version = "0.12.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"-dependencies = [- "lock_api",- "parking_lot_core",-]--[[package]]-name = "parking_lot_core"-version = "0.9.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"-dependencies = [- "cfg-if",- "libc",- "redox_syscall",- "smallvec",- "windows-link 0.2.1",-]--[[package]]-name = "percent-encoding"-version = "2.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"--[[package]]-name = "phf"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"-dependencies = [- "phf_macros",- "phf_shared",- "serde",-]--[[package]]-name = "phf_codegen"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"-dependencies = [- "phf_generator",- "phf_shared",-]--[[package]]-name = "phf_generator"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"-dependencies = [- "fastrand",- "phf_shared",-]--[[package]]-name = "phf_macros"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"-dependencies = [- "phf_generator",- "phf_shared",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "phf_shared"-version = "0.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"-dependencies = [- "siphasher",-]--[[package]]-name = "pin-project-lite"-version = "0.2.17"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"--[[package]]-name = "piper"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1"-dependencies = [- "atomic-waker",- "fastrand",- "futures-io",-]--[[package]]-name = "pkg-config"-version = "0.3.34"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"--[[package]]-name = "plist"-version = "1.10.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7da1d65da6dd5d1e44199ac0f58712d241c0f439f80adea8924d832384087f85"-dependencies = [- "base64 0.22.1",- "indexmap 2.14.0",- "quick-xml",- "serde",- "time",-]--[[package]]-name = "png"-version = "0.17.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"-dependencies = [- "bitflags 1.3.2",- "crc32fast",- "fdeflate",- "flate2",- "miniz_oxide",-]--[[package]]-name = "png"-version = "0.18.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"-dependencies = [- "bitflags 2.13.1",- "crc32fast",- "fdeflate",- "flate2",- "miniz_oxide",-]--[[package]]-name = "polling"-version = "3.11.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"-dependencies = [- "cfg-if",- "concurrent-queue",- "hermit-abi",- "pin-project-lite",- "rustix",- "windows-sys 0.61.2",-]--[[package]]-name = "pollster"-version = "0.4.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"--[[package]]-name = "portable-atomic"-version = "1.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"--[[package]]-name = "portable-atomic-util"-version = "0.2.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"-dependencies = [- "portable-atomic",-]--[[package]]-name = "potential_utf"-version = "0.1.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"-dependencies = [- "zerovec",-]--[[package]]-name = "powerfmt"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"--[[package]]-name = "precomputed-hash"-version = "0.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"--[[package]]-name = "presser"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"--[[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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24"-dependencies = [- "toml_datetime 0.6.3",- "toml_edit 0.20.2",-]--[[package]]-name = "proc-macro-crate"-version = "3.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f"-dependencies = [- "toml_edit 0.25.13+spec-1.1.0",-]--[[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-macro2"-version = "1.0.107"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"-dependencies = [- "unicode-ident",-]--[[package]]-name = "profiling"-version = "1.0.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5"--[[package]]-name = "quick-xml"-version = "0.41.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"-dependencies = [- "memchr",-]--[[package]]-name = "quote"-version = "1.0.47"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"-dependencies = [- "proc-macro2",-]--[[package]]-name = "r-efi"-version = "5.3.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"--[[package]]-name = "r-efi"-version = "6.0.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"--[[package]]-name = "range-alloc"-version = "0.1.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08"--[[package]]-name = "raw-window-handle"-version = "0.6.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"--[[package]]-name = "raw-window-metal"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135"-dependencies = [- "objc2",- "objc2-core-foundation",- "objc2-foundation",- "objc2-quartz-core",-]--[[package]]-name = "redox_syscall"-version = "0.5.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"-dependencies = [- "bitflags 2.13.1",-]--[[package]]-name = "redox_users"-version = "0.5.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"-dependencies = [- "getrandom 0.2.17",- "libredox",- "thiserror 2.0.20",-]--[[package]]-name = "ref-cast"-version = "1.0.27"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"-dependencies = [- "ref-cast-impl",-]--[[package]]-name = "ref-cast-impl"-version = "1.0.27"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "regex"-version = "1.13.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"-dependencies = [- "aho-corasick",- "memchr",- "regex-automata",- "regex-syntax",-]--[[package]]-name = "regex-automata"-version = "0.4.18"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"-dependencies = [- "aho-corasick",- "memchr",- "regex-syntax",-]--[[package]]-name = "regex-syntax"-version = "0.8.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"--[[package]]-name = "renderdoc-sys"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"--[[package]]-name = "reqwest"-version = "0.13.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "219c5811de6525e5416c7d5d53bb656d3afdbc6c5af816e0802bcfa42dbdc1c3"-dependencies = [- "base64 0.22.1",- "bytes",- "futures-core",- "futures-util",- "http",- "http-body",- "http-body-util",- "hyper",- "hyper-util",- "js-sys",- "log",- "percent-encoding",- "pin-project-lite",- "serde",- "serde_json",- "sync_wrapper",- "tokio",- "tokio-util",- "tower",- "tower-http",- "tower-service",- "url",- "wasm-bindgen",- "wasm-bindgen-futures",- "wasm-streams",- "web-sys",-]--[[package]]-name = "rfd"-version = "0.16.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"-dependencies = [- "block2",- "dispatch2",- "glib-sys",- "gobject-sys",- "gtk-sys",- "js-sys",- "log",- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-foundation",- "raw-window-handle",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",- "windows-sys 0.60.2",-]--[[package]]-name = "ring"-version = "0.17.14"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"-dependencies = [- "cc",- "cfg-if",- "getrandom 0.2.17",- "libc",- "untrusted",- "windows-sys 0.52.0",-]--[[package]]-name = "rustc-hash"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"--[[package]]-name = "rustc-hash"-version = "2.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"--[[package]]-name = "rustc_version"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"-dependencies = [- "semver",-]--[[package]]-name = "rustix"-version = "1.1.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"-dependencies = [- "bitflags 2.13.1",- "errno",- "libc",- "linux-raw-sys",- "windows-sys 0.61.2",-]--[[package]]-name = "rustls"-version = "0.23.43"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"-dependencies = [- "log",- "once_cell",- "ring",- "rustls-pki-types",- "rustls-webpki",- "subtle",- "zeroize",-]--[[package]]-name = "rustls-pki-types"-version = "1.15.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"-dependencies = [- "zeroize",-]--[[package]]-name = "rustls-webpki"-version = "0.103.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"-dependencies = [- "ring",- "rustls-pki-types",- "untrusted",-]--[[package]]-name = "rustversion"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"--[[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 = "schemars"-version = "0.8.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615"-dependencies = [- "dyn-clone",- "indexmap 1.9.3",- "schemars_derive",- "serde",- "serde_json",- "url",- "uuid",-]--[[package]]-name = "schemars"-version = "0.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f"-dependencies = [- "dyn-clone",- "ref-cast",- "serde",- "serde_json",-]--[[package]]-name = "schemars"-version = "1.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "687274d293b6cdc6e73e0fee520bf2049650090d7164f87672d212a3c530cf4a"-dependencies = [- "dyn-clone",- "ref-cast",- "serde",- "serde_json",-]--[[package]]-name = "schemars_derive"-version = "0.8.22"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d"-dependencies = [- "proc-macro2",- "quote",- "serde_derive_internals",- "syn 2.0.119",-]--[[package]]-name = "scopeguard"-version = "1.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"--[[package]]-name = "selectors"-version = "0.36.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"-dependencies = [- "bitflags 2.13.1",- "cssparser",- "derive_more",- "log",- "new_debug_unreachable",- "phf",- "phf_codegen",- "precomputed-hash",- "rustc-hash 2.1.3",- "servo_arc",- "smallvec",-]--[[package]]-name = "semver"-version = "1.0.28"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"-dependencies = [- "serde",- "serde_core",-]--[[package]]-name = "serde"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"-dependencies = [- "serde_core",- "serde_derive",-]--[[package]]-name = "serde-untagged"-version = "0.1.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058"-dependencies = [- "erased-serde",- "serde",- "serde_core",- "typeid",-]--[[package]]-name = "serde_core"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"-dependencies = [- "serde_derive",-]--[[package]]-name = "serde_derive"-version = "1.0.229"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[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.119",-]--[[package]]-name = "serde_json"-version = "1.0.151"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"-dependencies = [- "itoa",- "memchr",- "serde",- "serde_core",- "zmij",-]--[[package]]-name = "serde_repr"-version = "0.1.21"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "serde_spanned"-version = "0.6.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"-dependencies = [- "serde",-]--[[package]]-name = "serde_spanned"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"-dependencies = [- "serde_core",-]--[[package]]-name = "serde_with"-version = "3.22.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ee78f1fbe43ac4a0e47aadb3dbd357b69eb0d3793e948624cd03dd2750ab1c0a"-dependencies = [- "base64 0.22.1",- "bs58",- "chrono",- "hex",- "indexmap 1.9.3",- "indexmap 2.14.0",- "jiff",- "schemars 0.9.0",- "schemars 1.2.2",- "serde_core",- "serde_json",- "serde_with_macros",- "time",-]--[[package]]-name = "serde_with_macros"-version = "3.22.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8705578779c2b6bd90d84d66eb2e206b708b1a4d7b9f17641b293545bf1c7e46"-dependencies = [- "darling",- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "serialize-to-javascript"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5"-dependencies = [- "serde",- "serde_json",- "serialize-to-javascript-impl",-]--[[package]]-name = "serialize-to-javascript-impl"-version = "0.1.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "servo_arc"-version = "0.4.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930"-dependencies = [- "stable_deref_trait",-]--[[package]]-name = "sha2"-version = "0.10.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"-dependencies = [- "cfg-if",- "cpufeatures",- "digest",-]--[[package]]-name = "sherpa-onnx"-version = "1.13.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "93440301c4240bd5d83496ab9adeee889be48d9428f9c01c37e5ae4ef33ba9e2"-dependencies = [- "serde",- "serde_json",- "sherpa-onnx-sys",-]--[[package]]-name = "sherpa-onnx-sys"-version = "1.13.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4d627abc4624c845e628ad87cca4ff9ac265fc643021d155f2721ac589eeb324"-dependencies = [- "bzip2 0.4.4",- "tar",- "ureq",-]--[[package]]-name = "shlex"-version = "2.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"--[[package]]-name = "signal-hook-registry"-version = "1.4.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"-dependencies = [- "errno",- "libc",-]--[[package]]-name = "simd-adler32"-version = "0.3.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"--[[package]]-name = "siphasher"-version = "1.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"--[[package]]-name = "slab"-version = "0.4.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"--[[package]]-name = "slotmap"-version = "1.1.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"-dependencies = [- "version_check",-]--[[package]]-name = "smallvec"-version = "1.15.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"--[[package]]-name = "socket2"-version = "0.6.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"-dependencies = [- "libc",- "windows-sys 0.61.2",-]--[[package]]-name = "softbuffer"-version = "0.4.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"-dependencies = [- "bytemuck",- "js-sys",- "ndk",- "objc2",- "objc2-core-foundation",- "objc2-core-graphics",- "objc2-foundation",- "objc2-quartz-core",- "raw-window-handle",- "redox_syscall",- "tracing",- "wasm-bindgen",- "web-sys",- "windows-sys 0.61.2",-]--[[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 = "spirv"-version = "0.4.0+sdk-1.4.341.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f"-dependencies = [- "bitflags 2.13.1",-]--[[package]]-name = "stable_deref_trait"-version = "1.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"--[[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.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"-dependencies = [- "new_debug_unreachable",- "parking_lot",- "phf_shared",- "precomputed-hash",-]--[[package]]-name = "string_cache_codegen"-version = "0.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"-dependencies = [- "phf_generator",- "phf_shared",- "proc-macro2",- "quote",-]--[[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.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e45c444e496845d3f2a351146bff59aae4975b2280238df1dfaa0c7d1846f38e"-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",- "unicode-ident",-]--[[package]]-name = "syn"-version = "2.0.119"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "syn"-version = "3.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6275cddf4610d1775e6d1fe9469b2e77d0f39fd98fb7450901b821e0c53649f"-dependencies = [- "proc-macro2",- "quote",- "unicode-ident",-]--[[package]]-name = "sync_wrapper"-version = "1.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"-dependencies = [- "futures-core",-]--[[package]]-name = "synstructure"-version = "0.13.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[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.35.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"-dependencies = [- "bitflags 2.13.1",- "block2",- "core-foundation",- "core-graphics",- "crossbeam-channel",- "dbus",- "dispatch2",- "dlopen2",- "dpi",- "gdkwayland-sys",- "gdkx11-sys",- "gtk",- "jni",- "libc",- "log",- "ndk",- "ndk-sys",- "objc2",- "objc2-app-kit",- "objc2-foundation",- "objc2-ui-kit",- "once_cell",- "parking_lot",- "percent-encoding",- "raw-window-handle",- "tao-macros",- "unicode-segmentation",- "url",- "windows 0.61.3",- "windows-core 0.61.2",- "windows-version",- "x11-dl",-]--[[package]]-name = "tao-macros"-version = "0.1.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5f7eeb6d99155545da6150a1795945f16ac9c178deb2a5f2e74d776107bd5849"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "tar"-version = "0.4.46"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"-dependencies = [- "filetime",- "libc",- "xattr",-]--[[package]]-name = "target-lexicon"-version = "0.12.16"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"--[[package]]-name = "tauri"-version = "2.11.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5"-dependencies = [- "anyhow",- "bytes",- "cookie",- "dirs",- "dunce",- "embed_plist",- "getrandom 0.3.4",- "glob",- "gtk",- "heck 0.5.0",- "http",- "http-range",- "jni",- "libc",- "log",- "mime",- "muda",- "objc2",- "objc2-app-kit",- "objc2-foundation",- "objc2-ui-kit",- "objc2-web-kit",- "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.20",- "tokio",- "tray-icon",- "url",- "webkit2gtk",- "webview2-com",- "window-vibrancy",- "windows 0.61.3",-]--[[package]]-name = "tauri-build"-version = "2.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632"-dependencies = [- "anyhow",- "cargo_toml",- "dirs",- "glob",- "heck 0.5.0",- "json-patch",- "schemars 0.8.22",- "semver",- "serde",- "serde_json",- "tauri-utils",- "tauri-winres",- "walkdir",-]--[[package]]-name = "tauri-codegen"-version = "2.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5"-dependencies = [- "base64 0.22.1",- "brotli",- "ico",- "json-patch",- "plist",- "png 0.17.16",- "proc-macro2",- "quote",- "semver",- "serde",- "serde_json",- "sha2",- "syn 2.0.119",- "tauri-utils",- "thiserror 2.0.20",- "time",- "url",- "uuid",- "walkdir",-]--[[package]]-name = "tauri-macros"-version = "2.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45"-dependencies = [- "heck 0.5.0",- "proc-macro2",- "quote",- "syn 2.0.119",- "tauri-codegen",- "tauri-utils",-]--[[package]]-name = "tauri-plugin"-version = "2.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "74be5dd4bed9afbd145e5716b5fa2ec28cbc29c34ffa61c258c9273d896c8020"-dependencies = [- "anyhow",- "glob",- "plist",- "schemars 0.8.22",- "serde",- "serde_json",- "tauri-utils",- "walkdir",-]--[[package]]-name = "tauri-plugin-dialog"-version = "2.7.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b2d3c1dbe38037e7f590cdf2492594d5ceebe031e7bc7e827509b22a999d2940"-dependencies = [- "log",- "raw-window-handle",- "rfd",- "serde",- "serde_json",- "tauri",- "tauri-plugin",- "tauri-plugin-fs",- "thiserror 2.0.20",- "url",-]--[[package]]-name = "tauri-plugin-fs"-version = "2.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b7ecc274121aca0c036a2b42d1cbe83d368d348f54e0bb8a735c2b1548e8f371"-dependencies = [- "anyhow",- "dunce",- "glob",- "log",- "objc2-foundation",- "percent-encoding",- "schemars 0.8.22",- "serde",- "serde_json",- "serde_repr",- "tauri",- "tauri-plugin",- "tauri-utils",- "thiserror 2.0.20",- "toml 1.1.4+spec-1.1.0",- "url",-]--[[package]]-name = "tauri-plugin-opener"-version = "2.5.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29"-dependencies = [- "dunce",- "glob",- "objc2-app-kit",- "objc2-foundation",- "open",- "schemars 0.8.22",- "serde",- "serde_json",- "tauri",- "tauri-plugin",- "thiserror 2.0.20",- "url",- "windows 0.61.3",- "zbus",-]--[[package]]-name = "tauri-runtime"-version = "2.11.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8"-dependencies = [- "cookie",- "dpi",- "gtk",- "http",- "jni",- "objc2",- "objc2-ui-kit",- "objc2-web-kit",- "raw-window-handle",- "serde",- "serde_json",- "tauri-utils",- "thiserror 2.0.20",- "url",- "webkit2gtk",- "webview2-com",- "windows 0.61.3",-]--[[package]]-name = "tauri-runtime-wry"-version = "2.11.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f"-dependencies = [- "gtk",- "http",- "jni",- "log",- "objc2",- "objc2-app-kit",- "once_cell",- "percent-encoding",- "raw-window-handle",- "softbuffer",- "tao",- "tauri-runtime",- "tauri-utils",- "url",- "webkit2gtk",- "webview2-com",- "windows 0.61.3",- "wry",-]--[[package]]-name = "tauri-utils"-version = "2.9.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887"-dependencies = [- "anyhow",- "brotli",- "cargo_metadata",- "ctor",- "dom_query",- "dunce",- "glob",- "http",- "infer",- "json-patch",- "log",- "memchr",- "phf",- "plist",- "proc-macro2",- "quote",- "regex",- "schemars 0.8.22",- "semver",- "serde",- "serde-untagged",- "serde_json",- "serde_with",- "swift-rs",- "thiserror 2.0.20",- "toml 1.1.4+spec-1.1.0",- "url",- "urlpattern",- "uuid",- "walkdir",-]--[[package]]-name = "tauri-winres"-version = "0.3.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6"-dependencies = [- "dunce",- "embed-resource",- "toml 1.1.4+spec-1.1.0",-]--[[package]]-name = "tempfile"-version = "3.27.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"-dependencies = [- "fastrand",- "getrandom 0.4.3",- "once_cell",- "rustix",- "windows-sys 0.61.2",-]--[[package]]-name = "tendril"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08"-dependencies = [- "new_debug_unreachable",-]--[[package]]-name = "termcolor"-version = "1.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"-dependencies = [- "winapi-util",-]--[[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.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f"-dependencies = [- "thiserror-impl 2.0.20",-]--[[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.119",-]--[[package]]-name = "thiserror-impl"-version = "2.0.20"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "time"-version = "0.3.55"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"-dependencies = [- "deranged",- "num-conv",- "powerfmt",- "serde_core",- "time-core",- "time-macros",-]--[[package]]-name = "time-core"-version = "0.1.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"--[[package]]-name = "time-macros"-version = "0.2.32"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"-dependencies = [- "num-conv",- "time-core",-]--[[package]]-name = "tinystr"-version = "0.8.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"-dependencies = [- "displaydoc",- "zerovec",-]--[[package]]-name = "tinyvec"-version = "1.12.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"-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.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"-dependencies = [- "bytes",- "libc",- "mio",- "pin-project-lite",- "socket2",- "windows-sys 0.61.2",-]--[[package]]-name = "tokio-util"-version = "0.7.19"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"-dependencies = [- "bytes",- "futures-core",- "futures-sink",- "pin-project-lite",- "tokio",-]--[[package]]-name = "toml"-version = "0.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d"-dependencies = [- "serde",- "serde_spanned 0.6.9",- "toml_datetime 0.6.3",- "toml_edit 0.20.2",-]--[[package]]-name = "toml"-version = "0.9.12+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"-dependencies = [- "indexmap 2.14.0",- "serde_core",- "serde_spanned 1.1.1",- "toml_datetime 0.7.5+spec-1.1.0",- "toml_parser",- "toml_writer",- "winnow 0.7.15",-]--[[package]]-name = "toml"-version = "1.1.4+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3aace63f4bbcdfc2c965b059de67119c89c4017a70d633be6c104910f67056f5"-dependencies = [- "indexmap 2.14.0",- "serde_core",- "serde_spanned 1.1.1",- "toml_datetime 1.1.1+spec-1.1.0",- "toml_parser",- "toml_writer",- "winnow 1.0.4",-]--[[package]]-name = "toml_datetime"-version = "0.6.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b"-dependencies = [- "serde",-]--[[package]]-name = "toml_datetime"-version = "0.7.5+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"-dependencies = [- "serde_core",-]--[[package]]-name = "toml_datetime"-version = "1.1.1+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"-dependencies = [- "serde_core",-]--[[package]]-name = "toml_edit"-version = "0.19.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"-dependencies = [- "indexmap 2.14.0",- "toml_datetime 0.6.3",- "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.14.0",- "serde",- "serde_spanned 0.6.9",- "toml_datetime 0.6.3",- "winnow 0.5.40",-]--[[package]]-name = "toml_edit"-version = "0.25.13+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6975367e4d2ef766d86af01ffad14b622fecc8d4357a998fbc4deb6e9bacaf9b"-dependencies = [- "indexmap 2.14.0",- "toml_datetime 1.1.1+spec-1.1.0",- "toml_parser",- "winnow 1.0.4",-]--[[package]]-name = "toml_parser"-version = "1.1.3+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"-dependencies = [- "winnow 1.0.4",-]--[[package]]-name = "toml_writer"-version = "1.1.2+spec-1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7d56353a2a665ad0f41a421187180aab746c8c325620617ad883a99a1cbe66d2"--[[package]]-name = "tower"-version = "0.5.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"-dependencies = [- "futures-core",- "futures-util",- "pin-project-lite",- "sync_wrapper",- "tokio",- "tower-layer",- "tower-service",-]--[[package]]-name = "tower-http"-version = "0.6.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"-dependencies = [- "bitflags 2.13.1",- "bytes",- "futures-util",- "http",- "http-body",- "pin-project-lite",- "tower",- "tower-layer",- "tower-service",- "url",-]--[[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.44"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"-dependencies = [- "pin-project-lite",- "tracing-attributes",- "tracing-core",-]--[[package]]-name = "tracing-attributes"-version = "0.1.31"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "tracing-core"-version = "0.1.36"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"-dependencies = [- "once_cell",-]--[[package]]-name = "tray-icon"-version = "0.24.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e"-dependencies = [- "crossbeam-channel",- "dirs",- "libappindicator",- "muda",- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-core-graphics",- "objc2-foundation",- "once_cell",- "png 0.18.1",- "serde",- "thiserror 2.0.20",- "windows-sys 0.61.2",-]--[[package]]-name = "try-lock"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"--[[package]]-name = "ts-rs"-version = "12.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"-dependencies = [- "thiserror 2.0.20",- "ts-rs-macros",-]--[[package]]-name = "ts-rs-macros"-version = "12.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",- "termcolor",-]--[[package]]-name = "typeid"-version = "1.0.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"--[[package]]-name = "typenum"-version = "1.20.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"--[[package]]-name = "uds_windows"-version = "1.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"-dependencies = [- "memoffset",- "tempfile",- "windows-sys 0.61.2",-]--[[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 = "unicode-ident"-version = "1.0.24"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"--[[package]]-name = "unicode-segmentation"-version = "1.13.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"--[[package]]-name = "unicode-width"-version = "0.2.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"--[[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",- "flate2",- "log",- "once_cell",- "rustls",- "rustls-pki-types",- "url",- "webpki-roots 0.26.11",-]--[[package]]-name = "url"-version = "2.5.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"-dependencies = [- "form_urlencoded",- "idna",- "percent-encoding",- "serde",- "serde_derive",-]--[[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 = "utf8_iter"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"--[[package]]-name = "uuid"-version = "1.25.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f053576934f05a761a402421fbbe3d425d9366f75f978806a037b3ca481abecc"-dependencies = [- "getrandom 0.4.3",- "js-sys",- "serde_core",- "wasm-bindgen",-]--[[package]]-name = "version-compare"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e"--[[package]]-name = "version_check"-version = "0.9.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"--[[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.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"-dependencies = [- "cc",- "libc",-]--[[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.11.1+wasi-snapshot-preview1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"--[[package]]-name = "wasip2"-version = "1.0.4+wasi-0.2.12"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"-dependencies = [- "wit-bindgen",-]--[[package]]-name = "wasm-bindgen"-version = "0.2.127"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"-dependencies = [- "cfg-if",- "once_cell",- "rustversion",- "wasm-bindgen-macro",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-futures"-version = "0.4.77"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950"-dependencies = [- "js-sys",- "wasm-bindgen",-]--[[package]]-name = "wasm-bindgen-macro"-version = "0.2.127"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"-dependencies = [- "quote",- "wasm-bindgen-macro-support",-]--[[package]]-name = "wasm-bindgen-macro-support"-version = "0.2.127"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"-dependencies = [- "bumpalo",- "proc-macro2",- "quote",- "syn 2.0.119",- "wasm-bindgen-shared",-]--[[package]]-name = "wasm-bindgen-shared"-version = "0.2.127"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"-dependencies = [- "unicode-ident",-]--[[package]]-name = "wasm-streams"-version = "0.5.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb"-dependencies = [- "futures-util",- "js-sys",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",-]--[[package]]-name = "wayland-sys"-version = "0.31.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be"-dependencies = [- "dlib",- "log",- "once_cell",- "pkg-config",-]--[[package]]-name = "web-sys"-version = "0.3.104"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30"-dependencies = [- "js-sys",- "wasm-bindgen",-]--[[package]]-name = "web_atoms"-version = "0.2.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"-dependencies = [- "phf",- "phf_codegen",- "string_cache",- "string_cache_codegen",-]--[[package]]-name = "webkit2gtk"-version = "2.0.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793"-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.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5"-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.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"-dependencies = [- "webpki-roots 1.0.9",-]--[[package]]-name = "webpki-roots"-version = "1.0.9"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"-dependencies = [- "rustls-pki-types",-]--[[package]]-name = "webview2-com"-version = "0.38.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"-dependencies = [- "webview2-com-macros",- "webview2-com-sys",- "windows 0.61.3",- "windows-core 0.61.2",- "windows-implement",- "windows-interface",-]--[[package]]-name = "webview2-com-macros"-version = "0.8.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "webview2-com-sys"-version = "0.38.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"-dependencies = [- "thiserror 2.0.20",- "windows 0.61.3",- "windows-core 0.61.2",-]--[[package]]-name = "wgpu"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e"-dependencies = [- "arrayvec",- "bitflags 2.13.1",- "bytemuck",- "cfg-if",- "cfg_aliases",- "document-features",- "hashbrown 0.17.1",- "js-sys",- "log",- "naga",- "parking_lot",- "portable-atomic",- "profiling",- "raw-window-handle",- "smallvec",- "static_assertions",- "wasm-bindgen",- "wasm-bindgen-futures",- "web-sys",- "wgpu-core",- "wgpu-hal",- "wgpu-types",-]--[[package]]-name = "wgpu-core"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14"-dependencies = [- "arrayvec",- "bit-set 0.10.0",- "bit-vec 0.9.1",- "bitflags 2.13.1",- "bytemuck",- "cfg_aliases",- "document-features",- "hashbrown 0.17.1",- "indexmap 2.14.0",- "log",- "naga",- "naga-types",- "once_cell",- "parking_lot",- "portable-atomic",- "profiling",- "raw-window-handle",- "rustc-hash 1.1.0",- "smallvec",- "thiserror 2.0.20",- "wgpu-core-deps-apple",- "wgpu-core-deps-emscripten",- "wgpu-core-deps-windows-linux-android",- "wgpu-hal",- "wgpu-naga-bridge",- "wgpu-types",-]--[[package]]-name = "wgpu-core-deps-apple"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68"-dependencies = [- "wgpu-hal",-]--[[package]]-name = "wgpu-core-deps-emscripten"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86"-dependencies = [- "wgpu-hal",-]--[[package]]-name = "wgpu-core-deps-windows-linux-android"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f"-dependencies = [- "wgpu-hal",-]--[[package]]-name = "wgpu-hal"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58"-dependencies = [- "android_system_properties",- "arrayvec",- "ash",- "bit-set 0.10.0",- "bitflags 2.13.1",- "block2",- "bytemuck",- "cfg-if",- "cfg_aliases",- "glow",- "glutin_wgl_sys",- "gpu-allocator",- "hashbrown 0.17.1",- "js-sys",- "khronos-egl",- "libc",- "libloading 0.8.9",- "log",- "naga",- "naga-types",- "ndk-sys",- "objc2",- "objc2-core-foundation",- "objc2-core-graphics",- "objc2-foundation",- "objc2-metal",- "objc2-quartz-core",- "once_cell",- "ordered-float",- "parking_lot",- "portable-atomic",- "portable-atomic-util",- "profiling",- "range-alloc",- "raw-window-handle",- "raw-window-metal",- "renderdoc-sys",- "smallvec",- "static_assertions",- "thiserror 2.0.20",- "wasm-bindgen",- "wayland-sys",- "web-sys",- "wgpu-naga-bridge",- "wgpu-types",- "windows 0.62.2",- "windows-core 0.62.2",- "windows-result 0.4.1",-]--[[package]]-name = "wgpu-naga-bridge"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081"-dependencies = [- "naga",- "wgpu-types",-]--[[package]]-name = "wgpu-types"-version = "30.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286"-dependencies = [- "bitflags 2.13.1",- "bytemuck",- "js-sys",- "log",- "naga-types",- "raw-window-handle",- "static_assertions",- "web-sys",-]--[[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.11"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"-dependencies = [- "windows-sys 0.61.2",-]--[[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.6.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"-dependencies = [- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-foundation",- "raw-window-handle",- "windows-sys 0.59.0",- "windows-version",-]--[[package]]-name = "windows"-version = "0.54.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49"-dependencies = [- "windows-core 0.54.0",- "windows-targets 0.52.6",-]--[[package]]-name = "windows"-version = "0.61.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"-dependencies = [- "windows-collections 0.2.0",- "windows-core 0.61.2",- "windows-future 0.2.1",- "windows-link 0.1.3",- "windows-numerics 0.2.0",-]--[[package]]-name = "windows"-version = "0.62.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"-dependencies = [- "windows-collections 0.3.2",- "windows-core 0.62.2",- "windows-future 0.3.2",- "windows-numerics 0.3.1",-]--[[package]]-name = "windows-collections"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"-dependencies = [- "windows-core 0.61.2",-]--[[package]]-name = "windows-collections"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"-dependencies = [- "windows-core 0.62.2",-]--[[package]]-name = "windows-core"-version = "0.54.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65"-dependencies = [- "windows-result 0.1.2",- "windows-targets 0.52.6",-]--[[package]]-name = "windows-core"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"-dependencies = [- "windows-implement",- "windows-interface",- "windows-link 0.1.3",- "windows-result 0.3.4",- "windows-strings 0.4.2",-]--[[package]]-name = "windows-core"-version = "0.62.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"-dependencies = [- "windows-implement",- "windows-interface",- "windows-link 0.2.1",- "windows-result 0.4.1",- "windows-strings 0.5.1",-]--[[package]]-name = "windows-future"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"-dependencies = [- "windows-core 0.61.2",- "windows-link 0.1.3",- "windows-threading 0.1.0",-]--[[package]]-name = "windows-future"-version = "0.3.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"-dependencies = [- "windows-core 0.62.2",- "windows-link 0.2.1",- "windows-threading 0.2.1",-]--[[package]]-name = "windows-implement"-version = "0.60.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "windows-interface"-version = "0.59.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "windows-link"-version = "0.1.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a"--[[package]]-name = "windows-link"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"--[[package]]-name = "windows-numerics"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"-dependencies = [- "windows-core 0.61.2",- "windows-link 0.1.3",-]--[[package]]-name = "windows-numerics"-version = "0.3.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"-dependencies = [- "windows-core 0.62.2",- "windows-link 0.2.1",-]--[[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.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"-dependencies = [- "windows-link 0.1.3",-]--[[package]]-name = "windows-result"-version = "0.4.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"-dependencies = [- "windows-link 0.2.1",-]--[[package]]-name = "windows-strings"-version = "0.4.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"-dependencies = [- "windows-link 0.1.3",-]--[[package]]-name = "windows-strings"-version = "0.5.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"-dependencies = [- "windows-link 0.2.1",-]--[[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.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-sys"-version = "0.60.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"-dependencies = [- "windows-targets 0.53.5",-]--[[package]]-name = "windows-sys"-version = "0.61.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"-dependencies = [- "windows-link 0.2.1",-]--[[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.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 0.52.6",- "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-targets"-version = "0.53.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"-dependencies = [- "windows-link 0.2.1",- "windows_aarch64_gnullvm 0.53.1",- "windows_aarch64_msvc 0.53.1",- "windows_i686_gnu 0.53.1",- "windows_i686_gnullvm 0.53.1",- "windows_i686_msvc 0.53.1",- "windows_x86_64_gnu 0.53.1",- "windows_x86_64_gnullvm 0.53.1",- "windows_x86_64_msvc 0.53.1",-]--[[package]]-name = "windows-threading"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6"-dependencies = [- "windows-link 0.1.3",-]--[[package]]-name = "windows-threading"-version = "0.2.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"-dependencies = [- "windows-link 0.2.1",-]--[[package]]-name = "windows-version"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631"-dependencies = [- "windows-link 0.2.1",-]--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"--[[package]]-name = "windows_aarch64_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"--[[package]]-name = "windows_aarch64_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"--[[package]]-name = "windows_i686_gnu"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"--[[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_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"--[[package]]-name = "windows_i686_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"--[[package]]-name = "windows_x86_64_gnu"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"--[[package]]-name = "windows_x86_64_gnullvm"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"--[[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.52.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"--[[package]]-name = "windows_x86_64_msvc"-version = "0.53.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"--[[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.15"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"--[[package]]-name = "winnow"-version = "1.0.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"-dependencies = [- "memchr",-]--[[package]]-name = "winreg"-version = "0.55.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"-dependencies = [- "cfg-if",- "windows-sys 0.59.0",-]--[[package]]-name = "wit-bindgen"-version = "0.57.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"--[[package]]-name = "writeable"-version = "0.6.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"--[[package]]-name = "wry"-version = "0.55.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"-dependencies = [- "base64 0.22.1",- "block2",- "cookie",- "crossbeam-channel",- "dirs",- "dom_query",- "dpi",- "dunce",- "gdkx11",- "gtk",- "http",- "javascriptcore-rs",- "jni",- "libc",- "ndk",- "objc2",- "objc2-app-kit",- "objc2-core-foundation",- "objc2-foundation",- "objc2-ui-kit",- "objc2-web-kit",- "once_cell",- "percent-encoding",- "raw-window-handle",- "sha2",- "soup3",- "tao-macros",- "thiserror 2.0.20",- "url",- "webkit2gtk",- "webkit2gtk-sys",- "webview2-com",- "windows 0.61.3",- "windows-core 0.61.2",- "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.6.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"-dependencies = [- "libc",- "rustix",-]--[[package]]-name = "xml-rs"-version = "0.8.29"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"--[[package]]-name = "yoke"-version = "0.8.3"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"-dependencies = [- "stable_deref_trait",- "yoke-derive",- "zerofrom",-]--[[package]]-name = "yoke-derive"-version = "0.8.2"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",- "synstructure",-]--[[package]]-name = "zbus"-version = "5.19.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907"-dependencies = [- "async-broadcast",- "async-executor",- "async-io",- "async-lock",- "async-process",- "async-recursion",- "async-task",- "async-trait",- "blocking",- "enumflags2",- "event-listener",- "futures-core",- "futures-lite",- "hex",- "libc",- "ordered-stream",- "rustix",- "serde",- "serde_repr",- "tracing",- "uds_windows",- "uuid",- "windows-sys 0.61.2",- "winnow 1.0.4",- "zbus_macros",- "zbus_names",- "zvariant",-]--[[package]]-name = "zbus_macros"-version = "5.19.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40"-dependencies = [- "proc-macro-crate 3.5.0",- "proc-macro2",- "quote",- "syn 3.0.4",- "zbus_names",- "zvariant",- "zvariant_utils",-]--[[package]]-name = "zbus_names"-version = "4.3.4"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e"-dependencies = [- "serde",- "winnow 1.0.4",- "zvariant",-]--[[package]]-name = "zcheapstr"-version = "1.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473"-dependencies = [- "serde",-]--[[package]]-name = "zerocopy"-version = "0.8.56"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb"-dependencies = [- "zerocopy-derive",-]--[[package]]-name = "zerocopy-derive"-version = "0.8.56"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]--[[package]]-name = "zerofrom"-version = "0.1.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"-dependencies = [- "zerofrom-derive",-]--[[package]]-name = "zerofrom-derive"-version = "0.1.7"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",- "synstructure",-]--[[package]]-name = "zeroize"-version = "1.9.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"--[[package]]-name = "zerotrie"-version = "0.2.5"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"-dependencies = [- "displaydoc",- "yoke",- "zerofrom",-]--[[package]]-name = "zerovec"-version = "0.11.8"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"-dependencies = [- "yoke",- "zerofrom",- "zerovec-derive",-]--[[package]]-name = "zerovec-derive"-version = "0.11.6"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"-dependencies = [- "proc-macro2",- "quote",- "syn 3.0.4",-]--[[package]]-name = "zmij"-version = "1.0.23"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"--[[package]]-name = "zvariant"-version = "5.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "c1d34c27cc6cdd1f458427519dd6b8612f7b7e3f7b9a0b2355d041dda9869147"-dependencies = [- "endi",- "enumflags2",- "serde",- "winnow 1.0.4",- "zcheapstr",- "zvariant_derive",- "zvariant_utils",-]--[[package]]-name = "zvariant_derive"-version = "5.15.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "864155e69b4352db0c7f374917bf45d1e0c8d17659c8b3dbf9795f3673f8c497"-dependencies = [- "proc-macro-crate 3.5.0",- "proc-macro2",- "quote",- "syn 3.0.4",- "zvariant_utils",-]--[[package]]-name = "zvariant_utils"-version = "4.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3"-dependencies = [- "proc-macro2",- "quote",- "serde",- "syn 3.0.4",- "winnow 1.0.4",-]diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.tomldeleted file mode 100644index a4ab5b5e..00000000--- a/desktop/src-tauri/Cargo.toml+++ /dev/null@@ -1,75 +0,0 @@-[package]-name = "concat-desktop"-version = "0.2.0"-license = "AGPL-3.0-or-later" # + plugin exception, see LICENSE-EXCEPTIONS.md-description = "WolfCut video editor"-edition = "2021"--[lib]-# The `_lib` suffix keeps the library name distinct from the binary name, which-# otherwise collides on Windows. See rust-lang/cargo#8519.-name = "concat_desktop_lib"-crate-type = ["staticlib", "cdylib", "rlib"]--[build-dependencies]-tauri-build = { version = "2", features = [] }--[dependencies]-tauri = { version = "2", features = ["protocol-asset"] }-tauri-plugin-opener = "2"-tauri-plugin-dialog = "2"-serde = { version = "1", features = ["derive"] }-serde_json = "1"--# The engine. Path dependencies rather than a shared workspace on purpose: the-# engine builds, tests and versions on its own, and nothing about it should-# depend on there being a desktop app.-concat-core = { path = "../../engine/crates/concat-core" }-concat-media = { path = "../../engine/crates/concat-media" }-concat-project = { path = "../../engine/crates/concat-project" }-concat-render = { path = "../../engine/crates/concat-render", features = ["gpu"] }-concat-export = { path = "../../engine/crates/concat-export", features = ["gpu"] }--# Engine-owned audio playback: cpal talks to the output device, memmap2 keeps-# decoded PCM disk-backed instead of resident.-cpal = "0.16"-memmap2 = "0.9"--# Whisper model downloads. Blocking on purpose: downloads run on a-# spawn_blocking thread, and an async HTTP stack would be a second runtime's-# worth of dependencies for one GET.-ureq = "2"--# Text to speech: the official k2-fsa bindings, linked statically so the-# bundle carries no extra dylibs. Kokoro models arrive as tar.bz2 archives,-# hence tar + bzip2 (pure-Rust decoder) for unpacking them.-sherpa-onnx = "1.13"-tar = "0.4"-bzip2 = "0.6"--# TypeScript bindings for the host's own wire types (EditorView and friends),-# generated by `cargo test --features types export_bindings` with-# TS_RS_EXPORT_DIR pointed at desktop/src/lib/generated - see the README-# there. Optional so normal builds never pay for it.-ts-rs = { version = "12", optional = true }--[features]-types = ["dep:ts-rs", "concat-project/types"]--[lints.clippy]-# Same stance as the engine workspace: a Tauri command's arguments are its-# wire signature, and splitting one to satisfy a count is cleverness.-too_many_arguments = "allow"--[profile.release]-opt-level = 3-lto = true-codegen-units = 1-strip = true-# Not panic = "abort": Tauri catches panics on the command thread, and losing-# that turns a recoverable command failure into a dead window.--[profile.dev]-# The UI is unusable if the engine underneath it runs unoptimised.-[profile.dev.package."*"]-opt-level = 2diff --git a/desktop/src-tauri/build.rs b/desktop/src-tauri/build.rsdeleted file mode 100644index ffb4c707..00000000--- a/desktop/src-tauri/build.rs+++ /dev/null@@ -1,43 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--fn main() {- // A release build is a packaged build, and a packaged app that shipped- // without its FFmpeg pair has happened once already: everything media-- // shaped failed at runtime, launched from Finder with no PATH to fall- // back on. Fail the build instead - staging the binaries is part of- // building for release.- // A packager whose launcher guarantees the tools on the app's PATH - the- // Nix wrapper puts ffmpeg, ffprobe and whisper-cli there - opts out- // explicitly instead of staging copies it is not allowed to ship.- println!("cargo:rerun-if-env-changed=CONCAT_SYSTEM_TOOLS");- let system_tools = std::env::var_os("CONCAT_SYSTEM_TOOLS").is_some();-- if !system_tools && std::env::var("PROFILE").as_deref() == Ok("release") {- let suffix = if cfg!(target_os = "windows") { ".exe" } else { "" };- let staged = std::path::Path::new("ffmpeg");- for binary in ["ffmpeg", "ffprobe"] {- let path = staged.join(format!("{binary}{suffix}"));- assert!(- path.is_file(),- "release build without a bundled {binary}: stage the FFmpeg pair in \- desktop/src-tauri/ffmpeg/ first, or the packaged app will ship broken"- );- }- println!("cargo:rerun-if-changed=ffmpeg");-- // Same rule for the transcriber: users are never asked to install a- // binary and point the app at it, so a release ships its own- // whisper-cli or it does not ship.- let whisper = std::path::Path::new("whisper").join(format!("whisper-cli{suffix}"));- assert!(- whisper.is_file(),- "release build without a bundled whisper-cli: stage it in \- desktop/src-tauri/whisper/ first (see the Build App workflow), or \- transcription would arrive as a setup chore instead of a feature"- );- println!("cargo:rerun-if-changed=whisper");- }-- tauri_build::build()-}diff --git a/desktop/src-tauri/capabilities/default.json b/desktop/src-tauri/capabilities/default.jsondeleted file mode 100644index 496bb693..00000000--- a/desktop/src-tauri/capabilities/default.json+++ /dev/null@@ -1,21 +0,0 @@-{- "$schema": "../gen/schemas/desktop-schema.json",- "identifier": "default",- "description": "Capability for the main window",- "windows": ["main"],- "permissions": [- "core:default",- "opener:default",- "opener:allow-reveal-item-in-dir",- "dialog:default",-- "core:window:allow-minimize",- "core:window:allow-unminimize",- "core:window:allow-maximize",- "core:window:allow-unmaximize",- "core:window:allow-toggle-maximize",- "core:window:allow-is-maximized",- "core:window:allow-close",- "core:window:allow-start-dragging"- ]-}diff --git a/desktop/src-tauri/ffmpeg/README.md b/desktop/src-tauri/ffmpeg/README.mddeleted file mode 100644index e2b895c4..00000000--- a/desktop/src-tauri/ffmpeg/README.md+++ /dev/null@@ -1,10 +0,0 @@-# Bundled FFmpeg--Drop the `ffmpeg` and `ffprobe` binaries for the current platform in here-(`.exe` suffixed on Windows) and the packaged app ships them; see-`.github/workflows/ffmpeg.yml` for how the Windows pair is produced.--If this directory holds only this README, the packaged app falls back to-FFmpeg on `PATH` — dev builds (`npm run app`) always do. This file is-tracked so the directory exists on a fresh checkout; the `ffmpeg/*`-resources glob in `tauri.conf.json` fails the build when it matches nothing.diff --git a/desktop/src-tauri/icons/128x128.png b/desktop/src-tauri/icons/128x128.pngdeleted file mode 100644index 21330ff6..00000000Binary files a/desktop/src-tauri/icons/128x128.png and /dev/null differdiff --git a/desktop/src-tauri/icons/[email protected] b/desktop/src-tauri/icons/[email protected]deleted file mode 100644index 17323074..00000000Binary files a/desktop/src-tauri/icons/[email protected] and /dev/null differdiff --git a/desktop/src-tauri/icons/32x32.png b/desktop/src-tauri/icons/32x32.pngdeleted file mode 100644index bf4a9bd5..00000000Binary files a/desktop/src-tauri/icons/32x32.png and /dev/null differdiff --git a/desktop/src-tauri/icons/64x64.png b/desktop/src-tauri/icons/64x64.pngdeleted file mode 100644index 991f698d..00000000Binary files a/desktop/src-tauri/icons/64x64.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square107x107Logo.png b/desktop/src-tauri/icons/Square107x107Logo.pngdeleted file mode 100644index e99fce21..00000000Binary files a/desktop/src-tauri/icons/Square107x107Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square142x142Logo.png b/desktop/src-tauri/icons/Square142x142Logo.pngdeleted file mode 100644index 01c9f469..00000000Binary files a/desktop/src-tauri/icons/Square142x142Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square150x150Logo.png b/desktop/src-tauri/icons/Square150x150Logo.pngdeleted file mode 100644index cca5680c..00000000Binary files a/desktop/src-tauri/icons/Square150x150Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square284x284Logo.png b/desktop/src-tauri/icons/Square284x284Logo.pngdeleted file mode 100644index 70d927a2..00000000Binary files a/desktop/src-tauri/icons/Square284x284Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square30x30Logo.png b/desktop/src-tauri/icons/Square30x30Logo.pngdeleted file mode 100644index e54a3501..00000000Binary files a/desktop/src-tauri/icons/Square30x30Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square310x310Logo.png b/desktop/src-tauri/icons/Square310x310Logo.pngdeleted file mode 100644index d9e3a6f7..00000000Binary files a/desktop/src-tauri/icons/Square310x310Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square44x44Logo.png b/desktop/src-tauri/icons/Square44x44Logo.pngdeleted file mode 100644index d93d93e0..00000000Binary files a/desktop/src-tauri/icons/Square44x44Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square71x71Logo.png b/desktop/src-tauri/icons/Square71x71Logo.pngdeleted file mode 100644index d6112512..00000000Binary files a/desktop/src-tauri/icons/Square71x71Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/Square89x89Logo.png b/desktop/src-tauri/icons/Square89x89Logo.pngdeleted file mode 100644index dfb962df..00000000Binary files a/desktop/src-tauri/icons/Square89x89Logo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/StoreLogo.png b/desktop/src-tauri/icons/StoreLogo.pngdeleted file mode 100644index ba2cbd01..00000000Binary files a/desktop/src-tauri/icons/StoreLogo.png and /dev/null differdiff --git a/desktop/src-tauri/icons/icon.icns b/desktop/src-tauri/icons/icon.icnsdeleted file mode 100644index ad417b05..00000000Binary files a/desktop/src-tauri/icons/icon.icns and /dev/null differdiff --git a/desktop/src-tauri/icons/icon.ico b/desktop/src-tauri/icons/icon.icodeleted file mode 100644index e78b9c82..00000000Binary files a/desktop/src-tauri/icons/icon.ico and /dev/null differdiff --git a/desktop/src-tauri/icons/icon.png b/desktop/src-tauri/icons/icon.pngdeleted file mode 100644index 93653975..00000000Binary files a/desktop/src-tauri/icons/icon.png and /dev/null differdiff --git a/desktop/src-tauri/src/editor_api.rs b/desktop/src-tauri/src/editor_api.rsdeleted file mode 100644index bc1db713..00000000--- a/desktop/src-tauri/src/editor_api.rs+++ /dev/null@@ -1,272 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! The engine-owned editing session, exposed to the UI.-//!-//! One session at a time, held in managed state: open a project and the-//! engine holds the edit; every mutation arrives as a `concat_project`-//! [`Command`], is applied with undo recorded, and the new state goes back-//! over the wire. This is the API `lib/editor.ts` mirrors; the provisional-//! TypeScript model it replaced is gone - see-//! `engine/docs/decisions/0007-engine-owns-the-project.md`.-//!-//! Saving reuses `projects::save`'s temp-file-and-rename, so the document on-//! disk is written by exactly one code path whichever side owns the model.--use std::sync::Mutex;--use concat_project::{Command, DocumentSettings, Editor};-use serde::Serialize;--use crate::projects;--/// The one editing session, or None before a project is opened.-pub struct EditorState(pub Mutex<Option<Session>>);--pub struct Session {- /// The project folder, for saving.- path: String,- settings: DocumentSettings,- editor: Editor,-}--/// What every mutating call returns: the authoritative state plus history-/// availability, so the UI's undo/redo affordances are never guessing.-#[derive(Serialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]-#[serde(rename_all = "camelCase")]-pub struct EditorView {- project: concat_project::Project,- can_undo: bool,- can_redo: bool,- /// The settings as the session holds them - the document's own output- /// size wins over the manifest's on open, exactly as the old loader- /// preferred it.- settings: SettingsView,- /// The id a creating command minted, if any.- #[serde(skip_serializing_if = "Option::is_none")]- #[cfg_attr(feature = "types", ts(optional))]- created_id: Option<String>,-}--#[derive(Serialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]-#[serde(rename_all = "camelCase")]-pub struct SettingsView {- name: String,- width: u32,- height: u32,- // i64 over the wire is a plain JSON number, not a bigint - serde_json- // writes it bare and the UI reads it with JSON.parse.- #[cfg_attr(feature = "types", ts(type = "number"))]- rate_num: i64,- #[cfg_attr(feature = "types", ts(type = "number"))]- rate_den: i64,-}--fn view(session: &Session, created_id: Option<String>) -> EditorView {- EditorView {- project: session.editor.project().clone(),- can_undo: session.editor.can_undo(),- can_redo: session.editor.can_redo(),- settings: SettingsView {- name: session.settings.name.clone(),- width: session.settings.width,- height: session.settings.height,- rate_num: session.settings.rate_num,- rate_den: session.settings.rate_den,- },- created_id,- }-}--/// The active timeline flattened for rendering, plus the session settings.-///-/// This is what export and preview consume. It used to be a clip list the-/// UI flattened and sent over the wire, which made the frontend's copy of-/// the model - not the model - the thing that rendered; see engine decision-/// 0009. Now the engine flattens its own session and the wire carries only-/// what the UI genuinely owns (the destination, the quality, its rasterised-/// titles).-pub fn flattened_clips(- state: &EditorState,-) -> Result<(Vec<concat_export::ExportClip>, DocumentSettings), String> {- with_session(state, |session| {- Ok((- concat_export::flatten::flatten_timeline(session.editor.project(), None),- session.settings.clone(),- ))- })-}--/// The open session's document, project folder and settings, for features-/// that package the current edit (saving it as a template) rather than-/// editing it.-pub fn session_snapshot(- state: &EditorState,-) -> Result<(serde_json::Value, String, DocumentSettings), String> {- with_session(state, |session| {- Ok((- session.editor.to_document(&session.settings),- session.path.clone(),- session.settings.clone(),- ))- })-}--fn with_session<T>(- state: &EditorState,- operation: impl FnOnce(&mut Session) -> Result<T, String>,-) -> Result<T, String> {- let mut guard = state.0.lock().map_err(|_| "editor state poisoned".to_owned())?;- let session = guard.as_mut().ok_or("no project is open")?;- operation(session)-}--/// Opens a project folder as the editing session and returns its state.-///-/// A folder whose document is missing or unreadable opens as an empty-/// project rather than failing - the same grace the TS loader extends --/// but a *corrupt* document is an error, because silently replacing an-/// edit with emptiness is how projects get lost.-#[tauri::command]-pub async fn editor_open(- app: tauri::AppHandle,- state: tauri::State<'_, EditorState>,- path: String,- name: String,- width: u32,- height: u32,- rate_num: i64,- rate_den: i64,-) -> Result<EditorView, String> {- // Reading and parsing the document is the slow part and needs no state,- // so it runs on a blocking thread; the session lock is taken only for the- // in-memory install below.- let (path, settings, editor) = tauri::async_runtime::spawn_blocking(move || {- let mut settings = DocumentSettings { name, width, height, rate_num, rate_den };- let editor = match projects::read_document(&path) {- Ok(document) => {- // The document's frame wins over the manifest: it is where an- // edited output size was saved.- if let Some(video) = document.get("video") {- if let (Some(width), Some(height)) = (- video.get("width").and_then(|value| value.as_u64()),- video.get("height").and_then(|value| value.as_u64()),- ) {- if width > 0 && height > 0 {- settings.width = width as u32;- settings.height = height as u32;- }- }- }- match Editor::from_document(&document) {- Some(editor) => editor,- // The settings-only manifest `create` writes: a project- // closed before its first edit reopens empty, it is not- // corrupt (#12).- None if projects::is_settings_only(&document) => Editor::new(),- None => {- return Err(format!("{path} holds a document this build cannot read"));- }- }- }- // No document yet - a project created moments ago.- Err(_) => Editor::new(),- };- Ok::<_, String>((path, settings, editor))- })- .await- .map_err(|error| format!("open task failed: {error}"))??;-- // Everything the document lists is media the user already imported, so- // reopening a project restores exactly the asset scope importing built -- // no re-probe, and nothing beyond the document's own list.- for item in &editor.project().media {- crate::grant_asset(&app, &item.path);- }-- let mut guard = state.0.lock().map_err(|_| "editor state poisoned".to_owned())?;- *guard = Some(Session { path, settings, editor });- let session = guard.as_ref().expect("just set");- Ok(view(session, None))-}--/// Applies one edit command and returns the new state.-#[tauri::command]-pub fn editor_apply(- state: tauri::State<'_, EditorState>,- command: Command,-) -> Result<EditorView, String> {- with_session(&state, |session| {- let outcome = session.editor.apply(command).map_err(|error| error.to_string())?;- Ok(view(session, outcome.created_id))- })-}--#[tauri::command]-pub fn editor_undo(state: tauri::State<'_, EditorState>) -> Result<EditorView, String> {- with_session(&state, |session| {- session.editor.undo();- Ok(view(session, None))- })-}--#[tauri::command]-pub fn editor_redo(state: tauri::State<'_, EditorState>) -> Result<EditorView, String> {- with_session(&state, |session| {- session.editor.redo();- Ok(view(session, None))- })-}--/// The current state without changing anything.-#[tauri::command]-pub fn editor_state(state: tauri::State<'_, EditorState>) -> Result<EditorView, String> {- with_session(&state, |session| Ok(view(session, None)))-}--/// Writes the session's document to its project folder. The output size can-/// have been edited in the preview footer and the name in the project-/// details dialog, so both ride along here.-#[tauri::command]-pub async fn editor_save(- state: tauri::State<'_, EditorState>,- name: Option<String>,- width: Option<u32>,- height: Option<u32>,-) -> Result<(), String> {- // Settings mutation and serialisation happen under the lock; the disk- // write - the slow, blockable part - happens off the main thread with the- // lock released.- let (path, document) = with_session(&state, |session| {- if let Some(name) = name {- let trimmed = name.trim();- if !trimmed.is_empty() {- session.settings.name = trimmed.to_owned();- }- }- // A zero dimension is never a real output size, only a caller bug -- // saving it would poison the document until the next open.- if let Some(width) = width.filter(|width| *width > 0) {- session.settings.width = width;- }- if let Some(height) = height.filter(|height| *height > 0) {- session.settings.height = height;- }- Ok((session.path.clone(), session.editor.to_document(&session.settings)))- })?;- tauri::async_runtime::spawn_blocking(move || projects::save(&path, &document))- .await- .map_err(|error| format!("save task failed: {error}"))?-}--/// Closes the session, dropping its undo history.-#[tauri::command]-pub fn editor_close(state: tauri::State<'_, EditorState>) {- if let Ok(mut guard) = state.0.lock() {- *guard = None;- }-}diff --git a/desktop/src-tauri/src/export.rs b/desktop/src-tauri/src/export.rsdeleted file mode 100644index 0024d033..00000000--- a/desktop/src-tauri/src/export.rs+++ /dev/null@@ -1,45 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Tauri shim over the engine's export path.-//!-//! Rendering used to live in this file - transitions, timeline conversion,-//! the frame loop, the paused-monitor composite. All of it is-//! `concat-export` now, where the CLI and any other frontend render the-//! same way and the doctrine holds: the host converts wire formats and-//! reports progress, nothing more. What remains here is exactly that --//! turning the engine's progress callback into `export://progress` events.--use std::sync::atomic::AtomicBool;--use serde::Serialize;-use tauri::Emitter;--pub use concat_export::{- ClipKind, ExportClip, ExportRequest, PreviewFrameRequest, Reporter, TransitionSpec,- preview_frame, preview_prefetch, render,-};--/// One progress event, as the UI's export dialog consumes it.-#[derive(Clone, Serialize)]-#[serde(rename_all = "camelCase")]-struct Progress {- frame: i64,- total: i64,- stage: &'static str,-}--/// Renders `request` and returns the path written. Tauri-facing wrapper that-/// reports through the `export://progress` event; the logic is in-/// [`concat_export::render`].-pub fn run(- app: &tauri::AppHandle,- request: ExportRequest,- cancel: &AtomicBool,-) -> Result<String, String> {- let mut progress = |frame: i64, total: i64, stage: &'static str| {- // A dropped progress event is not worth failing an export over.- let _ = app.emit("export://progress", Progress { frame, total, stage });- };- render(&request, Reporter { progress: &mut progress, cancel })-}diff --git a/desktop/src-tauri/src/jobs.rs b/desktop/src-tauri/src/jobs.rsdeleted file mode 100644index 6f3ca3a6..00000000--- a/desktop/src-tauri/src/jobs.rs+++ /dev/null@@ -1,119 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! One-at-a-time job slots for the host's long-running work.-//!-//! Export, transcription and model downloads are all "one at a time", and-//! that invariant used to live in doc comments while the commands happily-//! accepted a second run: two exports would race each other's temp files, and-//! starting a second job *cleared* the shared cancel flag out from under the-//! first. `SingleFlight` makes the invariant code: `begin` refuses a second-//! concurrent job, and every run gets its own cancel flag, so a cancel can-//! only ever stop the job that is actually running and a new job can never be-//! un-cancelled by a stale start or stopped by a stale cancel.--use std::sync::atomic::{AtomicBool, Ordering};-use std::sync::{Arc, Mutex};--/// The slot: at most one running job, identified by its own cancel flag.-pub struct SingleFlight {- slot: Mutex<Option<Arc<AtomicBool>>>,-}--impl SingleFlight {- pub fn new() -> Self {- Self { slot: Mutex::new(None) }- }-- /// Claims the slot for a new job, or reports the one already running.- ///- /// `what` is the user-facing job name ("export", "transcription", ...).- pub fn begin(self: &Arc<Self>, what: &str) -> Result<Job, String> {- let mut slot = self.slot.lock().map_err(|_| format!("{what} state poisoned"))?;- if slot.is_some() {- return Err(format!("a {what} is already running - wait for it or cancel it first"));- }- let cancel = Arc::new(AtomicBool::new(false));- *slot = Some(Arc::clone(&cancel));- Ok(Job { owner: Arc::clone(self), cancel })- }-- /// Cancels the running job. Idle is a harmless no-op.- pub fn cancel(&self) {- if let Ok(slot) = self.slot.lock() {- if let Some(cancel) = slot.as_ref() {- cancel.store(true, Ordering::Relaxed);- }- }- }-}--/// A claim on the slot, released on drop - however the job ended, panic-/// included, the slot frees and the next `begin` succeeds.-pub struct Job {- owner: Arc<SingleFlight>,- cancel: Arc<AtomicBool>,-}--impl Job {- /// This run's stop flag, for the worker to poll.- pub fn cancel_flag(&self) -> &AtomicBool {- &self.cancel- }-- /// An owned handle on the same flag, for callbacks that outlive borrows- /// of the job (an FFI progress callback must be `'static`).- pub fn cancel_handle(&self) -> Arc<AtomicBool> {- Arc::clone(&self.cancel)- }-}--impl Drop for Job {- fn drop(&mut self) {- if let Ok(mut slot) = self.owner.slot.lock() {- // Release only our own claim. Guards are one-per-begin so the- // check is belt and braces, but it makes a stale drop harmless.- if slot.as_ref().is_some_and(|flag| Arc::ptr_eq(flag, &self.cancel)) {- *slot = None;- }- }- }-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn refuses_a_second_concurrent_job() {- let flight = Arc::new(SingleFlight::new());- let job = flight.begin("export").expect("first begin");- match flight.begin("export") {- Err(error) => assert!(error.contains("already running")),- Ok(_) => panic!("second begin must be refused"),- }- drop(job);- assert!(flight.begin("export").is_ok(), "slot frees on drop");- }-- #[test]- fn cancel_reaches_only_the_running_job() {- let flight = Arc::new(SingleFlight::new());- let first = flight.begin("export").expect("begin");- flight.cancel();- assert!(first.cancel_flag().load(Ordering::Relaxed));-- drop(first);- // A new job starts with a fresh, uncancelled flag: the earlier cancel- // cannot leak forward, and starting fresh cannot un-cancel anyone.- let second = flight.begin("export").expect("begin again");- assert!(!second.cancel_flag().load(Ordering::Relaxed));- }-- #[test]- fn cancel_when_idle_is_a_no_op() {- let flight = Arc::new(SingleFlight::new());- flight.cancel();- assert!(flight.begin("export").is_ok());- }-}diff --git a/desktop/src-tauri/src/lib.rs b/desktop/src-tauri/src/lib.rsdeleted file mode 100644index e4bd68bc..00000000--- a/desktop/src-tauri/src/lib.rs+++ /dev/null@@ -1,934 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Tauri host for the WolfCut editor.-//!-//! Deliberately thin. Every command here does two things: call into the engine-//! crates, and convert the result to something `serde` can put on the wire.-//! No editing logic lives on this side of the bridge - if a command starts-//! making decisions about the edit, that logic belongs in `concat-core` or-//! `concat-render` where it can be unit-tested without a window.--// Public so the integration tests can drive a real export; see tests/.-pub mod export;-mod editor_api;-mod jobs;-mod playback;-mod projects;-mod templates;-mod transcribe;-mod tts;--use serde::Serialize;--/// A video stream, as the UI sees it.-#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct VideoStreamInfo {- index: u32,- codec: String,- width: u32,- height: u32,- /// Decimal fps, for display only.- frame_rate: f64,- /// The exact fraction the engine actually works in, e.g. "30000/1001".- frame_rate_fraction: String,-}--/// An audio stream, as the UI sees it.-#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct AudioStreamInfo {- index: u32,- codec: String,- sample_rate: u32,- channels: u32,-}--/// What `probe_media` hands back.-#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct MediaSummary {- path: String,- duration: Option<f64>,- /// "video", "audio" or "image".- kind: &'static str,- video: Option<VideoStreamInfo>,- audio: Option<AudioStreamInfo>,-}--/// Extensions WolfCut is willing to treat as stills.-const IMAGE_EXTENSIONS: &[&str] = &[- "png", "jpg", "jpeg", "webp", "bmp", "tif", "tiff", "avif", "heic", "heif", "gif",-];--/// Decides whether a file is footage, sound or a still.-///-/// Extension first, because that is what the user means by "a png", and-/// ffprobe is genuinely ambiguous here: a PNG presents as a one-frame video-/// stream, usually with `r_frame_rate` of 25/1 invented by the demuxer.-///-/// The duration check is what separates a still from an animation. An animated-/// GIF or WebP reports a duration; a single image does not. It is a heuristic,-/// and a deliberately conservative one - misreading an animation as a still-/// shows its first frame rather than failing.-fn classify(info: &concat_media::MediaInfo) -> &'static str {- if info.video.is_none() {- return "audio";- }-- let extension = info- .path- .extension()- .and_then(|value| value.to_str())- .unwrap_or_default()- .to_ascii_lowercase();-- if IMAGE_EXTENSIONS.contains(&extension.as_str()) && info.duration.is_none() {- "image"- } else {- "video"- }-}--impl From<concat_media::MediaInfo> for MediaSummary {- fn from(info: concat_media::MediaInfo) -> Self {- Self {- kind: classify(&info),- path: info.path.to_string_lossy().into_owned(),- // Exact rational time stops at this boundary: JSON has no- // fractions, and the UI only ever displays these numbers.- duration: info.duration.map(|duration| duration.as_f64()),- video: info.video.map(|video| VideoStreamInfo {- index: video.index,- codec: video.codec,- width: video.width,- height: video.height,- frame_rate: video.frame_rate.fps().as_f64(),- frame_rate_fraction: format!(- "{}/{}",- video.frame_rate.fps().numerator(),- video.frame_rate.fps().denominator()- ),- }),- audio: info.audio.map(|audio| AudioStreamInfo {- index: audio.index,- codec: audio.codec,- sample_rate: audio.sample_rate,- channels: audio.channels,- }),- }- }-}--/// Reports what is inside a media file.-///-/// Async because ffprobe on a slow or network volume takes real time, and a-/// synchronous command runs on the main thread - the one place a stall is a-/// frozen window.-///-/// A successful probe also admits the file to the asset protocol scope, so-/// the preview's media elements can play it. This is where user intent is-/// expressed - importing a file IS asking the app to show it - and it is the-/// whole grant: the static scope is empty, so the webview can only ever-/// reach files that probed as media. See `grant_asset` for why.-#[tauri::command]-async fn probe_media(app: tauri::AppHandle, path: String) -> Result<MediaSummary, String> {- let summary = tauri::async_runtime::spawn_blocking(move || {- concat_media::probe(&path).map(MediaSummary::from).map_err(describe)- })- .await- .map_err(|error| format!("probe task failed: {error}"))??;- grant_asset(&app, &summary.path);- Ok(summary)-}--/// Admits one file to the asset protocol scope.-///-/// The static scope used to be `**` - the whole filesystem - which made any-/// script that ran in the webview a disk-wide read primitive. Now the scope-/// starts empty and grows one file at a time, only at the two places the-/// user expresses intent: importing media (a successful probe) and opening a-/// project whose document lists it. A path that never probed as media is-/// unreachable however the page is compromised.-pub(crate) fn grant_asset(app: &tauri::AppHandle, path: &str) {- use tauri::Manager;- // Failure means the preview cannot show this one file - the import- // itself still stands, and the error names the path for the console.- if let Err(error) = app.asset_protocol_scope().allow_file(path) {- eprintln!("wolfcut: could not scope {path}: {error}");- }-}--/// The version of the app the UI is talking to. Also a liveness check on the-/// IPC bridge at startup.-#[tauri::command]-fn engine_version() -> &'static str {- env!("CARGO_PKG_VERSION")-}--/// The most `read_media_bytes` will hand the webview at once.-///-/// Its remaining callers decode still images and register fonts - assets-/// that are megabytes, not gigabytes. The cap is what keeps the command-/// from quietly growing back into a whole-disk read primitive now that-/// waveform peaks (the one legitimate whole-file consumer) decode in the-/// engine instead.-const MEDIA_READ_CAP: u64 = 64 * 1024 * 1024;--/// Reads a whole file and returns it as raw bytes.-///-/// Two callers: still-image decode in `lib/assets.ts`, and custom font-/// registration. `tauri::ipc::Response` puts the bytes on the wire as an-/// ArrayBuffer rather than a JSON array of numbers, which for a few-/// megabytes is the difference between instant and unusable.-///-/// It loads the entire file into memory, so it is not a general-purpose-/// reader and must not become one: anything past [`MEDIA_READ_CAP`] is-/// refused.-#[tauri::command]-async fn read_media_bytes(path: String) -> Result<tauri::ipc::Response, String> {- tauri::async_runtime::spawn_blocking(move || {- let size = std::fs::metadata(&path)- .map_err(|error| format!("could not read {path}: {error}"))?- .len();- if size > MEDIA_READ_CAP {- return Err(format!(- "refusing to read {path}: {size} bytes is over the {MEDIA_READ_CAP} byte limit"- ));- }- std::fs::read(&path).map_err(|error| format!("could not read {path}: {error}"))- })- .await- .map_err(|error| format!("read task failed: {error}"))?- .map(tauri::ipc::Response::new)-}--/// Resolution of the cached waveform.-///-/// 200 buckets per second is roughly two buckets per pixel at the default-/// timeline zoom, which is enough that the drawn shape does not visibly-/// change as you zoom in a step or two, without storing the whole decoded-/// file.-const PEAKS_BUCKETS_PER_SECOND: u32 = 200;--/// Waveform peaks for one media file: engine-decoded, project-cached.-///-/// The engine streams FFmpeg's decode into min/max buckets, so neither the-/// file nor its samples are ever resident - and nothing crosses the IPC-/// boundary but the buckets themselves. The result is cached in the-/// project's `cache/` folder under a key derived from the path, and served-/// from there on every later call; `project: None` (an unsaved session)-/// just skips the cache.-#[tauri::command]-async fn extract_peaks(path: String, project: Option<String>) -> Result<tauri::ipc::Response, String> {- tauri::async_runtime::spawn_blocking(move || peaks_bytes(&path, project.as_deref()))- .await- .map_err(|error| format!("peaks task failed: {error}"))?- .map(tauri::ipc::Response::new)-}--fn peaks_bytes(path: &str, project: Option<&str>) -> Result<Vec<u8>, String> {- let cached = project.and_then(|project| artwork_file(project, &peaks_key(path)).ok());- if let Some(file) = &cached {- if let Ok(bytes) = std::fs::read(file) {- // A corrupt entry falls through to regeneration rather than- // being served - the frontend has no second request to make.- if plausible_peaks(&bytes) {- return Ok(bytes);- }- }- }-- let peaks = concat_media::peaks::extract(std::path::Path::new(path), PEAKS_BUCKETS_PER_SECOND)- .map_err(describe)?;- let bytes = peaks.encode();-- // Best-effort, like every artwork write: a failed cache write only- // means decoding again next launch.- if let Some(file) = &cached {- if let Some(parent) = file.parent() {- let _ = std::fs::create_dir_all(parent);- }- let _ = std::fs::write(file, &bytes);- }- Ok(bytes)-}--/// The cache filename for one file's peaks.-///-/// FNV-1a 64 over the path, like the audio cache's `decode_key` and for the-/// same reason: these keys name files that outlive the process, and-/// `DefaultHasher` is free to change between Rust releases. The bucket rate-/// rides in the name so a resolution change regenerates instead of serving-/// yesterday's shape.-fn peaks_key(path: &str) -> String {- let mut hash: u64 = 0xcbf2_9ce4_8422_2325;- for &byte in path.as_bytes() {- hash ^= u64::from(byte);- hash = hash.wrapping_mul(0x0000_0100_0000_01b3);- }- format!("{hash:016x}-b{PEAKS_BUCKETS_PER_SECOND}.peaks")-}--/// Whether bytes have the shape `Peaks::encode` writes:-/// `[rate f32][count u32][min f32 x count][max f32 x count]`.-fn plausible_peaks(bytes: &[u8]) -> bool {- if bytes.len() < 8 {- return false;- }- let count = u32::from_le_bytes([bytes[4], bytes[5], bytes[6], bytes[7]]) as usize;- bytes.len() == 8 + count * 8-}--/// Where one artwork file lives inside a project's cache.-///-/// The cache sits in the project folder so it travels with the project and-/// vanishes with it. The key is confined to a single flat filename - anything-/// that could walk out of the folder is refused rather than sanitised,-/// because the only caller is our own frontend and a strange key is a bug.-fn artwork_file(project: &str, key: &str) -> Result<std::path::PathBuf, String> {- if key.is_empty()- || !key- .chars()- .all(|c| c.is_ascii_alphanumeric() || matches!(c, '.' | '_' | '-'))- || key.starts_with('.')- {- return Err(format!("refusing artwork key {key:?}"));- }- let root = std::path::Path::new(project);- // A real project, not merely a directory: without the manifest check,- // this command was a write primitive into any folder on disk that could- // grow a `cache/` child. The manifest is what makes a folder ours.- if !projects::manifest_path(root).is_file() {- return Err(format!("{project} is not a project folder"));- }- Ok(root.join("cache").join(key))-}--/// Returns one cached artwork file, or an error the frontend treats as a miss.-#[tauri::command]-async fn read_artwork(project: String, key: String) -> Result<tauri::ipc::Response, String> {- let file = artwork_file(&project, &key)?;- tauri::async_runtime::spawn_blocking(move || {- std::fs::read(&file).map_err(|error| format!("no cached artwork {key}: {error}"))- })- .await- .map_err(|error| format!("artwork task failed: {error}"))?- .map(tauri::ipc::Response::new)-}--/// Stores one artwork file in the project's cache. Best-effort: the caller-/// fires and forgets, and a failed write only means regenerating next launch.-#[tauri::command]-async fn write_artwork(project: String, key: String, bytes: Vec<u8>) -> Result<(), String> {- let file = artwork_file(&project, &key)?;- tauri::async_runtime::spawn_blocking(move || {- if let Some(parent) = file.parent() {- std::fs::create_dir_all(parent)- .map_err(|error| format!("could not create {}: {error}", parent.display()))?;- }- std::fs::write(&file, bytes).map_err(|error| format!("could not write {key}: {error}"))- })- .await- .map_err(|error| format!("artwork task failed: {error}"))?-}--/// Renders a strip of evenly spaced frames from a video as one JPEG.-///-/// One image rather than N, because the timeline draws the frames as slices of-/// a single texture - that is one decode and one cached bitmap instead of-/// twenty-four of each.-///-/// `fps=count/duration` is what spaces the frames evenly, and `tile` lays them-/// out side by side. If the container reports no duration there is nothing to-/// space frames across, so this refuses rather than guessing.-#[tauri::command]-async fn extract_filmstrip(path: String, count: u32, height: u32) -> Result<tauri::ipc::Response, String> {- let bytes = tauri::async_runtime::spawn_blocking(move || filmstrip(&path, count, height))- .await- .map_err(|error| format!("filmstrip task failed: {error}"))??;-- Ok(tauri::ipc::Response::new(bytes))-}--fn filmstrip(path: &str, count: u32, height: u32) -> Result<Vec<u8>, String> {- let count = count.clamp(1, 60);- let height = height.clamp(16, 240);-- let info = concat_media::probe(path).map_err(describe)?;- let duration = info- .duration- .map(|duration| duration.as_f64())- .filter(|seconds| *seconds > 0.0)- .ok_or_else(|| format!("{path} reports no duration"))?;-- let output = concat_media::command(concat_media::ffmpeg())- .args(["-hide_banner", "-nostdin", "-loglevel", "error"])- .args(["-i", path])- .args([- "-vf",- // scale=-2 keeps the aspect ratio and an even width, which the- // JPEG encoder requires.- // lanczos because the default bilinear leaves 4K sources visibly- // mushy at thumbnail sizes, and the strip is rendered once but- // looked at constantly.- &format!(- "fps={:.6},scale=-2:{height}:flags=lanczos,tile={count}x1",- f64::from(count) / duration- ),- ])- .args(["-frames:v", "1", "-q:v", "3", "-f", "mjpeg", "pipe:1"])- .output()- .map_err(|error| format!("could not run ffmpeg: {error}"))?;-- if !output.status.success() {- return Err(format!("ffmpeg exited with {} for {path}", output.status));- }- if output.stdout.is_empty() {- return Err(format!("ffmpeg produced no filmstrip for {path}"));- }-- Ok(output.stdout)-}--/// A small poster frame for one project, for the launch screen's recents.-///-/// Grabbed from the earliest visible clip of the project's active timeline-/// and cached as `cache/preview.jpg` in the project folder; the cache is-/// fresh as long as it is newer than `wolfcut.json`, so an edited project gets-/// a new poster on its next appearance and an untouched one costs a stat.-#[tauri::command]-async fn project_preview(path: String) -> Result<tauri::ipc::Response, String> {- tauri::async_runtime::spawn_blocking(move || poster_frame(&path))- .await- .map_err(|error| format!("preview task failed: {error}"))?- .map(tauri::ipc::Response::new)-}--fn poster_frame(project: &str) -> Result<Vec<u8>, String> {- let root = std::path::Path::new(project);- let manifest = projects::manifest_path(root);- let cached = root.join("cache").join("preview.jpg");-- let fresh = match (std::fs::metadata(&cached), std::fs::metadata(&manifest)) {- (Ok(cache), Ok(source)) => match (cache.modified(), source.modified()) {- (Ok(cache), Ok(source)) => cache >= source,- _ => false,- },- _ => false,- };- if fresh {- if let Ok(bytes) = std::fs::read(&cached) {- return Ok(bytes);- }- }-- let text = std::fs::read_to_string(&manifest)- .map_err(|error| format!("could not read {}: {error}", manifest.display()))?;- let document: serde_json::Value =- serde_json::from_str(&text).map_err(|error| format!("not a project: {error}"))?;-- // Typed access through the engine's own reader, not hand-parsed JSON -- // a schema change breaks this at compile time now, not silently at the- // next launch screen.- let Some(project) = concat_project::from_document(&document) else {- return Err("the project has no timeline to preview".to_owned());- };- let timeline = project- .timelines- .iter()- .find(|timeline| timeline.id == project.active_timeline_id)- .or_else(|| project.timelines.first());- let Some(timeline) = timeline else {- return Err("the project has no timeline to preview".to_owned());- };-- // The earliest clip with a picture is the poster - exactly the frame- // the user last saw open.- use concat_project::model::ClipKind;- let mut poster: Option<(f64, String, f64, bool)> = None;- for clip in &timeline.clips {- if clip.kind != ClipKind::Video && clip.kind != ClipKind::Image {- continue;- }- if poster.as_ref().is_some_and(|(best, ..)| *best <= clip.start) {- continue;- }- let Some(media) = project.media.iter().find(|item| item.id == clip.media_id) else {- continue;- };- poster = Some((- clip.start,- media.path.clone(),- clip.source_start,- clip.kind == ClipKind::Image,- ));- }-- let Some((_, media_path, source_start, is_still)) = poster else {- return Err("nothing on the timeline to preview".to_owned());- };-- let mut command = concat_media::command(concat_media::ffmpeg());- command.args(["-hide_banner", "-nostdin", "-loglevel", "error"]);- // Seeking a still means seeking a one-frame stream to nowhere.- if !is_still && source_start > 0.0 {- command.args(["-ss", &format!("{source_start:.3}")]);- }- let output = command- .args(["-i", &media_path])- .args(["-frames:v", "1", "-vf", "scale=480:-2", "-q:v", "4", "-f", "mjpeg", "pipe:1"])- .output()- .map_err(|error| format!("could not run ffmpeg: {error}"))?;-- if !output.status.success() || output.stdout.is_empty() {- return Err(format!("no poster frame for {media_path}"));- }-- // Best effort: a failed cache write only means regenerating next launch.- if let Some(parent) = cached.parent() {- let _ = std::fs::create_dir_all(parent);- let _ = std::fs::write(&cached, &output.stdout);- }- Ok(output.stdout)-}--/// The audible clip set, replaced wholesale whenever the timeline changes.-///-/// Decoding, mixing and the playback clock all live in the engine - see-/// `playback.rs`. The UI describes what should be audible and follows the-/// engine's `transport` position events.-#[tauri::command]-fn audio_set_clips(- state: tauri::State<'_, std::sync::Arc<playback::Playback>>,- project: String,- clips: Vec<playback::ClipSpec>,-) {- state.set_clips(std::path::PathBuf::from(project), clips);-}--#[tauri::command]-fn transport_play(state: tauri::State<'_, std::sync::Arc<playback::Playback>>, position: f64) {- state.play(position);-}--#[tauri::command]-fn transport_pause(state: tauri::State<'_, std::sync::Arc<playback::Playback>>) {- state.pause();-}--#[tauri::command]-fn transport_seek(state: tauri::State<'_, std::sync::Arc<playback::Playback>>, position: f64) {- state.seek(position);-}--/// Creates a project folder, writes its manifest and records it as recent.-#[tauri::command]-async fn create_project(- app: tauri::AppHandle,- location: String,- name: String,- width: u32,- height: u32,- rate_num: i64,- rate_den: i64,-) -> Result<projects::ProjectInfo, String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || {- let project = projects::create(&location, &name, width, height, rate_num, rate_den)?;- // A project that cannot be added to the recents list has still been- // created, so this failure is reported but not fatal.- if let Err(error) = projects::remember(&config, &project) {- eprintln!("wolfcut: {error}");- }- Ok(project)- })- .await- .map_err(|error| format!("create_project task failed: {error}"))?-}--/// Reads an existing project and moves it to the front of the recents list.-#[tauri::command]-async fn open_project(app: tauri::AppHandle, path: String) -> Result<projects::ProjectInfo, String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || {- let project = projects::open(&path)?;- if let Err(error) = projects::remember(&config, &project) {- eprintln!("wolfcut: {error}");- }- Ok(project)- })- .await- .map_err(|error| format!("open_project task failed: {error}"))?-}--/// The recents list, most recent first, with vanished folders left out.-#[tauri::command]-async fn recent_projects(app: tauri::AppHandle) -> Result<Vec<projects::ProjectInfo>, String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || projects::list(&config))- .await- .map_err(|error| format!("recents task failed: {error}"))-}--/// Removes a project from the recents list. The folder itself is left alone.-#[tauri::command]-async fn forget_project(app: tauri::AppHandle, path: String) -> Result<(), String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || projects::forget(&config, &path))- .await- .map_err(|error| format!("forget task failed: {error}"))?-}--/// The template library, for the gallery.-#[tauri::command]-async fn template_list(app: tauri::AppHandle) -> Result<Vec<templates::TemplateInfo>, String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || templates::list(&config))- .await- .map_err(|error| format!("template list task failed: {error}"))-}--/// Packs the open project into a new template bundle.-#[tauri::command]-async fn template_save(- app: tauri::AppHandle,- state: tauri::State<'_, editor_api::EditorState>,- name: String,-) -> Result<templates::TemplateInfo, String> {- let (document, project_path, settings) = editor_api::session_snapshot(&state)?;- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || {- templates::save(&config, &document, &settings, &project_path, &name)- })- .await- .map_err(|error| format!("template save task failed: {error}"))?-}--/// Unpacks a template into a fresh project with every slot filled, and-/// records it as recent - the caller opens it like any other project.-#[tauri::command]-async fn template_instantiate(- app: tauri::AppHandle,- template: String,- location: String,- name: String,- fills: Vec<templates::SlotFill>,-) -> Result<projects::ProjectInfo, String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || {- let project = templates::instantiate(&template, &location, &name, fills)?;- if let Err(error) = projects::remember(&config, &project) {- eprintln!("wolfcut: {error}");- }- Ok(project)- })- .await- .map_err(|error| format!("template task failed: {error}"))?-}--/// Removes one template bundle for good.-#[tauri::command]-async fn template_delete(app: tauri::AppHandle, path: String) -> Result<(), String> {- let config = config_dir(&app)?;- tauri::async_runtime::spawn_blocking(move || templates::delete(&config, &path))- .await- .map_err(|error| format!("template delete task failed: {error}"))?-}--/// A template's poster, or an error the UI treats as "no art".-#[tauri::command]-async fn template_poster(path: String) -> Result<tauri::ipc::Response, String> {- tauri::async_runtime::spawn_blocking(move || templates::poster(&path))- .await- .map_err(|error| format!("poster task failed: {error}"))?- .map(tauri::ipc::Response::new)-}--fn config_dir(app: &tauri::AppHandle) -> Result<std::path::PathBuf, String> {- use tauri::Manager;- app.path()- .app_config_dir()- .map_err(|error| format!("could not locate the config directory: {error}"))-}--/// The slot for the one export that can run at a time - enforced, not-/// documented: a second `export_project` while one runs is refused instead of-/// racing the first for its temp files and cancel flag.-struct ExportState(std::sync::Arc<jobs::SingleFlight>);--/// The reader pool behind the paused monitor's true frames. One pool for the-/// app's lifetime: its whole value is what stays warm between scrubs.-struct PoolState(std::sync::Arc<std::sync::Mutex<concat_media::ReaderPool>>);--/// What the UI sends for one true frame: an instant and a resolution. The-/// clips come from the engine's own session - the UI no longer serialises-/// its whole clip list per scrub frame (see engine decision 0009).-#[derive(serde::Deserialize)]-#[serde(rename_all = "camelCase")]-struct PreviewSpec {- /// The timeline instant to composite, in seconds.- time: f64,- /// Preview frame width in pixels.- width: u32,- /// Preview frame height in pixels.- height: u32,-}--/// The engine-composited frame at one instant, as raw RGBA bytes.-///-/// Serialised through the pool's mutex on a blocking thread: one scrub at a-/// time, in order, off the main thread. The UI debounces and drops stale-/// responses, so a slow decode never wedges anything but itself.-#[tauri::command]-async fn preview_frame(- state: tauri::State<'_, PoolState>,- editor: tauri::State<'_, editor_api::EditorState>,- request: PreviewSpec,-) -> Result<tauri::ipc::Response, String> {- let (clips, settings) = editor_api::flattened_clips(&editor)?;- let request = export::PreviewFrameRequest {- time: request.time,- width: request.width,- height: request.height,- rate_num: settings.rate_num,- rate_den: settings.rate_den,- clips,- };- let pool = std::sync::Arc::clone(&state.0);- tauri::async_runtime::spawn_blocking(move || {- let mut pool = pool.lock().map_err(|_| "reader pool poisoned".to_owned())?;- export::preview_frame(&mut pool, &request)- })- .await- .map_err(|error| format!("preview task failed: {error}"))?- // The UI quietly keeps its approximation on error, which is right for- // the monitor and useless for debugging - so the reason lands here.- .inspect_err(|error| eprintln!("wolfcut: preview_frame: {error}"))- .map(tauri::ipc::Response::new)-}--/// Decode-ahead for the playback stream.-///-/// Warms the pool for the next few frame instants after `request.time`, so-/// the following `preview_frame` pulls are cache hits instead of decode-/// waits. Fire-and-forget from the UI: a source that will not decode fails-/// the pull too, and the pull is the path that reports it.-#[tauri::command]-async fn preview_prefetch(- state: tauri::State<'_, PoolState>,- editor: tauri::State<'_, editor_api::EditorState>,- request: PreviewSpec,- frames: u32,-) -> Result<(), String> {- let (clips, settings) = editor_api::flattened_clips(&editor)?;- let request = export::PreviewFrameRequest {- time: request.time,- width: request.width,- height: request.height,- rate_num: settings.rate_num,- rate_den: settings.rate_den,- clips,- };- let pool = std::sync::Arc::clone(&state.0);- tauri::async_runtime::spawn_blocking(move || {- if let Ok(mut pool) = pool.lock() {- // Clamped so a confused caller cannot park the pool's mutex on a- // long decode march the presenter then queues behind.- export::preview_prefetch(&mut pool, &request, frames.min(8));- }- })- .await- .map_err(|error| format!("prefetch task failed: {error}"))-}--/// Renders the timeline to a file.-///-/// Runs on a blocking thread and reports progress through the-/// `export://progress` event, because a two-minute export must not freeze the-/// window and gives the UI nothing to show if it says nothing until it is done.-/// What the UI sends to start an export: the destination, the quality, and-/// its rasterised titles rejoining as image clips. The timeline itself is-/// deliberately absent - the engine flattens its own session, so the pixels-/// rendered are the model's, never a frontend's copy of it.-#[derive(serde::Deserialize)]-#[serde(rename_all = "camelCase")]-struct ExportSpec {- /// The file to write.- output: String,- /// Constant rate factor; lower is better quality and a bigger file.- crf: u8,- /// The x264 speed/size preset name, e.g. "medium".- preset: String,- /// Rasterised text clips - fonts and layout live in the webview, so- /// titles arrive as images the flattener cannot produce itself.- #[serde(default)]- titles: Vec<export::ExportClip>,-}--#[tauri::command]-async fn export_project(- app: tauri::AppHandle,- state: tauri::State<'_, ExportState>,- editor: tauri::State<'_, editor_api::EditorState>,- request: ExportSpec,-) -> Result<String, String> {- let (mut clips, settings) = editor_api::flattened_clips(&editor)?;- clips.extend(request.titles);- let request = export::ExportRequest {- output: request.output,- width: settings.width,- height: settings.height,- rate_num: settings.rate_num,- rate_den: settings.rate_den,- crf: request.crf,- preset: request.preset,- clips,- };- let job = state.0.begin("export")?;- tauri::async_runtime::spawn_blocking(move || export::run(&app, request, job.cancel_flag()))- .await- .map_err(|error| format!("export task failed: {error}"))?-}--/// Asks the running export to stop at the next frame. Idle is a harmless no-op.-#[tauri::command]-fn cancel_export(state: tauri::State<'_, ExportState>) {- state.0.cancel();-}--/// Flattens an error and its causes into one line.-///-/// `Display` on a `thiserror` enum prints only the outermost message, and the-/// useful half - what FFmpeg or the OS actually said - is in the source chain.-fn describe(error: concat_media::Error) -> String {- use std::error::Error;-- let mut message = error.to_string();- let mut cause = error.source();- while let Some(current) = cause {- message.push_str(&format!(": {current}"));- cause = current.source();- }- message-}--/// Points the engine at the bundled FFmpeg.-///-/// WolfCut ships its own copy so that a fresh install works without the user-/// having installed anything - "is FFmpeg on PATH?" is not a question anyone-/// should have to answer to open a video file.-///-/// Searched in order: the bundled resource directory, then beside the-/// executable (which is where a `cargo run` build finds it), then nothing --/// leaving the engine on its `PATH` default, which is what keeps development-/// working without copying 170 MB into every build directory.-///-/// Both binaries must be present to switch. A bundled decoder paired with-/// whatever `ffprobe` happens to be on PATH is a version mismatch waiting to-/// happen, and it would be an intermittent one.-fn use_bundled_ffmpeg(app: &tauri::App) {- use tauri::Manager;-- let suffix = if cfg!(windows) { ".exe" } else { "" };-- let mut candidates: Vec<std::path::PathBuf> = Vec::new();- if let Ok(resources) = app.path().resource_dir() {- candidates.push(resources.join("ffmpeg"));- }- if let Ok(executable) = std::env::current_exe() {- if let Some(directory) = executable.parent() {- candidates.push(directory.join("ffmpeg"));- candidates.push(directory.to_path_buf());- }- }-- for directory in candidates {- let ffmpeg = directory.join(format!("ffmpeg{suffix}"));- let ffprobe = directory.join(format!("ffprobe{suffix}"));-- if ffmpeg.is_file() && ffprobe.is_file() {- concat_media::set_binaries(ffmpeg, ffprobe);- return;- }- }-}--/// Builds and runs the editor window.-#[cfg_attr(mobile, tauri::mobile_entry_point)]-pub fn run() {- tauri::Builder::default()- .setup(|app| {- // Resolved here rather than before the builder, because finding- // the resource directory needs the app to exist.- use tauri::Manager;- use_bundled_ffmpeg(app);- app.manage(playback::Playback::start(app.handle().clone()));- app.manage(ExportState(std::sync::Arc::new(jobs::SingleFlight::new())));- app.manage(transcribe::DownloadState(std::sync::Arc::new(- jobs::SingleFlight::new(),- )));- app.manage(transcribe::TranscribeState::new());- app.manage(tts::TtsDownloadState(std::sync::Arc::new(- jobs::SingleFlight::new(),- )));- app.manage(tts::TtsState::new());- app.manage(editor_api::EditorState(std::sync::Mutex::new(None)));- app.manage(PoolState(std::sync::Arc::new(std::sync::Mutex::new(- concat_media::ReaderPool::with_defaults(),- ))));- Ok(())- })- .plugin(tauri_plugin_opener::init())- .plugin(tauri_plugin_dialog::init())- .invoke_handler(tauri::generate_handler![- probe_media,- engine_version,- read_media_bytes,- extract_peaks,- audio_set_clips,- transport_play,- transport_pause,- transport_seek,- extract_filmstrip,- read_artwork,- write_artwork,- create_project,- open_project,- project_preview,- recent_projects,- forget_project,- export_project,- cancel_export,- preview_frame,- preview_prefetch,- template_list,- template_save,- template_instantiate,- template_delete,- template_poster,- editor_api::editor_open,- editor_api::editor_apply,- editor_api::editor_undo,- editor_api::editor_redo,- editor_api::editor_state,- editor_api::editor_save,- editor_api::editor_close,- transcribe::transcriber_status,- transcribe::set_transcriber_binary,- transcribe::download_transcriber_model,- transcribe::cancel_model_download,- transcribe::delete_transcriber_model,- transcribe::transcribe_clip,- transcribe::cancel_transcribe,- tts::tts_status,- tts::download_tts_model,- tts::cancel_tts_model_download,- tts::delete_tts_model,- tts::speak_text,- tts::cancel_speak- ])- .run(tauri::generate_context!())- .expect("error while running tauri application");-}diff --git a/desktop/src-tauri/src/main.rs b/desktop/src-tauri/src/main.rsdeleted file mode 100644index 4944dd39..00000000--- a/desktop/src-tauri/src/main.rs+++ /dev/null@@ -1,9 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--// Prevents an extra console window on Windows in release. Do not remove.-#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]--fn main() {- concat_desktop_lib::run()-}diff --git a/desktop/src-tauri/src/playback.rs b/desktop/src-tauri/src/playback.rsdeleted file mode 100644index b72af01f..00000000--- a/desktop/src-tauri/src/playback.rs+++ /dev/null@@ -1,969 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Engine-owned audio playback.-//!-//! This replaces the webview audio preview (see the superseded-//! docs/decisions/0004): the engine decodes, mixes and clocks all audible-//! clips itself, and the UI is a controller that follows.-//!-//! The shape of it:-//!-//! - Every audible clip's span is decoded **once** by FFmpeg straight to raw-//! PCM - the clip's filter chain and speed baked in with the same filters-//! the exporter uses, so the preview and the export cannot disagree. The-//! PCM lands as a file in the project's cache and is memory-mapped, so-//! memory stays bounded however long the material is, and a reopened-//! project pays nothing.-//!-//! - One cpal output stream mixes the mapped clips sample by sample, with-//! volume and fades applied at mix time. Gain-only edits therefore never-//! re-decode, and what a fade sounds like has exactly one definition: this-//! file's `gain_at`.-//!-//! - The playback clock is the audio device's own sample counter. The UI-//! receives `transport` position events and interpolates between them;-//! there is no second clock to drift against.-//!-//! - The stream is *supervised*: pulled headphones, a changed default-//! device, or a device that was missing at launch all rebuild the stream-//! rather than leaving the session silent until restart. The supervisor-//! re-seeds the new stream from the shared clock and the last clip set,-//! so a rebuild sounds like a hiccup, not a reset.-//!-//! The mix callback owns its state and receives changes as messages; the-//! only lock it touches is an uncontended try-lock on the message channel-//! (contended solely during a rebuild, when the callback is being replaced-//! anyway). Decodes run on a small worker pool, newest request first - a-//! scrubbed trim queues many spans and the one under the playhead matters-//! most - and the clip set is re-sent to the callback as each one lands.-//!-//! Both caches are bounded. In memory, mappings not referenced by the-//! current clip set are dropped beyond a cap, oldest use first. On disk,-//! `cache/audio` keeps a byte budget: least-recently-modified files beyond-//! it are removed, never one the current clip set is using.--use std::collections::{HashMap, HashSet, VecDeque};-use std::path::{Path, PathBuf};-use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};-use std::sync::{mpsc, Arc, Condvar, Mutex};--use serde::Deserialize;-use tauri::Emitter;--/// Every clip is decoded to this rate; the callback resamples to the device.-const PCM_RATE: u32 = 48_000;--/// Decoded spans kept mapped beyond the current clip set. Enough that-/// undo/redo across a few edits never re-decodes; small enough that a long-/// session cannot accumulate hundreds of mappings.-const MEMORY_CACHE_CAP: usize = 64;--/// Byte budget for `cache/audio` on disk. Stereo 16-bit 48k is ~11 MB a-/// minute, so this keeps hours of decoded material before anything is-/// evicted.-const DISK_CACHE_BUDGET: u64 = 2 * 1024 * 1024 * 1024;--/// Concurrent FFmpeg decode processes. Two keeps a dual-span edit prompt-/// without letting a scrubbed trim fan out a dozen full-file decodes.-const DECODE_WORKERS: usize = 2;--/// One audible clip, as the frontend describes it.-#[derive(Clone, Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct ClipSpec {- pub path: String,- /// Timeline seconds.- pub start: f64,- pub duration: f64,- /// Seconds into the source file.- pub source_start: f64,- pub volume: f32,- pub fade_in: f64,- pub fade_out: f64,- pub speed: f64,- pub preserve_pitch: bool,- /// FFmpeg audio filter chain, or empty.- #[serde(default)]- pub chain: String,-}--/// Decoded audio: 16-bit little-endian stereo at [`PCM_RATE`] inside a WAV-/// container, memory-mapped from the cache file so the OS decides what stays-/// resident.-///-/// WAV rather than raw PCM because the bundled FFmpeg is a trimmed build, and-/// the raw `s16le` muxer is one of the things trimmed away - the `wav` muxer-/// is not. The header costs a one-time chunk walk here; the samples inside-/// are the identical bytes.-struct Pcm {- map: memmap2::Mmap,- /// Byte offset of the first sample - just past the `data` chunk header.- start: usize,- frames: u64,-}--impl Pcm {- fn open(path: &Path) -> Result<Pcm, String> {- let file = std::fs::File::open(path)- .map_err(|error| format!("could not open {}: {error}", path.display()))?;- let map = unsafe { memmap2::Mmap::map(&file) }- .map_err(|error| format!("could not map {}: {error}", path.display()))?;- let (start, length) = wav_data_range(&map)- .ok_or_else(|| format!("{} is not the wav this cache writes", path.display()))?;- let frames = (length / 4) as u64;- Ok(Pcm { map, start, frames })- }-- /// One sample as a float in [-1, 1]. Out of range reads are silence.- fn sample(&self, frame: u64, channel: usize) -> f32 {- if frame >= self.frames {- return 0.0;- }- let at = self.start + (frame as usize * 2 + channel) * 2;- let raw = i16::from_le_bytes([self.map[at], self.map[at + 1]]);- f32::from(raw) / 32768.0- }-}--/// Finds the samples inside a WAV file: byte offset of the `data` chunk's-/// payload and its usable length.-///-/// A plain chunk walk, not a format library: the file was written by our own-/// FFmpeg invocation two functions down, so the only variability is which-/// bookkeeping chunks precede `data`. Sizes written to a pipe are `u32::MAX`-/// placeholders - the muxer could not seek back to patch them - in which case-/// the payload is simply the rest of the file.-fn wav_data_range(bytes: &[u8]) -> Option<(usize, usize)> {- if bytes.len() < 12 || &bytes[0..4] != b"RIFF" || &bytes[8..12] != b"WAVE" {- return None;- }-- let mut at = 12;- while at + 8 <= bytes.len() {- let id = &bytes[at..at + 4];- let size = u32::from_le_bytes([bytes[at + 4], bytes[at + 5], bytes[at + 6], bytes[at + 7]]);- let payload = at + 8;-- if id == b"data" {- let available = bytes.len() - payload;- let length = if size == u32::MAX { available } else { (size as usize).min(available) };- return Some((payload, length));- }-- // A placeholder size on any other chunk means the walk cannot- // continue - refuse rather than misread samples as headers.- if size == u32::MAX {- return None;- }- // Chunks are word-aligned; an odd size is followed by a pad byte.- at = payload + size as usize + (size as usize & 1);- }- None-}--/// A clip the mix callback can play: spec fields it needs, plus the audio.-/// Clone is cheap - the samples are behind an `Arc` - and the supervisor-/// uses it to seed a rebuilt stream with the set the old one was playing.-#[derive(Clone)]-struct ActiveClip {- start: f64,- duration: f64,- volume: f32,- fade_in: f64,- fade_out: f64,- pcm: Arc<Pcm>,-}--/// The one definition of a clip's gain envelope. It used to mirror a-/// `clipGainAt` in the frontend; that copy died with the webview audio path-/// (decision 0005), which is the better arrangement - nothing to drift.-fn gain_at(clip: &ActiveClip, local: f64) -> f32 {- if local < 0.0 || local > clip.duration {- return 0.0;- }- let mut gain = f64::from(clip.volume);- if clip.fade_in > 0.0 {- gain *= (local / clip.fade_in).min(1.0);- }- if clip.fade_out > 0.0 {- gain *= ((clip.duration - local) / clip.fade_out).min(1.0);- }- gain.max(0.0) as f32-}--enum Msg {- SetClips(Vec<ActiveClip>),- Play(f64),- Pause,- Seek(f64),-}--struct Shared {- /// Timeline position in microseconds, written by the mix callback.- position_micros: AtomicU64,- playing: AtomicBool,-}--/// One decode waiting for a worker.-struct DecodeJob {- spec: ClipSpec,- project: PathBuf,- key: String,-}--/// The decode queue: newest job first, because a scrub over a trim handle-/// enqueues a span per pause and the latest is the one under the playhead.-struct DecodeQueue {- jobs: Mutex<VecDeque<DecodeJob>>,- available: Condvar,-}--/// A mapped span plus when it was last part of the clip set, for eviction.-struct CacheEntry {- pcm: Arc<Pcm>,- last_used: u64,-}--pub struct Playback {- tx: mpsc::Sender<Msg>,- shared: Arc<Shared>,- /// For surfacing failures; a mute app must never be a mystery.- app: tauri::AppHandle,- /// Decoded clips by decode key. Bounded: see [`MEMORY_CACHE_CAP`].- cache: Mutex<HashMap<String, CacheEntry>>,- /// Monotonic use counter feeding `CacheEntry::last_used`.- tick: AtomicU64,- decoding: Mutex<HashSet<String>>,- /// What the timeline currently wants audible.- specs: Mutex<Vec<ClipSpec>>,- /// The project whose cache the disk GC sweeps; set by `set_clips`.- project: Mutex<Option<PathBuf>>,- /// True while a disk sweep runs, so sweeps never pile up.- sweeping: AtomicBool,- queue: Arc<DecodeQueue>,- /// The set most recently sent to the callback, for re-seeding a rebuilt- /// stream. The supervisor reads it; `resync` writes it.- last_active: Arc<Mutex<Vec<ActiveClip>>>,-}--/// A playback failure the user would otherwise experience as unexplained-/// silence. Logged for the dev console, emitted for the UI's toast - the-/// difference between "audio is broken" and a bug report that names a file.-fn report(app: &tauri::AppHandle, message: String) {- eprintln!("wolfcut: {message}");- let _ = app.emit("audio://error", message);-}--impl Playback {- pub fn start(app: tauri::AppHandle) -> Arc<Playback> {- let (tx, rx) = mpsc::channel::<Msg>();- let shared = Arc::new(Shared {- position_micros: AtomicU64::new(0),- playing: AtomicBool::new(false),- });- let last_active: Arc<Mutex<Vec<ActiveClip>>> = Arc::new(Mutex::new(Vec::new()));-- {- let shared = Arc::clone(&shared);- let app = app.clone();- let last_active = Arc::clone(&last_active);- std::thread::Builder::new()- .name("audio-output".into())- .spawn(move || supervise_stream(rx, shared, app, last_active))- .expect("could not spawn the audio thread");- }-- // Position events at ~30Hz while playing. The UI interpolates between- // them, so this cadence bounds correction error, not smoothness.- {- let shared = Arc::clone(&shared);- let app = app.clone();- std::thread::Builder::new()- .name("transport-events".into())- .spawn(move || loop {- std::thread::sleep(std::time::Duration::from_millis(33));- if shared.playing.load(Ordering::Relaxed) {- let position =- shared.position_micros.load(Ordering::Relaxed) as f64 / 1_000_000.0;- let _ = app.emit("transport", position);- }- })- .expect("could not spawn the transport event thread");- }-- let playback = Arc::new(Playback {- tx,- shared,- app,- cache: Mutex::new(HashMap::new()),- tick: AtomicU64::new(0),- decoding: Mutex::new(HashSet::new()),- specs: Mutex::new(Vec::new()),- project: Mutex::new(None),- sweeping: AtomicBool::new(false),- queue: Arc::new(DecodeQueue {- jobs: Mutex::new(VecDeque::new()),- available: Condvar::new(),- }),- last_active,- });-- for index in 0..DECODE_WORKERS {- let this = Arc::clone(&playback);- std::thread::Builder::new()- .name(format!("audio-decode-{index}"))- .spawn(move || decode_worker(&this))- .expect("could not spawn a decode worker");- }-- playback- }-- pub fn play(&self, position: f64) {- self.shared.playing.store(true, Ordering::Relaxed);- self.shared- .position_micros- .store((position.max(0.0) * 1_000_000.0) as u64, Ordering::Relaxed);- let _ = self.tx.send(Msg::Play(position.max(0.0)));- }-- pub fn pause(&self) {- self.shared.playing.store(false, Ordering::Relaxed);- let _ = self.tx.send(Msg::Pause);- }-- pub fn seek(&self, position: f64) {- let clamped = position.max(0.0);- // The callback owns the clock while playing, but a paused callback- // returns before storing - so a paused seek must land the shared- // position itself, or the atomic keeps serving the pre-seek time.- self.shared- .position_micros- .store((clamped * 1_000_000.0) as u64, Ordering::Relaxed);- let _ = self.tx.send(Msg::Seek(clamped));- }-- /// Replaces the audible clip set.- ///- /// Anything already decoded plays immediately; anything new joins the- /// decode queue and joins the mix when it lands. `project` is the- /// project folder, whose cache holds the PCM files.- pub fn set_clips(self: &Arc<Self>, project: PathBuf, specs: Vec<ClipSpec>) {- *self.specs.lock().unwrap() = specs.clone();- *self.project.lock().unwrap() = Some(project.clone());-- for spec in specs {- let key = decode_key(&spec);- if self.cache.lock().unwrap().contains_key(&key) {- continue;- }- if !self.decoding.lock().unwrap().insert(key.clone()) {- continue;- }- let mut jobs = self.queue.jobs.lock().unwrap();- jobs.push_back(DecodeJob { spec, project: project.clone(), key });- self.queue.available.notify_one();- }-- self.resync();- self.evict_memory();- self.sweep_disk(project);- }-- /// Sends the mix callback everything currently wanted *and* decoded, and- /// remembers the set so a rebuilt stream can be seeded with it.- fn resync(&self) {- let specs = self.specs.lock().unwrap();- let now = self.tick.fetch_add(1, Ordering::Relaxed) + 1;- let mut cache = self.cache.lock().unwrap();- let active: Vec<ActiveClip> = specs- .iter()- .filter_map(|spec| {- let entry = cache.get_mut(&decode_key(spec))?;- entry.last_used = now;- Some(ActiveClip {- start: spec.start,- duration: spec.duration,- volume: spec.volume,- fade_in: spec.fade_in,- fade_out: spec.fade_out,- pcm: Arc::clone(&entry.pcm),- })- })- .collect();- drop(cache);- *self.last_active.lock().unwrap() = active.clone();- let _ = self.tx.send(Msg::SetClips(active));- }-- /// Drops mapped spans beyond [`MEMORY_CACHE_CAP`], oldest use first,- /// never one the current clip set references. The mapping is address- /// space and page cache, not copies - but a long session accumulates a- /// mapping per edit of every trimmed span, and those add up.- fn evict_memory(&self) {- let live: HashSet<String> =- self.specs.lock().unwrap().iter().map(decode_key).collect();- let mut cache = self.cache.lock().unwrap();- while cache.len() > MEMORY_CACHE_CAP {- let doomed = cache- .iter()- .filter(|(key, _)| !live.contains(*key))- .min_by_key(|(_, entry)| entry.last_used)- .map(|(key, _)| key.clone());- match doomed {- Some(key) => cache.remove(&key),- // Everything over the cap is live: a genuinely enormous clip- // set. Keeping it is correct; evicting live spans would just- // re-decode them on the next resync.- None => break,- };- }- }-- /// Sweeps `cache/audio` down to [`DISK_CACHE_BUDGET`] on a worker- /// thread: least-recently-modified first, never a file the current clip- /// set is using. Old `.decoding` leftovers from crashed runs go too.- fn sweep_disk(self: &Arc<Self>, project: PathBuf) {- if self.sweeping.swap(true, Ordering::Relaxed) {- return;- }- let this = Arc::clone(self);- std::thread::Builder::new()- .name("audio-cache-sweep".into())- .spawn(move || {- let live: HashSet<String> =- this.specs.lock().unwrap().iter().map(decode_key).collect();- let directory = project.join("cache").join("audio");- if let Some(doomed) = sweep_plan(&directory, &live, DISK_CACHE_BUDGET) {- for path in doomed {- let _ = std::fs::remove_file(path);- }- }- this.sweeping.store(false, Ordering::Relaxed);- })- .expect("could not spawn the cache sweep thread");- }-}--/// One decode worker: takes the newest queued job, skips jobs whose span the-/// timeline no longer wants, decodes, lands the result, resyncs.-fn decode_worker(playback: &Arc<Playback>) {- loop {- let job = {- let mut jobs = playback.queue.jobs.lock().unwrap();- loop {- // Newest first: pop from the back where set_clips pushes.- match jobs.pop_back() {- Some(job) => break job,- None => jobs = playback.queue.available.wait(jobs).unwrap(),- }- }- };-- // A span queued by an edit that has since been edited again is dead- // weight; skip it before paying for FFmpeg.- let wanted = playback- .specs- .lock()- .unwrap()- .iter()- .any(|spec| decode_key(spec) == job.key);- if !wanted {- playback.decoding.lock().unwrap().remove(&job.key);- continue;- }-- match decode(&job.spec, &job.project, &job.key) {- Ok(pcm) => {- let now = playback.tick.fetch_add(1, Ordering::Relaxed) + 1;- playback.cache.lock().unwrap().insert(- job.key.clone(),- CacheEntry { pcm: Arc::new(pcm), last_used: now },- );- }- Err(error) => report(- &playback.app,- format!("audio decode failed for {}: {error}", job.spec.path),- ),- }- playback.decoding.lock().unwrap().remove(&job.key);- playback.resync();- }-}--/// Which files a sweep of `directory` should delete to fit `budget` bytes:-/// least-recently-modified first, never a `.wav` whose key is in `live`,-/// plus any `.decoding` leftover older than a day. Returns `None` when the-/// directory cannot be read (not created yet - nothing to sweep).-fn sweep_plan(- directory: &Path,- live: &HashSet<String>,- budget: u64,-) -> Option<Vec<PathBuf>> {- let entries = std::fs::read_dir(directory).ok()?;- let now = std::time::SystemTime::now();-- let mut doomed: Vec<PathBuf> = Vec::new();- let mut candidates: Vec<(std::time::SystemTime, u64, PathBuf)> = Vec::new();- let mut total: u64 = 0;-- for entry in entries.flatten() {- let path = entry.path();- let name = entry.file_name().to_string_lossy().into_owned();- let Ok(meta) = entry.metadata() else { continue };-- // A `.decoding` file is a crashed or torn run once it is old enough- // that no live decode can still be writing it.- if name.ends_with(".decoding") {- let stale = meta- .modified()- .ok()- .and_then(|modified| now.duration_since(modified).ok())- .is_some_and(|age| age.as_secs() > 24 * 3600);- if stale {- doomed.push(path);- }- continue;- }-- let Some(key) = name.strip_suffix(".wav") else { continue };- total += meta.len();- if live.contains(key) {- continue;- }- let modified = meta.modified().unwrap_or(now);- candidates.push((modified, meta.len(), path));- }-- if total > budget {- candidates.sort_by_key(|(modified, ..)| *modified);- for (_, size, path) in candidates {- if total <= budget {- break;- }- total = total.saturating_sub(size);- doomed.push(path);- }- }- Some(doomed)-}--/// Identity of one decoded span: everything that changes the samples.-/// Volume, fades and timeline position are deliberately absent - they apply-/// at mix time.-///-/// FNV-1a rather than the standard library's hasher, because these keys name-/// files that outlive the process: `DefaultHasher` is free to change between-/// Rust releases, and a changed hash would silently orphan every project's-/// audio cache on a toolchain upgrade.-fn decode_key(spec: &ClipSpec) -> String {- let mut hash: u64 = 0xcbf2_9ce4_8422_2325;- let mut eat = |bytes: &[u8]| {- for &byte in bytes {- hash ^= u64::from(byte);- hash = hash.wrapping_mul(0x0000_0100_0000_01b3);- }- };- eat(spec.path.as_bytes());- eat(&spec.source_start.to_bits().to_le_bytes());- eat(&spec.duration.to_bits().to_le_bytes());- eat(&spec.speed.to_bits().to_le_bytes());- eat(&[u8::from(spec.preserve_pitch)]);- eat(spec.chain.as_bytes());- format!("{hash:016x}")-}--/// Decodes one clip span to the cache and maps it.-///-/// The FFmpeg invocation mirrors the exporter's treatment of filters and-/// speed, so what the preview mixes is what the export renders. A file-/// already in the cache is reused as is - that is the point of the cache.-fn decode(spec: &ClipSpec, project: &Path, key: &str) -> Result<Pcm, String> {- concat_media::audio::validate_chain(&spec.chain).map_err(|error| error.to_string())?;-- let directory = project.join("cache").join("audio");- // `.wav`, and `.pcm` before the muxer change - old raw caches are simply- // orphaned and re-decoded, because a cache must never need migrating.- let destination = directory.join(format!("{key}.wav"));- if destination.is_file() {- return Pcm::open(&destination);- }- std::fs::create_dir_all(&directory)- .map_err(|error| format!("could not create {}: {error}", directory.display()))?;-- // Speed first, then the clip's own filters - the same order the export- // graph applies, because these are one definition, not two. The engine- // owns what speed *means*; this function only decodes.- let mut filters: Vec<String> =- concat_media::audio::speed_filters(spec.speed, spec.preserve_pitch);- if !spec.chain.is_empty() {- filters.push(spec.chain.clone());- }- filters.push(format!("aresample={PCM_RATE}"));- filters.push("aformat=sample_fmts=s16:channel_layouts=stereo".to_owned());-- // A sped-up clip reads further into the file than it occupies on the- // timeline: the source window is `duration * speed`, exactly the window- // the exporter trims.- let window = spec.duration * concat_media::audio::clamp_speed(spec.speed);-- let temporary = directory.join(format!("{key}.wav.decoding"));- let file = std::fs::File::create(&temporary)- .map_err(|error| format!("could not create {}: {error}", temporary.display()))?;-- let status = concat_media::command(concat_media::ffmpeg())- .args(["-hide_banner", "-nostdin", "-loglevel", "error"])- .args(["-ss", &format!("{:.6}", spec.source_start)])- .args(["-t", &format!("{window:.6}")])- .args(["-i", &spec.path])- .args(["-vn", "-af", &filters.join(",")])- // `wav`, not `s16le`: the bundled FFmpeg is a trimmed build and the- // raw muxer is not in it. `Pcm::open` skips the header.- .args(["-f", "wav", "pipe:1"])- .stdout(file)- .status()- .map_err(|error| format!("could not run ffmpeg: {error}"))?;-- if !status.success() {- let _ = std::fs::remove_file(&temporary);- return Err(format!("ffmpeg exited with {status}"));- }-- std::fs::rename(&temporary, &destination)- .map_err(|error| format!("could not commit {}: {error}", destination.display()))?;- Pcm::open(&destination)-}--/// Owns the output stream for the life of the app, rebuilding it whenever-/// it dies or the default device changes.-///-/// Setup failure is a retry with backoff, not a permanent return: a machine-/// that boots WolfCut before its audio device is ready, or loses its only-/// device mid-session, gets sound back when the device does. A rebuilt-/// stream is seeded from the shared clock and the last clip set, so playback-/// carries straight on.-fn supervise_stream(- rx: mpsc::Receiver<Msg>,- shared: Arc<Shared>,- app: tauri::AppHandle,- last_active: Arc<Mutex<Vec<ActiveClip>>>,-) {- use cpal::traits::{DeviceTrait, HostTrait};-- // The callback drains this through a try-lock: uncontended in steady- // state (the supervisor only takes it between streams), and a missed- // drain on a contended tick is caught on the next callback.- let rx = Arc::new(Mutex::new(rx));- let mut backoff = std::time::Duration::from_secs(1);- let mut reported_missing = false;-- loop {- let host = cpal::default_host();- let built = host- .default_output_device()- .ok_or_else(|| "no audio output device".to_owned())- .and_then(|device| {- let name = device.name().unwrap_or_default();- build_stream(&device, &rx, &shared, &app, &last_active).map(|s| (s, name))- });-- match built {- Ok((stream, device_name)) => {- backoff = std::time::Duration::from_secs(1);- reported_missing = false;-- // Watch for the two reasons to rebuild: the stream reported- // an error, or the default device is no longer the one the- // stream was built on (headphones unplugged, output switched- // in system settings).- let failed = stream.failed;- let _stream = stream.stream;- loop {- std::thread::sleep(std::time::Duration::from_millis(1000));- if failed.load(Ordering::Relaxed) {- report(&app, "audio stream failed; rebuilding".to_owned());- break;- }- let current = cpal::default_host()- .default_output_device()- .and_then(|device| device.name().ok());- if let Some(current) = current {- if current != device_name {- // Informational only - switching outputs is a- // normal act, not an error toast.- eprintln!("wolfcut: audio device changed to {current}; rebuilding");- break;- }- }- }- // `_stream` drops here, releasing the device before rebuild.- }- Err(error) => {- // Once, not every retry: a machine with no sound card would- // otherwise toast every backoff tick forever.- if !reported_missing {- report(&app, format!("audio output unavailable: {error}; will keep trying"));- reported_missing = true;- }- std::thread::sleep(backoff);- backoff = (backoff * 2).min(std::time::Duration::from_secs(30));- }- }- }-}--/// A built, playing stream plus its error flag.-struct BuiltStream {- stream: cpal::Stream,- failed: Arc<AtomicBool>,-}--/// Builds and starts one output stream on `device`, seeded with the current-/// clip set and clock so a rebuild resumes where the last stream stopped.-fn build_stream(- device: &cpal::Device,- rx: &Arc<Mutex<mpsc::Receiver<Msg>>>,- shared: &Arc<Shared>,- app: &tauri::AppHandle,- last_active: &Arc<Mutex<Vec<ActiveClip>>>,-) -> Result<BuiltStream, String> {- use cpal::traits::DeviceTrait;-- let config = device- .default_output_config()- .map_err(|error| format!("no default output config: {error}"))?;- let sample_format = config.sample_format();- let config: cpal::StreamConfig = config.into();-- match sample_format {- cpal::SampleFormat::F32 => stream_for::<f32>(device, &config, rx, shared, app, last_active),- cpal::SampleFormat::I16 => stream_for::<i16>(device, &config, rx, shared, app, last_active),- cpal::SampleFormat::U16 => stream_for::<u16>(device, &config, rx, shared, app, last_active),- other => Err(format!("unsupported sample format {other:?}")),- }-}--fn stream_for<T>(- device: &cpal::Device,- config: &cpal::StreamConfig,- rx: &Arc<Mutex<mpsc::Receiver<Msg>>>,- shared: &Arc<Shared>,- app: &tauri::AppHandle,- last_active: &Arc<Mutex<Vec<ActiveClip>>>,-) -> Result<BuiltStream, String>-where- T: cpal::SizedSample + cpal::FromSample<f32>,-{- use cpal::traits::{DeviceTrait, StreamTrait};-- let channels = config.channels as usize;- let step = 1.0 / f64::from(config.sample_rate.0);-- // Seed from the world as it is, not from zero: a stream rebuilt mid-- // playback resumes the same clips at the shared clock's position.- let mut clips: Vec<ActiveClip> = last_active.lock().unwrap().clone();- let mut playing = shared.playing.load(Ordering::Relaxed);- let mut position = shared.position_micros.load(Ordering::Relaxed) as f64 / 1_000_000.0;-- let failed = Arc::new(AtomicBool::new(false));- let rx = Arc::clone(rx);- let shared = Arc::clone(shared);-- let stream = device- .build_output_stream(- config,- move |data: &mut [T], _| {- let mut sought = false;- // try_lock, not lock: the audio callback must never block.- // Contention only exists while the supervisor swaps streams,- // and then this callback is on its way out anyway.- if let Ok(receiver) = rx.try_lock() {- while let Ok(message) = receiver.try_recv() {- match message {- Msg::SetClips(next) => clips = next,- Msg::Play(at) => {- position = at;- playing = true;- }- Msg::Pause => playing = false,- Msg::Seek(at) => {- position = at;- sought = true;- }- }- }- }-- if !playing {- // A paused seek must reach the shared clock - the playing- // store below never runs. Only on an actual seek, so this- // silent branch cannot overwrite a fresher play() store- // with its own stale idea of the position.- if sought {- shared- .position_micros- .store((position * 1_000_000.0) as u64, Ordering::Relaxed);- }- data.fill(T::from_sample(0.0));- return;- }-- for frame in data.chunks_mut(channels) {- let mut left = 0.0f32;- let mut right = 0.0f32;-- for clip in &clips {- let local = position - clip.start;- if local < 0.0 || local >= clip.duration {- continue;- }- let gain = gain_at(clip, local);- if gain <= 0.0 {- continue;- }-- // Linear interpolation across the 48k source grid -- // exact when the device runs at 48k, inaudibly close- // when it does not.- let read = local * f64::from(PCM_RATE);- let index = read.floor() as u64;- let fraction = (read - read.floor()) as f32;- let pcm = &clip.pcm;- left += gain- * (pcm.sample(index, 0) * (1.0 - fraction)- + pcm.sample(index + 1, 0) * fraction);- right += gain- * (pcm.sample(index, 1) * (1.0 - fraction)- + pcm.sample(index + 1, 1) * fraction);- }-- // Hard limit. A mix of boosted clips can exceed full- // scale; wrapping would be far worse than flattening.- frame[0] = T::from_sample(left.clamp(-1.0, 1.0));- if channels > 1 {- frame[1] = T::from_sample(right.clamp(-1.0, 1.0));- }- for extra in frame.iter_mut().skip(2) {- *extra = T::from_sample(0.0);- }-- position += step;- }-- shared- .position_micros- .store((position * 1_000_000.0) as u64, Ordering::Relaxed);- },- {- let app = app.clone();- let failed = Arc::clone(&failed);- move |error| {- // The supervisor rebuilds on this flag; the report says- // why the sound hiccuped.- report(&app, format!("audio stream error: {error}"));- failed.store(true, Ordering::Relaxed);- }- },- None,- )- .map_err(|error| format!("could not build the output stream: {error}"))?;-- stream- .play()- .map_err(|error| format!("could not start the output stream: {error}"))?;-- Ok(BuiltStream { stream, failed })-}--#[cfg(test)]-mod tests {- use super::{sweep_plan, wav_data_range};-- /// A minimal RIFF/WAVE: fmt chunk, then a data chunk with `samples`.- fn wav(data_size: u32, samples: &[u8]) -> Vec<u8> {- let mut bytes = Vec::new();- bytes.extend_from_slice(b"RIFF");- bytes.extend_from_slice(&u32::MAX.to_le_bytes()); // pipe placeholder- bytes.extend_from_slice(b"WAVE");- bytes.extend_from_slice(b"fmt ");- bytes.extend_from_slice(&16u32.to_le_bytes());- bytes.extend_from_slice(&[0u8; 16]);- bytes.extend_from_slice(b"data");- bytes.extend_from_slice(&data_size.to_le_bytes());- bytes.extend_from_slice(samples);- bytes- }-- #[test]- fn finds_the_data_chunk_past_the_headers() {- let bytes = wav(8, &[1, 2, 3, 4, 5, 6, 7, 8]);- let (start, length) = wav_data_range(&bytes).expect("valid wav");- assert_eq!(length, 8);- assert_eq!(&bytes[start..start + length], &[1, 2, 3, 4, 5, 6, 7, 8]);- }-- #[test]- fn a_placeholder_data_size_means_the_rest_of_the_file() {- // What the wav muxer writes to a pipe: it cannot seek back to patch.- let bytes = wav(u32::MAX, &[9, 9, 9, 9]);- let (start, length) = wav_data_range(&bytes).expect("valid wav");- assert_eq!(length, 4);- assert_eq!(start, bytes.len() - 4);- }-- #[test]- fn a_stated_size_is_clamped_to_the_file() {- // A truncated decode must read short, not out of bounds.- let bytes = wav(1000, &[1, 2]);- assert_eq!(wav_data_range(&bytes).map(|(_, length)| length), Some(2));- }-- #[test]- fn refuses_files_that_are_not_wav() {- assert_eq!(wav_data_range(b""), None);- assert_eq!(wav_data_range(b"RIFFxxxxJUNK"), None);- assert_eq!(wav_data_range(&[0u8; 64]), None);- }-- #[test]- fn the_sweep_removes_the_oldest_dead_files_first_and_never_live_ones() {- use std::collections::HashSet;-- let directory = std::env::temp_dir().join(format!(- "wolfcut-sweep-test-{}-{}",- std::process::id(),- std::time::SystemTime::now()- .duration_since(std::time::UNIX_EPOCH)- .map(|elapsed| elapsed.as_nanos())- .unwrap_or(0),- ));- std::fs::create_dir_all(&directory).expect("scratch dir");-- // Three 4-byte caches, written oldest-first so mtimes order them.- for name in ["old", "live", "new"] {- std::fs::write(directory.join(format!("{name}.wav")), [0u8; 4]).expect("writes");- std::thread::sleep(std::time::Duration::from_millis(20));- }-- let live: HashSet<String> = ["live".to_owned()].into();-- // Budget for two files: only the oldest dead file goes; the live one- // survives despite being older than "new".- let doomed = sweep_plan(&directory, &live, 8).expect("plans");- let names: Vec<_> = doomed- .iter()- .filter_map(|path| path.file_name().map(|name| name.to_string_lossy().into_owned()))- .collect();- assert_eq!(names, vec!["old.wav"]);-- // Inside budget: nothing goes.- assert_eq!(sweep_plan(&directory, &live, 1024).expect("plans"), Vec::<std::path::PathBuf>::new());-- // A directory that does not exist yet is nothing to sweep, not a- // panic - the first decode has simply not happened.- assert!(sweep_plan(&directory.join("missing"), &live, 8).is_none());-- let _ = std::fs::remove_dir_all(&directory);- }-}diff --git a/desktop/src-tauri/src/projects.rs b/desktop/src-tauri/src/projects.rsdeleted file mode 100644index 0c5b6341..00000000--- a/desktop/src-tauri/src/projects.rs+++ /dev/null@@ -1,336 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Project folders on disk, and the list of recently opened ones.-//!-//! A project is a directory containing `wolfcut.json`. That file is written the-//! moment the project is created, so a project is a real thing from the start-//! rather than a promise the app keeps only if you remember to save.-//!-//! The recents list lives in the app's config directory, not in any project.-//! It describes this machine's history, and copying a project folder to-//! another machine should not drag one person's recent files along with it.--use std::path::{Path, PathBuf};-use std::time::{SystemTime, UNIX_EPOCH};--use serde::{Deserialize, Serialize};--const MANIFEST: &str = "wolfcut.json";-/// The manifest's original name. Projects created before the rename keep it-/// forever: their manifest is read and written under the name they have,-/// and only brand-new projects get the new one. A rename must never orphan-/// an edit.-const LEGACY_MANIFEST: &str = "relay.json";--/// The manifest file this project actually uses: the new name, the legacy-/// name if that is what exists, the new name for a fresh folder.-pub(crate) fn manifest_path(root: &Path) -> PathBuf {- let current = root.join(MANIFEST);- if current.is_file() {- return current;- }- let legacy = root.join(LEGACY_MANIFEST);- if legacy.is_file() {- return legacy;- }- current-}-const RECENTS: &str = "recents.json";-/// Long enough to be useful, short enough that the list stays scannable.-const MAX_RECENTS: usize = 12;--/// Everything needed to reopen a project.-#[derive(Serialize, Deserialize, Clone, Debug)]-#[serde(rename_all = "camelCase")]-pub struct ProjectInfo {- pub path: String,- pub name: String,- pub width: u32,- pub height: u32,- /// Frame rate as an exact fraction; the decimal is never stored.- pub rate_num: i64,- pub rate_den: i64,- /// Milliseconds since the epoch.- pub opened_at: u64,-}--#[derive(Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-struct Manifest {- // `concat` is what the engine writes now (concat-project doc.rs); the- // two aliases are what every project saved before the renames carries.- #[serde(alias = "relay", alias = "concat")]- wolfcut: String,- name: String,- video: Video,- /// Everything else in the file is ignored when reading settings for the- /// recents list. `flatten` keeps it from being dropped on a rewrite.- #[serde(flatten)]- #[allow(dead_code)]- rest: serde_json::Map<String, serde_json::Value>,-}--#[derive(Serialize, Deserialize)]-#[serde(rename_all = "camelCase")]-struct Video {- width: u32,- height: u32,- rate_num: i64,- rate_den: i64,-}--fn now_millis() -> u64 {- SystemTime::now()- .duration_since(UNIX_EPOCH)- .map(|elapsed| elapsed.as_millis() as u64)- .unwrap_or(0)-}--/// Creates the project folder and writes its manifest.-///-/// Refuses to touch a folder that already holds a manifest. Overwriting-/// someone's edit because they reused a name is not a recoverable mistake.-pub fn create(- location: &str,- name: &str,- width: u32,- height: u32,- rate_num: i64,- rate_den: i64,-) -> Result<ProjectInfo, String> {- let root = Path::new(location).join(folder_name(name));- let manifest = root.join(MANIFEST);-- // Either name counts as an existing project - a legacy folder must be- // just as safe from being clobbered as a new one.- if manifest_path(&root).is_file() {- return Err(format!("a WolfCut project already exists at {}", root.display()));- }-- std::fs::create_dir_all(&root)- .map_err(|error| format!("could not create {}: {error}", root.display()))?;-- // Settings only: a fresh project has no edit yet. The full document -- // timelines included - is written by `editor_save` from the first change.- let document = Manifest {- wolfcut: env!("CARGO_PKG_VERSION").to_owned(),- name: name.to_owned(),- video: Video { width, height, rate_num, rate_den },- rest: serde_json::Map::new(),- };-- let encoded = serde_json::to_vec_pretty(&document)- .map_err(|error| format!("could not encode the manifest: {error}"))?;- std::fs::write(&manifest, encoded)- .map_err(|error| format!("could not write {}: {error}", manifest.display()))?;-- Ok(ProjectInfo {- path: root.to_string_lossy().into_owned(),- name: name.to_owned(),- width,- height,- rate_num,- rate_den,- opened_at: now_millis(),- })-}--/// Writes the whole project document to `wolfcut.json`.-///-/// The document is passed through as opaque JSON rather than being mirrored-/// into Rust types: the engine (`concat-project`) owns the canonical model and-/// produced this document, and the host has no decisions to make about its-/// contents beyond writing it safely.-///-/// Written to a temporary file and renamed into place, because a save-/// interrupted halfway is worse than no save at all - a truncated wolfcut.json-/// loses the project, while a failed rename leaves the previous one intact.-pub fn save(path: &str, document: &serde_json::Value) -> Result<(), String> {- let root = PathBuf::from(path);- let manifest = manifest_path(&root);- let temporary = root.join(format!("{MANIFEST}.saving"));-- std::fs::create_dir_all(&root)- .map_err(|error| format!("could not create {}: {error}", root.display()))?;-- let encoded = serde_json::to_vec_pretty(document)- .map_err(|error| format!("could not encode the project: {error}"))?;-- std::fs::write(&temporary, encoded)- .map_err(|error| format!("could not write {}: {error}", temporary.display()))?;-- std::fs::rename(&temporary, &manifest)- .map_err(|error| format!("could not replace {}: {error}", manifest.display()))-}--/// True when a document carries no edit state at all - the settings-only-/// manifest `create` writes, in a project closed before its first save.-/// Such a document is a legitimately empty project. A document that claims-/// edit state the build then cannot load is a different thing: corrupt.-pub fn is_settings_only(document: &serde_json::Value) -> bool {- document.is_object()- && ["timelines", "tracks", "clips", "media"]- .iter()- .all(|key| document.get(key).is_none())-}--/// Reads the whole project document back.-pub fn read_document(path: &str) -> Result<serde_json::Value, String> {- let manifest = manifest_path(Path::new(path));- let bytes = std::fs::read(&manifest)- .map_err(|error| format!("could not read {}: {error}", manifest.display()))?;-- serde_json::from_slice(&bytes)- .map_err(|error| format!("{} is not a WolfCut project: {error}", manifest.display()))-}--/// Reads an existing project's settings.-pub fn open(path: &str) -> Result<ProjectInfo, String> {- let root = PathBuf::from(path);- let manifest = manifest_path(&root);-- let bytes = std::fs::read(&manifest)- .map_err(|error| format!("could not read {}: {error}", manifest.display()))?;- let document: Manifest = serde_json::from_slice(&bytes)- .map_err(|error| format!("{} is not a WolfCut project: {error}", manifest.display()))?;-- if document.video.rate_den == 0 {- return Err(format!("{} has an invalid frame rate", manifest.display()));- }-- Ok(ProjectInfo {- path: root.to_string_lossy().into_owned(),- name: document.name,- width: document.video.width,- height: document.video.height,- rate_num: document.video.rate_num,- rate_den: document.video.rate_den,- opened_at: now_millis(),- })-}--/// Moves a project to the front of the recents list.-pub fn remember(config: &Path, project: &ProjectInfo) -> Result<(), String> {- let mut entries = read_recents(config);- entries.retain(|entry| !same_path(&entry.path, &project.path));- entries.insert(0, project.clone());- entries.truncate(MAX_RECENTS);- write_recents(config, &entries)-}--/// The recents list, most recent first, with vanished folders dropped.-///-/// Filtering on read rather than pruning on write means a project on a drive-/// that happens to be unplugged comes back when the drive does.-pub fn list(config: &Path) -> Vec<ProjectInfo> {- read_recents(config)- .into_iter()- .filter(|entry| manifest_path(Path::new(&entry.path)).is_file())- .collect()-}--/// Removes one project from the list. The folder itself is left alone.-pub fn forget(config: &Path, path: &str) -> Result<(), String> {- let mut entries = read_recents(config);- entries.retain(|entry| !same_path(&entry.path, path));- write_recents(config, &entries)-}--fn read_recents(config: &Path) -> Vec<ProjectInfo> {- // A missing or corrupt list is not an error worth showing anyone; it just- // means there is no history yet.- std::fs::read(config.join(RECENTS))- .ok()- .and_then(|bytes| serde_json::from_slice(&bytes).ok())- .unwrap_or_default()-}--fn write_recents(config: &Path, entries: &[ProjectInfo]) -> Result<(), String> {- std::fs::create_dir_all(config)- .map_err(|error| format!("could not create {}: {error}", config.display()))?;-- let encoded = serde_json::to_vec_pretty(entries)- .map_err(|error| format!("could not encode the recents list: {error}"))?;- std::fs::write(config.join(RECENTS), encoded)- .map_err(|error| format!("could not write the recents list: {error}"))-}--/// Compares paths case-insensitively, because Windows does.-fn same_path(left: &str, right: &str) -> bool {- left.eq_ignore_ascii_case(right)-}--/// Turns a project name into something a filesystem will accept. Also used-/// for template bundle folders and the files inside them.-pub(crate) fn folder_name(name: &str) -> String {- let cleaned: String = name- .trim()- .chars()- .map(|character| {- if character.is_control() || r#"<>:"/\|?*"#.contains(character) {- '-'- } else {- character- }- })- .collect();-- // Windows refuses names ending in a dot or a space.- let trimmed = cleaned.trim_matches(['.', ' ']);- if trimmed.is_empty() {- "Untitled project".to_owned()- } else {- trimmed.to_owned()- }-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn sanitises_names_windows_would_reject() {- assert_eq!(folder_name("My: Project?"), "My- Project-");- assert_eq!(folder_name(" trailing. "), "trailing");- assert_eq!(folder_name("..."), "Untitled project");- assert_eq!(folder_name(""), "Untitled project");- }-- #[test]- fn a_legacy_manifest_keeps_its_name() {- let scratch = std::env::temp_dir().join("wolfcut-legacy-manifest-test");- let _ = std::fs::remove_dir_all(&scratch);- std::fs::create_dir_all(&scratch).expect("scratch dir");- // A fresh folder resolves to the new name...- assert!(manifest_path(&scratch).ends_with(MANIFEST));- // ...a pre-rename project keeps the manifest it has, forever...- std::fs::write(scratch.join(LEGACY_MANIFEST), b"{}").expect("writes");- assert!(manifest_path(&scratch).ends_with(LEGACY_MANIFEST));- // ...and the new name wins only where it actually exists.- std::fs::write(scratch.join(MANIFEST), b"{}").expect("writes");- assert!(manifest_path(&scratch).ends_with(MANIFEST));- let _ = std::fs::remove_dir_all(&scratch);- }-- #[test]- fn a_fresh_manifest_is_settings_only_and_a_saved_edit_is_not() {- // Exactly what `create` writes: settings, no edit state.- let fresh = serde_json::json!({- "wolfcut": "0.2.0",- "name": "Untitled project",- "video": { "width": 1080, "height": 1920, "rateNum": 30, "rateDen": 1 },- });- assert!(is_settings_only(&fresh));- // Any edit state present means the document must load or fail loudly.- assert!(!is_settings_only(&serde_json::json!({ "tracks": [] })));- assert!(!is_settings_only(&serde_json::json!({ "timelines": "garbage" })));- assert!(!is_settings_only(&serde_json::json!("nonsense")));- }-- #[test]- fn paths_compare_case_insensitively() {- assert!(same_path("D:\\Work\\Film", "d:\\work\\film"));- assert!(!same_path("D:\\Work\\Film", "D:\\Work\\Other"));- }-}diff --git a/desktop/src-tauri/src/templates.rs b/desktop/src-tauri/src/templates.rsdeleted file mode 100644index 27248103..00000000--- a/desktop/src-tauri/src/templates.rs+++ /dev/null@@ -1,578 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Template bundles on disk.-//!-//! A template is a folder in the app config directory's `templates/`:-//!-//! - `template.json` - an ordinary wolfcut document whose placeholder media-//! (engine `placeholder: true`) have blank paths, and whose bundled media-//! and fonts - the music, overlays and faces that are part of the design --//! have paths relative to the bundle (`assets/...`).-//! - `assets/` - those bundled files, copied in at save time.-//! - `poster.jpg` - a frame of the edit, for the gallery card.-//!-//! Saving packs the open project into a bundle; instantiating unpacks one-//! into a fresh project folder and fills every slot with the user's media-//! *through the engine* (`Command::FillSlot` in a batch), so what a fill-//! means is defined in exactly one place - `concat-project` - and the editor-//! never opens on a slot with a dead path.--use std::path::{Path, PathBuf};--use concat_project::{Command, DocumentSettings, Editor};-use serde::{Deserialize, Serialize};-use serde_json::Value;--use crate::projects;--const MANIFEST: &str = "template.json";-const ASSETS: &str = "assets";-const POSTER: &str = "poster.jpg";--/// One template, as the gallery sees it.-#[derive(Serialize, Clone, Debug)]-#[serde(rename_all = "camelCase")]-pub struct TemplateInfo {- /// The bundle folder.- pub path: String,- pub name: String,- pub width: u32,- pub height: u32,- pub rate_num: i64,- pub rate_den: i64,- /// The slots to fill, in the order they first appear on the timeline.- pub slots: Vec<SlotInfo>,- pub has_poster: bool,-}--/// One placeholder the user's media will replace.-#[derive(Serialize, Clone, Debug)]-#[serde(rename_all = "camelCase")]-pub struct SlotInfo {- pub media_id: String,- pub name: String,- /// "video", "audio" or "image".- pub kind: String,- /// Timeline seconds this slot covers, summed over its clips.- pub seconds: f64,-}--/// The user's media for one slot, straight from a probe.-#[derive(Deserialize, Clone, Debug)]-#[serde(rename_all = "camelCase")]-pub struct SlotFill {- pub media_id: String,- pub item: concat_project::commands::NewMedia,-}--pub fn templates_dir(config: &Path) -> PathBuf {- config.join("templates")-}--/// Packs the given document into a new template bundle.-///-/// `project_path` is where the document's media paths currently resolve; it-/// also donates the poster frame. Refuses a name that already exists rather-/// than overwriting someone's work.-pub fn save(- config: &Path,- document: &Value,- settings: &concat_project::DocumentSettings,- project_path: &str,- name: &str,-) -> Result<TemplateInfo, String> {- let root = templates_dir(config).join(projects::folder_name(name));- if root.join(MANIFEST).exists() {- return Err(format!("a template named {name:?} already exists"));- }- let assets = root.join(ASSETS);- std::fs::create_dir_all(&assets)- .map_err(|error| format!("could not create {}: {error}", assets.display()))?;-- // Typed through the engine's reader and writer, not hand-edited JSON:- // the manifest is written by the same code path every save uses, and a- // schema change breaks this at compile time.- let Some(mut project) = concat_project::from_document(document) else {- return Err("the open project is not a document this build can read".to_owned());- };-- // Placeholder media loses its path - it was the creator's own footage,- // standing in. Everything else is part of the design and ships in the- // bundle, referenced relative to it.- for item in &mut project.media {- if item.placeholder {- item.path = String::new();- continue;- }- item.path = bundle_file(&assets, &item.id.clone(), &item.path.clone())?;- }- for (index, font) in project.fonts.iter_mut().enumerate() {- font.path = bundle_file(&assets, &format!("font{index}"), &font.path.clone())?;- }-- let mut settings = settings.clone();- settings.name = name.to_owned();- let document = concat_project::to_document(&settings, &project);-- let encoded = serde_json::to_vec_pretty(&document)- .map_err(|error| format!("could not encode the template: {error}"))?;- std::fs::write(root.join(MANIFEST), encoded)- .map_err(|error| format!("could not write the template: {error}"))?;-- // Best effort: a template without a poster is still a template.- if let Ok(bytes) = crate::poster_frame(project_path) {- let _ = std::fs::write(root.join(POSTER), bytes);- }-- read_info(&root)-}--/// Copies one source file into `assets/` and returns its bundle-relative-/// path. The bundle must be self-contained, so a missing source is an error,-/// not a warning - a template that cannot find its own music is not one.-fn bundle_file(assets: &Path, id: &str, source: &str) -> Result<String, String> {- if source.is_empty() {- return Err(- "a media item has no file behind it; fill or remove it before saving a template"- .to_owned(),- );- }- let base = Path::new(source)- .file_name()- .and_then(|name| name.to_str())- .map(projects::folder_name)- .unwrap_or_else(|| "file".to_owned());- let name = format!("{}-{base}", projects::folder_name(id));- let destination = assets.join(&name);- std::fs::copy(source, &destination)- .map_err(|error| format!("could not bundle {source}: {error}"))?;- Ok(format!("{ASSETS}/{name}"))-}--/// Every template in the library, in name order.-///-/// A folder that does not parse is skipped rather than sinking the whole-/// gallery - the same grace the recents list extends to vanished projects.-pub fn list(config: &Path) -> Vec<TemplateInfo> {- let Ok(entries) = std::fs::read_dir(templates_dir(config)) else {- return Vec::new();- };- let mut templates: Vec<TemplateInfo> = entries- .filter_map(|entry| entry.ok())- .filter_map(|entry| read_info(&entry.path()).ok())- .collect();- templates.sort_by(|left, right| left.name.cmp(&right.name));- templates-}--/// Reads one bundle's manifest into gallery form.-fn read_info(root: &Path) -> Result<TemplateInfo, String> {- let manifest = root.join(MANIFEST);- let bytes = std::fs::read(&manifest)- .map_err(|error| format!("could not read {}: {error}", manifest.display()))?;- let document: Value = serde_json::from_slice(&bytes)- .map_err(|error| format!("{} is not a template: {error}", manifest.display()))?;-- let video = document.get("video").ok_or("the template names no output format")?;- let dimension = |field: &str| {- video- .get(field)- .and_then(Value::as_u64)- .and_then(|value| u32::try_from(value).ok())- .filter(|value| *value > 0)- .ok_or_else(|| format!("the template has no usable {field}"))- };- let rate = |field: &str| {- video- .get(field)- .and_then(Value::as_i64)- .filter(|value| *value > 0)- .ok_or_else(|| format!("the template has no usable {field}"))- };-- Ok(TemplateInfo {- path: root.to_string_lossy().into_owned(),- name: document- .get("name")- .and_then(Value::as_str)- .unwrap_or("Template")- .to_owned(),- width: dimension("width")?,- height: dimension("height")?,- rate_num: rate("rateNum")?,- rate_den: rate("rateDen")?,- slots: slots_of(&document),- has_poster: root.join(POSTER).exists(),- })-}--/// The placeholder media of a document, ordered by when each first appears-/// on the active timeline - the order a user fills them in.-///-/// Typed through the engine's own reader: a schema change breaks this at-/// compile time, not as a gallery that silently shows no slots.-fn slots_of(document: &Value) -> Vec<SlotInfo> {- let Some(project) = concat_project::from_document(document) else {- return Vec::new();- };- let clips = project- .timelines- .iter()- .find(|timeline| timeline.id == project.active_timeline_id)- .or_else(|| project.timelines.first())- .map(|timeline| timeline.clips.as_slice())- .unwrap_or(&[]);-- let mut slots: Vec<(f64, SlotInfo)> = Vec::new();- for item in &project.media {- if !item.placeholder {- continue;- }-- let mut first = f64::MAX;- let mut seconds = 0.0;- for clip in clips.iter().filter(|clip| clip.media_id == item.id) {- first = first.min(clip.start);- seconds += clip.duration;- }-- slots.push((- first,- SlotInfo {- media_id: item.id.clone(),- name: item.name.clone(),- kind: match item.kind {- concat_project::model::MediaKind::Video => "video",- concat_project::model::MediaKind::Audio => "audio",- concat_project::model::MediaKind::Image => "image",- }- .to_owned(),- seconds,- },- ));- }- slots.sort_by(|(left, _), (right, _)| left.total_cmp(right));- slots.into_iter().map(|(_, slot)| slot).collect()-}--/// Unpacks a template into a fresh project with every slot filled.-///-/// The fills go through the engine as one `Batch` of `FillSlot` commands, so-/// the semantics live in `concat-project` and a half-fillable set of media-/// leaves no half-made project behind.-pub fn instantiate(- template: &str,- location: &str,- name: &str,- fills: Vec<SlotFill>,-) -> Result<projects::ProjectInfo, String> {- let bundle = PathBuf::from(template);- let manifest = bundle.join(MANIFEST);- let bytes = std::fs::read(&manifest)- .map_err(|error| format!("could not read {}: {error}", manifest.display()))?;- let mut document: Value = serde_json::from_slice(&bytes)- .map_err(|error| format!("{} is not a template: {error}", manifest.display()))?;- let info = read_info(&bundle)?;-- let unfilled: Vec<&SlotInfo> = info- .slots- .iter()- .filter(|slot| !fills.iter().any(|fill| fill.media_id == slot.media_id))- .collect();- if !unfilled.is_empty() {- return Err(format!("{} slot(s) still need a clip", unfilled.len()));- }-- let project =- projects::create(location, name, info.width, info.height, info.rate_num, info.rate_den)?;- let root = PathBuf::from(&project.path);-- // The bundle's assets move into the project so it stands alone; the- // document's relative paths become project-local absolute ones.- copy_assets(&bundle.join(ASSETS), &root.join(ASSETS))?;- document["name"] = Value::String(project.name.clone());- for section in ["media", "fonts"] {- if let Some(items) = document.get_mut(section).and_then(Value::as_array_mut) {- for item in items {- let Some(path) = item.get("path").and_then(Value::as_str) else { continue };- if let Some(relative) = path.strip_prefix(&format!("{ASSETS}/")) {- let absolute = root.join(ASSETS).join(relative);- item["path"] = Value::String(absolute.to_string_lossy().into_owned());- }- }- }- }-- let mut editor = Editor::from_document(&document)- .ok_or("this template holds a document this build cannot read")?;- if !fills.is_empty() {- editor- .apply(Command::Batch {- commands: fills- .into_iter()- .map(|fill| Command::FillSlot { media_id: fill.media_id, item: fill.item })- .collect(),- })- .map_err(|error| format!("could not fill the template: {error}"))?;- }-- let settings = DocumentSettings {- name: project.name.clone(),- width: info.width,- height: info.height,- rate_num: info.rate_num,- rate_den: info.rate_den,- };- projects::save(&project.path, &editor.to_document(&settings))?;-- // After the save, so the cached poster reads as fresh.- if bundle.join(POSTER).is_file() {- let cache = root.join("cache");- let _ = std::fs::create_dir_all(&cache);- let _ = std::fs::copy(bundle.join(POSTER), cache.join("preview.jpg"));- }-- Ok(project)-}--fn copy_assets(from: &Path, to: &Path) -> Result<(), String> {- let Ok(entries) = std::fs::read_dir(from) else {- return Ok(()); // a template with no bundled assets- };- std::fs::create_dir_all(to)- .map_err(|error| format!("could not create {}: {error}", to.display()))?;- for entry in entries.filter_map(|entry| entry.ok()) {- let source = entry.path();- if source.is_file() {- let destination = to.join(entry.file_name());- std::fs::copy(&source, &destination).map_err(|error| {- format!("could not copy {}: {error}", source.display())- })?;- }- }- Ok(())-}--/// Removes one template bundle for good.-///-/// Only ever a folder inside the templates directory that actually holds a-/// manifest - this function deletes recursively, and a stray path here would-/// be a catastrophe, so it is checked rather than trusted.-pub fn delete(config: &Path, path: &str) -> Result<(), String> {- let target = PathBuf::from(path);- let library = templates_dir(config);- let (Ok(target), Ok(library)) = (target.canonicalize(), library.canonicalize()) else {- return Err(format!("{path} is not a template"));- };- if !target.starts_with(&library) || target == library || !target.join(MANIFEST).is_file() {- return Err(format!("{path} is not a template"));- }- std::fs::remove_dir_all(&target)- .map_err(|error| format!("could not delete {}: {error}", target.display()))-}--/// The poster bytes for one bundle, or an error the UI treats as "no art".-pub fn poster(path: &str) -> Result<Vec<u8>, String> {- std::fs::read(Path::new(path).join(POSTER))- .map_err(|error| format!("no poster for {path}: {error}"))-}--#[cfg(test)]-mod tests {- use super::*;- use serde_json::json;-- fn template_document() -> Value {- json!({- "wolfcut": "0.1.0", "version": 1, "name": "Beat Intro",- "video": { "width": 1920, "height": 1080, "rateNum": 30, "rateDen": 1 },- "media": [- { "id": "m1", "path": "", "name": "A-roll", "duration": 4.0, "kind": "video",- "hasAudio": true, "placeholder": true },- { "id": "m2", "path": "", "name": "B-roll", "duration": 2.0, "kind": "video",- "hasAudio": false, "placeholder": true }- ],- "tracks": [{ "id": "T1", "name": "Track 1", "visible": true, "muted": false }],- "clips": [- { "id": "c2", "trackId": "T1", "mediaId": "m2", "name": "B-roll",- "kind": "video", "start": 4.0, "duration": 2.0, "sourceStart": 0.0,- "volume": 1.0, "fadeIn": 0.0, "fadeOut": 0.0, "scale": 1.0,- "offsetX": 0.0, "offsetY": 0.0, "rotation": 0.0, "opacity": 1.0,- "speed": 1.0, "preservePitch": true, "filters": [], "videoEffects": [] },- { "id": "c1", "trackId": "T1", "mediaId": "m1", "name": "A-roll",- "kind": "video", "start": 0.0, "duration": 4.0, "sourceStart": 1.0,- "volume": 1.0, "fadeIn": 0.0, "fadeOut": 0.0, "scale": 1.0,- "offsetX": 0.0, "offsetY": 0.0, "rotation": 0.0, "opacity": 1.0,- "speed": 1.0, "preservePitch": true, "filters": [], "videoEffects": [] }- ]- })- }-- #[test]- fn slots_come_back_in_timeline_order() {- // c2 is listed first but starts later; the fill order is by time.- let slots = slots_of(&template_document());- assert_eq!(slots.len(), 2);- assert_eq!(slots[0].media_id, "m1");- assert_eq!(slots[0].seconds, 4.0);- assert_eq!(slots[1].media_id, "m2");- }-- #[test]- fn saving_packs_a_bundle_and_it_round_trips() {- let scratch = std::env::temp_dir().join("wolfcut-template-save-test");- let _ = std::fs::remove_dir_all(&scratch);- let config = scratch.join("config");- let project = scratch.join("project");- std::fs::create_dir_all(&project).expect("scratch dirs");-- // A real file for the bundled music; the placeholder needs none.- let music = project.join("music.mp3");- std::fs::write(&music, b"not really an mp3").expect("writes");-- let mut document = template_document();- {- let media = document["media"].as_array_mut().expect("media");- // m1 stays a placeholder; m2 becomes ordinary bundled media.- media[1]["placeholder"] = Value::Bool(false);- media[1]["path"] = Value::String(music.to_string_lossy().into_owned());- media[1]["kind"] = Value::String("audio".to_owned());- }-- let settings = concat_project::DocumentSettings {- name: "Beat Intro".to_owned(),- width: 1920,- height: 1080,- rate_num: 30,- rate_den: 1,- };- let info = save(&config, &document, &settings, &project.to_string_lossy(), "Beat Intro")- .expect("saves");- assert_eq!(info.name, "Beat Intro");- assert_eq!(info.slots.len(), 1, "only the placeholder is a slot");- assert_eq!(info.slots[0].media_id, "m1");-- // The same name again is refused, not overwritten.- assert!(- save(&config, &document, &settings, &project.to_string_lossy(), "Beat Intro")- .is_err()- );-- let bundle = PathBuf::from(&info.path);- let packed: Value = serde_json::from_slice(- &std::fs::read(bundle.join(MANIFEST)).expect("manifest"),- )- .expect("parses");- let media = packed["media"].as_array().expect("media");- assert_eq!(media[0]["path"], "", "the placeholder's path is blanked");- let bundled = media[1]["path"].as_str().expect("path");- assert!(bundled.starts_with("assets/"), "bundled media went relative: {bundled}");- assert!(bundle.join(bundled).is_file(), "and the file really is in the bundle");-- assert_eq!(list(&config).len(), 1, "the library sees it");-- // And it instantiates: the asset lands in the project, absolute.- let location = scratch.join("projects");- std::fs::create_dir_all(&location).expect("scratch dir");- let made = instantiate(- &info.path,- &location.to_string_lossy(),- "From bundle",- vec![SlotFill {- media_id: "m1".to_owned(),- item: concat_project::commands::NewMedia {- path: "/mine/clip.mp4".to_owned(),- name: "clip.mp4".to_owned(),- duration: Some(6.0),- kind: concat_project::model::MediaKind::Video,- width: Some(1920),- height: Some(1080),- frame_rate: Some(30.0),- frame_rate_fraction: Some("30/1".to_owned()),- video_codec: Some("h264".to_owned()),- audio_codec: None,- has_audio: false,- },- }],- )- .expect("instantiates");-- let opened = projects::read_document(&made.path).expect("reads back");- let media = opened["media"].as_array().expect("media");- let sound = media[1]["path"].as_str().expect("path");- assert!(- Path::new(sound).is_absolute() && Path::new(sound).is_file(),- "the bundled asset was copied into the project and repointed: {sound}"- );-- let _ = std::fs::remove_dir_all(&scratch);- }-- #[test]- fn instantiating_fills_through_the_engine() {- let scratch = std::env::temp_dir().join("wolfcut-template-test");- let _ = std::fs::remove_dir_all(&scratch);- let bundle = scratch.join("templates").join("Beat Intro");- std::fs::create_dir_all(&bundle).expect("scratch dir");- std::fs::write(- bundle.join(MANIFEST),- serde_json::to_vec(&template_document()).expect("encodes"),- )- .expect("writes");-- let fill = |media_id: &str, path: &str| SlotFill {- media_id: media_id.to_owned(),- item: concat_project::commands::NewMedia {- path: path.to_owned(),- name: path.rsplit('/').next().unwrap_or(path).to_owned(),- duration: Some(9.0),- kind: concat_project::model::MediaKind::Video,- width: Some(1920),- height: Some(1080),- frame_rate: Some(30.0),- frame_rate_fraction: Some("30/1".to_owned()),- video_codec: Some("h264".to_owned()),- audio_codec: None,- has_audio: false,- },- };-- let projects_dir = scratch.join("projects");- std::fs::create_dir_all(&projects_dir).expect("scratch dir");- let location = projects_dir.to_string_lossy().into_owned();-- // Missing a slot is refused before any folder is written.- let refused = instantiate(- &bundle.to_string_lossy(),- &location,- "Missing",- vec![fill("m1", "/mine/a.mp4")],- );- assert!(refused.unwrap_err().contains("slot"));-- let project = instantiate(- &bundle.to_string_lossy(),- &location,- "My edit",- vec![fill("m1", "/mine/a.mp4"), fill("m2", "/mine/b.mp4")],- )- .expect("instantiates");- assert_eq!((project.width, project.height), (1920, 1080));-- let document = projects::read_document(&project.path).expect("reads back");- let media = document["media"].as_array().expect("media");- assert!(media.iter().all(|item| {- !item.get("placeholder").and_then(Value::as_bool).unwrap_or(false)- }));- assert_eq!(media[0]["path"], "/mine/a.mp4");- // The slot kept the template's timing; the in-point reset (c1 had 1.0).- let clips = document["clips"].as_array().expect("clips");- let c1 = clips.iter().find(|clip| clip["id"] == "c1").expect("c1");- assert_eq!(c1["start"], 0.0);- assert_eq!(c1["duration"], 4.0);- assert_eq!(c1["sourceStart"], 0.0);-- let _ = std::fs::remove_dir_all(&scratch);- }-}diff --git a/desktop/src-tauri/src/transcribe.rs b/desktop/src-tauri/src/transcribe.rsdeleted file mode 100644index 4819a5f7..00000000--- a/desktop/src-tauri/src/transcribe.rs+++ /dev/null@@ -1,654 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Whisper.cpp transcription: audio in, timed caption segments out.-//!-//! The same shape as every other media operation in this app: spawn a child-//! process, feed it a file, read a file back, kill it to cancel. Whisper gets-//! that treatment for the reasons FFmpeg does (see-//! `engine/docs/decisions/0002`): no linkage, no unsafe, and cancellation is-//! `Child::kill`.-//!-//! Three pieces:-//!-//! 1. **The binary.** `whisper-cli` ships inside the app, staged at build-//! like FFmpeg; the release guard refuses to build without it. The search-//! below still honours a remembered override first and falls back to the-//! app data folder, beside the executable, then PATH - for dev builds and-//! for anyone who insists on their own copy.-//! 2. **Models.** Downloaded on demand from Hugging Face into the app data-//! folder as plain `.bin` files, streamed with progress events, written to-//! a `.part` and renamed - a torn download must never look usable.-//! 3. **Transcription.** FFmpeg (the bundled one) extracts the clip's window-//! as 16 kHz mono WAV - the input whisper wants - then `whisper-cli`-//! writes JSON, which is parsed into segments relative to the window.-//!-//! This lives in the host rather than `concat-media` for now: the engine has-//! no caption concept, and model downloads certainly do not belong there. If-//! the engine grows an audio-analysis seam, the runner half graduates.--use std::io::Read;-use std::path::{Path, PathBuf};-use std::process::{Child, Command, Stdio};-use std::sync::atomic::Ordering;-use std::sync::{Arc, Mutex};--use serde::Serialize;-use tauri::{Emitter, Manager};--use crate::jobs::SingleFlight;--/// One downloadable Whisper model. Sizes are approximate, for progress bars-/// when the server declines to send a Content-Length.-struct KnownModel {- id: &'static str,- label: &'static str,- /// One line for the settings row: what this size trades away.- blurb: &'static str,- approx_bytes: u64,- english_only: bool,-}--/// The models the settings panel offers, fastest first.-///-/// All from the official `ggerganov/whisper.cpp` conversions. Nothing bigger-/// than `small`: `medium` is 1.5 GB and minutes-per-minute on CPU, which is-/// the opposite of what this feature is for.-const KNOWN_MODELS: &[KnownModel] = &[- KnownModel {- id: "tiny.en",- label: "Tiny (English)",- blurb: "Fastest draft. Rough on names and punctuation.",- approx_bytes: 77_700_000,- english_only: true,- },- KnownModel {- id: "tiny",- label: "Tiny (Multilingual)",- blurb: "Fastest draft, any language.",- approx_bytes: 77_700_000,- english_only: false,- },- KnownModel {- id: "base.en",- label: "Base (English)",- blurb: "The sweet spot: solid captions at ~10x realtime.",- approx_bytes: 147_400_000,- english_only: true,- },- KnownModel {- id: "base",- label: "Base (Multilingual)",- blurb: "Solid captions, any language.",- approx_bytes: 147_500_000,- english_only: false,- },- KnownModel {- id: "small.en",- label: "Small (English)",- blurb: "Noticeably better wording; a few times slower.",- approx_bytes: 487_600_000,- english_only: true,- },- KnownModel {- id: "small",- label: "Small (Multilingual)",- blurb: "Best quality offered, any language.",- approx_bytes: 487_600_000,- english_only: false,- },-];--fn known(id: &str) -> Option<&'static KnownModel> {- KNOWN_MODELS.iter().find(|model| model.id == id)-}--fn model_url(id: &str) -> String {- format!("https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-{id}.bin")-}--/// Where downloaded models live: `<app data>/whisper-models/ggml-<id>.bin`.-fn models_dir(app: &tauri::AppHandle) -> Result<PathBuf, String> {- let dir = app- .path()- .app_data_dir()- .map_err(|error| format!("could not locate the data directory: {error}"))?- .join("whisper-models");- std::fs::create_dir_all(&dir)- .map_err(|error| format!("could not create {}: {error}", dir.display()))?;- Ok(dir)-}--fn model_file(app: &tauri::AppHandle, id: &str) -> Result<PathBuf, String> {- // Ids come from our own table; anything else is a bug, not input.- known(id).ok_or_else(|| format!("unknown model {id:?}"))?;- Ok(models_dir(app)?.join(format!("ggml-{id}.bin")))-}--/// The remembered settings: today just where `whisper-cli` is.-fn config_file(app: &tauri::AppHandle) -> Result<PathBuf, String> {- let dir = app- .path()- .app_config_dir()- .map_err(|error| format!("could not locate the config directory: {error}"))?;- std::fs::create_dir_all(&dir)- .map_err(|error| format!("could not create {}: {error}", dir.display()))?;- Ok(dir.join("transcriber.json"))-}--fn remembered_binary(app: &tauri::AppHandle) -> Option<PathBuf> {- let file = config_file(app).ok()?;- let text = std::fs::read_to_string(file).ok()?;- let value: serde_json::Value = serde_json::from_str(&text).ok()?;- let path = PathBuf::from(value.get("binary")?.as_str()?);- path.is_file().then_some(path)-}--/// Finds `whisper-cli`, checking the remembered choice first, then the app-/// data folder, beside the executable, and finally PATH. `main` is accepted-/// too - the name the tool shipped under before it was renamed.-fn find_binary(app: &tauri::AppHandle) -> Option<PathBuf> {- if let Some(path) = remembered_binary(app) {- return Some(path);- }-- let names: &[&str] = if cfg!(windows) {- &["whisper-cli.exe", "whisper-main.exe", "main.exe"]- } else {- &["whisper-cli", "whisper-main"]- };-- let mut directories: Vec<PathBuf> = Vec::new();- if let Ok(data) = app.path().app_data_dir() {- directories.push(data.join("whisper"));- }- if let Ok(resources) = app.path().resource_dir() {- directories.push(resources.join("whisper"));- }- if let Ok(executable) = std::env::current_exe() {- if let Some(parent) = executable.parent() {- directories.push(parent.to_path_buf());- }- }-- for directory in &directories {- for name in names {- let candidate = directory.join(name);- if candidate.is_file() {- return Some(candidate);- }- }- }-- // PATH last, and only the canonical name: a bare `main` on PATH could be- // absolutely anything.- let path = std::env::var_os("PATH")?;- for directory in std::env::split_paths(&path) {- let candidate = directory.join(if cfg!(windows) { "whisper-cli.exe" } else { "whisper-cli" });- if candidate.is_file() {- return Some(candidate);- }- }- None-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct ModelStatus {- id: String,- label: String,- blurb: String,- english_only: bool,- /// Approximate download size in bytes, for display.- size_bytes: u64,- downloaded: bool,-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct TranscriberStatus {- /// Where `whisper-cli` was found, or null when it was not.- binary: Option<String>,- /// True when the binary in use is the copy shipped inside the app.- bundled: bool,- /// Where models are stored, so the settings panel can say so.- models_dir: String,- models: Vec<ModelStatus>,-}--/// What the settings panel shows: binary location and per-model state.-#[tauri::command]-pub fn transcriber_status(app: tauri::AppHandle) -> Result<TranscriberStatus, String> {- let dir = models_dir(&app)?;- let binary = find_binary(&app);- let bundled = match (&binary, app.path().resource_dir()) {- (Some(path), Ok(resources)) => path.starts_with(&resources),- _ => false,- };- Ok(TranscriberStatus {- binary: binary.map(|path| path.to_string_lossy().into_owned()),- bundled,- models_dir: dir.to_string_lossy().into_owned(),- models: KNOWN_MODELS- .iter()- .map(|model| ModelStatus {- id: model.id.to_owned(),- label: model.label.to_owned(),- blurb: model.blurb.to_owned(),- english_only: model.english_only,- size_bytes: model.approx_bytes,- downloaded: dir.join(format!("ggml-{}.bin", model.id)).is_file(),- })- .collect(),- })-}--/// Remembers a user-chosen `whisper-cli` after checking it exists.-#[tauri::command]-pub fn set_transcriber_binary(app: tauri::AppHandle, path: String) -> Result<TranscriberStatus, String> {- if !Path::new(&path).is_file() {- return Err(format!("{path} is not a file"));- }- let file = config_file(&app)?;- let document = serde_json::json!({ "binary": path });- std::fs::write(&file, serde_json::to_string_pretty(&document).unwrap_or_default())- .map_err(|error| format!("could not write {}: {error}", file.display()))?;- transcriber_status(app)-}--/// Progress for one model download, emitted as `transcriber://download`.-#[derive(Clone, Serialize)]-#[serde(rename_all = "camelCase")]-struct DownloadProgress {- id: String,- received: u64,- /// Content-Length when the server sent one, the table estimate otherwise.- total: u64,- done: bool,-}--/// The slot for the one model download that can run at a time. Enforced by-/// `SingleFlight`: a second download is refused rather than sharing (and-/// resetting) the first one's cancel flag.-pub struct DownloadState(pub Arc<SingleFlight>);--/// Streams one model from Hugging Face into the models folder.-///-/// Written to `<file>.part` and renamed at the end: a download killed halfway-/// must never be mistaken for a model, because whisper would fail on it with-/// a message that blames the model rather than the download.-#[tauri::command]-pub async fn download_transcriber_model(- app: tauri::AppHandle,- state: tauri::State<'_, DownloadState>,- id: String,-) -> Result<(), String> {- let job = state.0.begin("model download")?;-- tauri::async_runtime::spawn_blocking(move || {- let cancel = job.cancel_flag();- let destination = model_file(&app, &id)?;- if destination.is_file() {- return Ok(());- }- let estimate = known(&id).map(|model| model.approx_bytes).unwrap_or(0);-- // A read timeout, or a stalled connection blocks in `read` forever- // with the cancel flag unreachable - the flag is only checked between- // reads. Thirty seconds without a byte means the download is dead.- let agent = ureq::AgentBuilder::new()- .timeout_connect(std::time::Duration::from_secs(20))- .timeout_read(std::time::Duration::from_secs(30))- .build();- let response = agent- .get(&model_url(&id))- .call()- .map_err(|error| format!("download failed: {error}"))?;- let total = response- .header("Content-Length")- .and_then(|value| value.parse::<u64>().ok())- .unwrap_or(estimate);-- let partial = destination.with_extension("bin.part");- let mut file = std::fs::File::create(&partial)- .map_err(|error| format!("could not create {}: {error}", partial.display()))?;-- let mut reader = response.into_reader();- let mut buffer = [0u8; 64 * 1024];- let mut received: u64 = 0;- let mut last_report: u64 = 0;-- loop {- if cancel.load(Ordering::Relaxed) {- drop(file);- let _ = std::fs::remove_file(&partial);- return Err("download cancelled".to_owned());- }- let read = reader- .read(&mut buffer)- .map_err(|error| format!("download interrupted: {error}"))?;- if read == 0 {- break;- }- std::io::Write::write_all(&mut file, &buffer[..read])- .map_err(|error| format!("could not write model: {error}"))?;- received += read as u64;-- // Every 2 MB, not every chunk: the event crosses the IPC bridge.- if received - last_report >= 2 * 1024 * 1024 {- last_report = received;- let _ = app.emit(- "transcriber://download",- DownloadProgress { id: id.clone(), received, total, done: false },- );- }- }-- drop(file);- std::fs::rename(&partial, &destination)- .map_err(|error| format!("could not finish {}: {error}", destination.display()))?;- let _ = app.emit(- "transcriber://download",- DownloadProgress { id: id.clone(), received, total: received.max(total), done: true },- );- Ok(())- })- .await- .map_err(|error| format!("download task failed: {error}"))?-}--/// Asks the running download to stop. Idle is a harmless no-op.-#[tauri::command]-pub fn cancel_model_download(state: tauri::State<'_, DownloadState>) {- state.0.cancel();-}--/// Removes a downloaded model file.-#[tauri::command]-pub fn delete_transcriber_model(app: tauri::AppHandle, id: String) -> Result<(), String> {- let file = model_file(&app, &id)?;- std::fs::remove_file(&file)- .map_err(|error| format!("could not remove {}: {error}", file.display()))-}--/// One caption, in seconds relative to the transcribed window's start.-#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct Segment {- start: f64,- end: f64,- text: String,-}--/// The one transcription that can run at a time: a gate that refuses a-/// second concurrent run, and the child being run so a cancel can kill it-/// mid-transcription. Without the gate, a second `transcribe_clip` used to-/// overwrite the child slot - orphaning the first child unkilled and unwaited-/// while both wait loops polled the second.-pub struct TranscribeState {- gate: Arc<SingleFlight>,- child: Arc<Mutex<Option<Child>>>,-}--impl TranscribeState {- pub fn new() -> Self {- Self {- gate: Arc::new(SingleFlight::new()),- child: Arc::new(Mutex::new(None)),- }- }-}--/// Runs `command`, parking the child in `slot` so `cancel_transcribe` can-/// reach it, and waits for it to finish.-fn run_killable(- mut command: Command,- slot: &Arc<Mutex<Option<Child>>>,- what: &str,-) -> Result<(), String> {- let child = command- .stdin(Stdio::null())- .stdout(Stdio::null())- .stderr(Stdio::piped())- .spawn()- .map_err(|error| format!("could not run {what}: {error}"))?;-- *slot.lock().expect("transcribe slot poisoned") = Some(child);-- // Wait without holding the lock, or cancel could never take it to kill.- let mut stderr_tail = String::new();- let status = loop {- let mut guard = slot.lock().expect("transcribe slot poisoned");- let Some(child) = guard.as_mut() else {- return Err("transcription cancelled".to_owned());- };- match child.try_wait() {- Ok(Some(status)) => {- if let Some(mut stderr) = child.stderr.take() {- let _ = stderr.read_to_string(&mut stderr_tail);- }- *guard = None;- break status;- }- Ok(None) => {}- Err(error) => {- *guard = None;- return Err(format!("{what} failed: {error}"));- }- }- drop(guard);- std::thread::sleep(std::time::Duration::from_millis(60));- };-- if status.success() {- Ok(())- } else {- let tail: String = stderr_tail.lines().rev().take(3).collect::<Vec<_>>().join(" / ");- Err(format!("{what} exited with {status}: {tail}"))- }-}--/// Extracts a window of `source` as 16 kHz mono WAV - the input whisper wants.-fn extract_wav(- source: &str,- start: f64,- duration: f64,- destination: &Path,- slot: &Arc<Mutex<Option<Child>>>,-) -> Result<(), String> {- let mut command = concat_media::command(concat_media::ffmpeg());- command- .args(["-hide_banner", "-nostdin", "-loglevel", "error", "-y"])- .args(["-ss", &format!("{start:.6}")])- .args(["-t", &format!("{duration:.6}")])- .args(["-i", source])- .args(["-vn", "-ac", "1", "-ar", "16000", "-c:a", "pcm_s16le"])- .arg(destination);- run_killable(command, slot, "ffmpeg")-}--#[derive(serde::Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct TranscribeRequest {- /// The media file to transcribe.- pub path: String,- /// Seconds into the file where the clip's source window begins.- pub source_start: f64,- /// How much source the clip covers, in seconds (`duration * speed`).- pub window: f64,- /// Whisper language code, or "auto".- pub language: String,- /// Which model to use, e.g. "base.en".- pub model_id: String,-}--/// Transcribes one clip's audio window into caption segments.-///-/// Timestamps come back relative to the window: 0 is `source_start`. The-/// frontend owns the clip, so the map onto the timeline (divide by speed, add-/// the clip's start) happens there, next to the numbers it needs.-#[tauri::command]-pub async fn transcribe_clip(- app: tauri::AppHandle,- state: tauri::State<'_, TranscribeState>,- request: TranscribeRequest,-) -> Result<Vec<Segment>, String> {- let job = state.gate.begin("transcription")?;- let slot = Arc::clone(&state.child);- tauri::async_runtime::spawn_blocking(move || {- let result = run_transcription(&app, &slot, &request);- drop(job);- result- })- .await- .map_err(|error| format!("transcribe task failed: {error}"))?-}--/// Kills the running transcription's child process, if any.-#[tauri::command]-pub fn cancel_transcribe(state: tauri::State<'_, TranscribeState>) {- let mut guard = state.child.lock().expect("transcribe slot poisoned");- if let Some(mut child) = guard.take() {- let _ = child.kill();- let _ = child.wait();- }-}--fn run_transcription(- app: &tauri::AppHandle,- slot: &Arc<Mutex<Option<Child>>>,- request: &TranscribeRequest,-) -> Result<Vec<Segment>, String> {- let binary = find_binary(app).ok_or_else(|| {- "whisper-cli was not found - point Settings > Transcriber at it".to_owned()- })?;- let model = model_file(app, &request.model_id)?;- if !model.is_file() {- return Err(format!(- "model {} is not downloaded - see Settings > Transcriber",- request.model_id- ));- }- // NaN is refused along with zero and negative windows.- if request.window.is_nan() || request.window <= 0.0 {- return Err("nothing to transcribe: the clip covers no time".to_owned());- }-- // Unique scratch names, so two clips transcribed back to back (or a- // crashed run's leftovers) can never collide.- // Wall-clock millis alone collide when two runs start in the same- // instant; the process id and a counter make the name unique without- // reaching for a random source.- static RUNS: std::sync::atomic::AtomicU64 = std::sync::atomic::AtomicU64::new(0);- let nonce = format!(- "{}-{}-{}",- std::time::SystemTime::now()- .duration_since(std::time::UNIX_EPOCH)- .map(|elapsed| elapsed.as_millis())- .unwrap_or(0),- std::process::id(),- RUNS.fetch_add(1, std::sync::atomic::Ordering::Relaxed),- );- let scratch = std::env::temp_dir();- let wav = scratch.join(format!("wolfcut-transcribe-{nonce}.wav"));- let out_base = scratch.join(format!("wolfcut-transcribe-{nonce}"));- let json = scratch.join(format!("wolfcut-transcribe-{nonce}.json"));-- let result = (|| {- extract_wav(&request.path, request.source_start, request.window, &wav, slot)?;-- let threads = std::thread::available_parallelism()- .map(|count| count.get().min(8))- .unwrap_or(4);-- let mut command = concat_media::command(&binary);- command- .arg("-m")- .arg(&model)- .arg("-f")- .arg(&wav)- .args(["-l", &request.language])- .args(["-t", &threads.to_string()])- // JSON to a file: stdout is progress noise, the file is the data.- .arg("-oj")- .arg("-of")- .arg(&out_base)- .args(["-np"]);- run_killable(command, slot, "whisper-cli")?;-- let text = std::fs::read_to_string(&json)- .map_err(|error| format!("whisper wrote no output: {error}"))?;- parse_whisper_json(&text)- })();-- // Scratch files are meaningless the moment we have segments (or gave up).- let _ = std::fs::remove_file(&wav);- let _ = std::fs::remove_file(&json);-- result-}--/// Pulls segments out of whisper-cli's `-oj` JSON.-///-/// Only `offsets` (integer milliseconds) are read. The pretty `timestamps`-/// strings next to them are for subtitle files, and parsing clocks out of-/// strings when the integers sit right there would be self-harm.-fn parse_whisper_json(text: &str) -> Result<Vec<Segment>, String> {- let root: serde_json::Value =- serde_json::from_str(text).map_err(|error| format!("whisper output was not json: {error}"))?;- let entries = root- .get("transcription")- .and_then(|value| value.as_array())- .ok_or_else(|| "whisper output had no `transcription` array".to_owned())?;-- Ok(entries- .iter()- .filter_map(|entry| {- let offsets = entry.get("offsets")?;- let start = offsets.get("from")?.as_u64()? as f64 / 1000.0;- let end = offsets.get("to")?.as_u64()? as f64 / 1000.0;- let text = entry.get("text")?.as_str()?.trim().to_owned();- // Whisper marks silence and music with bracketed stage directions- // ("[BLANK_AUDIO]", "(upbeat music)"). Those are not captions.- if text.is_empty() || (text.starts_with('[') && text.ends_with(']')) {- return None;- }- (end > start).then_some(Segment { start, end, text })- })- .collect())-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn parses_whisper_segments() {- let json = r#"{"transcription":[- {"offsets":{"from":0,"to":2500},"text":" Hello there."},- {"offsets":{"from":2500,"to":2500},"text":"degenerate"},- {"offsets":{"from":3000,"to":4000},"text":"[BLANK_AUDIO]"},- {"offsets":{"from":4000,"to":6000},"text":" Second line "}- ]}"#;- let segments = parse_whisper_json(json).expect("parses");- assert_eq!(segments.len(), 2);- assert_eq!(segments[0].text, "Hello there.");- assert_eq!(segments[0].start, 0.0);- assert_eq!(segments[0].end, 2.5);- assert_eq!(segments[1].text, "Second line");- }-- #[test]- fn refuses_output_with_no_transcription() {- assert!(parse_whisper_json("{}").is_err());- assert!(parse_whisper_json("not json").is_err());- }-- #[test]- fn every_known_model_has_a_url_and_file_name() {- for model in KNOWN_MODELS {- assert!(model_url(model.id).ends_with(&format!("ggml-{}.bin", model.id)));- assert!(model.approx_bytes > 0);- }- }-}diff --git a/desktop/src-tauri/src/tts.rs b/desktop/src-tauri/src/tts.rsdeleted file mode 100644index da5a7c72..00000000--- a/desktop/src-tauri/src/tts.rs+++ /dev/null@@ -1,683 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! Kokoro text-to-speech: text in, a narration WAV in the project folder out.-//!-//! The same local-first shape as transcription (`transcribe.rs`), with one-//! difference: whisper runs as a child process, Kokoro runs in-process-//! through sherpa-onnx (the official k2-fsa bindings, statically linked).-//! In-process because there is no `kokoro-cli` worth shipping, and because-//! sherpa's progress callback gives us cancellation anyway - returning-//! `false` from it stops synthesis mid-sentence.-//!-//! Three pieces:-//!-//! 1. **Models.** Kokoro ships as a tar.bz2 bundle (the network, the voice-//! bank, espeak-ng data, lexicons), downloaded on demand from the-//! sherpa-onnx releases into `<app data>/tts-models/<id>/`. Streamed to a-//! `.part`, unpacked through a staging folder and renamed - a torn-//! download or unpack must never look usable.-//! 2. **Voices.** Kokoro is one model with many built-in speakers, addressed-//! by integer id. The table below names the ones we offer - the English-//! and Chinese speakers, the languages this model's lexicons actually-//! cover.-//! 3. **Synthesis.** The engine loads once and is cached until the model-//! changes or is deleted; each request writes a WAV into the project's-//! `audio/` folder (not `cache/` - cache is regenerable, narration the-//! user placed on the timeline is not) and returns its path for the-//! frontend to import like any other media file.--use std::io::Read;-use std::path::PathBuf;-use std::sync::atomic::Ordering;-use std::sync::{Arc, Mutex};--use serde::{Deserialize, Serialize};-use sherpa_onnx::{- GenerationConfig, OfflineTts, OfflineTtsConfig, OfflineTtsKokoroModelConfig,- OfflineTtsModelConfig,-};-use tauri::{Emitter, Manager};--use crate::jobs::SingleFlight;-use crate::projects;--/// One downloadable Kokoro bundle. Sizes are approximate, for progress bars-/// when the server declines to send a Content-Length.-struct KnownModel {- id: &'static str,- label: &'static str,- /// One line for the settings row: what this size trades away.- blurb: &'static str,- approx_bytes: u64,-}--/// The models the settings panel offers, smallest first.-///-/// Both are Kokoro v1.0 multi-language (English + Chinese) from the official-/// sherpa-onnx conversions; they differ only in quantisation. The int8 build-/// is the default recommendation - a third of the download for a difference-/// most ears never find.-const KNOWN_MODELS: &[KnownModel] = &[- KnownModel {- id: "kokoro-int8-multi-lang-v1_0",- label: "Kokoro (compact)",- blurb: "The recommended build: same voices, a third of the download.",- approx_bytes: 131_839_838,- },- KnownModel {- id: "kokoro-multi-lang-v1_0",- label: "Kokoro (full precision)",- blurb: "Bit-perfect weights for the skeptical; rarely audibly better.",- approx_bytes: 349_418_188,- },-];--/// The speakers we offer, by Kokoro v1.0 speaker id.-///-/// The model bundles 53 voices across nine languages, but its lexicons (and-/// sherpa's text frontend) only genuinely cover English and Chinese, so only-/// those are listed. The name encodes accent and gender - `af` American-/// female, `bm` British male, `zf` Chinese female - which the frontend-/// decodes for display rather than us shipping 36 label strings.-const VOICES: &[(i32, &str)] = &[- (0, "af_alloy"),- (1, "af_aoede"),- (2, "af_bella"),- (3, "af_heart"),- (4, "af_jessica"),- (5, "af_kore"),- (6, "af_nicole"),- (7, "af_nova"),- (8, "af_river"),- (9, "af_sarah"),- (10, "af_sky"),- (11, "am_adam"),- (12, "am_echo"),- (13, "am_eric"),- (14, "am_fenrir"),- (15, "am_liam"),- (16, "am_michael"),- (17, "am_onyx"),- (18, "am_puck"),- (19, "am_santa"),- (20, "bf_alice"),- (21, "bf_emma"),- (22, "bf_isabella"),- (23, "bf_lily"),- (24, "bm_daniel"),- (25, "bm_fable"),- (26, "bm_george"),- (27, "bm_lewis"),- (45, "zf_xiaobei"),- (46, "zf_xiaoni"),- (47, "zf_xiaoxiao"),- (48, "zf_xiaoyi"),- (49, "zm_yunjian"),- (50, "zm_yunxi"),- (51, "zm_yunxia"),- (52, "zm_yunyang"),-];--fn known(id: &str) -> Option<&'static KnownModel> {- KNOWN_MODELS.iter().find(|model| model.id == id)-}--fn model_url(id: &str) -> String {- format!("https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/{id}.tar.bz2")-}--/// Where downloaded models live: `<app data>/tts-models/<id>/`.-fn models_dir(app: &tauri::AppHandle) -> Result<PathBuf, String> {- let dir = app- .path()- .app_data_dir()- .map_err(|error| format!("could not locate the data directory: {error}"))?- .join("tts-models");- std::fs::create_dir_all(&dir)- .map_err(|error| format!("could not create {}: {error}", dir.display()))?;- Ok(dir)-}--fn model_dir(app: &tauri::AppHandle, id: &str) -> Result<PathBuf, String> {- // Ids come from our own table; anything else is a bug, not input.- known(id).ok_or_else(|| format!("unknown model {id:?}"))?;- Ok(models_dir(app)?.join(id))-}--/// The `.onnx` network inside an unpacked bundle. Located by scanning rather-/// than by name because the archives disagree - `model.onnx` in the full-/// build, `model.int8.onnx` in the quantised one.-fn onnx_file(dir: &std::path::Path) -> Option<PathBuf> {- std::fs::read_dir(dir).ok()?.flatten().find_map(|entry| {- let path = entry.path();- (path.extension().is_some_and(|ext| ext == "onnx")).then_some(path)- })-}--/// A bundle counts as downloaded once its network is in place. The rename at-/// the end of unpacking makes this atomic: no folder, or a complete one.-fn model_downloaded(app: &tauri::AppHandle, id: &str) -> bool {- model_dir(app, id).is_ok_and(|dir| onnx_file(&dir).is_some())-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct ModelStatus {- id: String,- label: String,- blurb: String,- /// Approximate download size in bytes, for display.- size_bytes: u64,- downloaded: bool,-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct VoiceInfo {- /// Kokoro speaker id, what synthesis wants back.- id: i32,- /// The upstream voice name, e.g. "af_heart"; the frontend decodes the- /// accent/gender prefix and title-cases the rest.- name: String,-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct TtsStatus {- /// Where models are stored, so the settings panel can say so.- models_dir: String,- models: Vec<ModelStatus>,- voices: Vec<VoiceInfo>,-}--/// What the settings panel and the speech dialog show.-#[tauri::command]-pub fn tts_status(app: tauri::AppHandle) -> Result<TtsStatus, String> {- let dir = models_dir(&app)?;- Ok(TtsStatus {- models_dir: dir.to_string_lossy().into_owned(),- models: KNOWN_MODELS- .iter()- .map(|model| ModelStatus {- id: model.id.to_owned(),- label: model.label.to_owned(),- blurb: model.blurb.to_owned(),- size_bytes: model.approx_bytes,- downloaded: model_downloaded(&app, model.id),- })- .collect(),- voices: VOICES- .iter()- .map(|(id, name)| VoiceInfo {- id: *id,- name: (*name).to_owned(),- })- .collect(),- })-}--/// Progress for one model download, emitted as `tts://download`.-#[derive(Clone, Serialize)]-#[serde(rename_all = "camelCase")]-struct DownloadProgress {- id: String,- received: u64,- /// Content-Length when the server sent one, the table estimate otherwise.- total: u64,- /// True while the archive is being unpacked - bytes stop moving but the- /// job is far from done, and the bar should say so.- unpacking: bool,- done: bool,-}--/// The slot for the one model download that can run at a time.-pub struct TtsDownloadState(pub Arc<SingleFlight>);--/// Streams one bundle from the sherpa-onnx releases and unpacks it.-///-/// The archive lands in a `.part`, unpacks into a `.staging-<id>` folder, and-/// only the final rename puts `<id>/` in place - killed at any earlier point,-/// nothing is left that could be mistaken for a model.-#[tauri::command]-pub async fn download_tts_model(- app: tauri::AppHandle,- state: tauri::State<'_, TtsDownloadState>,- id: String,-) -> Result<(), String> {- let job = state.0.begin("voice model download")?;-- tauri::async_runtime::spawn_blocking(move || {- let cancel = job.cancel_flag();- let destination = model_dir(&app, &id)?;- if onnx_file(&destination).is_some() {- return Ok(());- }- let parent = models_dir(&app)?;- let estimate = known(&id).map(|model| model.approx_bytes).unwrap_or(0);-- // A read timeout, or a stalled connection blocks in `read` forever- // with the cancel flag unreachable - the flag is only checked between- // reads. Thirty seconds without a byte means the download is dead.- let agent = ureq::AgentBuilder::new()- .timeout_connect(std::time::Duration::from_secs(20))- .timeout_read(std::time::Duration::from_secs(30))- .build();- let response = agent- .get(&model_url(&id))- .call()- .map_err(|error| format!("download failed: {error}"))?;- let total = response- .header("Content-Length")- .and_then(|value| value.parse::<u64>().ok())- .unwrap_or(estimate);-- let archive = parent.join(format!("{id}.tar.bz2.part"));- let staging = parent.join(format!(".staging-{id}"));- let result = (|| {- let mut file = std::fs::File::create(&archive)- .map_err(|error| format!("could not create {}: {error}", archive.display()))?;-- let mut reader = response.into_reader();- let mut buffer = [0u8; 64 * 1024];- let mut received: u64 = 0;- let mut last_report: u64 = 0;-- loop {- if cancel.load(Ordering::Relaxed) {- return Err("download cancelled".to_owned());- }- let read = reader- .read(&mut buffer)- .map_err(|error| format!("download interrupted: {error}"))?;- if read == 0 {- break;- }- std::io::Write::write_all(&mut file, &buffer[..read])- .map_err(|error| format!("could not write model: {error}"))?;- received += read as u64;-- // Every 2 MB, not every chunk: the event crosses the IPC bridge.- if received - last_report >= 2 * 1024 * 1024 {- last_report = received;- let _ = app.emit(- "tts://download",- DownloadProgress {- id: id.clone(),- received,- total,- unpacking: false,- done: false,- },- );- }- }- drop(file);-- // Unpacking a 130 MB bz2 takes long enough to deserve its own- // phase on the progress bar.- let _ = app.emit(- "tts://download",- DownloadProgress {- id: id.clone(),- received,- total: received.max(total),- unpacking: true,- done: false,- },- );-- let _ = std::fs::remove_dir_all(&staging);- std::fs::create_dir_all(&staging)- .map_err(|error| format!("could not create {}: {error}", staging.display()))?;-- let file = std::fs::File::open(&archive)- .map_err(|error| format!("could not reopen the download: {error}"))?;- let tar = bzip2::read::BzDecoder::new(std::io::BufReader::new(file));- let mut entries = tar::Archive::new(tar);- for entry in entries- .entries()- .map_err(|error| format!("could not read the archive: {error}"))?- {- if cancel.load(Ordering::Relaxed) {- return Err("download cancelled".to_owned());- }- // `unpack_in` refuses paths that escape the staging folder,- // so a hostile archive can drop files nowhere else.- entry- .and_then(|mut entry| entry.unpack_in(&staging))- .map_err(|error| format!("could not unpack the archive: {error}"))?;- }-- let unpacked = staging.join(&id);- if onnx_file(&unpacked).is_none() {- return Err("the archive did not contain the expected model".to_owned());- }- // A leftover folder from an older torn unpack would fail the- // rename; it holds no model (checked above), so it goes.- let _ = std::fs::remove_dir_all(&destination);- std::fs::rename(&unpacked, &destination)- .map_err(|error| format!("could not finish {}: {error}", destination.display()))?;-- let _ = app.emit(- "tts://download",- DownloadProgress {- id: id.clone(),- received,- total: received.max(total),- unpacking: false,- done: true,- },- );- Ok(())- })();-- // The archive and staging folder are dead weight whether the unpack- // finished or failed; only `<id>/` matters now.- let _ = std::fs::remove_file(&archive);- let _ = std::fs::remove_dir_all(&staging);- result- })- .await- .map_err(|error| format!("download task failed: {error}"))?-}--/// Asks the running download to stop. Idle is a harmless no-op.-#[tauri::command]-pub fn cancel_tts_model_download(state: tauri::State<'_, TtsDownloadState>) {- state.0.cancel();-}--/// The one synthesis that can run at a time, plus the loaded engine.-///-/// The engine is cached because loading means parsing a 100-300 MB network;-/// doing that per sentence would make the feature feel broken. The mutex is-/// held for the whole synthesis, which is what lets `delete_tts_model` use-/// `try_lock` to refuse deleting a model mid-use instead of yanking mapped-/// files out from under the session.-pub struct TtsState {- gate: Arc<SingleFlight>,- engine: Mutex<Option<CachedEngine>>,-}--struct CachedEngine {- model_id: String,- tts: OfflineTts,-}--impl TtsState {- pub fn new() -> Self {- Self {- gate: Arc::new(SingleFlight::new()),- engine: Mutex::new(None),- }- }-}--/// Removes a downloaded model folder, unless the engine is speaking from it.-#[tauri::command]-pub fn delete_tts_model(- app: tauri::AppHandle,- state: tauri::State<'_, TtsState>,- id: String,-) -> Result<(), String> {- let dir = model_dir(&app, &id)?;- let mut engine = state- .engine- .try_lock()- .map_err(|_| "speech is being generated - wait for it or cancel it first".to_owned())?;- if engine.as_ref().is_some_and(|cached| cached.model_id == id) {- *engine = None;- }- std::fs::remove_dir_all(&dir)- .map_err(|error| format!("could not remove {}: {error}", dir.display()))-}--/// Builds the engine for one model folder.-///-/// The lexicon list mirrors the official sherpa-onnx invocation for this-/// bundle: US English and Chinese, joined by commas, each only if present.-fn load_engine(dir: &std::path::Path) -> Result<OfflineTts, String> {- let network = onnx_file(dir)- .ok_or_else(|| "the model folder has no .onnx network - re-download it".to_owned())?;- let existing = |name: &str| {- let path = dir.join(name);- path.is_file().then(|| path.to_string_lossy().into_owned())- };- let lexicon: Vec<String> = ["lexicon-us-en.txt", "lexicon-zh.txt"]- .iter()- .filter_map(|name| existing(name))- .collect();-- let threads = std::thread::available_parallelism()- .map(|count| count.get().min(8))- .unwrap_or(4) as i32;-- let config = OfflineTtsConfig {- model: OfflineTtsModelConfig {- kokoro: OfflineTtsKokoroModelConfig {- model: Some(network.to_string_lossy().into_owned()),- voices: existing("voices.bin"),- tokens: existing("tokens.txt"),- data_dir: {- let data = dir.join("espeak-ng-data");- data.is_dir().then(|| data.to_string_lossy().into_owned())- },- dict_dir: {- let dict = dir.join("dict");- dict.is_dir().then(|| dict.to_string_lossy().into_owned())- },- lexicon: (!lexicon.is_empty()).then(|| lexicon.join(",")),- ..Default::default()- },- num_threads: threads,- ..Default::default()- },- ..Default::default()- };-- OfflineTts::create(&config)- .ok_or_else(|| "the speech engine failed to load - try re-downloading the model".to_owned())-}--/// Progress for one synthesis, emitted as `tts://progress`.-#[derive(Clone, Serialize)]-#[serde(rename_all = "camelCase")]-struct SpeakProgress {- /// 0..1, as reported by the engine.- fraction: f32,-}--#[derive(Deserialize)]-#[serde(rename_all = "camelCase")]-pub struct SpeakRequest {- /// Which model to use, e.g. "kokoro-int8-multi-lang-v1_0".- pub model_id: String,- /// Kokoro speaker id, from the voices table.- pub voice: i32,- /// What to say.- pub text: String,- /// Speaking rate; 1.0 is the voice's natural pace.- pub speed: f32,- /// The project folder the WAV should land in.- pub project: String,-}--#[derive(Serialize)]-#[serde(rename_all = "camelCase")]-pub struct SpeakResult {- /// Absolute path of the written WAV, ready for the media import path.- path: String,- /// Seconds of audio, so the frontend can toast something useful.- duration: f64,-}--/// Synthesizes one narration clip into `<project>/audio/`.-#[tauri::command]-pub async fn speak_text(- app: tauri::AppHandle,- state: tauri::State<'_, TtsState>,- request: SpeakRequest,-) -> Result<SpeakResult, String> {- let job = state.gate.begin("speech generation")?;-- tauri::async_runtime::spawn_blocking(move || {- // Re-fetched through the app handle because the borrow in `state`- // cannot cross into a 'static task; the managed value is the same.- let state = app.state::<TtsState>();- let cancel = job.cancel_handle();-- let text = request.text.trim();- if text.is_empty() {- return Err("nothing to say: the text is empty".to_owned());- }- if !VOICES.iter().any(|(id, _)| *id == request.voice) {- return Err(format!("unknown voice {}", request.voice));- }- let speed = if request.speed.is_finite() {- request.speed.clamp(0.5, 2.0)- } else {- 1.0- };-- let dir = model_dir(&app, &request.model_id)?;- if onnx_file(&dir).is_none() {- return Err(format!(- "model {} is not downloaded - see Settings > Speech",- request.model_id- ));- }-- // The WAV goes in the project so it travels (and dies) with it - and- // in `audio/`, not `cache/`, because a clip on the timeline points at- // it: cache is for things that can be regenerated.- let root = std::path::Path::new(&request.project);- if !projects::manifest_path(root).is_file() {- return Err(format!("{} is not a project folder", request.project));- }- let out_dir = root.join("audio");- std::fs::create_dir_all(&out_dir)- .map_err(|error| format!("could not create {}: {error}", out_dir.display()))?;-- let mut engine = state- .engine- .lock()- .map_err(|_| "speech state poisoned".to_owned())?;- if engine.as_ref().map(|cached| cached.model_id.as_str()) != Some(request.model_id.as_str())- {- // Load before overwriting: a failed load keeps the old engine.- let tts = load_engine(&dir)?;- *engine = Some(CachedEngine {- model_id: request.model_id.clone(),- tts,- });- }- let tts = &engine.as_ref().expect("engine cached above").tts;-- let progress_app = app.clone();- let progress_cancel = Arc::clone(&cancel);- let mut last_fraction = -1.0f32;- let audio = tts- .generate_with_config(- text,- &GenerationConfig {- sid: request.voice,- speed,- ..Default::default()- },- Some(move |_samples: &[f32], fraction: f32| -> bool {- if progress_cancel.load(Ordering::Relaxed) {- return false;- }- // The engine reports once per sentence; only meaningful- // movement crosses the IPC bridge.- if fraction - last_fraction >= 0.01 {- last_fraction = fraction;- let _ = progress_app.emit("tts://progress", SpeakProgress { fraction });- }- true- }),- )- .ok_or_else(|| "speech generation failed".to_owned())?;-- // A cancelled run still returns the samples made so far; the user- // asked for none of them.- if cancel.load(Ordering::Relaxed) {- return Err("speech generation cancelled".to_owned());- }- if audio.samples().is_empty() {- return Err("the engine produced no audio for this text".to_owned());- }-- // Wall-clock millis plus process id: unique enough for files created- // by one human clicking a button, and stable for the media bin name.- let stamp = std::time::SystemTime::now()- .duration_since(std::time::UNIX_EPOCH)- .map(|elapsed| elapsed.as_millis())- .unwrap_or(0);- let voice_name = VOICES- .iter()- .find(|(id, _)| *id == request.voice)- .map(|(_, name)| *name)- .unwrap_or("voice");- let file = out_dir.join(format!("speech-{voice_name}-{stamp}.wav"));-- if !audio.save(&file.to_string_lossy()) {- return Err(format!("could not write {}", file.display()));- }-- let duration = audio.samples().len() as f64 / f64::from(audio.sample_rate().max(1));- Ok(SpeakResult {- path: file.to_string_lossy().into_owned(),- duration,- })- })- .await- .map_err(|error| format!("speech task failed: {error}"))?-}--/// Asks the running synthesis to stop at the next sentence boundary.-#[tauri::command]-pub fn cancel_speak(state: tauri::State<'_, TtsState>) {- state.gate.cancel();-}--#[cfg(test)]-mod tests {- use super::*;-- #[test]- fn every_known_model_has_a_url_and_size() {- for model in KNOWN_MODELS {- assert!(model_url(model.id).ends_with(&format!("{}.tar.bz2", model.id)));- assert!(model.approx_bytes > 0);- }- }-- #[test]- fn voice_ids_are_unique_and_names_well_formed() {- let mut seen = std::collections::HashSet::new();- for (id, name) in VOICES {- assert!(seen.insert(*id), "duplicate voice id {id}");- // The frontend decodes accent and gender from the prefix; a name- // that breaks the pattern would render as gibberish.- let (prefix, rest) = name.split_once('_').expect("prefix_name shape");- assert!(- matches!(prefix, "af" | "am" | "bf" | "bm" | "zf" | "zm"),- "{name}"- );- assert!(!rest.is_empty());- }- }-- #[test]- fn finds_the_onnx_network_by_extension() {- let scratch = std::env::temp_dir().join(format!("wolfcut-tts-test-{}", std::process::id()));- let _ = std::fs::remove_dir_all(&scratch);- std::fs::create_dir_all(&scratch).expect("scratch dir");- assert!(onnx_file(&scratch).is_none());- std::fs::write(scratch.join("model.int8.onnx"), b"x").expect("writes");- assert!(onnx_file(&scratch).is_some());- let _ = std::fs::remove_dir_all(&scratch);- }-}diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.jsondeleted file mode 100644index 2b5d72f2..00000000--- a/desktop/src-tauri/tauri.conf.json+++ /dev/null@@ -1,50 +0,0 @@-{- "$schema": "https://schema.tauri.app/config/2",- "productName": "WolfCut",- "version": "0.2.0",- "identifier": "app.concat.editor",- "build": {- "beforeDevCommand": "npm run dev",- "devUrl": "http://localhost:1420",- "beforeBuildCommand": "npm run build",- "frontendDist": "../dist"- },- "app": {- "windows": [- {- "title": "WolfCut",- "width": 1440,- "height": 900,- "minWidth": 1024,- "minHeight": 640,- "resizable": true,- "decorations": false,- "backgroundColor": "#07080c",- "dragDropEnabled": true- }- ],- "security": {- "csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost blob:; font-src 'self' data:; connect-src ipc: http://ipc.localhost 'self'",- "devCsp": "default-src * 'unsafe-inline' 'unsafe-eval' blob: data: asset: http://asset.localhost ws: wss: ipc: http://ipc.localhost",- "assetProtocol": {- "enable": true,- "scope": []- }- }- },- "bundle": {- "active": true,- "targets": "all",- "icon": [- "icons/32x32.png",- "icons/128x128.png",- "icons/[email protected]",- "icons/icon.icns",- "icons/icon.ico"- ],- "resources": {- "ffmpeg/*": "ffmpeg/",- "whisper/*": "whisper/"- }- }-}diff --git a/desktop/src-tauri/tauri.macos.conf.json b/desktop/src-tauri/tauri.macos.conf.jsondeleted file mode 100644index 17f6198f..00000000--- a/desktop/src-tauri/tauri.macos.conf.json+++ /dev/null@@ -1,20 +0,0 @@-{- "$schema": "https://schema.tauri.app/config/2",- "app": {- "windows": [- {- "title": "WolfCut",- "width": 1440,- "height": 900,- "minWidth": 1024,- "minHeight": 640,- "resizable": true,- "decorations": true,- "titleBarStyle": "Overlay",- "hiddenTitle": true,- "backgroundColor": "#07080c",- "dragDropEnabled": true- }- ]- }-}diff --git a/desktop/src-tauri/tests/export_integration.rs b/desktop/src-tauri/tests/export_integration.rsdeleted file mode 100644index cd2e62d1..00000000--- a/desktop/src-tauri/tests/export_integration.rs+++ /dev/null@@ -1,211 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--//! The export pipeline, end to end, against the FFmpeg the app actually ships.-//!-//! The engine's unit tests are pure on purpose; this suite is the opposite. It-//! generates real fixtures, runs `export::render` - decoders, compositor,-//! encoder, audio graph, mux - and probes what came out. It exists because the-//! bugs that reach users live exactly here: a protocol missing from the-//! trimmed FFmpeg build, a filtergraph naming a stream that does not exist.-//!-//! Fixtures are generated with the *system* FFmpeg (the trimmed one has no-//! lavfi), and the export itself runs against the *bundled* pair when it is-//! staged in `ffmpeg/` - so a component missing from the shipped build fails-//! this test instead of a user's export. No system FFmpeg? The suite skips.--use std::path::{Path, PathBuf};-use std::process::Command;-use std::sync::atomic::AtomicBool;--use concat_desktop_lib::export::{ClipKind, ExportClip, ExportRequest, Reporter, render};--/// Points the engine at the staged bundle exactly once, before anything runs.-fn use_bundled_pair() {- let staged = Path::new(env!("CARGO_MANIFEST_DIR")).join("ffmpeg");- let suffix = if cfg!(windows) { ".exe" } else { "" };- let ffmpeg = staged.join(format!("ffmpeg{suffix}"));- let ffprobe = staged.join(format!("ffprobe{suffix}"));- if ffmpeg.is_file() && ffprobe.is_file() {- concat_media::set_binaries(ffmpeg, ffprobe);- }-}--/// True when a system FFmpeg exists to generate fixtures with.-fn system_ffmpeg() -> bool {- Command::new("ffmpeg")- .arg("-version")- .output()- .is_ok_and(|output| output.status.success())-}--/// Writes a fixture with the system FFmpeg. `lavfi` is unavailable in the-/// bundled build, which is exactly why fixtures do not go through it.-fn fixture(directory: &Path, name: &str, args: &[&str]) -> PathBuf {- let path = directory.join(name);- let status = Command::new("ffmpeg")- .args(["-hide_banner", "-loglevel", "error", "-y"])- .args(args)- .arg(&path)- .status()- .expect("system ffmpeg runs");- assert!(status.success(), "could not generate fixture {name}");- path-}--fn media_clip(path: &Path, kind: &str, start: f64, duration: f64, track: usize) -> ExportClip {- ExportClip {- path: path.to_string_lossy().into_owned(),- kind: match kind {- "audio" => ClipKind::Audio,- "image" => ClipKind::Image,- _ => ClipKind::Video,- },- start,- duration,- source_start: 0.0,- track,- hidden: false,- muted: false,- volume: 1.0,- fade_in: 0.0,- fade_out: 0.0,- filter_chain: String::new(),- speed: 1.0,- preserve_pitch: true,- scale: 1.0,- offset_x: 0.0,- offset_y: 0.0,- rotation: 0.0,- opacity: 1.0,- video_filter_chain: String::new(),- transition: None,- video_fade_in: 0.0,- media_width: Some(320),- media_height: Some(180),- // Deliberately absent: this suite exists to exercise the probe- // fallback and the graph-membership rules against real files.- has_audio: None,- }-}--fn request(output: &Path, clips: Vec<ExportClip>) -> ExportRequest {- ExportRequest {- output: output.to_string_lossy().into_owned(),- width: 320,- height: 180,- rate_num: 30,- rate_den: 1,- crf: 30,- preset: "ultrafast".to_owned(),- clips,- }-}--fn export(request: &ExportRequest) -> Result<String, String> {- let cancel = AtomicBool::new(false);- let mut progress = |_: i64, _: i64, _: &'static str| {};- render(request, Reporter { progress: &mut progress, cancel: &cancel })-}--/// One suite rather than many `#[test]`s: fixtures are cheap but not free,-/// and `set_binaries` is process-global either way.-#[test]-fn exports_survive_the_shapes_that_have_actually_broken() {- if !system_ffmpeg() {- eprintln!("no system ffmpeg; skipping the export integration suite");- return;- }- use_bundled_pair();-- let directory = PathBuf::from(env!("CARGO_TARGET_TMPDIR")).join("export-integration");- std::fs::create_dir_all(&directory).expect("tmp dir");-- let with_sound = fixture(- &directory,- "with-sound.mp4",- &[- "-f", "lavfi", "-i", "testsrc2=size=320x180:rate=30:duration=2",- "-f", "lavfi", "-i", "sine=frequency=440:duration=2",- "-c:v", "libx264", "-pix_fmt", "yuv420p", "-c:a", "aac",- ],- );- let silent_video = fixture(- &directory,- "silent.mp4",- &[- "-f", "lavfi", "-i", "testsrc2=size=320x180:rate=30:duration=2",- "-c:v", "libx264", "-pix_fmt", "yuv420p",- ],- );- let still = fixture(- &directory,- "still.png",- &["-f", "lavfi", "-i", "color=red:size=320x180", "-frames:v", "1"],- );-- // The everyday case: one clip with picture and sound.- let output = directory.join("plain.mp4");- export(&request(&output, vec![media_clip(&with_sound, "video", 0.0, 2.0, 0)]))- .expect("plain export");- let info = concat_media::probe(&output).expect("probe plain");- assert!(info.video.is_some() && info.audio.is_some());- let duration = info.duration.expect("has duration").as_f64();- assert!((duration - 2.0).abs() < 0.15, "expected ~2s, got {duration}");-- // The regression that shipped: an audioless video in the mix. The graph- // must not name a stream the file does not have.- let output = directory.join("mixed-mute.mp4");- export(&request(- &output,- vec![- media_clip(&silent_video, "video", 0.0, 2.0, 0),- media_clip(&with_sound, "video", 0.5, 1.0, 1),- ],- ))- .expect("export with an audioless clip");- let info = concat_media::probe(&output).expect("probe mixed-mute");- assert!(info.audio.is_some(), "the sounded clip still reaches the mix");-- // Retiming: a 2x clip consumes 2s of source in 1s of timeline, and- // picture and sound must agree on that.- let output = directory.join("fast.mp4");- let mut fast = media_clip(&with_sound, "video", 0.0, 1.0, 0);- fast.speed = 2.0;- export(&request(&output, vec![fast])).expect("2x export");- let info = concat_media::probe(&output).expect("probe fast");- let duration = info.duration.expect("has duration").as_f64();- assert!((duration - 1.0).abs() < 0.15, "expected ~1s at 2x, got {duration}");- assert!(info.audio.is_some(), "the sped-up sound made it through the graph");-- // A still overlay above footage: the image decoder loops, the compositor- // stacks, and the export still carries the footage's sound.- let output = directory.join("overlay.mp4");- let mut overlay = media_clip(&still, "image", 0.0, 2.0, 1);- overlay.muted = true;- export(&request(- &output,- vec![media_clip(&with_sound, "video", 0.0, 2.0, 0), overlay],- ))- .expect("overlay export");- let info = concat_media::probe(&output).expect("probe overlay");- assert!(info.video.is_some() && info.audio.is_some());-- // A clip whose filter chain tries to escape its slot is refused, not run.- let output = directory.join("hostile.mp4");- let mut hostile = media_clip(&with_sound, "video", 0.0, 1.0, 0);- hostile.filter_chain = "anull[out];[0:v]null".to_owned();- let refused = export(&request(&output, vec![hostile]));- assert!(refused.is_err(), "a graph-escaping chain must be refused");-- // Cancellation aborts cleanly instead of writing a file.- let output = directory.join("cancelled.mp4");- let cancelled = AtomicBool::new(true);- let mut progress = |_: i64, _: i64, _: &'static str| {};- let result = render(- &request(&output, vec![media_clip(&with_sound, "video", 0.0, 2.0, 0)]),- Reporter { progress: &mut progress, cancel: &cancelled },- );- assert_eq!(result, Err("export cancelled".to_owned()));- assert!(!output.exists(), "a cancelled export must not leave a file");-}diff --git a/desktop/src-tauri/whisper/README.md b/desktop/src-tauri/whisper/README.mddeleted file mode 100644index e64fddb0..00000000--- a/desktop/src-tauri/whisper/README.md+++ /dev/null@@ -1,3 +0,0 @@-# Staged at build, never committed: the bundled transcription engine.-# CI stages per platform (see the Build App workflow); locally, build-# whisper.cpp v1.8.2 with BUILD_SHARED_LIBS=OFF and copy whisper-cli here.diff --git a/desktop/src/App.tsx b/desktop/src/App.tsxdeleted file mode 100644index fdd596ee..00000000--- a/desktop/src/App.tsx+++ /dev/null@@ -1,1697 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { isTauri } from "@tauri-apps/api/core";-import { open as openDialog } from "@tauri-apps/plugin-dialog";-import { getCurrentWebview } from "@tauri-apps/api/webview";-import { getCurrentWindow } from "@tauri-apps/api/window";--import { ConfirmDialog } from "./components/ConfirmDialog";-import { ContextMenu, type ContextTarget } from "./components/ContextMenu";-import { ExportDialog } from "./components/ExportDialog";-import { TtsDialog } from "./components/TtsDialog";-import { Icon } from "./components/Icon";-import { ALL_MEDIA, MediaBin, type BinFilter } from "./components/MediaBin";-import type { MenuOption } from "./components/Menu";-import { ModifyProjectDialog } from "./components/ModifyProjectDialog";-import { Preview } from "./components/Preview";-import {- exportTitlesOf,- previewGhostAt,- previewSourceAt,- previewVeilAt,- textOverlaysAt,- type ExportTitle,-} from "./lib/monitor";-import { Resizer } from "./components/Resizer";-import { RightPanel, type RightTab } from "./components/RightPanel";-import { SaveTemplateDialog } from "./components/SaveTemplateDialog";-import { SettingsDialog } from "./components/SettingsDialog";-import { StartScreen, type ProjectSession } from "./components/StartScreen";-import { TitleBar } from "./components/TitleBar";-import { Toast } from "./components/Toast";-import { TimelinePanel, resolveDrop, type Tool } from "./components/TimelinePanel";-import { createAssets, requestAssets, requestVideoPeaks } from "./lib/assets";-import {- activeTimeline,- clipsAt,- detachedAudioOf,- findClip,- findMedia,- precedingClip,- projectDuration,- snapTime,- speedPatch,- timelineClipCount,- transformPatch,- trimPatch,- whyNotMerge,- type Clip,- type MediaItem,- type TimelineMeta,-} from "./lib/editor";-import {- editorSave,- engineVersion,- newMediaFromSummary,- probeMedia,- readMediaBytes,- templateSave,- type TemplateInfo,-} from "./lib/engine";-import { findTransition } from "./lib/effects";-import { familyForPath, registerFont } from "./lib/text";-import { useLocale } from "./lib/i18n";-import { useCaptions } from "./hooks/useCaptions";-import { useEngineSession } from "./hooks/useEngineSession";-import { useEngineTruth } from "./hooks/useEngineTruth";-import { usePlaybackBridge } from "./hooks/usePlaybackBridge";-import { useTheme, type Theme } from "./lib/theme";-import { useTransport } from "./lib/transport";--const MIN_SECONDS_PER_PIXEL = 0.0005;-const MAX_SECONDS_PER_PIXEL = 2;--/**- * The window: either the launch screen or an open editor.- *- * The editor is a separate component rather than a branch inside one, so that- * every hook it owns - transport, asset cache, the engine session - mounts- * when a project opens and unmounts when it closes.- */-export function App() {- const [session, setSession] = useState<ProjectSession | null>(null);- // Choosing "use template" inside the editor closes the project and lands- // the launch screen straight in that template's fill mode.- const [pendingTemplate, setPendingTemplate] = useState<TemplateInfo | null>(null);- // Owned here rather than in the editor so the launch screen is themed too,- // and so the choice survives closing a project.- const { theme, toggle } = useTheme();-- if (!session) {- return (- <div className="flex h-full flex-col overflow-hidden">- <TitleBar projectName="" menus={[]} theme={theme} onToggleTheme={toggle} />- <div className="min-h-0 flex-1">- <StartScreen- initialTemplate={pendingTemplate}- onCreate={(next) => {- setPendingTemplate(null);- setSession(next);- }}- />- </div>- </div>- );- }-- return (- <Editor- session={session}- theme={theme}- onToggleTheme={toggle}- onCloseProject={() => setSession(null)}- onUseTemplate={(template) => {- setPendingTemplate(template);- setSession(null);- }}- />- );-}--/**- * The editor shell.- *- * The engine owns the edit (see engine decision 0007). This component holds- * *window* state - selection, playhead, panel sizes - plus the latest- * `EditorView` the engine returned, and a transient gesture echo: during a- * drag the change previews locally with the engine's own arithmetic, and one- * command commits on release. Every mutation is a command; every render draws- * the state that came back.- */-function Editor({- session,- theme,- onToggleTheme,- onCloseProject,- onUseTemplate,-}: {- session: ProjectSession;- theme: Theme;- onToggleTheme: () => void;- onCloseProject: () => void;- /** Leaves this project for the launch screen's fill flow on a template. */- onUseTemplate: (template: TemplateInfo) => void;-}) {- const { t, tp } = useLocale();- const [toast, setToast] = useState<{ id: number; message: string; failed: boolean } | null>(- null,- );- const pushToast = useCallback((message: string, failed: boolean) => {- setToast({ id: Date.now(), message, failed });- }, []);- const [error, setError] = useState<string | null>(null);-- // The engine session: queue, echo, undo, autosave. See useEngineSession.- const {- view,- viewRef,- loaded,- project,- dispatch,- undoAction,- redoAction,- liveClip,- commitEcho,- frame,- setFrame,- saveState,- saveAndNotify,- } = useEngineSession({- session,- onOpenError: setError,- onCommandError: useCallback((message: string) => pushToast(message, true), [pushToast]),- onSaved: useCallback(- (ok: boolean, message?: string) =>- pushToast(- ok ? t("toast.projectSaved") : t("toast.saveFailed", { message: message ?? "" }),- !ok,- ),- [pushToast, t],- ),- });-- // The project's display name. Seeded from the session, editable through- // the Details panel's Modify dialog; the engine persists it on save.- const [projectName, setProjectName] = useState(session.name);- const [modifyingProject, setModifyingProject] = useState<null | { busy: boolean }>(null);-- const [selectedClipIds, setSelectedClipIds] = useState<string[]>([]);- const [selectedMediaIds, setSelectedMediaIds] = useState<string[]>([]);- const [tool, setTool] = useState<Tool>("select");- const [snap, setSnap] = useState(true);- const [binFilter, setBinFilter] = useState<BinFilter>(ALL_MEDIA);- const [version, setVersion] = useState("");- const [busy, setBusy] = useState(false);- const [dropping, setDropping] = useState(false);- const [context, setContext] = useState<ContextTarget | null>(null);- const [mediaDrag, setMediaDrag] = useState<{ item: MediaItem; x: number; y: number } | null>(- null,- );- const [exporting, setExporting] = useState(false);- const [rightTab, setRightTab] = useState<RightTab>("details");- /** Families whose font files failed to load - shown in the picker. */- const [missingFonts, setMissingFonts] = useState<Set<string>>(new Set());-- // Panel geometry.- // Wide enough that the library's five tabs and a row of cards breathe;- // the resizer still allows 220-560.- const [leftWidth, setLeftWidth] = useState(420);- const [rightWidth, setRightWidth] = useState(300);- const [timelineHeight, setTimelineHeight] = useState(340);-- // Timeline viewport.- const [secondsPerPixel, setSecondsPerPixel] = useState(0.02);- const [scrollLeft, setScrollLeft] = useState(0);- // Vertical offset into the track stack, shared by the lanes and their headers.- const [trackScroll, setTrackScroll] = useState(0);- const zoomRef = useRef(secondsPerPixel);- zoomRef.current = secondsPerPixel;-- const timeline = activeTimeline(project);-- const duration = projectDuration(project);- // `transport` is the stable controls object - safe in deps and memoised- // props without per-frame churn. Only `playhead`/`playing` move at- // animation rate, and only Preview and TimelinePanel take them as props.- const { playhead, playing, controls: transport } = useTransport({ duration });-- // Read by event listeners that outlive the render that installed them.- const latest = useRef({ project, secondsPerPixel, scrollLeft, trackScroll, snap, playhead, frame });- latest.current = { project, secondsPerPixel, scrollLeft, trackScroll, snap, playhead, frame };- const selectedMediaRef = useRef(selectedMediaIds);- selectedMediaRef.current = selectedMediaIds;-- // The project's rate is authoritative, not the first clip's.- const frameRate = session.frameRate;-- // A selection can name clips an undo or a command just removed.- useEffect(() => {- setSelectedClipIds((ids) => {- const kept = ids.filter((id) => timeline.clips.some((clip) => clip.id === id));- return kept.length === ids.length ? ids : kept;- });- setSelectedMediaIds((ids) => {- const kept = ids.filter((id) => project.media.some((item) => item.id === id));- return kept.length === ids.length ? ids : kept;- });- // Keyed on the engine state, not the echo - the echo never removes clips.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [view]);-- // Bring back every font the project names, once, when it opens. A font- // whose file has moved is marked rather than dropped.- useEffect(() => {- if (!loaded || !view || view.project.fonts.length === 0) return;- let cancelled = false;- void Promise.all(- view.project.fonts.map(async (font) => ({- family: font.family,- ok: await registerFont(font, readMediaBytes),- })),- ).then((results) => {- if (cancelled) return;- const failed = results.filter((result) => !result.ok).map((result) => result.family);- if (failed.length > 0) setMissingFonts(new Set(failed));- });- return () => {- cancelled = true;- };- // Deliberately keyed on `loaded` alone: fonts are registered once per open.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [loaded]);-- const fontsForUi = useMemo(- () =>- project.fonts.map((font) =>- missingFonts.has(font.family) ? { ...font, missing: true } : font,- ),- [project.fonts, missingFonts],- );-- const [settingsOpen, setSettingsOpen] = useState(false);- /** The speech sheet: open with optional prefilled text and a fixed landing- * time (a text clip's start), or null when closed. */- const [speech, setSpeech] = useState<{ text?: string; at?: number } | null>(null);- // The save-as-template sheet: null closed, otherwise whether the host is- // packing the bundle right now.- const [templateDialog, setTemplateDialog] = useState<null | { busy: boolean }>(null);-- useEffect(() => {- engineVersion()- .then(setVersion)- .catch(() => setVersion("unavailable"));- }, []);-- // Waveforms and filmstrips. A ref, not state: the timeline reads this map- // from inside its draw loop, so artwork arriving needs no re-render.- const assets = useRef(createAssets());-- // ── clip edits (echo + commit) ───────────────────────────────────────────-- /** Live patch from a panel control; committed by its onCommit. */- const changeClip = useCallback(- (patch: Partial<Clip>) => {- const clipId = selectedClipIds.length === 1 ? selectedClipIds[0] : null;- if (!clipId) return;- // Transform-family fields get the engine's clamps applied to the echo,- // so what previews is what will commit.- const { scale, offsetX, offsetY, rotation, ...rest } = patch;- const clamped =- scale !== undefined || offsetX !== undefined || offsetY !== undefined || rotation !== undefined- ? transformPatch({ scale, offsetX, offsetY, rotation })- : {};- liveClip(clipId, { ...rest, ...clamped });- },- [selectedClipIds, liveClip],- );-- const changeSpeed = useCallback(- (speed: number) => {- const clipId = selectedClipIds.length === 1 ? selectedClipIds[0] : null;- if (!clipId) return;- const clip = findClip(latest.current.project, clipId);- if (clip) liveClip(clipId, speedPatch(clip, speed));- },- [selectedClipIds, liveClip],- );-- // ── media import ─────────────────────────────────────────────────────────- const importPaths = useCallback(- async (paths: string[]) => {- setBusy(true);- setError(null);- for (const path of paths) {- try {- const summary = await probeMedia(path);- const mediaId = await dispatch({- op: "addMedia",- item: newMediaFromSummary(summary),- });- if (mediaId) {- setSelectedMediaIds([mediaId]);- // Fire and forget: the clip draws flat until the artwork lands.- requestAssets(- assets.current,- {- id: mediaId,- path: summary.path,- kind: summary.kind,- duration: summary.duration,- hasAudio: summary.audio !== null,- },- session.path,- );- }- } catch (cause) {- setError(String(cause));- }- }- setBusy(false);- },- [dispatch, session.path],- );-- // A finished narration WAV: imported like any dropped file, then placed at- // `at` - a text clip's start when spoken from one, the playhead otherwise.- // Throwing lets the speech sheet show the failure in place.- const insertNarration = useCallback(- async (path: string, at?: number) => {- const summary = await probeMedia(path);- const mediaId = await dispatch({- op: "addMedia",- item: newMediaFromSummary(summary),- });- if (!mediaId) throw new Error(t("tts.importFailed"));- requestAssets(- assets.current,- {- id: mediaId,- path: summary.path,- kind: summary.kind,- duration: summary.duration,- hasAudio: summary.audio !== null,- },- session.path,- );- await dispatch({- op: "addClipAtFirstFree",- mediaId,- start: at ?? latest.current.playhead,- });- pushToast(t("toast.narrationAdded"), false);- },- [dispatch, session.path, pushToast, t],- );-- // Artwork for everything already in the project: a reopened project should- // get its thumbnails and waveforms back without re-importing anything.- useEffect(() => {- if (!loaded) return;- const wantsPeaks = new Set(- timeline.clips.filter((clip) => clip.kind === "audio").map((clip) => clip.mediaId),- );- for (const item of project.media) {- requestAssets(assets.current, item, session.path);- if (item.kind === "video" && wantsPeaks.has(item.id)) {- requestVideoPeaks(assets.current, item, session.path);- }- }- }, [loaded, project.media, timeline.clips, session.path]);-- // Files dropped from the OS.- useEffect(() => {- if (!isTauri()) return;- let stop: (() => void) | undefined;- void getCurrentWebview()- .onDragDropEvent((event) => {- if (event.payload.type === "over") setDropping(true);- else if (event.payload.type === "drop") {- setDropping(false);- void importPaths(event.payload.paths);- } else setDropping(false);- })- .then((unlisten) => {- stop = unlisten;- });- return () => stop?.();- }, [importPaths]);-- // ── audio playback ───────────────────────────────────────────────────────- usePlaybackBridge({- project,- timeline,- projectPath: session.path,- onError: useCallback((message: string) => pushToast(message, true), [pushToast]),- });-- // ── text, effects, transitions ───────────────────────────────────────────-- const addText = useCallback(() => {- void dispatch({- op: "addTextClip",- trackId: null,- start: latest.current.playhead,- style: null,- }).then((clipId) => {- if (clipId) {- setSelectedClipIds([clipId]);- setSelectedMediaIds([]);- setRightTab("text");- }- });- }, [dispatch]);-- const pickFont = useCallback(async () => {- try {- const picked = await openDialog({- multiple: false,- title: t("dialog.addFont.title"),- filters: [- { name: t("dialog.addFont.filter"), extensions: ["ttf", "otf", "woff", "woff2", "ttc"] },- ],- });- if (typeof picked !== "string") return;- const current = latest.current.project;- if (current.fonts.some((font) => font.path === picked)) return;-- const font = {- family: familyForPath(- picked,- current.fonts.map((existing) => existing.family),- ),- path: picked,- };- // Registered before it is stored, so a file the webview cannot parse is- // reported now rather than becoming a broken entry in the picker.- if (!(await registerFont(font, readMediaBytes))) {- setError(t("error.fontUnreadable", { file: picked.split(/[/\\]/).pop() ?? picked }));- return;- }- void dispatch({ op: "addFont", family: font.family, path: font.path });- } catch (cause) {- setError(String(cause));- }- }, [dispatch, t]);-- const applyEffect = useCallback(- (effectId: string) => {- const current = latest.current.project;- const selected = selectedClipIds.length === 1 ? findClip(current, selectedClipIds[0]) : null;- if (!selected || (selected.kind !== "video" && selected.kind !== "image")) {- setToast({- id: Date.now(),- message: t("toast.effectNeedsClip"),- failed: true,- });- return;- }- void dispatch({- op: "updateClip",- clipId: selected.id,- patch: { videoEffects: [...selected.videoEffects, { id: effectId, params: {} }] },- });- setRightTab("effects");- },- [selectedClipIds, dispatch, t],- );-- const applyTransition = useCallback(- (transitionId: string) => {- const definition = findTransition(transitionId);- if (!definition?.implemented) return;- const current = latest.current.project;- const selected = selectedClipIds.length === 1 ? findClip(current, selectedClipIds[0]) : null;- if (!selected || (selected.kind !== "video" && selected.kind !== "image")) {- setToast({- id: Date.now(),- message: t("toast.transitionNeedsClip"),- failed: true,- });- return;- }- if (!precedingClip(current, selected.id)) {- setToast({- id: Date.now(),- message: t("toast.transitionNeedsCut"),- failed: true,- });- return;- }- void dispatch({- op: "updateClip",- clipId: selected.id,- patch: { transitionIn: { id: transitionId, duration: definition.defaultDuration } },- });- setRightTab("effects");- setToast({- id: Date.now(),- message: t("toast.transitionAdded", { transition: definition.label }),- failed: false,- });- },- [selectedClipIds, dispatch, t],- );-- const { autoCaption, transcribing } = useCaptions({- dispatch,- getProject: useCallback(() => latest.current.project, []),- onToast: pushToast,- });-- /** The clip tools dropdown. Hidden for clips with nothing to offer. */- const clipTools = useMemo<MenuOption[][]>(() => {- const clip = selectedClipIds.length === 1 ? findClip(project, selectedClipIds[0]) : null;- if (!clip) return [];-- // A title's one tool: speak its text. The sheet opens prefilled, and the- // narration lands where the title starts.- if (clip.kind === "text") {- return [- [- {- label: t("menu.clip.generateVoice"),- icon: "volume" as const,- onSelect: () => setSpeech({ text: clip.text?.content ?? "", at: clip.start }),- },- ],- ];- }-- const media = findMedia(project, clip.mediaId);- if (clip.kind !== "video" && clip.kind !== "audio") return [];-- const hasSound = Boolean(media?.hasAudio);- const canDetach = Boolean(- clip.kind === "video" &&- !clip.muted &&- media?.hasAudio &&- detachedAudioOf(project, clip.id).length === 0,- );- const canReattach = Boolean(- (clip.kind === "video" && detachedAudioOf(project, clip.id).length > 0) ||- (clip.kind === "audio" && clip.detachedFrom && findClip(project, clip.detachedFrom)),- );-- return [- [- {- label: transcribing ? t("menu.clip.transcribing") : t("menu.clip.autoCaptions"),- icon: "type" as const,- disabled: !hasSound || transcribing,- onSelect: () => {- if (clip && media) void autoCaption(clip, media);- },- },- ],- [- {- label: t("menu.clip.detachAudio"),- icon: "waveform" as const,- disabled: !canDetach,- onSelect: () => void dispatch({ op: "detachAudio", clipId: clip.id }),- },- {- label: t("menu.clip.reattachAudio"),- icon: "merge" as const,- disabled: !canReattach,- onSelect: () => {- void dispatch({ op: "reattachAudio", clipId: clip.id });- setSelectedClipIds([]);- },- },- ],- ];- }, [project, selectedClipIds, transcribing, autoCaption, dispatch, t]);-- // ── timelines ────────────────────────────────────────────────────────────- const [timelineToDelete, setTimelineToDelete] = useState<TimelineMeta | null>(null);- const playheadByTimeline = useRef(new Map<string, number>());-- const selectTimeline = useCallback(- (timelineId: string) => {- const current = latest.current.project;- if (timelineId === current.activeTimelineId) return;- playheadByTimeline.current.set(current.activeTimelineId, latest.current.playhead);- void dispatch({ op: "selectTimeline", timelineId }).then(() => {- setSelectedClipIds([]);- transport.pause();- transport.seek(playheadByTimeline.current.get(timelineId) ?? 0);- });- },- [dispatch, transport],- );-- const createTimeline = useCallback(() => {- playheadByTimeline.current.set(- latest.current.project.activeTimelineId,- latest.current.playhead,- );- void dispatch({ op: "addTimeline" }).then(() => {- setSelectedClipIds([]);- transport.pause();- transport.seek(0);- });- }, [dispatch, transport]);-- const deleteTimelineNow = useCallback(- (timelineId: string) => {- const wasActive = timelineId === latest.current.project.activeTimelineId;- playheadByTimeline.current.delete(timelineId);- void dispatch({ op: "removeTimeline", timelineId }).then(() => {- if (wasActive) {- setSelectedClipIds([]);- transport.pause();- const nextActive = viewRef.current?.project.activeTimelineId;- transport.seek((nextActive && playheadByTimeline.current.get(nextActive)) || 0);- }- });- },- [dispatch, transport, viewRef],- );-- // ── edit operations ──────────────────────────────────────────────────────- const addToTimeline = useCallback(- (mediaId: string) => {- void dispatch({- op: "addClipAtFirstFree",- mediaId,- start: latest.current.playhead,- }).then((clipId) => {- if (clipId) setSelectedClipIds([clipId]);- });- },- [dispatch],- );-- /**- * Places several bin items end to end from `start`, as one batch and one- * undo step - the multi-select drop and the File menu's add-selected.- * With a track they land on that lane; without one each finds the first- * free lane for its own span, like a double-click does.- */- const placeMediaSet = useCallback(- (mediaIds: string[], start: number, trackId: string | null) => {- const current = latest.current.project;- let at = Math.max(0, start);- const commands = mediaIds.flatMap((mediaId) => {- const media = findMedia(current, mediaId);- if (!media) return [];- const from = at;- // The engine's own placement defaults (wolfcut-project: a still lasts- // 5s, unknown-duration media falls back to 5s) - mirrored here only- // to lay items end to end; the engine still decides each clip's- // real duration.- at += media.kind === "image" ? 5 : (media.duration ?? 5);- return [- trackId- ? ({ op: "addClip", mediaId, trackId, start: from } as const)- : ({ op: "addClipAtFirstFree", mediaId, start: from } as const),- ];- });- if (commands.length === 0) return;- void dispatch(- commands.length === 1 ? commands[0] : { op: "batch", commands: [...commands] },- ).then((clipId) => {- if (clipId) setSelectedClipIds([clipId]);- });- },- [dispatch],- );-- const beginMediaDrag = useCallback(- (item: MediaItem, clientX: number, clientY: number) => {- setMediaDrag({ item, x: clientX, y: clientY });-- const onMove = (event: PointerEvent) => {- setMediaDrag((current) =>- current ? { ...current, x: event.clientX, y: event.clientY } : null,- );- };- const onUp = (event: PointerEvent) => {- window.removeEventListener("pointermove", onMove);- window.removeEventListener("pointerup", onUp);- setMediaDrag(null);-- const state = latest.current;- const drop = resolveDrop(event.clientX, event.clientY, {- tracks: activeTimeline(state.project).tracks,- secondsPerPixel: state.secondsPerPixel,- scrollLeft: state.scrollLeft,- trackScroll: state.trackScroll,- });- if (!drop) return;-- const start = state.snap- ? snapTime(state.project, drop.start, {- threshold: 8 * state.secondsPerPixel,- playhead: state.playhead,- })- : drop.start;- const set = selectedMediaRef.current;- const dragged = set.includes(item.id) && set.length > 1 ? set : [item.id];- placeMediaSet(dragged, Math.max(0, start), drop.trackId);- };-- window.addEventListener("pointermove", onMove);- window.addEventListener("pointerup", onUp);- },- [placeMediaSet],- );-- const splitAtPlayhead = useCallback(() => {- const current = latest.current.project;- const at = latest.current.playhead;- const targets =- selectedClipIds.length > 0- ? selectedClipIds- : clipsAt(current, at).map((clip) => clip.id);- if (targets.length === 0) return;- void dispatch({ op: "splitClips", clipIds: targets, time: at });- }, [selectedClipIds, dispatch]);-- const mergeSelected = useCallback(() => {- void dispatch({ op: "mergeClips", clipIds: selectedClipIds }).then((clipId) => {- if (clipId) setSelectedClipIds([clipId]);- });- }, [selectedClipIds, dispatch]);-- /** Deletes the bin selection as one undo step; removal cascades clips. */- const deleteSelectedMedia = useCallback(() => {- const ids = selectedMediaRef.current;- if (ids.length === 0) return;- const commands = ids.map((mediaId) => ({ op: "removeMedia", mediaId }) as const);- void dispatch(- commands.length === 1 ? commands[0] : { op: "batch", commands: [...commands] },- );- setSelectedMediaIds([]);- }, [dispatch]);-- const deleteSelected = useCallback(() => {- if (selectedClipIds.length > 0) {- void dispatch({ op: "removeClips", clipIds: selectedClipIds });- setSelectedClipIds([]);- return;- }- // No clips selected: Delete acts on the bin selection instead.- deleteSelectedMedia();- }, [selectedClipIds, deleteSelectedMedia, dispatch]);-- const zoom = useCallback((factor: number, anchor?: number) => {- const previous = zoomRef.current;- const next = Math.min(- MAX_SECONDS_PER_PIXEL,- Math.max(MIN_SECONDS_PER_PIXEL, previous * factor),- );- zoomRef.current = next;- setSecondsPerPixel(next);- if (anchor !== undefined) {- setScrollLeft((left) => Math.max(0, anchor - (anchor - left) * (next / previous)));- }- }, []);-- const fit = useCallback(- (canvasWidth: number) => {- if (canvasWidth <= 0) return;- const span = Math.max(duration, 1) * 1.05;- const next = Math.min(- MAX_SECONDS_PER_PIXEL,- Math.max(MIN_SECONDS_PER_PIXEL, span / canvasWidth),- );- zoomRef.current = next;- setSecondsPerPixel(next);- setScrollLeft(0);- },- [duration],- );-- // ── stable prop identities ───────────────────────────────────────────────- // MediaBin, RightPanel and the TitleBar are React.memo'd so they sit out- // the per-frame renders playback causes here. That only holds if every- // callback they receive keeps its identity - an inline arrow minted per- // render would make the memo a no-op - so their handlers live here as- // useCallbacks over stable dependencies.-- const selectMedia = useCallback((ids: string[]) => {- setSelectedMediaIds(ids);- // Bin and timeline selections are exclusive: picking media drops clips.- if (ids.length > 0) setSelectedClipIds([]);- }, []);-- const importFiles = useCallback(- (paths: string[]) => void importPaths(paths),- [importPaths],- );-- const removeMedia = useCallback(- (id: string) => void dispatch({ op: "removeMedia", mediaId: id }),- [dispatch],- );-- const dismissError = useCallback(() => setError(null), []);-- const toggleSlot = useCallback(- (mediaId: string, placeholder: boolean) =>- void dispatch({ op: "setMediaPlaceholder", mediaId, placeholder }),- [dispatch],- );-- const openTemplateDialog = useCallback(() => setTemplateDialog({ busy: false }), []);-- const leaveForTemplate = useCallback(- (template: TemplateInfo) => {- // Save what is open first: leaving for the fill flow closes this- // project, and the debounced autosave may not have fired.- void editorSave(latest.current.frame)- .catch(() => undefined)- .then(() => onUseTemplate(template));- },- [onUseTemplate],- );-- const addFont = useCallback(() => void pickFont(), [pickFont]);-- const removeFont = useCallback(- (family: string) => void dispatch({ op: "removeFont", family }),- [dispatch],- );-- const openModifyProject = useCallback(() => setModifyingProject({ busy: false }), []);- const openSettings = useCallback(() => setSettingsOpen(true), []);- const openSpeech = useCallback(() => setSpeech({}), []);- const openExport = useCallback(() => setExporting(true), []);-- // ── keyboard ─────────────────────────────────────────────────────────────- useEffect(() => {- const onKey = (event: KeyboardEvent) => {- const target = event.target;- if (- target instanceof HTMLInputElement ||- target instanceof HTMLTextAreaElement ||- target instanceof HTMLSelectElement ||- (target instanceof HTMLElement && target.isContentEditable)- ) {- return;- }-- if (event.ctrlKey || event.metaKey) {- switch (event.code) {- case "KeyZ":- event.preventDefault();- if (event.shiftKey) redoAction();- else undoAction();- break;- case "KeyY":- event.preventDefault();- redoAction();- break;- case "KeyS":- event.preventDefault();- saveAndNotify();- break;- case "KeyB":- event.preventDefault();- splitAtPlayhead();- break;- case "KeyE":- event.preventDefault();- setExporting(true);- break;- default:- break;- }- return;- }-- if (event.altKey) return;-- const step = event.shiftKey ? 10 : 1;- switch (event.code) {- case "Space":- event.preventDefault();- transport.toggle();- break;- case "ArrowLeft":- transport.step(-step, frameRate);- break;- case "ArrowRight":- transport.step(step, frameRate);- break;- case "Home":- transport.seek(0);- break;- case "End":- transport.seek(duration);- break;- case "KeyV":- setTool("select");- break;- case "KeyC":- setTool("razor");- break;- case "KeyN":- setSnap((current) => !current);- break;- case "KeyF": {- // The same marker resolveDrop uses to find the timeline canvas -- // its width is a layout fact only that element knows.- const canvas = document.querySelector<HTMLCanvasElement>("[data-wolfcut-timeline]");- if (canvas) fit(canvas.clientWidth);- break;- }- case "KeyS":- splitAtPlayhead();- break;- case "KeyM":- mergeSelected();- break;- case "Delete":- case "Backspace":- deleteSelected();- break;- default:- break;- }- };-- window.addEventListener("keydown", onKey);- return () => window.removeEventListener("keydown", onKey);- }, [- deleteSelected,- duration,- fit,- frameRate,- mergeSelected,- redoAction,- saveAndNotify,- splitAtPlayhead,- transport,- undoAction,- ]);-- // ── derived views ────────────────────────────────────────────────────────-- // Derived views of the monitor and exporter, all pure in lib/monitor.ts -- // which is what makes the cross-fade pre-roll and the flattening testable.- const textOverlays = useMemo(- () => textOverlaysAt(project, timeline, playhead),- [project, timeline, playhead],- );-- const previewSource = useMemo(- () => previewSourceAt(project, timeline, playhead),- [project, timeline, playhead],- );-- const previewClip = previewSource ? findClip(project, previewSource.clipId) : null;- const previewMedia = previewClip ? findMedia(project, previewClip.mediaId) : null;-- const previewGhost = useMemo(- () => previewGhostAt(project, timeline, playhead),- [project, timeline, playhead],- );-- const previewVeil = useMemo(- () => previewVeilAt(project, timeline, playhead),- [project, timeline, playhead],- );-- // The exporter flattens the engine's own session (decision 0009); the UI- // only counts renderable clips to know whether there is anything to show,- // and rasterises its titles.- const renderableClipCount = useMemo(- () => timeline.clips.filter((clip) => clip.kind !== "text").length,- [timeline],- );-- const exportTitles = useMemo<ExportTitle[]>(- () => exportTitlesOf(project, timeline),- [project, timeline],- );-- // The engine's true frames: paused dwell + playback stream. See- // useEngineTruth and desktop decision 0009. Quality is the footer's- // dropdown: what fraction of the output frame the engine composites.- const [previewQuality, setPreviewQuality] = useState(0.5);- const engineStill = useEngineTruth({- playing,- loaded,- playhead,- project,- renderableClipCount,- frame,- fps: session ? session.rateNum / session.rateDen : 30,- quality: previewQuality,- latest,- });-- const selectedClip =- selectedClipIds.length === 1 ? findClip(project, selectedClipIds[0]) : null;- const inspectorMedia = selectedClip- ? findMedia(project, selectedClip.mediaId)- : selectedMediaIds.length === 1- ? findMedia(project, selectedMediaIds[0])- : null;-- // Walks every selected clip's neighbours, so not something to redo per- // frame of playback - only an edit or a selection change moves the answer.- const mergeBlockedBecause = useMemo(- () => whyNotMerge(project, selectedClipIds),- [project, selectedClipIds],- );-- // The Export button, built once so the memoised TitleBar sees the same- // `actions` element across playback renders.- const exportAction = useMemo(- () => (- <button- type="button"- onClick={openExport}- className="flex cursor-pointer items-center gap-1.5 rounded-md bg-accent px-2.5 py-1- text-xs font-medium text-on-accent transition-colors hover:bg-accent-hover"- >- <Icon name="export" size={13} />- {t("common.export")}- </button>- ),- [openExport, t],- );-- // The whole menu structure, rebuilt only when something a menu shows or- // does actually changes. Building it inline in the JSX minted a new tree- // per render - 60 times a second during playback - and dragged the- // memoised TitleBar along with it. Nothing here reads the playhead (the- // File menu's "add at playhead" goes through `latest`), so playback never- // invalidates it.- const menus = useMemo<{ label: string; groups: MenuOption[][] }[]>(- () => [- {- label: t("menu.file.title"),- groups: [- [- {- label: t("menu.file.addSelected"),- icon: "plus",- disabled: selectedMediaIds.length === 0,- onSelect: () => placeMediaSet(selectedMediaIds, latest.current.playhead, null),- },- {- label: t("menu.file.save"),- icon: "folder",- hint: "Ctrl+S",- onSelect: () => saveAndNotify(),- },- {- label: t("menu.file.export"),- icon: "export",- disabled: renderableClipCount === 0,- onSelect: openExport,- },- {- label: t("menu.file.saveAsTemplate"),- icon: "slot",- onSelect: openTemplateDialog,- },- {- label: t("menu.file.speech"),- icon: "volume",- onSelect: openSpeech,- },- ],- [- {- label: t("menu.file.settings"),- icon: "settings",- onSelect: openSettings,- },- ],- [- {- label: t("menu.file.closeProject"),- icon: "folder",- onSelect: onCloseProject,- },- {- label: t("menu.file.closeWindow"),- icon: "close",- onSelect: () => void getCurrentWindow().close(),- danger: true,- },- ],- ],- },- {- label: t("menu.edit.title"),- groups: [- [- {- label: t("menu.edit.undo"),- icon: "chevronUp",- hint: "Ctrl+Z",- disabled: !view?.canUndo,- onSelect: undoAction,- },- {- label: t("menu.edit.redo"),- icon: "chevronDown",- hint: "Ctrl+Shift+Z",- disabled: !view?.canRedo,- onSelect: redoAction,- },- ],- [- {- label: t("menu.edit.splitAtPlayhead"),- icon: "razor",- hint: "Ctrl+B",- onSelect: splitAtPlayhead,- },- {- label: tp("menu.edit.deleteClips", Math.max(1, selectedClipIds.length)),- icon: "trash",- hint: "Del",- disabled: selectedClipIds.length === 0,- onSelect: deleteSelected,- danger: true,- },- ],- [- {- label: snap ? t("menu.edit.disableSnapping") : t("menu.edit.enableSnapping"),- icon: "magnet",- hint: "N",- onSelect: () => setSnap((current) => !current),- },- ],- ],- },- {- label: t("menu.view.title"),- groups: [- [- { label: t("menu.view.zoomIn"), icon: "plus", onSelect: () => zoom(1 / 1.4) },- { label: t("menu.view.zoomOut"), icon: "minus", onSelect: () => zoom(1.4) },- ],- [- {- label: t("menu.view.goToStart"),- icon: "skipStart",- hint: "Home",- onSelect: () => transport.seek(0),- },- {- label: t("menu.view.goToEnd"),- icon: "skipEnd",- hint: "End",- onSelect: () => transport.seek(duration),- },- ],- ],- },- ],- [- deleteSelected,- duration,- renderableClipCount,- onCloseProject,- openExport,- openSettings,- openSpeech,- openTemplateDialog,- placeMediaSet,- redoAction,- saveAndNotify,- selectedClipIds,- selectedMediaIds,- snap,- splitAtPlayhead,- t,- tp,- transport,- undoAction,- view,- zoom,- ],- );-- return (- <div className="flex h-full flex-col overflow-hidden">- <TitleBar- projectName={projectName}- status={- saveState === "saving"- ? t("status.saving")- : saveState === "failed"- ? t("status.saveFailed")- : saveState === "saved"- ? t("status.saved")- : version === "unavailable"- ? t("status.engineUnavailable")- : version- ? t("status.engine", { version })- : undefined- }- theme={theme}- onToggleTheme={onToggleTheme}- onOpenSettings={openSettings}- actions={exportAction}- menus={menus}- />-- <div className="flex min-h-0 flex-1 flex-col p-2">- <div className="flex min-h-0 flex-1">- <div style={{ width: leftWidth }} className="min-w-0 shrink-0">- <MediaBin- items={project.media}- assets={assets.current}- dropping={dropping}- filter={binFilter}- selectedIds={selectedMediaIds}- busy={busy}- error={error}- onFilter={setBinFilter}- onAddText={addText}- onSelect={selectMedia}- onImport={importFiles}- onRemove={removeMedia}- onRemoveSelected={deleteSelectedMedia}- onDismissError={dismissError}- onBeginDrag={beginMediaDrag}- onAddToTimeline={addToTimeline}- onApplyEffect={applyEffect}- onApplyTransition={applyTransition}- onToggleSlot={toggleSlot}- onSaveTemplate={openTemplateDialog}- onUseTemplate={leaveForTemplate}- />- </div>-- <Resizer- direction="vertical"- onResize={(delta) =>- setLeftWidth((width) => Math.min(560, Math.max(220, width + delta)))- }- />-- <div className="min-w-0 flex-1">- <Preview- source={previewSource}- overlays={textOverlays}- playing={playing}- playhead={playhead}- duration={duration}- frameRate={frameRate}- frame={frame}- quality={previewQuality}- onQualityChange={setPreviewQuality}- transform={- previewClip- ? {- scale: previewClip.scale,- offsetX: previewClip.offsetX,- offsetY: previewClip.offsetY,- rotation: previewClip.rotation,- }- : null- }- opacity={previewClip?.opacity ?? 1}- effects={previewClip?.videoEffects ?? null}- ghost={previewGhost}- engineStill={engineStill}- veil={previewVeil}- mediaSize={- previewMedia && previewMedia.width && previewMedia.height- ? { width: previewMedia.width, height: previewMedia.height }- : null- }- selectedClipId={selectedClipIds.length === 1 ? selectedClipIds[0] : null}- onSelectClip={(clipId) => setSelectedClipIds([clipId])}- onTransformChange={(clipId, transform) =>- liveClip(clipId, transformPatch(transform))- }- onTransformEnd={commitEcho}- onOverlayChange={(clipId, change) => {- const patch: Partial<Clip> = transformPatch({- offsetX: change.offsetX,- offsetY: change.offsetY,- });- if (change.fontSize !== undefined) {- const clip = findClip(latest.current.project, clipId);- if (clip?.text) patch.text = { ...clip.text, fontSize: change.fontSize };- }- liveClip(clipId, patch);- }}- onOverlayEnd={commitEcho}- onFrameChange={(width, height) => setFrame({ width, height })}- onTogglePlay={transport.toggle}- onStep={(frames) => transport.step(frames, frameRate)}- onSeek={transport.seek}- />- </div>-- <Resizer- direction="vertical"- onResize={(delta) =>- setRightWidth((width) => Math.min(520, Math.max(220, width - delta)))- }- />-- <div style={{ width: rightWidth }} className="min-w-0 shrink-0">- <RightPanel- tab={rightTab}- onTab={setRightTab}- clip={selectedClip}- media={inspectorMedia}- project={project}- fonts={fontsForUi}- projectName={projectName}- projectPath={session.path}- frame={frame}- duration={duration}- frameRate={frameRate}- onAddFont={addFont}- onRemoveFont={removeFont}- onChangeClip={changeClip}- onCommitClip={commitEcho}- onSpeedChange={changeSpeed}- onModifyProject={openModifyProject}- />- </div>- </div>-- <Resizer- direction="horizontal"- onResize={(delta) =>- setTimelineHeight((height) => Math.min(700, Math.max(160, height - delta)))- }- />-- <div style={{ height: timelineHeight }} className="min-h-0 shrink-0">- <TimelinePanel- project={project}- playhead={playhead}- playing={playing}- frameRate={frameRate}- tool={tool}- snap={snap}- selectedClipIds={selectedClipIds}- secondsPerPixel={secondsPerPixel}- scrollLeft={scrollLeft}- trackScroll={trackScroll}- assets={assets.current}- theme={theme}- onToolChange={setTool}- onSnapChange={setSnap}- onScrub={transport.seek}- onSelectClips={setSelectedClipIds}- onMoveClips={(moves) => {- for (const move of moves) {- liveClip(move.clipId, { start: Math.max(0, move.start), trackId: move.trackId });- }- }}- onTrimClip={(clipId, edge, delta) => {- const clip = findClip(latest.current.project, clipId);- if (clip) liveClip(clipId, trimPatch(clip, edge, delta));- }}- onGestureEnd={commitEcho}- onSplitAtPlayhead={splitAtPlayhead}- onMergeSelected={mergeSelected}- mergeBlockedBecause={mergeBlockedBecause}- onDeleteSelected={deleteSelected}- mediaDrag={mediaDrag ? { x: mediaDrag.x, y: mediaDrag.y } : null}- onZoom={zoom}- onScroll={setScrollLeft}- onTrackScroll={setTrackScroll}- onFit={fit}- onTrackFlag={(trackId, flag, value) =>- void dispatch({ op: "setTrackFlag", trackId, flag, value })- }- clipTools={clipTools}- onSelectTimeline={selectTimeline}- onAddTimeline={createTimeline}- onRenameTimeline={(timelineId, name) =>- void dispatch({ op: "renameTimeline", timelineId, name })- }- onMoveTimeline={(timelineId, index) =>- void dispatch({ op: "moveTimeline", timelineId, index })- }- onRequestRemoveTimeline={(timelineId) => {- const meta = project.timelines.find((candidate) => candidate.id === timelineId);- if (meta) setTimelineToDelete({ id: meta.id, name: meta.name });- }}- onAddTrack={() => void dispatch({ op: "addTrack" })}- onRenameTrack={(trackId, name) =>- void dispatch({ op: "renameTrack", trackId, name })- }- onRemoveTrack={(trackId) => void dispatch({ op: "removeTrack", trackId })}- onClipContextMenu={(clipId, x, y) => {- const target = selectedClipIds.includes(clipId) ? selectedClipIds : [clipId];- setSelectedClipIds(target);-- const clip = findClip(project, clipId);- const many = target.length > 1;-- setContext({- x,- y,- // Related actions share a group; the menu draws a divider- // between groups and drops any that come up empty.- groups: [- // Cutting.- [- {- label: tp("contextMenu.splitClips", target.length),- icon: "razor",- hint: "S",- onSelect: splitAtPlayhead,- },- ...(whyNotMerge(project, target) === null- ? [- {- label: tp("contextMenu.mergeClips", target.length),- icon: "merge" as const,- hint: "M",- onSelect: mergeSelected,- },- ]- : []),- ],- // Generation: captions out of speech, speech out of titles.- [- ...(() => {- const media = clip ? findMedia(project, clip.mediaId) : null;- return !many &&- clip &&- (clip.kind === "video" || clip.kind === "audio") &&- media?.hasAudio &&- !transcribing- ? [- {- label: t("menu.clip.autoCaptions"),- icon: "type" as const,- onSelect: () => void autoCaption(clip, media),- },- ]- : [];- })(),- ...(!many && clip?.kind === "text"- ? [- {- label: t("menu.clip.generateVoice"),- icon: "volume" as const,- onSelect: () =>- setSpeech({ text: clip.text?.content ?? "", at: clip.start }),- },- ]- : []),- ],- // The audio attached to a video clip.- [- ...(!many &&- clip?.kind === "video" &&- !clip.muted &&- findMedia(project, clip.mediaId)?.hasAudio &&- detachedAudioOf(project, clip.id).length === 0- ? [- {- label: t("menu.clip.detachAudio"),- icon: "waveform" as const,- onSelect: () => void dispatch({ op: "detachAudio", clipId }),- },- ]- : []),- ...(!many &&- clip &&- ((clip.kind === "video" && detachedAudioOf(project, clip.id).length > 0) ||- (clip.kind === "audio" &&- clip.detachedFrom &&- findClip(project, clip.detachedFrom)))- ? [- {- label: t("menu.clip.reattachAudio"),- icon: "merge" as const,- onSelect: () => {- void dispatch({ op: "reattachAudio", clipId });- setSelectedClipIds([]);- },- },- ]- : []),- ],- // Arranging.- [- {- label: t("contextMenu.moveToPlayhead"),- icon: "select",- onSelect: () => {- const moving = findClip(latest.current.project, clipId);- if (moving) {- void dispatch({- op: "moveClips",- moves: [- {- clipId,- start: latest.current.playhead,- trackId: moving.trackId,- },- ],- });- }- },- },- ],- // Destruction, kept in its own section at the bottom.- [- {- label: tp("contextMenu.deleteClips", target.length),- icon: "trash",- hint: "Del",- danger: true,- onSelect: () => {- void dispatch({ op: "removeClips", clipIds: target });- setSelectedClipIds([]);- },- },- ],- ],- });- }}- />- </div>- </div>-- {context && <ContextMenu target={context} onClose={() => setContext(null)} />}- {settingsOpen && <SettingsDialog onClose={() => setSettingsOpen(false)} />}- {speech && (- <TtsDialog- projectPath={session.path}- initialText={speech.text}- onGenerated={(path) => insertNarration(path, speech.at)}- onClose={() => setSpeech(null)}- />- )}-- {modifyingProject && (- <ModifyProjectDialog- name={projectName}- frame={frame}- frameRate={frameRate}- busy={modifyingProject.busy}- onSave={({ name, width, height }) => {- setModifyingProject({ busy: true });- setFrame({ width, height });- editorSave({ width, height, name })- .then(() => {- setProjectName(name);- setModifyingProject(null);- pushToast(t("toast.projectDetailsSaved"), false);- })- .catch((cause: unknown) => {- setModifyingProject({ busy: false });- pushToast(String(cause), true);- });- }}- onCancel={() => setModifyingProject(null)}- />- )}-- {templateDialog && (- <SaveTemplateDialog- defaultName={projectName}- slotCount={project.media.filter((item) => item.placeholder).length}- busy={templateDialog.busy}- onSave={(name) => {- setTemplateDialog({ busy: true });- templateSave(name)- .then((info) => {- setTemplateDialog(null);- setToast({- id: Date.now(),- message: t("toast.templateSaved", { name: info.name }),- failed: false,- });- })- .catch((cause: unknown) => {- setTemplateDialog({ busy: false });- setToast({ id: Date.now(), message: String(cause), failed: true });- });- }}- onCancel={() => setTemplateDialog(null)}- />- )}-- {timelineToDelete && (- <ConfirmDialog- title={t("dialog.deleteTimeline.title", { name: timelineToDelete.name })}- message={(() => {- const count = timelineClipCount(project, timelineToDelete.id);- return count > 0- ? tp("dialog.deleteTimeline.clipsLost", count)- : t("dialog.deleteTimeline.empty");- })()}- confirmLabel={t("dialog.deleteTimeline.confirm")}- onConfirm={() => {- deleteTimelineNow(timelineToDelete.id);- setTimelineToDelete(null);- }}- onCancel={() => setTimelineToDelete(null)}- />- )}-- {toast && (- <Toast- key={toast.id}- toast={toast}- // Guarded so an old toast's exit can never dismiss its replacement.- onDone={(id) => setToast((current) => (current?.id === id ? null : current))}- />- )}-- {exporting && (- <ExportDialog- projectName={projectName}- projectPath={session.path}- width={frame.width}- height={frame.height}- rateNum={session.rateNum}- rateDen={session.rateDen}- duration={duration}- clipCount={renderableClipCount}- titles={exportTitles}- onClose={() => setExporting(false)}- />- )}-- {/* The dragged item follows the pointer. */}- {mediaDrag && (- <div- style={{ left: mediaDrag.x + 14, top: mediaDrag.y + 14 }}- className="surface pointer-events-none fixed z-50 flex items-center gap-2 rounded-lg px-2.5 py-1.5"- >- <Icon- name={mediaDrag.item.kind === "video" ? "film" : "music"}- size={13}- className={mediaDrag.item.kind === "video" ? "text-accent" : "text-clip-audio"}- />- <span className="max-w-48 truncate text-xs text-primary">{mediaDrag.item.name}</span>- {selectedMediaIds.length > 1 && selectedMediaIds.includes(mediaDrag.item.id) && (- <span className="rounded bg-accent px-1.5 font-technical text-[10px] text-on-accent">- {selectedMediaIds.length}- </span>- )}- </div>- )}- </div>- );-}diff --git a/desktop/src/assets/concat-logo.png b/desktop/src/assets/concat-logo.pngdeleted file mode 100644index 991f698d..00000000Binary files a/desktop/src/assets/concat-logo.png and /dev/null differdiff --git a/desktop/src/assets/effect-previews/.gitkeep b/desktop/src/assets/effect-previews/.gitkeepdeleted file mode 100644index e69de29b..00000000diff --git a/desktop/src/assets/effect-previews/black-white.jpg b/desktop/src/assets/effect-previews/black-white.jpgdeleted file mode 100644index e33005b9..00000000Binary files a/desktop/src/assets/effect-previews/black-white.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/box-blur.jpg b/desktop/src/assets/effect-previews/box-blur.jpgdeleted file mode 100644index 51abb9f2..00000000Binary files a/desktop/src/assets/effect-previews/box-blur.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/contrast-pop.jpg b/desktop/src/assets/effect-previews/contrast-pop.jpgdeleted file mode 100644index ab8093b6..00000000Binary files a/desktop/src/assets/effect-previews/contrast-pop.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/cool.jpg b/desktop/src/assets/effect-previews/cool.jpgdeleted file mode 100644index 8955fddf..00000000Binary files a/desktop/src/assets/effect-previews/cool.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/film-grain.jpg b/desktop/src/assets/effect-previews/film-grain.jpgdeleted file mode 100644index a1a6f9e6..00000000Binary files a/desktop/src/assets/effect-previews/film-grain.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/fisheye.jpg b/desktop/src/assets/effect-previews/fisheye.jpgdeleted file mode 100644index 84e4403d..00000000Binary files a/desktop/src/assets/effect-previews/fisheye.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/gaussian-blur.jpg b/desktop/src/assets/effect-previews/gaussian-blur.jpgdeleted file mode 100644index ce7113eb..00000000Binary files a/desktop/src/assets/effect-previews/gaussian-blur.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/glow.jpg b/desktop/src/assets/effect-previews/glow.jpgdeleted file mode 100644index a456043e..00000000Binary files a/desktop/src/assets/effect-previews/glow.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/invert.jpg b/desktop/src/assets/effect-previews/invert.jpgdeleted file mode 100644index b553518b..00000000Binary files a/desktop/src/assets/effect-previews/invert.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/mirror.jpg b/desktop/src/assets/effect-previews/mirror.jpgdeleted file mode 100644index e8c16f3b..00000000Binary files a/desktop/src/assets/effect-previews/mirror.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/motion-blur.jpg b/desktop/src/assets/effect-previews/motion-blur.jpgdeleted file mode 100644index 2db5c4e3..00000000Binary files a/desktop/src/assets/effect-previews/motion-blur.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/pixelate.jpg b/desktop/src/assets/effect-previews/pixelate.jpgdeleted file mode 100644index 59d59cfb..00000000Binary files a/desktop/src/assets/effect-previews/pixelate.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/posterize.jpg b/desktop/src/assets/effect-previews/posterize.jpgdeleted file mode 100644index 920cf902..00000000Binary files a/desktop/src/assets/effect-previews/posterize.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/sepia.jpg b/desktop/src/assets/effect-previews/sepia.jpgdeleted file mode 100644index d8994210..00000000Binary files a/desktop/src/assets/effect-previews/sepia.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/shake.jpg b/desktop/src/assets/effect-previews/shake.jpgdeleted file mode 100644index 0cb5acc2..00000000Binary files a/desktop/src/assets/effect-previews/shake.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/sharpen.jpg b/desktop/src/assets/effect-previews/sharpen.jpgdeleted file mode 100644index f9c0b0bb..00000000Binary files a/desktop/src/assets/effect-previews/sharpen.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/vibrance.jpg b/desktop/src/assets/effect-previews/vibrance.jpgdeleted file mode 100644index d3baf791..00000000Binary files a/desktop/src/assets/effect-previews/vibrance.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/vignette.jpg b/desktop/src/assets/effect-previews/vignette.jpgdeleted file mode 100644index 934a1724..00000000Binary files a/desktop/src/assets/effect-previews/vignette.jpg and /dev/null differdiff --git a/desktop/src/assets/effect-previews/warm.jpg b/desktop/src/assets/effect-previews/warm.jpgdeleted file mode 100644index 957990ac..00000000Binary files a/desktop/src/assets/effect-previews/warm.jpg and /dev/null differdiff --git a/desktop/src/assets/fonts/CabinetGrotesk-Variable.woff2 b/desktop/src/assets/fonts/CabinetGrotesk-Variable.woff2deleted file mode 100644index f2864d94..00000000Binary files a/desktop/src/assets/fonts/CabinetGrotesk-Variable.woff2 and /dev/null differdiff --git a/desktop/src/assets/fonts/LICENSE-CabinetGrotesk.txt b/desktop/src/assets/fonts/LICENSE-CabinetGrotesk.txtdeleted file mode 100644index 8ae62003..00000000--- a/desktop/src/assets/fonts/LICENSE-CabinetGrotesk.txt+++ /dev/null@@ -1,132 +0,0 @@-Fontshare---------------------------------------------------------------------ITF Free Font License (FFL)-Version 2.0 - 17 Aug 2026---------------------------------------------------------------------Notice to User--Indian Type Foundry designs, produces and distributes font software as digital fonts to end users worldwide. In addition to commercial fonts that are available for a fee, ITF also offers several fonts that can be used free of charge. These free fonts are distributed through a dedicated platform called www.fontshare.com (“Fontshare”) to end users worldwide. Fonts identified on Fontshare as being licensed under the ITF Free Font License are subject to this legally binding EULA between Indian Type Foundry (“Indian Type Foundry”, “ITF” or “Licensor”) and you (“Licensee”).--You acknowledge that the Font Software and the designs embodied therein are protected by copyright, other intellectual property and industrial property rights, and international treaties. They are and shall remain at all times the intellectual property of Indian Type Foundry.--In addition to direct download, Fontshare may also make the Font Software available through the Fontshare API. In this case, the Font Software is delivered directly from servers used by Indian Type Foundry to the Licensee's website, without the Licensee having to download or host the Font Software.--By downloading, accessing, self-hosting, installing, storing, embedding, copying or otherwise using the Font Software, you agree to the following terms.---Definitions--“Font Software” refers to the computer files or programs released under this License that enable the display, reproduction and rendering of the typeface designs, including letters, numerals, punctuation, symbols, ornaments and other typographic characters. Font Software includes all font formats and bitmap or vector representations distributed by Indian Type Foundry under this License.--“Official Version” refers to the Font Software as officially distributed by Indian Type Foundry through Fontshare.--“Derivative Work” refers to any modified, adapted, altered or otherwise derived version of the Font Software or the typeface designs embodied therein, including modifications to font files (such as OTF, TTF, WOFF, WOFF2 or variable fonts), glyphs, characters, spacing, kerning, metrics, naming, subsetting, format conversion or other font data.--Derivative Work does not include any logo, document, graphic, image, website, application or other creative work created through the normal use of the Font Software, ownership of which remains with its respective creator or rights holder.---01 Grant of License--You are hereby granted a non-exclusive, non-assignable, non-transferable and terminable license to access, download, install, store and use the Font Software for personal or commercial purposes, free of charge and for an unlimited period of time, subject to the terms of this License.--You may use the Font Software in any media, including Print, Websites, Mobile or Desktop Applications, Digital Images, Digital Advertising, Social Media, ePublishing, Video, Broadcasting and Games, at any scale and in any location worldwide.--You may self-host the Font Software on your own servers or infrastructure for use on your own websites and applications, including through standard webfont technologies such as CSS @font-face. Self-hosting by end users is permitted and recommended for greater control, reliability and performance. Use of the Fontshare API is optional and is not required for web use.--You may embed the Font Software in mobile or desktop applications and digital documents for the uses permitted under this License.--You may use the Font Software to create logos, wordmarks, graphic elements, images, vector files, scalable drawings and other creative works. Logos and wordmarks created using the Font Software may be registered as trademarks. Any rights in the resulting creative works, including any trademark rights, remain with their respective creator or rights holder. Such rights do not grant any ownership or exclusive rights in the Font Software or the underlying typeface designs.--You may use the Font Software on any number of devices, including computers, tablets and phones. The number of output devices, including printers, is not restricted. Where the Licensee is an organization, the Font Software may be installed, stored, copied and shared internally among its employees for the Licensee's own permitted uses under this License. Such internal sharing does not constitute redistribution under this License.--You may make a reasonable number of backup copies of the Font Software as necessary for your permitted use.--You may, but are not required to, identify or credit Indian Type Foundry or Fontshare in works created using the Font Software.---02 Limitations of Usage--You may not modify, edit, adapt, translate, reverse engineer, decompile, disassemble or otherwise alter the Font Software or the typeface designs embodied therein, in whole or in part, without the prior written consent of the Licensor. This includes modifying or replacing glyphs, subsetting, format conversion, or altering font names, copyright information, ownership information or other metadata.--The Font Software may not, beyond the permitted copies and uses defined herein, be distributed, duplicated, loaned, resold, sublicensed, transferred, donated, given away or otherwise made available to any other person or entity, whether for free or for a fee. This includes distributing the Font Software through another font website, font library, marketplace, repository, download service, application or platform, or by email, removable media, publicly accessible servers, file-sharing services, peer-to-peer networks or any other means.--You may not provide the Font Software directly to external designers, agencies, contractors, printers or other service providers. Any third party wishing to use the Font Software must obtain their own copy directly from Fontshare and be independently bound by this License.--You may not host, serve, embed or otherwise make the Font Software available for use by third parties through any website, application, online service, SaaS platform, design tool, template editor or similar service. This includes making the Font Software available as a selectable font for third-party users to create, edit, customize or generate their own content, even where such users cannot download or extract the Font Software itself.--For the avoidance of doubt, nothing in this Section 02 restricts the self-hosting, embedding or other use of the Font Software by the Licensee for the Licensee's own websites, applications or other permitted uses under Section 01.---03 Embedding--You may embed the Font Software in PDFs and other digital documents for your permitted uses under this License, provided that the embeddedFont Software cannot be extracted or used independently from the document.--Documents containing embedded Font Software may be distributed without restriction as to the number of recipients.--The extraction of the Font Software, in whole or in part, for independent use is prohibited.---04 Third-party use, Commercial print service providers--You may provide documents, artwork or other files created using the Font Software to commercial printers and other service providers for printing, production or display purposes.--If a service provider requires access to the Font Software itself, they must obtain their own copy directly from Fontshare and be independently bound by this License.---05 Derivative Work--You may not create a Derivative Work from the Font Software without the prior written consent of the Licensor.--Where the Licensor expressly permits the creation of a Derivative Work, such permission is limited to the specific use authorized by the Licensor and does not grant any ownership or other rights in the Official Version of the Font Software or the underlying typefacedesigns.--A Derivative Work may not be sublicensed, sold, leased, rented, loaned, distributed, transferred or otherwise made available to any third party without the prior written consent of the Licensor.---06 Warranty and Liability--THE FONT SOFTWARE IS PROVIDED FREE OF CHARGE AND ON AN “AS IS” AND “AS AVAILABLE” BASIS. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPATIBILITY, AVAILABILITY OR OTHERWISE.--TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY SHALL NOT BE LIABLE TO THE LICENSEEOR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF PROFITS, REVENUE, DATA, BUSINESS OR SAVINGS, OR BUSINESS INTERRUPTION, ARISING OUT OF THE USE OF OR INABILITY TO USE THE FONT SOFTWARE.--IF THE LICENSEE CHOOSES TO ACCESS OR SERVE THE FONT SOFTWARE THROUGH THE FONTSHARE API, THE LICENSEE DOES SO AT ITS OWN RISK. THE FONTSHARE API IS PROVIDED AS A CONVENIENCE AND DOES NOT FORM PART OF THE RIGHTS GRANTED TO THE LICENSEE TO USE THE FONT SOFTWARE UNDER THIS LICENSE.--INDIAN TYPE FOUNDRY DOES NOT GUARANTEE THE AVAILABILITY, PERFORMANCE OR CONTINUED OPERATION OF THE FONTSHARE API. INDIAN TYPE FOUNDRY MAY, AT ITS SOLE DISCRETION AND WITHOUT PRIOR NOTICE, MODIFY, RESTRICT, SUSPEND OR DISCONTINUE ACCESS TO THE FONTSHARE API, WHETHER GENERALLY OR FOR ANY PARTICULAR USER, WEBSITE OR APPLICATION. INDIAN TYPE FOUNDRY SHALL NOT BE RESPONSIBLE OR LIABLE FOR ANY INTERRUPTION, MALFUNCTION, DOWNTIME, CHANGE, RESTRICTION OR DISCONTINUATION OF THE API, OR FOR ANY RESULTING IMPACT ON THE LICENSEE'S WEBSITE, APPLICATION OR OTHER SERVICES.---07 Updates, Maintenance and Support Services--Indian Type Foundry is under no obligation to provide updates, upgrades, maintenance, technical support or other support services for the Font Software under this License.--Indian Type Foundry may, at its sole discretion, update, modify, replace or discontinue any Font Software made available through Fontshare.---08 Termination--Any breach of the terms of this License shall be grounds for termination. Where the breach is capable of being remedied, the Licensor may notify the Licensee in writing and require the breach to be remedied within 30 days of receipt of such notice.--Notwithstanding the foregoing, the Licensor may terminatethis License immediately in the event of any deliberate or material unauthorized modification, redistribution, sale, sublicensing, transfer or other misuse of the Font Software or the intellectual property rights of Indian Type Foundry.--Upon termination, and without limitation of any other remedies available under law or equity, the Licensee must immediately cease all use of the Font Software and delete the Font Software and all copies thereof inits possession or control. Proof of deletion must be provided upon request of the Licensor.--Indian Type Foundry reserves the right to seek damages and any other remedies available under applicable law for any breach of this License.---09 Final Provisions--If any provision of this License is found to be invalid, illegal or unenforceable, the remaining provisions shall remain in full force and effect. Any invalid, illegal or unenforceable provision shall, to the extent legally permissible, be interpreted or replaced in a manner that most closely reflects its original purpose.--The failure of Indian Type Foundry to enforce any provision of this License shall not constitute a waiver of that provision or of its right to enforce it subsequently.--The uses expressly permitted under this License require no additional license or fee. If a Licensee requires additional rights or permissions, exceptions to any restrictions under this License, modifications or customizations to the Font Software or typeface designs, additional styles, weights, widths, characters or language extensions, technical support ormaintenance services, warranties or indemnities, or other customized licensing terms, they may contact Indian Type Foundry to discuss a separate custom license or arrangement.--This License shall be governed by the laws ofthe Republic of India. To the extent legally permissible, the courts located in Ahmedabad, Gujarat, India shall have exclusive jurisdiction over any dispute arising out of or in connection with this License.---------------------------------------------------------------------ITF Free Font License (FFL)-Version 2.0 - 17 Aug 2026--Copyright © 2026 Indian Type Foundry. All rights reserved.-https://www.fontshare.com-------------------------------------------------------------------\ No newline at end of filediff --git a/desktop/src/assets/fonts/LICENSE-Synonym.txt b/desktop/src/assets/fonts/LICENSE-Synonym.txtdeleted file mode 100644index 8ae62003..00000000--- a/desktop/src/assets/fonts/LICENSE-Synonym.txt+++ /dev/null@@ -1,132 +0,0 @@-Fontshare---------------------------------------------------------------------ITF Free Font License (FFL)-Version 2.0 - 17 Aug 2026---------------------------------------------------------------------Notice to User--Indian Type Foundry designs, produces and distributes font software as digital fonts to end users worldwide. In addition to commercial fonts that are available for a fee, ITF also offers several fonts that can be used free of charge. These free fonts are distributed through a dedicated platform called www.fontshare.com (“Fontshare”) to end users worldwide. Fonts identified on Fontshare as being licensed under the ITF Free Font License are subject to this legally binding EULA between Indian Type Foundry (“Indian Type Foundry”, “ITF” or “Licensor”) and you (“Licensee”).--You acknowledge that the Font Software and the designs embodied therein are protected by copyright, other intellectual property and industrial property rights, and international treaties. They are and shall remain at all times the intellectual property of Indian Type Foundry.--In addition to direct download, Fontshare may also make the Font Software available through the Fontshare API. In this case, the Font Software is delivered directly from servers used by Indian Type Foundry to the Licensee's website, without the Licensee having to download or host the Font Software.--By downloading, accessing, self-hosting, installing, storing, embedding, copying or otherwise using the Font Software, you agree to the following terms.---Definitions--“Font Software” refers to the computer files or programs released under this License that enable the display, reproduction and rendering of the typeface designs, including letters, numerals, punctuation, symbols, ornaments and other typographic characters. Font Software includes all font formats and bitmap or vector representations distributed by Indian Type Foundry under this License.--“Official Version” refers to the Font Software as officially distributed by Indian Type Foundry through Fontshare.--“Derivative Work” refers to any modified, adapted, altered or otherwise derived version of the Font Software or the typeface designs embodied therein, including modifications to font files (such as OTF, TTF, WOFF, WOFF2 or variable fonts), glyphs, characters, spacing, kerning, metrics, naming, subsetting, format conversion or other font data.--Derivative Work does not include any logo, document, graphic, image, website, application or other creative work created through the normal use of the Font Software, ownership of which remains with its respective creator or rights holder.---01 Grant of License--You are hereby granted a non-exclusive, non-assignable, non-transferable and terminable license to access, download, install, store and use the Font Software for personal or commercial purposes, free of charge and for an unlimited period of time, subject to the terms of this License.--You may use the Font Software in any media, including Print, Websites, Mobile or Desktop Applications, Digital Images, Digital Advertising, Social Media, ePublishing, Video, Broadcasting and Games, at any scale and in any location worldwide.--You may self-host the Font Software on your own servers or infrastructure for use on your own websites and applications, including through standard webfont technologies such as CSS @font-face. Self-hosting by end users is permitted and recommended for greater control, reliability and performance. Use of the Fontshare API is optional and is not required for web use.--You may embed the Font Software in mobile or desktop applications and digital documents for the uses permitted under this License.--You may use the Font Software to create logos, wordmarks, graphic elements, images, vector files, scalable drawings and other creative works. Logos and wordmarks created using the Font Software may be registered as trademarks. Any rights in the resulting creative works, including any trademark rights, remain with their respective creator or rights holder. Such rights do not grant any ownership or exclusive rights in the Font Software or the underlying typeface designs.--You may use the Font Software on any number of devices, including computers, tablets and phones. The number of output devices, including printers, is not restricted. Where the Licensee is an organization, the Font Software may be installed, stored, copied and shared internally among its employees for the Licensee's own permitted uses under this License. Such internal sharing does not constitute redistribution under this License.--You may make a reasonable number of backup copies of the Font Software as necessary for your permitted use.--You may, but are not required to, identify or credit Indian Type Foundry or Fontshare in works created using the Font Software.---02 Limitations of Usage--You may not modify, edit, adapt, translate, reverse engineer, decompile, disassemble or otherwise alter the Font Software or the typeface designs embodied therein, in whole or in part, without the prior written consent of the Licensor. This includes modifying or replacing glyphs, subsetting, format conversion, or altering font names, copyright information, ownership information or other metadata.--The Font Software may not, beyond the permitted copies and uses defined herein, be distributed, duplicated, loaned, resold, sublicensed, transferred, donated, given away or otherwise made available to any other person or entity, whether for free or for a fee. This includes distributing the Font Software through another font website, font library, marketplace, repository, download service, application or platform, or by email, removable media, publicly accessible servers, file-sharing services, peer-to-peer networks or any other means.--You may not provide the Font Software directly to external designers, agencies, contractors, printers or other service providers. Any third party wishing to use the Font Software must obtain their own copy directly from Fontshare and be independently bound by this License.--You may not host, serve, embed or otherwise make the Font Software available for use by third parties through any website, application, online service, SaaS platform, design tool, template editor or similar service. This includes making the Font Software available as a selectable font for third-party users to create, edit, customize or generate their own content, even where such users cannot download or extract the Font Software itself.--For the avoidance of doubt, nothing in this Section 02 restricts the self-hosting, embedding or other use of the Font Software by the Licensee for the Licensee's own websites, applications or other permitted uses under Section 01.---03 Embedding--You may embed the Font Software in PDFs and other digital documents for your permitted uses under this License, provided that the embeddedFont Software cannot be extracted or used independently from the document.--Documents containing embedded Font Software may be distributed without restriction as to the number of recipients.--The extraction of the Font Software, in whole or in part, for independent use is prohibited.---04 Third-party use, Commercial print service providers--You may provide documents, artwork or other files created using the Font Software to commercial printers and other service providers for printing, production or display purposes.--If a service provider requires access to the Font Software itself, they must obtain their own copy directly from Fontshare and be independently bound by this License.---05 Derivative Work--You may not create a Derivative Work from the Font Software without the prior written consent of the Licensor.--Where the Licensor expressly permits the creation of a Derivative Work, such permission is limited to the specific use authorized by the Licensor and does not grant any ownership or other rights in the Official Version of the Font Software or the underlying typefacedesigns.--A Derivative Work may not be sublicensed, sold, leased, rented, loaned, distributed, transferred or otherwise made available to any third party without the prior written consent of the Licensor.---06 Warranty and Liability--THE FONT SOFTWARE IS PROVIDED FREE OF CHARGE AND ON AN “AS IS” AND “AS AVAILABLE” BASIS. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPATIBILITY, AVAILABILITY OR OTHERWISE.--TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, INDIAN TYPE FOUNDRY SHALL NOT BE LIABLE TO THE LICENSEEOR ANY THIRD PARTY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF PROFITS, REVENUE, DATA, BUSINESS OR SAVINGS, OR BUSINESS INTERRUPTION, ARISING OUT OF THE USE OF OR INABILITY TO USE THE FONT SOFTWARE.--IF THE LICENSEE CHOOSES TO ACCESS OR SERVE THE FONT SOFTWARE THROUGH THE FONTSHARE API, THE LICENSEE DOES SO AT ITS OWN RISK. THE FONTSHARE API IS PROVIDED AS A CONVENIENCE AND DOES NOT FORM PART OF THE RIGHTS GRANTED TO THE LICENSEE TO USE THE FONT SOFTWARE UNDER THIS LICENSE.--INDIAN TYPE FOUNDRY DOES NOT GUARANTEE THE AVAILABILITY, PERFORMANCE OR CONTINUED OPERATION OF THE FONTSHARE API. INDIAN TYPE FOUNDRY MAY, AT ITS SOLE DISCRETION AND WITHOUT PRIOR NOTICE, MODIFY, RESTRICT, SUSPEND OR DISCONTINUE ACCESS TO THE FONTSHARE API, WHETHER GENERALLY OR FOR ANY PARTICULAR USER, WEBSITE OR APPLICATION. INDIAN TYPE FOUNDRY SHALL NOT BE RESPONSIBLE OR LIABLE FOR ANY INTERRUPTION, MALFUNCTION, DOWNTIME, CHANGE, RESTRICTION OR DISCONTINUATION OF THE API, OR FOR ANY RESULTING IMPACT ON THE LICENSEE'S WEBSITE, APPLICATION OR OTHER SERVICES.---07 Updates, Maintenance and Support Services--Indian Type Foundry is under no obligation to provide updates, upgrades, maintenance, technical support or other support services for the Font Software under this License.--Indian Type Foundry may, at its sole discretion, update, modify, replace or discontinue any Font Software made available through Fontshare.---08 Termination--Any breach of the terms of this License shall be grounds for termination. Where the breach is capable of being remedied, the Licensor may notify the Licensee in writing and require the breach to be remedied within 30 days of receipt of such notice.--Notwithstanding the foregoing, the Licensor may terminatethis License immediately in the event of any deliberate or material unauthorized modification, redistribution, sale, sublicensing, transfer or other misuse of the Font Software or the intellectual property rights of Indian Type Foundry.--Upon termination, and without limitation of any other remedies available under law or equity, the Licensee must immediately cease all use of the Font Software and delete the Font Software and all copies thereof inits possession or control. Proof of deletion must be provided upon request of the Licensor.--Indian Type Foundry reserves the right to seek damages and any other remedies available under applicable law for any breach of this License.---09 Final Provisions--If any provision of this License is found to be invalid, illegal or unenforceable, the remaining provisions shall remain in full force and effect. Any invalid, illegal or unenforceable provision shall, to the extent legally permissible, be interpreted or replaced in a manner that most closely reflects its original purpose.--The failure of Indian Type Foundry to enforce any provision of this License shall not constitute a waiver of that provision or of its right to enforce it subsequently.--The uses expressly permitted under this License require no additional license or fee. If a Licensee requires additional rights or permissions, exceptions to any restrictions under this License, modifications or customizations to the Font Software or typeface designs, additional styles, weights, widths, characters or language extensions, technical support ormaintenance services, warranties or indemnities, or other customized licensing terms, they may contact Indian Type Foundry to discuss a separate custom license or arrangement.--This License shall be governed by the laws ofthe Republic of India. To the extent legally permissible, the courts located in Ahmedabad, Gujarat, India shall have exclusive jurisdiction over any dispute arising out of or in connection with this License.---------------------------------------------------------------------ITF Free Font License (FFL)-Version 2.0 - 17 Aug 2026--Copyright © 2026 Indian Type Foundry. All rights reserved.-https://www.fontshare.com-------------------------------------------------------------------\ No newline at end of filediff --git a/desktop/src/assets/fonts/Synonym-Variable.woff2 b/desktop/src/assets/fonts/Synonym-Variable.woff2deleted file mode 100644index d1050534..00000000Binary files a/desktop/src/assets/fonts/Synonym-Variable.woff2 and /dev/null differdiff --git a/desktop/src/components/AdjustPanel.tsx b/desktop/src/components/AdjustPanel.tsxdeleted file mode 100644index e0dd564d..00000000--- a/desktop/src/components/AdjustPanel.tsx+++ /dev/null@@ -1,212 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { MAX_SCALE, MIN_SCALE, type Clip } from "../lib/editor";-import { t, useLocale } from "../lib/i18n";-import { Group, Slider, Toggle } from "./controls";-import { Icon } from "./Icon";-import { Empty } from "./Panel";--/**- * Level range, in decibels.- *- * The bottom is silence, not -60: a fader that cannot reach zero is a fader- * you cannot use to mute. +24 at the top because quiet material genuinely- * needs it - a distant lavalier or a phone recording is routinely 15-20 dB- * under, and a limit that cannot fix those is a limit in the wrong place.- */-const MIN_DB = -60;-const MAX_DB = 24;-/** A fade longer than half the clip would overlap the other one. */-const MAX_FADE = 10;--/** Linear gain to decibels. Zero maps to the bottom of the fader, not -inf. */-function toDecibels(gain: number): number {- if (gain <= 0) return MIN_DB;- return Math.max(MIN_DB, Math.min(MAX_DB, 20 * Math.log10(gain)));-}--function fromDecibels(decibels: number): number {- // At the very bottom the fader means silence, so snap to exactly zero- // rather than leaving an inaudible-but-nonzero gain in the project.- return decibels <= MIN_DB ? 0 : 10 ** (decibels / 20);-}--function formatDecibels(decibels: number): string {- if (decibels <= MIN_DB) return t("adjust.silent");- if (Math.abs(decibels) < 0.05) return "0.0 dB";- return `${decibels > 0 ? "+" : ""}${decibels.toFixed(1)} dB`;-}--/**- * The Adjust tab: properties of the selected clip that change how it plays.- *- * Everything here applies in two places - the preview, so you hear it now, and- * the exporter, so the file matches. Both read the same numbers off the clip,- * which is the only way those two can be guaranteed to agree.- *- * The fader works in decibels rather than linear gain. Linear puts every- * useful setting in the bottom sixth of the travel; decibels is both how the- * ear works and how anyone mixing thinks.- */-export function AdjustPanel({- clip,- onChange,- onCommit,- onSpeedChange,-}: {- clip: Clip | null;- /** Live change - echoed locally while the gesture is in flight. */- onChange: (patch: Partial<Clip>) => void;- /** Gesture finished - the accumulated change becomes one engine command. */- onCommit: () => void;- /** Separate, because changing speed also rescales the clip's duration. */- onSpeedChange: (speed: number) => void;-}) {- const { t } = useLocale();-- if (!clip) {- return (- <Empty icon={<Icon name="settings" size={26} strokeWidth={1.5} />}>- {t("adjust.empty")}- </Empty>- );- }-- const fadeLimit = Math.max(0.1, Math.min(MAX_FADE, clip.duration / 2));- const hasPicture = clip.kind === "video" || clip.kind === "image";- // A still is picture only: no gain to set, nothing a fade could quieten.- const hasSound = clip.kind !== "image";-- return (- <div className="px-3 py-3">- {hasPicture && (- <Group title={t("adjust.transform")} help={t("adjust.transformHelp")}>- <Slider- label={t("adjust.scale")}- value={clip.scale}- min={MIN_SCALE}- max={MAX_SCALE}- step={0.01}- format={(value) => `${Math.round(value * 100)}%`}- onReset={() => { onChange({ scale: 1 }); onCommit(); }}- onChange={(scale) => onChange({ scale })}- onCommit={onCommit}- />- <Slider- label={t("adjust.positionX")}- value={clip.offsetX}- min={-1}- max={1}- step={0.005}- format={(value) => `${Math.round(value * 100)}%`}- onReset={() => { onChange({ offsetX: 0 }); onCommit(); }}- onChange={(offsetX) => onChange({ offsetX })}- onCommit={onCommit}- />- <Slider- label={t("adjust.positionY")}- value={clip.offsetY}- min={-1}- max={1}- step={0.005}- format={(value) => `${Math.round(value * 100)}%`}- onReset={() => { onChange({ offsetY: 0 }); onCommit(); }}- onChange={(offsetY) => onChange({ offsetY })}- onCommit={onCommit}- />- <Slider- label={t("adjust.rotation")}- value={clip.rotation}- min={-180}- max={180}- step={1}- format={(value) => `${Math.round(value)}°`}- onReset={() => { onChange({ rotation: 0 }); onCommit(); }}- onChange={(rotation) => onChange({ rotation })}- onCommit={onCommit}- />- <Slider- label={t("adjust.opacity")}- value={clip.opacity}- min={0}- max={1}- step={0.01}- format={(value) => `${Math.round(value * 100)}%`}- onReset={() => { onChange({ opacity: 1 }); onCommit(); }}- onChange={(opacity) => onChange({ opacity })}- onCommit={onCommit}- />- </Group>- )}-- {hasSound && (- <Group title={t("adjust.volume")}>- <Slider- label={t("adjust.level")}- value={toDecibels(clip.volume)}- min={MIN_DB}- max={MAX_DB}- step={0.5}- format={formatDecibels}- onReset={() => { onChange({ volume: 1 }); onCommit(); }}- onChange={(decibels) => onChange({ volume: fromDecibels(decibels) })}- onCommit={onCommit}- />- </Group>- )}-- {clip.kind !== "image" && (- <Group title={t("adjust.speed")} help={t("adjust.speedHelp")}>- {/* The engine's full range. The track is linear so the useful- 0.25-4x band sits left of centre; the number field beside it is- how the extremes are actually dialled in. */}- <Slider- label={t("adjust.rate")}- value={clip.speed}- min={0.0625}- max={16}- step={0.05}- format={(value) => `${value.toFixed(2)}x`}- onReset={() => { onSpeedChange(1); onCommit(); }}- onChange={onSpeedChange}- onCommit={onCommit}- />- <Toggle- label={t("adjust.pitchToggle")}- hint={t("adjust.pitchHint")}- checked={!clip.preservePitch}- onChange={(checked) => { onChange({ preservePitch: !checked }); onCommit(); }}- />- </Group>- )}-- {hasSound && (- <Group title={t("adjust.fades")}>- <Slider- label={t("adjust.fadeIn")}- value={Math.min(clip.fadeIn, fadeLimit)}- min={0}- max={fadeLimit}- step={0.05}- format={(value) => (value === 0 ? t("adjust.none") : `${value.toFixed(2)}s`)}- onReset={() => { onChange({ fadeIn: 0 }); onCommit(); }}- onChange={(fadeIn) => onChange({ fadeIn })}- onCommit={onCommit}- />- <Slider- label={t("adjust.fadeOut")}- value={Math.min(clip.fadeOut, fadeLimit)}- min={0}- max={fadeLimit}- step={0.05}- format={(value) => (value === 0 ? t("adjust.none") : `${value.toFixed(2)}s`)}- onReset={() => { onChange({ fadeOut: 0 }); onCommit(); }}- onChange={(fadeOut) => onChange({ fadeOut })}- onCommit={onCommit}- />- </Group>- )}- </div>- );-}diff --git a/desktop/src/components/ConfirmDialog.tsx b/desktop/src/components/ConfirmDialog.tsxdeleted file mode 100644index bfae469a..00000000--- a/desktop/src/components/ConfirmDialog.tsx+++ /dev/null@@ -1,78 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect } from "react";--import { Icon } from "./Icon";--/**- * A small blocking confirmation, for actions that destroy work.- *- * Edits are undoable through the engine's history; this sheet guards the- * destructions that are not, or that erase enough at once that a stray click- * should not get to do it. Kept deliberately plain: a title that names the- * thing, one sentence of consequence, and a danger-coloured button that- * repeats the verb - never just "OK", because the button is what people read- * when they skip the sentence.- */-export function ConfirmDialog({- title,- message,- confirmLabel,- onConfirm,- onCancel,-}: {- title: string;- message: string;- /** The verb, e.g. "Delete timeline". Shown on the danger button. */- confirmLabel: string;- onConfirm: () => void;- onCancel: () => void;-}) {- // Escape cancels, like every sheet. Enter deliberately does not confirm:- // a destructive default keyed to the most reflexive key would delete work.- useEffect(() => {- const onKey = (event: KeyboardEvent) => {- if (event.key === "Escape") onCancel();- };- window.addEventListener("keydown", onKey);- return () => window.removeEventListener("keydown", onKey);- }, [onCancel]);-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- if (event.target === event.currentTarget) onCancel();- }}- >- <div className="surface w-full max-w-sm rounded-2xl p-6">- <div className="mb-2 flex items-center gap-2">- <Icon name="trash" size={16} className="text-danger" />- <h2 className="text-sm font-semibold text-primary">{title}</h2>- </div>- <p className="mb-5 text-xs leading-relaxed text-secondary">{message}</p>- <div className="flex gap-1.5">- <button- type="button"- autoFocus- onClick={onCancel}- className="flex-1 cursor-pointer rounded-lg bg-hover px-4 py-2 text-sm text-primary- transition-colors hover:bg-active"- >- Cancel- </button>- <button- type="button"- onClick={onConfirm}- className="flex-1 cursor-pointer rounded-lg bg-danger px-4 py-2 text-sm font-medium- text-white transition-colors hover:opacity-90"- >- {confirmLabel}- </button>- </div>- </div>- </div>- );-}diff --git a/desktop/src/components/ContextMenu.tsx b/desktop/src/components/ContextMenu.tsxdeleted file mode 100644index 8dd01cf0..00000000--- a/desktop/src/components/ContextMenu.tsx+++ /dev/null@@ -1,113 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useLayoutEffect, useRef, useState } from "react";-import { createPortal } from "react-dom";--import { Icon, type IconName } from "./Icon";--export interface ContextItem {- label: string;- onSelect: () => void;- icon?: IconName;- hint?: string;- danger?: boolean;-}--export interface ContextTarget {- x: number;- y: number;- /** Related actions grouped together; a hairline divides the groups. */- groups: ContextItem[][];-}--/**- * A right-click menu, rendered through a portal so it is never clipped by a- * panel's `overflow: hidden`.- *- * Opened near the bottom or right edge it would spill off-screen, so its- * position is corrected once - after layout, before paint - from its real- * measured size.- */-export function ContextMenu({ target, onClose }: { target: ContextTarget; onClose: () => void }) {- const root = useRef<HTMLDivElement>(null);- const [position, setPosition] = useState({ x: target.x, y: target.y });-- useLayoutEffect(() => {- const element = root.current;- if (!element) return;- const { width, height } = element.getBoundingClientRect();- setPosition({- x: Math.max(8, Math.min(target.x, window.innerWidth - width - 8)),- y: Math.max(8, Math.min(target.y, window.innerHeight - height - 8)),- });- }, [target.x, target.y]);-- useEffect(() => {- // A portal renders outside the React tree, so propagation cannot tell us- // about an outside click. Check containment against the real node.- const onPointerDown = (event: PointerEvent) => {- if (!root.current?.contains(event.target as Node)) onClose();- };- const onKeyDown = (event: KeyboardEvent) => {- if (event.key === "Escape") onClose();- };-- document.addEventListener("pointerdown", onPointerDown);- document.addEventListener("keydown", onKeyDown);- window.addEventListener("blur", onClose);- window.addEventListener("resize", onClose);- return () => {- document.removeEventListener("pointerdown", onPointerDown);- document.removeEventListener("keydown", onKeyDown);- window.removeEventListener("blur", onClose);- window.removeEventListener("resize", onClose);- };- }, [onClose]);-- return createPortal(- <div- ref={root}- role="menu"- style={{ left: position.x, top: position.y }}- onContextMenu={(event) => event.preventDefault()}- className="surface fixed z-50 min-w-48 rounded-xl px-1.5 py-1.5 text-primary"- >- {target.groups- .filter((group) => group.length > 0)- .map((group, index) => (- // Index as key is fine here: the menu is rebuilt from scratch on- // every open and never reorders while visible.- <div key={index} className={index > 0 ? "mt-1 border-t border-hairline pt-1" : ""}>- {group.map((item) => (- <button- key={item.label}- role="menuitem"- type="button"- onClick={() => {- item.onSelect();- onClose();- }}- className={`flex w-full cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-1.5- text-left text-xs transition-colors hover:bg-hover- ${item.danger ? "text-danger" : ""}`}- >- {item.icon ? (- <Icon name={item.icon} size={14} className="shrink-0 opacity-70" />- ) : (- <span className="w-3.5 shrink-0" />- )}- <span className="min-w-0 flex-1 truncate">{item.label}</span>- {item.hint && (- <span className="shrink-0 font-technical text-[10px] text-tertiary">- {item.hint}- </span>- )}- </button>- ))}- </div>- ))}- </div>,- document.body,- );-}diff --git a/desktop/src/components/EffectsPanel.tsx b/desktop/src/components/EffectsPanel.tsxdeleted file mode 100644index 2ee2291f..00000000--- a/desktop/src/components/EffectsPanel.tsx+++ /dev/null@@ -1,235 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import {- EFFECTS,- findEffect,- findTransition,- resolveEffectParams,- type AppliedEffect,- type ClipTransition,-} from "../lib/effects";-import type { Clip } from "../lib/editor";-import { useLocale } from "../lib/i18n";-import { HelpTip, Slider } from "./controls";-import { Icon, IconButton } from "./Icon";-import { Empty } from "./Panel";--/**- * The Effects tab: the video sibling of the Filters tab.- *- * Effects are a list on the clip, applied in order, each with its own- * parameters, bypass and remove - the exact shape FiltersPanel gives audio,- * because the two are the same idea pointed at different senses. The browsing- * library lives in the bin's Effects page; this panel manages what is already- * on the clip, plus the transition on its cut.- */-export function EffectsPanel({- clip,- hasPreceding,- onChangeEffects,- onChangeTransition,- onCommit,-}: {- clip: Clip | null;- /** Whether a clip ends where this one starts - what a transition needs. */- hasPreceding: boolean;- onChangeEffects: (effects: AppliedEffect[]) => void;- onChangeTransition: (transition: ClipTransition | undefined) => void;- /** Ends the gesture: the accumulated change becomes one engine command. */- onCommit: () => void;-}) {- const { t } = useLocale();-- if (!clip || (clip.kind !== "video" && clip.kind !== "image")) {- return (- <Empty icon={<Icon name="sparkles" size={26} strokeWidth={1.5} />}>- {t("effects.panel.empty")}- </Empty>- );- }-- const applied = clip.videoEffects;- const transition = clip.transitionIn;- const transitionDefinition = transition ? findTransition(transition.id) : null;-- const commitEffects = (effects: AppliedEffect[]) => {- onChangeEffects(effects);- onCommit();- };- const add = (id: string) => commitEffects([...applied, { id, params: {} }]);- const remove = (index: number) => commitEffects(applied.filter((_, at) => at !== index));- const patch = (index: number, change: Partial<AppliedEffect>) =>- commitEffects(applied.map((effect, at) => (at === index ? { ...effect, ...change } : effect)));- // Live: parameters echo while the slider moves and commit on release.- const setParam = (index: number, key: string, value: number) =>- onChangeEffects(- applied.map((effect, at) =>- at === index ? { ...effect, params: { ...effect.params, [key]: value } } : effect,- ),- );- const move = (index: number, by: number) => {- const target = index + by;- if (target < 0 || target >= applied.length) return;- const next = [...applied];- [next[index], next[target]] = [next[target], next[index]];- commitEffects(next);- };-- return (- <div className="px-3 py-3">- {transition && transitionDefinition && (- <section className="mb-5">- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("effects.panel.transition")}- <HelpTip text={t("effects.panel.transitionHelp")} />- </h3>- <div className="rounded-lg bg-sunken p-2.5">- <div className="mb-2 flex items-center gap-1">- <span className="min-w-0 flex-1 truncate text-xs text-primary">- {transitionDefinition.label}- </span>- <IconButton- icon="close"- label={t("effects.panel.remove", { name: transitionDefinition.label })}- size={7}- tone="danger"- onClick={() => {- onChangeTransition(undefined);- onCommit();- }}- />- </div>- {!hasPreceding && (- <p className="mb-2 text-[11px] leading-snug text-danger">- {t("effects.panel.noPreceding")}- </p>- )}- <Slider- label={t("effects.panel.duration")}- value={transition.duration}- min={0.2}- max={3}- step={0.1}- format={(value) => `${value.toFixed(1)}s`}- onReset={() => {- onChangeTransition({ ...transition, duration: transitionDefinition.defaultDuration });- onCommit();- }}- onChange={(value) => onChangeTransition({ ...transition, duration: value })}- onCommit={onCommit}- />- </div>- </section>- )}-- {applied.length > 0 && (- <section className="mb-5">- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("effects.panel.applied")}- <HelpTip text={t("effects.panel.appliedHelp")} />- </h3>-- <ul className="flex flex-col gap-2">- {applied.map((entry, index) => {- const definition = findEffect(entry.id);- if (!definition) return null;- const values = resolveEffectParams(definition, entry.params);- const active = entry.enabled !== false;-- return (- <li key={`${entry.id}-${index}`} className="rounded-lg bg-sunken p-2.5">- <div className="mb-2 flex items-center gap-1">- <span- className={`min-w-0 flex-1 truncate text-xs ${- active ? "text-primary" : "text-tertiary line-through"- }`}- >- {definition.label}- </span>- <IconButton- icon={active ? "eye" : "eyeOff"}- label={- active- ? t("effects.panel.bypass", { name: definition.label })- : t("effects.panel.enable", { name: definition.label })- }- size={7}- onClick={() => patch(index, { enabled: !active })}- />- <IconButton- icon="chevronUp"- label={t("effects.panel.moveEarlier")}- size={7}- disabled={index === 0}- onClick={() => move(index, -1)}- />- <IconButton- icon="chevronDown"- label={t("effects.panel.moveLater")}- size={7}- disabled={index === applied.length - 1}- onClick={() => move(index, 1)}- />- <IconButton- icon="close"- label={t("effects.panel.remove", { name: definition.label })}- size={7}- tone="danger"- onClick={() => remove(index)}- />- </div>-- {/* Dimmed but still editable while bypassed, so a setting- can be dialled in before the effect is switched on. */}- <div className={active ? "" : "opacity-50"}>- {definition.params.map((param) => (- <Slider- key={param.key}- label={param.label}- value={values[param.key]}- min={param.min}- max={param.max}- step={param.step}- format={param.format}- onReset={() => {- setParam(index, param.key, param.default);- onCommit();- }}- onChange={(value) => setParam(index, param.key, value)}- onCommit={onCommit}- />- ))}- {definition.params.length === 0 && (- <p className="text-[11px] text-tertiary">{t("effects.panel.nothingToAdjust")}</p>- )}- </div>- </li>- );- })}- </ul>- </section>- )}-- <h3 className="mb-2 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("effects.panel.addEffect")}- </h3>- <ul className="flex flex-col gap-0.5">- {EFFECTS.map((effect) => (- <li key={effect.id}>- <button- type="button"- onClick={() => add(effect.id)}- title={effect.blurb}- className="flex w-full cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5- text-left transition-colors hover:bg-hover"- >- <Icon name="plus" size={12} className="shrink-0 text-tertiary" />- <span className="min-w-0 flex-1 truncate text-xs text-primary">{effect.label}</span>- </button>- </li>- ))}- </ul>- </div>- );-}diff --git a/desktop/src/components/ErrorNotice.tsx b/desktop/src/components/ErrorNotice.tsxdeleted file mode 100644index 74e41d5d..00000000--- a/desktop/src/components/ErrorNotice.tsx+++ /dev/null@@ -1,77 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useRef, useState } from "react";--import { useLocale } from "../lib/i18n";-import { Icon } from "./Icon";--/**- * The standard error strip.- *- * The text is selectable and there is always a copy button, because the main- * thing anyone does with an error message is put it somewhere else - a bug- * report, a search box, a chat. The app disables selection globally, so a- * plain <p> here would be a message you can read but not quote.- */-export function ErrorNotice({- message,- onDismiss,- className = "",-}: {- message: string;- /** Rendered as a close button when given; omit for errors that clear themselves. */- onDismiss?: () => void;- className?: string;-}) {- const [copied, setCopied] = useState(false);- const { t } = useLocale();- const timer = useRef<number | undefined>(undefined);- useEffect(() => () => window.clearTimeout(timer.current), []);-- const copy = async () => {- try {- await navigator.clipboard.writeText(message);- } catch {- // WebKit can refuse the async API; the selection route still works.- const node = document.createElement("textarea");- node.value = message;- document.body.appendChild(node);- node.select();- document.execCommand("copy");- node.remove();- }- setCopied(true);- window.clearTimeout(timer.current);- timer.current = window.setTimeout(() => setCopied(false), 1500);- };-- return (- <div- className={`flex items-start gap-2 rounded-lg border border-danger bg-danger-soft px-2 py-1.5 ${className}`}- >- <p className="selectable min-w-0 flex-1 wrap-break-word font-technical text-[10px] leading-snug text-danger">- {message}- </p>- <button- type="button"- title={copied ? t("errorNotice.copied") : t("errorNotice.copy")}- aria-label={t("errorNotice.copy")}- onClick={() => void copy()}- className="shrink-0 cursor-pointer text-danger opacity-70 hover:opacity-100"- >- <Icon name={copied ? "check" : "copy"} size={12} />- </button>- {onDismiss && (- <button- type="button"- aria-label={t("errorNotice.dismiss")}- onClick={onDismiss}- className="shrink-0 cursor-pointer text-danger opacity-70 hover:opacity-100"- >- <Icon name="close" size={12} />- </button>- )}- </div>- );-}diff --git a/desktop/src/components/ExportDialog.tsx b/desktop/src/components/ExportDialog.tsxdeleted file mode 100644index 5881706b..00000000--- a/desktop/src/components/ExportDialog.tsx+++ /dev/null@@ -1,404 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useRef, useState } from "react";-import type { ReactNode } from "react";-import { save } from "@tauri-apps/plugin-dialog";-import { revealItemInDir } from "@tauri-apps/plugin-opener";--import type { ExportClip, ExportProgress } from "../lib/engine";-import type { ExportTitle } from "../lib/monitor";-import { cancelExport, exportProject, onExportProgress, writeCacheFile } from "../lib/engine";-import { useLocale, type MsgKey } from "../lib/i18n";-import { rasterizeTitle } from "../lib/rasterize";-import { shortDuration } from "../lib/time";-import { ErrorNotice } from "./ErrorNotice";-import { Icon } from "./Icon";--/** Quality presets, in the terms a person picking one actually thinks in. */-const QUALITIES: {- labelKey: MsgKey;- crf: number;- preset: string;- hintKey: MsgKey;-}[] = [- { labelKey: "export.quality.high", crf: 18, preset: "slow", hintKey: "export.quality.highHint" },- {- labelKey: "export.quality.balanced",- crf: 22,- preset: "medium",- hintKey: "export.quality.balancedHint",- },- { labelKey: "export.quality.small", crf: 27, preset: "fast", hintKey: "export.quality.smallHint" },-];--/**- * A title bound for the file. The engine composites pixels, not fonts, so the- * dialog rasterises each of these into a full-frame transparent PNG at the- * output size just before the render starts.- */--type Phase =- | { kind: "idle" }- | { kind: "running"; progress: ExportProgress | null }- | { kind: "done"; path: string }- | { kind: "failed"; message: string };--/** A title's PNG, dressed as the flat clip the exporter understands. */-function overlayClip(title: ExportTitle, path: string): ExportClip {- return {- path,- kind: "image",- // A rasterised PNG has no sound; saying so spares the exporter a probe.- hasAudio: false,- start: title.start,- duration: title.duration,- sourceStart: 0,- track: title.track,- hidden: false,- muted: true,- volume: 0,- fadeIn: 0,- fadeOut: 0,- filterChain: "",- speed: 1,- preservePitch: true,- // Identity on purpose: the clip's offsets are baked into the PNG, and- // absent media dimensions make the exporter fill the frame edge to edge -- // exactly what a full-frame overlay wants.- scale: 1,- offsetX: 0,- offsetY: 0,- rotation: 0,- // Solid: a title's own transparency is baked into its rasterised PNG.- opacity: 1,- videoFilterChain: "",- transition: null,- mediaWidth: null,- mediaHeight: null,- };-}--/**- * The export sheet.- *- * Rendering happens on a blocking thread in the host and reports back through- * an event, so this listens rather than waiting - a two-minute export that- * says nothing until it finishes is indistinguishable from a hang.- *- * The backdrop dims rather than hides: the edit behind it is what is being- * exported, and watching the file happen over the thing it is made from is- * both orienting and honest. Only the sheet itself is opaque.- */-export function ExportDialog({- projectName,- projectPath,- width,- height,- rateNum,- rateDen,- duration,- clipCount,- titles,- onClose,-}: {- projectName: string;- projectPath: string;- width: number;- height: number;- rateNum: number;- rateDen: number;- duration: number;- /** Non-text clips on the active timeline. The engine flattens the clips- * itself (engine decision 0009); the dialog only needs to know whether- * there is anything to export and how to describe it. */- clipCount: number;- titles: ExportTitle[];- onClose: () => void;-}) {- const [output, setOutput] = useState(`${projectPath}/${projectName}.mp4`);- const [quality, setQuality] = useState<(typeof QUALITIES)[number]>(QUALITIES[1]);- const [phase, setPhase] = useState<Phase>({ kind: "idle" });- const { t, tp } = useLocale();- const unlisten = useRef<(() => void) | null>(null);- // When the engine started counting frames, for the time-left estimate.- const startedAt = useRef<number | null>(null);-- useEffect(() => {- return () => unlisten.current?.();- }, []);-- const running = phase.kind === "running";- const empty = clipCount === 0 && titles.length === 0;-- const browse = async () => {- const chosen = await save({- title: t("export.saveTitle"),- defaultPath: output,- filters: [{ name: t("export.mp4Filter"), extensions: ["mp4"] }],- });- if (chosen) setOutput(chosen);- };-- const start = async () => {- if (running || empty) return;-- setPhase({ kind: "running", progress: null });- startedAt.current = null;-- try {- // Titles first, before the engine is involved: each becomes a PNG in- // the project cache and joins the clip list as one more still.- const overlays: ExportClip[] = [];- for (const [index, title] of titles.entries()) {- setPhase({- kind: "running",- progress: { frame: index, total: titles.length, stage: t("export.stageTitles") },- });- const bytes = await rasterizeTitle(title.style, title.offsetX, title.offsetY, width, height);- const key = `title-${index}-${title.clipId.replace(/[^A-Za-z0-9_-]/g, "")}.png`;- const path = await writeCacheFile(projectPath, key, bytes);- overlays.push(overlayClip(title, path));- }-- setPhase({ kind: "running", progress: null });- unlisten.current = await onExportProgress((progress) => {- startedAt.current ??= performance.now();- setPhase((current) =>- current.kind === "running" ? { kind: "running", progress } : current,- );- });-- const path = await exportProject({- output,- crf: quality.crf,- preset: quality.preset,- titles: overlays,- });- setPhase({ kind: "done", path });- } catch (cause) {- const message = String(cause);- // A cancel is the user's own decision, not a failure to report.- if (message.includes("export cancelled")) {- setPhase({ kind: "idle" });- } else {- setPhase({ kind: "failed", message });- }- } finally {- unlisten.current?.();- unlisten.current = null;- }- };-- const percent =- phase.kind === "running" && phase.progress && phase.progress.total > 0- ? Math.min(100, Math.round((phase.progress.frame / phase.progress.total) * 100))- : null;-- // A time-left estimate from the frame rate so far. Held back until a second- // of footage has rendered - the first frames carry startup cost and would- // only produce a number that shrinks embarrassingly fast.- let remaining: string | null = null;- if (phase.kind === "running" && phase.progress && startedAt.current !== null) {- const { frame, total } = phase.progress;- const elapsed = (performance.now() - startedAt.current) / 1000;- if (frame > rateNum / rateDen && total > frame && elapsed > 1) {- remaining = t("export.timeLeft", {- duration: shortDuration((elapsed / frame) * (total - frame)),- });- }- }-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- // The backdrop closes the sheet the way every sheet closes - but- // never out from under a running render.- if (event.target === event.currentTarget && !running) onClose();- }}- >- <div className="surface w-full max-w-md rounded-2xl p-6">- <div className="mb-5 flex items-center gap-2">- <Icon name="export" size={17} className="text-accent" />- <h2 className="flex-1 text-sm font-semibold text-primary">{t("common.export")}</h2>- {!running && (- <button- type="button"- aria-label={t("common.close")}- onClick={onClose}- className="cursor-pointer rounded p-1 text-secondary hover:bg-hover hover:text-primary"- >- <Icon name="close" size={14} />- </button>- )}- </div>-- <dl className="mb-5 space-y-1 rounded-lg bg-sunken px-3 py-2.5">- <Row- label={t("export.format")}- value={`${width} x ${height} · ${(rateNum / rateDen).toFixed(2)} fps`}- />- <Row label={t("export.duration")} value={shortDuration(duration)} />- <Row- label={t("export.contents")}- value={- tp("export.clips", clipCount) +- (titles.length > 0 ? ` · ${tp("export.titles", titles.length)}` : "")- }- />- </dl>-- {phase.kind === "idle" || phase.kind === "failed" ? (- <>- <Label>{t("export.saveTo")}</Label>- <div className="mb-5 flex gap-1.5">- <input- value={output}- spellCheck={false}- onChange={(event) => setOutput(event.target.value)}- className="min-w-0 flex-1 rounded-lg border border-hairline bg-sunken px-3 py-2- font-technical text-[11px] text-primary focus:border-accent focus:outline-none"- />- <button- type="button"- onClick={() => void browse()}- className="flex shrink-0 cursor-pointer items-center gap-1.5 rounded-lg bg-hover px-3- text-xs text-primary transition-colors hover:bg-active"- >- <Icon name="folder" size={13} />- {t("export.browse")}- </button>- </div>-- <Label>{t("export.qualityTitle")}</Label>- <div className="mb-5 grid grid-cols-3 gap-1.5">- {QUALITIES.map((option) => (- <button- key={option.labelKey}- type="button"- aria-pressed={option.crf === quality.crf}- onClick={() => setQuality(option)}- className={`flex cursor-pointer flex-col items-center gap-0.5 rounded-lg px-2 py-2- transition-colors ${- option.crf === quality.crf- ? "bg-accent text-on-accent"- : "bg-hover text-secondary hover:bg-active"- }`}- >- <span className="text-xs">{t(option.labelKey)}</span>- <span className="text-[10px] opacity-60">{t(option.hintKey)}</span>- </button>- ))}- </div>-- {phase.kind === "failed" && (- <ErrorNotice message={phase.message} className="mb-4" />- )}-- <button- type="button"- onClick={() => void start()}- disabled={empty || !output.trim()}- className="flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg- bg-accent px-4 py-2.5 text-sm font-medium text-on-accent transition-colors- hover:bg-accent-hover disabled:cursor-not-allowed disabled:opacity-40"- >- <Icon name="export" size={15} />- {empty- ? t("export.nothing")- : phase.kind === "failed"- ? t("export.tryAgain")- : t("common.export")}- </button>- </>- ) : phase.kind === "running" ? (- <div className="py-2">- <div className="mb-2 flex items-baseline justify-between gap-3">- <span className="min-w-0 truncate text-xs text-primary">- {phase.progress?.stage ?? t("export.starting")}- </span>- <span className="shrink-0 font-technical text-sm tabular-nums text-primary">- {percent === null ? "" : `${percent}%`}- </span>- </div>- <div className="h-1.5 overflow-hidden rounded-full bg-active">- <div- className="h-full rounded-full bg-accent transition-[width] duration-200"- style={{ width: `${percent ?? 3}%` }}- />- </div>- <div className="mt-2 flex items-baseline justify-between gap-3">- {phase.progress && phase.progress.total > 0 ? (- <p className="font-technical text-[10px] text-tertiary">- {t("export.frameOf", {- frame: phase.progress.frame,- total: phase.progress.total,- })}- </p>- ) : (- <span />- )}- {remaining && (- <p className="font-technical text-[10px] tabular-nums text-tertiary">{remaining}</p>- )}- </div>- <button- type="button"- onClick={() => void cancelExport().catch(() => undefined)}- className="mt-4 w-full cursor-pointer rounded-lg bg-hover px-4 py-2 text-xs- text-secondary transition-colors hover:bg-active hover:text-primary"- >- {t("common.cancel")}- </button>- </div>- ) : (- <div className="py-1">- <p className="mb-1 flex items-center gap-2 text-sm text-success">- <Icon name="check" size={14} />- {t("export.finished")}- </p>- <p className="mb-5 wrap-break-word font-technical text-[10px] text-secondary">{phase.path}</p>- <div className="flex gap-1.5">- <button- type="button"- onClick={() => void revealItemInDir(phase.path).catch(() => undefined)}- className="flex flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-lg- bg-hover px-4 py-2.5 text-sm text-primary transition-colors hover:bg-active"- >- <Icon name="folder" size={13} />- {t("export.reveal")}- </button>- <button- type="button"- onClick={onClose}- className="flex-1 cursor-pointer rounded-lg bg-accent px-4 py-2.5 text-sm font-medium- text-on-accent transition-colors hover:bg-accent-hover"- >- {t("export.done")}- </button>- </div>- </div>- )}- </div>- </div>- );-}--function Label({ children }: { children: ReactNode }) {- return (- <span className="mb-1.5 block text-[11px] font-semibold uppercase tracking-wider text-secondary">- {children}- </span>- );-}--function Row({ label, value }: { label: string; value: string }) {- return (- <div className="flex items-baseline justify-between gap-3">- <dt className="text-[11px] text-secondary">{label}</dt>- <dd className="truncate font-technical text-[11px] text-primary">{value}</dd>- </div>- );-}diff --git a/desktop/src/components/FiltersPanel.tsx b/desktop/src/components/FiltersPanel.tsxdeleted file mode 100644index 2b924ca8..00000000--- a/desktop/src/components/FiltersPanel.tsx+++ /dev/null@@ -1,254 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useState } from "react";--import {- CATEGORIES,- FILTERS,- findFilter,- resolveParams,- type ClipFilter,- type FilterCategory,- type FilterDefinition,-} from "../lib/filters";-import type { Clip } from "../lib/editor";-import { useLocale } from "../lib/i18n";-import { HelpTip, Slider } from "./controls";-import { Icon, IconButton } from "./Icon";-import { Empty } from "./Panel";--/**- * The Filters tab.- *- * Filters are a *list* on the clip, not a set of toggles, because they apply- * in order and order is audible. Adding the same filter twice is allowed for- * the same reason - two gentle EQ lifts are a real thing to want.- *- * Everything here writes plain numbers onto the clip. The FFmpeg chain is- * built from those in one place (`lib/filters.ts`) and used by both the- * preview and the exporter, so what you hear is what gets rendered - and a- * bypassed filter drops out of both through the same single check.- */-export function FiltersPanel({- clip,- onChange,- onCommit,-}: {- clip: Clip | null;- onChange: (filters: ClipFilter[]) => void;- /** Ends the gesture: the accumulated change becomes one engine command. */- onCommit: () => void;-}) {- const [category, setCategory] = useState<FilterCategory>("voice");- const [query, setQuery] = useState("");- const { t } = useLocale();-- if (!clip) {- return (- <Empty icon={<Icon name="settings" size={26} strokeWidth={1.5} />}>- {t("filters.panel.empty")}- </Empty>- );- }-- if (clip.kind === "image") {- return (- <Empty icon={<Icon name="image" size={26} strokeWidth={1.5} />}>- {t("filters.panel.emptyImage")}- </Empty>- );- }-- const applied = clip.filters;-- const commitChange = (filters: ClipFilter[]) => {- onChange(filters);- onCommit();- };- const add = (id: string) => commitChange([...applied, { id, params: {} }]);- const remove = (index: number) => commitChange(applied.filter((_, at) => at !== index));- const patch = (index: number, change: Partial<ClipFilter>) =>- commitChange(applied.map((filter, at) => (at === index ? { ...filter, ...change } : filter)));- // Live: parameters echo while the slider moves and commit on release.- const setParam = (index: number, key: string, value: number) =>- onChange(- applied.map((filter, at) =>- at === index ? { ...filter, params: { ...filter.params, [key]: value } } : filter,- ),- );- const move = (index: number, by: number) => {- const target = index + by;- if (target < 0 || target >= applied.length) return;- const next = [...applied];- [next[index], next[target]] = [next[target], next[index]];- commitChange(next);- };-- // A search cuts across the categories: when you know the name you should- // not have to remember which drawer it lives in.- const needle = query.trim().toLowerCase();- const matches = (filter: FilterDefinition) =>- needle === ""- ? filter.category === category- : `${filter.label} ${filter.blurb}`.toLowerCase().includes(needle);- const browsable = FILTERS.filter(matches);-- return (- <div className="px-3 py-3">- {applied.length > 0 && (- <section className="mb-5">- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("filters.panel.applied")}- <HelpTip text={t("filters.panel.appliedHelp")} />- </h3>-- <ul className="flex flex-col gap-2">- {applied.map((entry, index) => {- const definition = findFilter(entry.id);- if (!definition) return null;- const values = resolveParams(definition, entry.params);- const active = entry.enabled !== false;-- return (- <li key={`${entry.id}-${index}`} className="rounded-lg bg-sunken p-2.5">- <div className="mb-2 flex items-center gap-1">- <span- className={`min-w-0 flex-1 truncate text-xs ${- active ? "text-primary" : "text-tertiary line-through"- }`}- >- {definition.label}- </span>- <IconButton- icon={active ? "eye" : "eyeOff"}- label={- active- ? t("filters.panel.bypass", { name: definition.label })- : t("filters.panel.enable", { name: definition.label })- }- size={7}- onClick={() => patch(index, { enabled: !active })}- />- <IconButton- icon="chevronUp"- label={t("filters.panel.moveEarlier")}- size={7}- disabled={index === 0}- onClick={() => move(index, -1)}- />- <IconButton- icon="chevronDown"- label={t("filters.panel.moveLater")}- size={7}- disabled={index === applied.length - 1}- onClick={() => move(index, 1)}- />- <IconButton- icon="close"- label={t("filters.panel.remove", { name: definition.label })}- size={7}- tone="danger"- onClick={() => remove(index)}- />- </div>-- {/* Dimmed but still editable while bypassed, so a setting- can be dialled in before the filter is switched on. */}- <div className={active ? "" : "opacity-50"}>- {definition.params.map((param) => (- <Slider- key={param.key}- label={param.label}- value={values[param.key]}- min={param.min}- max={param.max}- step={param.step}- format={param.format}- onReset={() => {- setParam(index, param.key, param.default);- onCommit();- }}- onChange={(value) => setParam(index, param.key, value)}- onCommit={onCommit}- />- ))}- </div>- </li>- );- })}- </ul>- </section>- )}-- <div className="mb-2 flex items-center gap-1.5 rounded-lg bg-sunken px-2">- <Icon name="search" size={12} className="shrink-0 text-tertiary" />- <input- value={query}- onChange={(event) => setQuery(event.target.value)}- placeholder={t("filters.panel.searchPlaceholder")}- className="h-7 w-full bg-transparent text-xs text-primary outline-none- placeholder:text-tertiary"- />- {query !== "" && (- <button- type="button"- aria-label={t("filters.panel.clearSearch")}- onClick={() => setQuery("")}- className="cursor-pointer text-tertiary transition-colors hover:text-primary"- >- <Icon name="close" size={10} />- </button>- )}- </div>-- {needle === "" && (- <div className="mb-3 flex rounded-lg bg-sunken p-0.5">- {CATEGORIES.map((entry) => (- <button- key={entry.id}- type="button"- aria-pressed={category === entry.id}- onClick={() => setCategory(entry.id)}- className={`flex-1 cursor-pointer rounded-md px-2 py-1 text-[12px] transition-colors ${- category === entry.id- ? "bg-panel text-primary shadow-[0_1px_2px_rgba(0,0,0,0.14)]"- : "text-secondary hover:text-primary"- }`}- >- {entry.label}- </button>- ))}- </div>- )}-- {browsable.length === 0 ? (- <p className="px-2 py-3 text-center text-[11px] text-tertiary">- {t("filters.panel.noMatches", { query: query.trim() })}- </p>- ) : (- <ul className="flex flex-col gap-0.5">- {browsable.map((filter) => (- <li key={filter.id}>- <button- type="button"- onClick={() => add(filter.id)}- title={filter.blurb}- className="flex w-full cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5- text-left transition-colors hover:bg-hover"- >- <Icon name="plus" size={12} className="shrink-0 text-tertiary" />- <span className="min-w-0 flex-1 truncate text-xs text-primary">{filter.label}</span>- {needle !== "" && (- <span className="shrink-0 text-[10px] uppercase tracking-wider text-tertiary">- {CATEGORIES.find((entry) => entry.id === filter.category)?.label}- </span>- )}- </button>- </li>- ))}- </ul>- )}- </div>- );-}diff --git a/desktop/src/components/Icon.tsx b/desktop/src/components/Icon.tsxdeleted file mode 100644index 53f63af4..00000000--- a/desktop/src/components/Icon.tsx+++ /dev/null@@ -1,524 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import {- AdjustmentsHorizontalIcon,- ArrowDownTrayIcon,- ArrowUpTrayIcon,- CheckIcon,- ChevronDownIcon,- ChevronRightIcon,- ChevronUpIcon,- DocumentDuplicateIcon,- EyeIcon,- EyeSlashIcon,- FilmIcon,- FolderIcon,- InformationCircleIcon,- LockClosedIcon,- MagnifyingGlassIcon,- MinusIcon,- MoonIcon,- MusicalNoteIcon,- PhotoIcon,- PlusIcon,- QuestionMarkCircleIcon,- SparklesIcon,- SpeakerWaveIcon,- SpeakerXMarkIcon,- SunIcon,- TrashIcon,- XMarkIcon,-} from "@heroicons/react/24/outline";-import {- AudioLines,- Blend,- Hand,- Magnet,- Maximize,- Merge,- MousePointer2,- Pause,- Play,- ScissorsLineDashed,- SkipBack,- SkipForward,- SquareSplitHorizontal,- StepBack,- StepForward,- Type,-} from "lucide-react";--import type { ReactNode } from "react";--/**- * The icon set: Heroicons for everything generic, Lucide for the editor's- * vocabulary, hand-authored glyphs for the few marks nobody draws.- *- * The generic half (folders, chevrons, trash, eyes) comes from Heroicons;- * transport, tools, cut and merge come from Lucide, whose 24px stroke-2- * grid matches the app's exactly. Both are MIT and tree-shaken to only the- * imports named below, so nothing ships that is not used. Hand-made glyphs- * remain only for the template slot and the Windows title-bar chrome.- *- * Custom glyphs are 24x24, stroked with `currentColor` at width 2, round- * caps. Add to the LUCIDE or HERO map when a library has the right glyph;- * draw on the same grid only when none does.- */--const GLYPHS = {- // ── transport ──────────────────────────────────────────────────────────- play: <path d="M8 5.2v13.6l11-6.8z" />,- pause: (- <>- <path d="M9 5v14" />- <path d="M15 5v14" />- </>- ),- skipStart: (- <>- <path d="M6 5v14" />- <path d="M19 5.5v13l-10-6.5z" />- </>- ),- skipEnd: (- <>- <path d="M18 5v14" />- <path d="M5 5.5v13l10-6.5z" />- </>- ),- stepBack: (- <>- <path d="M5 5v14" />- <path d="m16 6-7 6 7 6z" />- </>- ),- stepForward: (- <>- <path d="M19 5v14" />- <path d="m8 6 7 6-7 6z" />- </>- ),-- // ── tools ──────────────────────────────────────────────────────────────- // arrow pointer- select: (- <>- <path d="m4 3 7 17 2.5-6.5L20 11z" />- </>- ),- // razor: two blades meeting at a cut line- razor: (- <>- <circle cx="6" cy="18" r="2.5" />- <circle cx="18" cy="18" r="2.5" />- <path d="M7.8 16.2 18 4" />- <path d="M16.2 16.2 6 4" />- </>- ),- hand: (- <>- <path d="M9 11V5.5a1.5 1.5 0 0 1 3 0V11" />- <path d="M12 11V4.5a1.5 1.5 0 0 1 3 0V11" />- <path d="M15 11V6.5a1.5 1.5 0 0 1 3 0V15a6 6 0 0 1-6 6h-1a7 7 0 0 1-7-7v-2a1.5 1.5 0 0 1 3 0v1" />- </>- ),- // two blocks parted by a cut line- split: (- <>- <path d="M12 3v18" strokeDasharray="3 3" />- <path d="M8 7H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h3" />- <path d="M16 7h3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-3" />- </>- ),- // two blocks closing on a seam- merge: (- <>- <path d="M12 3v18" />- <path d="M3 7h5a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H3" />- <path d="M21 7h-5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h5" />- </>- ),- // horseshoe magnet, for snapping- magnet: (- <>- <path d="M6 15V8a6 6 0 0 1 12 0v7" />- <path d="M6 15a3 3 0 0 0 6 0V9" />- <path d="M18 15a3 3 0 0 1-6 0V9" />- </>- ),-- // ── media kinds ────────────────────────────────────────────────────────- film: (- <>- <rect x="3" y="4" width="18" height="16" rx="2" />- <path d="M7 4v16" />- <path d="M17 4v16" />- <path d="M3 12h18" />- </>- ),- music: (- <>- <path d="M9 18V5l11-2v13" />- <circle cx="6" cy="18" r="3" />- <circle cx="17" cy="16" r="3" />- </>- ),- // framed picture with a horizon and a sun- image: (- <>- <rect x="3" y="4" width="18" height="16" rx="2" />- <circle cx="8.5" cy="9.5" r="1.5" />- <path d="m3 17 5-4 4 3 3-2 6 5" />- </>- ),- // a serif capital T: the universal mark for type- type: (- <>- <path d="M4 6.5V5h16v1.5" />- <path d="M12 5v14" />- <path d="M8.5 19h7" />- </>- ),- // waveform bars- waveform: (- <>- <path d="M3 12v1" />- <path d="M7 8v8" />- <path d="M11 5v14" />- <path d="M15 9v6" />- <path d="M19 11v2" />- </>- ),-- // ── actions ────────────────────────────────────────────────────────────- plus: <path d="M12 5v14M5 12h14" />,- minus: <path d="M5 12h14" />,- close: <path d="M18 6 6 18M6 6l12 12" />,- trash: (- <>- <path d="M3 6h18" />- <path d="M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2" />- <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />- <path d="M10 11v6M14 11v6" />- </>- ),- // arrow down into a tray- import: (- <>- <path d="M12 3v12" />- <path d="m7 10 5 5 5-5" />- <path d="M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" />- </>- ),- // arrow up out of a tray- export: (- <>- <path d="M12 15V3" />- <path d="m7 8 5-5 5 5" />- <path d="M3 15v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" />- </>- ),- folder: (- <path d="M4 20a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h4.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.7.9H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2Z" />- ),-- // ── track state ────────────────────────────────────────────────────────- eye: (- <>- <path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z" />- <circle cx="12" cy="12" r="3" />- </>- ),- eyeOff: (- <>- <path d="M10.7 5.1A10.9 10.9 0 0 1 12 5c6.5 0 10 7 10 7a18 18 0 0 1-2.6 3.5" />- <path d="M6.6 6.6A18 18 0 0 0 2 12s3.5 7 10 7a10.7 10.7 0 0 0 5.4-1.4" />- <path d="m2 2 20 20" />- </>- ),- volume: (- <>- <path d="M11 5 6 9H3v6h3l5 4z" />- <path d="M16 8.5a4.5 4.5 0 0 1 0 7" />- <path d="M19 5.5a8.5 8.5 0 0 1 0 13" />- </>- ),- volumeOff: (- <>- <path d="M11 5 6 9H3v6h3l5 4z" />- <path d="m16 9 5 6M21 9l-5 6" />- </>- ),- lock: (- <>- <rect x="4" y="10" width="16" height="11" rx="2" />- <path d="M8 10V7a4 4 0 0 1 8 0v3" />- </>- ),-- // ── window controls ────────────────────────────────────────────────────- // Drawn at width 1.5 visually by being thinner shapes; Windows convention.- winMinimize: <path d="M5 12h14" />,- winMaximize: <rect x="5" y="5" width="14" height="14" rx="1.5" />,- winRestore: (- <>- <rect x="4" y="8" width="12" height="12" rx="1.5" />- <path d="M8 8V5.5A1.5 1.5 0 0 1 9.5 4h9A1.5 1.5 0 0 1 20 5.5v9a1.5 1.5 0 0 1-1.5 1.5H16" />- </>- ),-- // ── chrome ─────────────────────────────────────────────────────────────- sun: (- <>- <circle cx="12" cy="12" r="4" />- <path d="M12 2v2M12 20v2M2 12h2M20 12h2" />- <path d="m4.93 4.93 1.41 1.41M17.66 17.66l1.41 1.41M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" />- </>- ),- moon: <path d="M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z" />,- check: <path d="m4 12.5 5 5 11-11" />,- copy: (- <>- <rect x="9" y="9" width="12" height="12" rx="2" />- <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />- </>- ),- chevronDown: <path d="m6 9 6 6 6-6" />,- chevronUp: <path d="m6 15 6-6 6 6" />,- chevronRight: <path d="m9 6 6 6-6 6" />,- search: (- <>- <circle cx="11" cy="11" r="7" />- <path d="m20 20-3.5-3.5" />- </>- ),- // settings: three sliders with staggered knobs. Deliberately not a cog:- // the old ring-and-rays cog was a sun in all but name, and it sat right- // next to the actual sun of the theme toggle.- settings: (- <>- <path d="M4 6.5h16M4 12h16M4 17.5h16" />- <circle cx="9.5" cy="6.5" r="2" fill="currentColor" stroke="none" />- <circle cx="15" cy="12" r="2" fill="currentColor" stroke="none" />- <circle cx="7.5" cy="17.5" r="2" fill="currentColor" stroke="none" />- </>- ),- info: (- <>- <circle cx="12" cy="12" r="9" />- <path d="M12 16v-5" />- <path d="M12 8h.01" />- </>- ),- help: (- <>- <circle cx="12" cy="12" r="9" />- <path d="M9.4 9.3a2.7 2.7 0 1 1 3.6 2.6c-.7.3-1 .8-1 1.6v.3" />- <path d="M12 17h.01" />- </>- ),- // a four-point star with a smaller companion, for "effects"- // slot: a dashed placeholder box - the frame a template fills in later- slot: (- <>- <rect x="3.5" y="5.5" width="17" height="13" rx="2.5" strokeDasharray="3.2 2.6" />- <path d="M12 9.5v5M9.5 12h5" />- </>- ),- sparkles: (- <>- <path d="M10 3.5l1.7 4.3 4.3 1.7-4.3 1.7L10 15.5l-1.7-4.3L4 9.5l4.3-1.7z" />- <path d="M17.5 14l1 2.5 2.5 1-2.5 1-1 2.5-1-2.5-2.5-1 2.5-1z" />- </>- ),- // a frame split on the diagonal, for "transitions"- transition: (- <>- <rect x="4" y="4" width="16" height="16" rx="2" />- <path d="M4.8 19.2 19.2 4.8" />- </>- ),- // crossed arrows, for "fit to window"- fit: (- <>- <path d="M3 8V5a2 2 0 0 1 2-2h3" />- <path d="M16 3h3a2 2 0 0 1 2 2v3" />- <path d="M21 16v3a2 2 0 0 1-2 2h-3" />- <path d="M8 21H5a2 2 0 0 1-2-2v-3" />- </>- ),-} satisfies Record<string, ReactNode>;--/** Every glyph the app can draw. A typo is a compile error. */-export type IconName = keyof typeof GLYPHS;--/**- * Heroicons stand in for every generic glyph - drawn by people who draw- * icons for a living. The hand-made set below remains for what no library- * carries: the editor's own vocabulary (razor, slot, waveform, transport,- * window controls). Same names, same call sites; only the pixels changed.- */-const HERO: Partial<Record<IconName, typeof PlusIcon>> = {- plus: PlusIcon,- minus: MinusIcon,- close: XMarkIcon,- trash: TrashIcon,- import: ArrowDownTrayIcon,- export: ArrowUpTrayIcon,- folder: FolderIcon,- eye: EyeIcon,- eyeOff: EyeSlashIcon,- volume: SpeakerWaveIcon,- volumeOff: SpeakerXMarkIcon,- lock: LockClosedIcon,- sun: SunIcon,- moon: MoonIcon,- check: CheckIcon,- copy: DocumentDuplicateIcon,- chevronDown: ChevronDownIcon,- chevronUp: ChevronUpIcon,- chevronRight: ChevronRightIcon,- search: MagnifyingGlassIcon,- settings: AdjustmentsHorizontalIcon,- info: InformationCircleIcon,- help: QuestionMarkCircleIcon,- sparkles: SparklesIcon,- film: FilmIcon,- music: MusicalNoteIcon,- image: PhotoIcon,-};--/**- * Lucide covers the editor vocabulary Heroicons lacks - transport, tools,- * cut/merge - on the same 24px stroke-2 grid the custom glyphs use, so the- * two faces sit together without adjustment. What stays hand-drawn is only- * what no library carries: the template slot and the Windows chrome.- */-const LUCIDE: Partial<Record<IconName, typeof Play>> = {- play: Play,- pause: Pause,- skipStart: SkipBack,- skipEnd: SkipForward,- stepBack: StepBack,- stepForward: StepForward,- select: MousePointer2,- razor: ScissorsLineDashed,- hand: Hand,- split: SquareSplitHorizontal,- merge: Merge,- magnet: Magnet,- type: Type,- waveform: AudioLines,- // Two discs blending into one another: the cross-fade itself.- transition: Blend,- fit: Maximize,-};--export function Icon({- name,- size = 16,- className,- strokeWidth = 2,-}: {- name: IconName;- size?: number;- className?: string;- strokeWidth?: number;-}) {- const Lucide = LUCIDE[name];- if (Lucide) {- // Lucide is authored at the same 24px stroke-2 as the custom glyphs, so- // the requested stroke passes straight through.- return (- <Lucide size={size} strokeWidth={strokeWidth} aria-hidden className={className} />- );- }- const Hero = HERO[name];- if (Hero) {- return (- <Hero- width={size}- height={size}- // Heroicons are drawn at 1.5; scaled towards the app's 2 so they- // sit next to the custom glyphs without reading as a lighter face.- strokeWidth={Math.max(1.6, strokeWidth - 0.2)}- aria-hidden="true"- className={className}- />- );- }- return (- <svg- viewBox="0 0 24 24"- width={size}- height={size}- fill="none"- stroke="currentColor"- strokeWidth={strokeWidth}- strokeLinecap="round"- strokeLinejoin="round"- aria-hidden="true"- className={className}- >- {GLYPHS[name]}- </svg>- );-}--/**- * The standard square icon button.- *- * Active means a lime glyph on a slightly darker surface - quieter than a- * filled accent square, and the same lime the timeline uses for selection, so- * "this is on" reads as one colour everywhere. Transparent when idle.- */-export function IconButton({- icon,- label,- onClick,- active = false,- disabled = false,- size = 9,- tone = "default",-}: {- icon: IconName;- label: string;- onClick?: () => void;- active?: boolean;- disabled?: boolean;- /** Height and width in Tailwind spacing units. */- size?: 7 | 9;- tone?: "default" | "danger" | "go";-}) {- // "go" idles in the same lime as active states, not the success green:- // the transport's play button is the one "go" and a green glyph beside- // lime-active tools read as two systems.- const idle =- tone === "danger"- ? "text-danger hover:bg-hover"- : tone === "go"- ? "text-tool-active hover:bg-hover"- : "text-primary hover:bg-hover";-- // Active is the one lime everywhere - including the transport's play- // button, which used to fill green and read as a different system.- const on = "bg-tool-active-bg text-tool-active";-- return (- <button- type="button"- title={label}- aria-label={label}- aria-pressed={active}- disabled={disabled}- onClick={onClick}- className={`flex ${size === 9 ? "h-9 w-9" : "h-7 w-7"} shrink-0 cursor-pointer- items-center justify-center rounded-lg transition-colors duration-150- disabled:cursor-not-allowed disabled:opacity-30- ${active ? on : idle}`}- >- <Icon name={icon} size={size === 9 ? 16 : 14} />- </button>- );-}diff --git a/desktop/src/components/Inspector.tsx b/desktop/src/components/Inspector.tsxdeleted file mode 100644index 51c6d2f3..00000000--- a/desktop/src/components/Inspector.tsx+++ /dev/null@@ -1,182 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import type { ReactNode } from "react";--import { activeTimeline, type Clip, type EditorProject, type MediaItem } from "../lib/editor";-import { useLocale } from "../lib/i18n";-import { shortDuration, timecode } from "../lib/time";--/**- * Properties of the current selection - a clip if one is selected, otherwise- * the highlighted bin item, otherwise the project itself.- *- * The rows are read-only; edits go through Modify, whose changes reach the- * engine and come back as new state - the panel stays dumb.- */-export function Inspector({- clip,- media,- frameRate,- project,- projectName,- projectPath,- frame,- duration,- onModify,-}: {- clip: Clip | null;- media: MediaItem | null;- frameRate: number;- project: EditorProject;- projectName: string;- projectPath: string;- /** The output size, as currently set in the preview footer. */- frame: { width: number; height: number };- /** Timeline length in seconds. */- duration: number;- /** Opens the project-details editor (name, output frame). */- onModify: () => void;-}) {- const { t } = useLocale();-- return (- <div className="flex min-h-full flex-col">- {!clip && !media ? (- <>- <div className="selectable flex-1 px-3 py-2">- <Section title={t("inspector.project")}>- <Row label={t("inspector.name")} value={projectName} />- <Row label={t("inspector.folder")} value={projectPath} mono wrap />- <Row label={t("inspector.output")} value={`${frame.width} x ${frame.height}`} mono />- <Row label={t("inspector.rate")} value={`${frameRate.toFixed(2)} fps`} mono />- <Row label={t("inspector.duration")} value={timecode(duration, frameRate)} mono />- </Section>- <Section title={t("inspector.contents")}>- <Row label={t("inspector.media")} value={`${project.media.length}`} mono />- <Row- label={t("inspector.tracks")}- value={`${activeTimeline(project).tracks.length}`}- mono- />- <Row- label={t("inspector.clips")}- value={`${activeTimeline(project).clips.length}`}- mono- />- </Section>- </div>- <div className="flex justify-end border-t border-hairline px-3 py-2">- <button- type="button"- onClick={onModify}- className="cursor-pointer rounded-lg bg-hover px-3.5 py-1.5 text-xs font-medium- text-primary transition-colors hover:bg-active"- >- {t("inspector.modify")}- </button>- </div>- </>- ) : (- <div className="selectable px-3 py-2">- {clip && (- <Section title={t("inspector.clip")}>- <Row label={t("inspector.name")} value={clip.name} />- <Row label={t("inspector.track")} value={clip.trackId} mono />- <Row label={t("inspector.start")} value={timecode(clip.start, frameRate)} mono />- <Row label={t("inspector.duration")} value={timecode(clip.duration, frameRate)} mono />- <Row- label={t("inspector.end")}- value={timecode(clip.start + clip.duration, frameRate)}- mono- />- <Row- label={t("inspector.inPoint")}- value={timecode(clip.sourceStart, frameRate)}- mono- />- </Section>- )}-- {media && (- <>- <Section title={t("inspector.source")}>- <Row label={t("inspector.name")} value={media.name} />- <Row label={t("inspector.path")} value={media.path} mono wrap />- <Row label={t("inspector.duration")} value={shortDuration(media.duration)} mono />- </Section>-- {media.width !== null && (- <Section title={t("inspector.video")}>- <Row- label={t("inspector.codec")}- value={media.videoCodec ?? t("inspector.unknown")}- />- <Row label={t("inspector.size")} value={`${media.width} x ${media.height}`} mono />- <Row- label={t("inspector.rate")}- value={- media.frameRate ? `${media.frameRate.toFixed(3)} fps` : t("inspector.unknown")- }- mono- />- <Row- label={t("inspector.exact")}- value={media.frameRateFraction ?? t("inspector.unknown")}- mono- />- </Section>- )}-- {media.hasAudio && (- <Section title={t("inspector.audio")}>- <Row- label={t("inspector.codec")}- value={media.audioCodec ?? t("inspector.unknown")}- />- </Section>- )}- </>- )}- </div>- )}- </div>- );-}--function Section({ title, children }: { title: string; children: ReactNode }) {- return (- <section className="mb-4">- <h3 className="mb-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {title}- </h3>- <dl className="space-y-1.5">{children}</dl>- </section>- );-}--function Row({- label,- value,- mono,- wrap,-}: {- label: string;- value: string;- mono?: boolean;- wrap?: boolean;-}) {- return (- <div className="flex items-baseline justify-between gap-3">- <dt className="shrink-0 text-xs text-secondary">{label}</dt>- <dd- title={value}- className={`min-w-0 text-right text-xs text-primary ${mono ? "text-[11px]" : ""} ${- wrap ? "break-all" : "truncate"- }`}- >- {value}- </dd>- </div>- );-}diff --git a/desktop/src/components/MediaBin.tsx b/desktop/src/components/MediaBin.tsxdeleted file mode 100644index 850ab193..00000000--- a/desktop/src/components/MediaBin.tsx+++ /dev/null@@ -1,1085 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { memo, useEffect, useRef, useState } from "react";-import { open } from "@tauri-apps/plugin-dialog";-import type { PointerEvent as ReactPointerEvent, ReactNode } from "react";--import type { MediaAssets } from "../lib/assets";-import { subscribeAssets } from "../lib/assets";-import {- EFFECT_CATEGORIES,- EFFECTS,- TRANSITION_CATEGORIES,- TRANSITIONS,- type EffectCategory,- type TransitionCategory,-} from "../lib/effects";-import type { MediaItem } from "../lib/editor";-import { t, useLocale, type MsgKey } from "../lib/i18n";-import { templateDelete, templateList, type TemplateInfo } from "../lib/engine";-import { themeColor } from "../lib/theme";-import { shortDuration } from "../lib/time";-import { ErrorNotice } from "./ErrorNotice";-import { Icon } from "./Icon";-import { Empty, Panel } from "./Panel";-import { TemplateThumb } from "./TemplateThumb";--/** Which kinds of media the bin is showing. */-export interface BinFilter {- video: boolean;- audio: boolean;- image: boolean;-}--export const ALL_MEDIA: BinFilter = { video: true, audio: true, image: true };--/** The pages of the library strip, in display order. */-type LibraryTab = "media" | "text" | "transitions" | "effects" | "templates";--const TABS: { id: LibraryTab; labelKey: MsgKey }[] = [- { id: "media", labelKey: "mediaBin.tabMedia" },- { id: "text", labelKey: "mediaBin.tabText" },- { id: "transitions", labelKey: "mediaBin.tabTransitions" },- { id: "effects", labelKey: "mediaBin.tabEffects" },- { id: "templates", labelKey: "mediaBin.tabTemplates" },-];--/**- * The library panel.- *- * A strip of pages across the top - Media, Text, Transitions, Effects - then a- * full-width divider, then the page itself split in two: a narrow category- * sidebar on the left, and the browsing area on the right where media, effect- * previews and so on are shown.- *- * Media is fully live. Text offers the one title style that exists.- * Transitions and Effects browse the catalogues in `lib/effects.ts` and apply- * to the selected clip; only the motion transitions (wipe, push, zoom) still- * say "Soon", waiting on animated transforms in the engine. Templates lists- * saved bundles and hands off to the launch screen's fill flow.- *- * Media items are drag sources: dragging one onto the timeline places a clip- * at the drop position. That is the primary way material gets into an edit, so- * it needs to be the obvious one - hence the whole card being the drag handle- * rather than some grip affordance.- *- * Memoised: the editor re-renders per animation frame during playback and- * nothing in the library depends on the playhead. App.tsx keeps every- * callback here referentially stable (useCallback) so the memo actually- * skips those renders.- */-export const MediaBin = memo(function MediaBin({- items,- filter,- selectedIds,- busy,- error,- onFilter,- onAddText,- onSelect,- onImport,- onRemove,- onRemoveSelected,- onDismissError,- onBeginDrag,- onAddToTimeline,- onApplyEffect,- onApplyTransition,- onToggleSlot,- onUseTemplate,- onSaveTemplate,- assets,- dropping,-}: {- items: MediaItem[];- filter: BinFilter;- /** A file is being dragged over the window from outside. */- dropping: boolean;- /** Shared with the timeline, so a waveform is only ever computed once. */- assets: MediaAssets;- selectedIds: readonly string[];- busy: boolean;- error: string | null;- onFilter: (filter: BinFilter) => void;- /** Puts a new title on the timeline at the playhead. */- onAddText: () => void;- /** Replaces the bin selection; cards and the marquee both call it. */- onSelect: (ids: string[]) => void;- onImport: (paths: string[]) => void;- onRemove: (id: string) => void;- /** Deletes everything in the current bin selection, as one undo step. */- onRemoveSelected: () => void;- onDismissError: () => void;- /** Called once the pointer has moved far enough to count as a drag. */- onBeginDrag: (item: MediaItem, clientX: number, clientY: number) => void;- onAddToTimeline: (mediaId: string) => void;- /** Applies an effect to the selected clip; the app validates and explains. */- onApplyEffect: (effectId: string) => void;- /** Puts a transition on the selected clip's cut; the app validates. */- onApplyTransition: (transitionId: string) => void;- /** Marks or unmarks a media item as a template slot. */- onToggleSlot: (mediaId: string, placeholder: boolean) => void;- /** Takes the user to the fill flow for one template. */- onUseTemplate: (template: TemplateInfo) => void;- /** Opens the save-as-template sheet for the current project. */- onSaveTemplate: () => void;-}) {- const [tab, setTab] = useState<LibraryTab>("media");- const [effectCategory, setEffectCategory] = useState<EffectCategory>("basic");- const [transitionCategory, setTransitionCategory] = useState<TransitionCategory>("basic");- const { t } = useLocale();-- return (- <Panel- // Dropped files land in the bin, so the bin is what lights up. A- // full-screen overlay would obscure the editor to say something that- // only concerns one panel.- className={dropping ? "ring-2 ring-accent ring-inset" : ""}- >- <div className="flex h-full min-h-0 flex-col">- {/* The page strip. Its bottom border is the full-width divider. */}- <div className="shrink-0 border-b border-hairline px-2 pb-2 pt-2">- <div className="flex rounded-lg bg-sunken p-0.5">- {TABS.map((entry) => (- <button- key={entry.id}- type="button"- aria-pressed={tab === entry.id}- onClick={() => setTab(entry.id)}- // flex-auto, not flex-1: extra space is shared, but each tab's- // base is its own label, so "Transitions" is never crammed to- // make room for padding around "Text".- className={`min-w-0 flex-auto cursor-pointer truncate rounded-md px-1.5 py-1- text-[11px] transition-colors ${- tab === entry.id- ? "bg-panel text-primary shadow-[0_1px_2px_rgba(0,0,0,0.14)]"- : "text-secondary hover:text-primary"- }`}- >- {t(entry.labelKey)}- </button>- ))}- </div>- </div>-- {/* The page: category sidebar on the left, browsing area on the right. */}- <div className="flex min-h-0 flex-1">- <aside className="thin-scroll w-26 shrink-0 overflow-y-auto border-r border-hairline py-1">- {tab === "media" && <MediaCategories items={items} filter={filter} onFilter={onFilter} />}- {tab === "text" && (- <CategoryGroup title={t("mediaBin.tabText")}>- <CategoryRow label={t("mediaBin.titles")} selected onSelect={() => {}} />- </CategoryGroup>- )}- {tab === "transitions" && (- <CategoryGroup title={t("mediaBin.tabTransitions")}>- {TRANSITION_CATEGORIES.map((category) => (- <CategoryRow- key={category.id}- label={category.label}- selected={transitionCategory === category.id}- onSelect={() => setTransitionCategory(category.id)}- />- ))}- </CategoryGroup>- )}- {tab === "effects" && (- <CategoryGroup title={t("mediaBin.videoEffects")}>- {EFFECT_CATEGORIES.map((category) => (- <CategoryRow- key={category.id}- label={category.label}- selected={effectCategory === category.id}- onSelect={() => setEffectCategory(category.id)}- />- ))}- </CategoryGroup>- )}- {tab === "templates" && (- <CategoryGroup title={t("mediaBin.tabTemplates")}>- <CategoryRow label={t("mediaBin.myTemplates")} selected onSelect={() => {}} />- </CategoryGroup>- )}- </aside>-- <div className="thin-scroll min-w-0 flex-1 overflow-y-auto">- {tab === "media" && (- <MediaPage- items={items}- filter={filter}- selectedIds={selectedIds}- busy={busy}- error={error}- dropping={dropping}- assets={assets}- onSelect={onSelect}- onImport={onImport}- onRemove={onRemove}- onRemoveSelected={onRemoveSelected}- onDismissError={onDismissError}- onBeginDrag={onBeginDrag}- onAddToTimeline={onAddToTimeline}- onToggleSlot={onToggleSlot}- />- )}- {tab === "text" && <TextPage onAddText={onAddText} />}- {tab === "transitions" && (- <TransitionsPage category={transitionCategory} onApply={onApplyTransition} />- )}- {tab === "effects" && <EffectsPage category={effectCategory} onApply={onApplyEffect} />}- {tab === "templates" && (- <TemplatesPage onUse={onUseTemplate} onSaveTemplate={onSaveTemplate} />- )}- </div>- </div>- </div>- </Panel>- );-});--// ── the category sidebar ─────────────────────────────────────────────────────--/**- * A collapsible dropdown of categories - "Video Effects" with its list under- * it, and the equivalents on the other pages.- */-function CategoryGroup({ title, children }: { title: string; children: ReactNode }) {- const [open, setOpen] = useState(true);- return (- <div className="px-1">- <button- type="button"- aria-expanded={open}- onClick={() => setOpen((current) => !current)}- className="flex w-full cursor-pointer items-center gap-1 rounded-md px-1.5 py-1.5- text-[11px] font-medium text-secondary transition-colors hover:bg-hover- hover:text-primary"- >- <Icon name={open ? "chevronDown" : "chevronRight"} size={10} className="shrink-0" />- <span className="min-w-0 flex-1 truncate text-left">{title}</span>- </button>- {open && <div className="flex flex-col gap-px pb-1">{children}</div>}- </div>- );-}--function CategoryRow({- label,- count,- selected,- onSelect,-}: {- label: string;- count?: number;- selected: boolean;- onSelect: () => void;-}) {- return (- <button- type="button"- aria-pressed={selected}- onClick={onSelect}- className={`flex w-full cursor-pointer items-center gap-1 rounded-md py-1 pl-4.5 pr-1.5- text-[11px] transition-colors ${- selected ? "bg-active text-primary" : "text-secondary hover:bg-hover"- }`}- >- <span className="min-w-0 flex-1 truncate text-left">{label}</span>- {count !== undefined && count > 0 && (- <span className="font-technical text-[10px] text-tertiary">{count}</span>- )}- </button>- );-}--/** One media kind on, the rest off - what a sidebar category means. */-function onlyKind(kind: keyof BinFilter): BinFilter {- return { video: false, audio: false, image: false, [kind]: true };-}--const KIND_LABEL_KEYS: Record<keyof BinFilter, MsgKey> = {- video: "mediaBin.kindVideo",- audio: "mediaBin.kindAudio",- image: "mediaBin.kindImages",-};--function MediaCategories({- items,- filter,- onFilter,-}: {- items: MediaItem[];- filter: BinFilter;- onFilter: (filter: BinFilter) => void;-}) {- const kinds = ["video", "audio", "image"] as const;- const enabled = kinds.filter((kind) => filter[kind]);- // The old filter menu could leave two of three kinds on; the sidebar has no- // row for that state, so nothing highlights until a category is clicked.- const selected = enabled.length === 3 ? "all" : enabled.length === 1 ? enabled[0] : null;-- const { t } = useLocale();-- return (- <CategoryGroup title={t("mediaBin.tabMedia")}>- <CategoryRow- label={t("mediaBin.allMedia")}- count={items.length}- selected={selected === "all"}- onSelect={() => onFilter(ALL_MEDIA)}- />- {kinds.map((kind) => (- <CategoryRow- key={kind}- label={t(KIND_LABEL_KEYS[kind])}- count={items.filter((item) => item.kind === kind).length}- selected={selected === kind}- onSelect={() => onFilter(onlyKind(kind))}- />- ))}- </CategoryGroup>- );-}--// ── the media page ───────────────────────────────────────────────────────────--/** Cards sized for the browsing area, however narrow the panel is dragged. */-const CARD_GRID = "grid grid-cols-[repeat(auto-fill,minmax(88px,1fr))] gap-2 px-2 pb-2";--function MediaPage({- items,- filter,- selectedIds,- busy,- error,- dropping,- assets,- onSelect,- onImport,- onRemove,- onRemoveSelected,- onDismissError,- onBeginDrag,- onAddToTimeline,- onToggleSlot,-}: {- items: MediaItem[];- filter: BinFilter;- selectedIds: readonly string[];- busy: boolean;- error: string | null;- dropping: boolean;- assets: MediaAssets;- onSelect: (ids: string[]) => void;- onImport: (paths: string[]) => void;- onRemove: (id: string) => void;- /** Deletes everything in the current bin selection, as one undo step. */- onRemoveSelected: () => void;- onDismissError: () => void;- onBeginDrag: (item: MediaItem, clientX: number, clientY: number) => void;- onAddToTimeline: (mediaId: string) => void;- onToggleSlot: (mediaId: string, placeholder: boolean) => void;-}) {- const { t } = useLocale();-- const browse = async () => {- if (busy) return;- const chosen = await open({- multiple: true,- title: t("mediaBin.importMedia"),- filters: [- {- name: t("mediaBin.mediaFilter"),- extensions: [- "mp4", "mov", "mkv", "webm", "avi", "m4v",- "mp3", "wav", "flac", "aac", "m4a", "ogg", "opus",- "png", "jpg", "jpeg", "webp", "bmp", "tif", "tiff", "avif", "gif",- ],- },- { name: t("mediaBin.allFilesFilter"), extensions: ["*"] },- ],- });-- // The picker hands back a string for one file and an array for many.- if (Array.isArray(chosen)) onImport(chosen);- else if (typeof chosen === "string") onImport([chosen]);- };-- /**- * Marquee selection over the card grid.- *- * A press on the grid's background (never on a card - cards are drag- * sources) starts a band in client coordinates; every move re-derives the- * selection from the cards' live rects, so scrolled positions and wrapped- * rows need no bookkeeping. Shift adds to the selection that existed when- * the band started, like the timeline's marquee.- */- const grid = useRef<HTMLDivElement>(null);- const [band, setBand] = useState<{ x0: number; y0: number; x1: number; y1: number } | null>(- null,- );- const beginMarquee = (event: ReactPointerEvent<HTMLDivElement>) => {- if (event.button !== 0) return;- if ((event.target as Element).closest("[data-media-card]")) return;- const basis = event.shiftKey ? [...selectedIds] : [];- if (!event.shiftKey) onSelect([]);- const origin = { x: event.clientX, y: event.clientY };- setBand({ x0: origin.x, y0: origin.y, x1: origin.x, y1: origin.y });-- const caught = (x: number, y: number) => {- const left = Math.min(origin.x, x);- const right = Math.max(origin.x, x);- const top = Math.min(origin.y, y);- const bottom = Math.max(origin.y, y);- const ids: string[] = [];- grid.current- ?.querySelectorAll<HTMLElement>("[data-media-card]")- .forEach((card) => {- const rect = card.getBoundingClientRect();- const hit =- rect.left < right && rect.right > left && rect.top < bottom && rect.bottom > top;- const id = card.dataset.mediaCard;- if (hit && id) ids.push(id);- });- return ids;- };-- const onMove = (move: PointerEvent) => {- setBand({ x0: origin.x, y0: origin.y, x1: move.clientX, y1: move.clientY });- onSelect([...new Set([...basis, ...caught(move.clientX, move.clientY)])]);- };- const onUp = () => {- window.removeEventListener("pointermove", onMove);- window.removeEventListener("pointerup", onUp);- setBand(null);- };- window.addEventListener("pointermove", onMove);- window.addEventListener("pointerup", onUp);- };-- /**- * Starts a drag using raw pointer events rather than HTML5 drag-and-drop.- *- * HTML5 dragging cannot be used here at all: Tauri's `dragDropEnabled`- * native handler intercepts every drag over the webview, including ones that- * begin inside it, so an internal drag registers as an incoming OS file drop- * and raises the import overlay. Pointer events never involve the OLE drag- * machinery, so the two stop fighting.- *- * The 4px threshold keeps a sloppy click from starting a drag.- */- const beginDrag = (event: ReactPointerEvent<HTMLLIElement>, item: MediaItem) => {- if (event.button !== 0) return;- const originX = event.clientX;- const originY = event.clientY;-- const onMove = (moveEvent: PointerEvent) => {- if (Math.hypot(moveEvent.clientX - originX, moveEvent.clientY - originY) <= 4) return;- cleanup();- onBeginDrag(item, moveEvent.clientX, moveEvent.clientY);- };- const cleanup = () => {- window.removeEventListener("pointermove", onMove);- window.removeEventListener("pointerup", cleanup);- };-- window.addEventListener("pointermove", onMove);- window.addEventListener("pointerup", cleanup);- };-- const visible = items.filter((item) => filter[item.kind]);-- return (- // The grid area is the marquee surface; pressing empty space drags a- // selection band, pressing a card starts a media drag.- <div ref={grid} onPointerDown={beginMarquee} className="flex min-h-full flex-col">- <div className="px-2 pb-2 pt-2">- <button- type="button"- onClick={() => void browse()}- disabled={busy}- className="flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg- border border-dashed border-hairline-strong px-3 py-2.5 text-xs text-secondary- transition-colors hover:border-accent hover:bg-hover hover:text-primary- disabled:cursor-not-allowed disabled:opacity-40"- >- <Icon name="import" size={14} />- {busy ? t("mediaBin.importing") : t("mediaBin.importMedia")}- </button>- </div>-- {selectedIds.length > 1 && (- <div className="mx-2 mb-2 flex items-center justify-between rounded-lg bg-sunken- px-2.5 py-1.5">- <span className="text-[11px] text-secondary">- {t("mediaBin.selectedCount", { count: selectedIds.length })}- </span>- <button- type="button"- onClick={onRemoveSelected}- className="cursor-pointer rounded px-2 py-0.5 text-[11px] font-medium text-danger- transition-colors hover:bg-danger-soft"- >- {t("mediaBin.delete")}- </button>- </div>- )}-- {error && <ErrorNotice message={error} onDismiss={onDismissError} className="mx-2 mb-2" />}-- {visible.length === 0 ? (- <Empty- icon={- <Icon- name="import"- size={28}- strokeWidth={1.5}- className={dropping ? "text-accent" : ""}- />- }- >- {dropping ? t("mediaBin.releaseToImport") : t("mediaBin.dropHint")}- </Empty>- ) : (- <ul className={CARD_GRID}>- {visible.map((item) => (- <li- key={item.id}- data-media-card={item.id}- onPointerDown={(event) => beginDrag(event, item)}- onClick={(event) => {- const additive = event.shiftKey || event.metaKey || event.ctrlKey;- onSelect(- additive- ? selectedIds.includes(item.id)- ? selectedIds.filter((id) => id !== item.id)- : [...selectedIds, item.id]- : [item.id],- );- }}- onDoubleClick={() => onAddToTimeline(item.id)}- // The details that used to sit on a second line live here now.- // They are worth having, but not worth a permanent row each.- title={`${item.name}\n${describe(item)}\n${t("mediaBin.cardHint")}`}- className="group cursor-grab select-none active:cursor-grabbing"- >- <div- className={`relative overflow-hidden rounded-lg transition-shadow ${- selectedIds.includes(item.id)- ? "ring-2 ring-accent"- : "ring-1 ring-hairline group-hover:ring-hairline-strong"- }`}- >- <MediaThumb item={item} assets={assets} />-- <span- className="pointer-events-none absolute left-1 top-1 flex h-5 w-5- items-center justify-center rounded text-white"- // The kind's own hue, matching the clip it becomes on a track.- style={{ background: KIND_TINTS[item.kind].mark }}- >- <Icon- name={item.kind === "video" ? "film" : item.kind === "image" ? "image" : "music"}- size={11}- />- </span>-- <span className="pointer-events-none absolute bottom-1 right-1 rounded bg-black/55- px-1 py-px font-technical text-[10px] text-white">- {item.kind === "image" ? t("mediaBin.still") : shortDuration(item.duration)}- </span>-- {/* The slot state stays visible; only the controls are hover-only.- A template's whole point is which items are slots. */}- {item.placeholder && (- <span className="pointer-events-none absolute bottom-1 left-1 flex items-center- gap-1 rounded bg-accent px-1 py-px font-technical text-[10px]- text-on-accent">- <Icon name="slot" size={9} />- {t("mediaBin.slotBadge")}- </span>- )}-- <button- type="button"- aria-pressed={item.placeholder ?? false}- aria-label={- item.placeholder- ? t("mediaBin.unmarkSlot", { name: item.name })- : t("mediaBin.markSlot", { name: item.name })- }- title={- item.placeholder ? t("mediaBin.unmarkSlotHint") : t("mediaBin.markSlotHint")- }- onClick={(event) => {- event.stopPropagation();- onToggleSlot(item.id, !item.placeholder);- }}- className={`absolute right-7 top-1 cursor-pointer rounded p-1 text-white- transition-colors hover:bg-accent ${- item.placeholder- ? "bg-accent"- : "invisible bg-black/55 group-hover:visible"- }`}- >- <Icon name="slot" size={10} />- </button>-- <button- type="button"- aria-label={t("mediaBin.removeItem", { name: item.name })}- title={t("mediaBin.removeFromBin")}- onClick={(event) => {- event.stopPropagation();- onRemove(item.id);- }}- className="invisible absolute right-1 top-1 cursor-pointer rounded bg-black/55 p-1- text-white transition-colors hover:bg-danger group-hover:visible"- >- <Icon name="close" size={10} />- </button>- </div>-- <span className="mt-1 block truncate text-[11px] leading-tight text-secondary">- {item.name}- </span>- </li>- ))}- </ul>- )}-- {band && (- <div- aria-hidden- className="pointer-events-none fixed z-40 border"- style={{- left: Math.min(band.x0, band.x1),- top: Math.min(band.y0, band.y1),- width: Math.abs(band.x1 - band.x0),- height: Math.abs(band.y1 - band.y0),- background: "var(--color-accent-soft)",- borderColor: "var(--color-accent)",- }}- />- )}- </div>- );-}--/** The second line that used to be shown for every item, now on hover. */-function describe(item: MediaItem): string {- if (item.kind === "audio") return item.audioCodec ?? t("mediaBin.audioFallback");- const size = `${item.width}x${item.height}`;- return item.kind === "image"- ? t("mediaBin.sizeStill", { size })- : `${size} · ${item.frameRate?.toFixed(2)} fps`;-}--// ── the text page ────────────────────────────────────────────────────────────--function TextPage({ onAddText }: { onAddText: () => void }) {- const { t } = useLocale();- return (- <ul className={`${CARD_GRID} pt-2`}>- <li- onClick={onAddText}- onDoubleClick={onAddText}- title={t("mediaBin.addTitleHint")}- className="group cursor-pointer select-none"- >- <div- className="relative flex aspect-video items-center justify-center overflow-hidden- rounded-lg ring-1 ring-hairline transition-shadow- group-hover:ring-hairline-strong"- // Titles wear the rose the timeline gives them.- style={{ background: "var(--color-clip-text-body)" }}- >- <span className="text-xl font-semibold" style={{ color: "var(--color-clip-text)" }}>- Aa- </span>- </div>- <span className="mt-1 block truncate text-[11px] leading-tight text-secondary">- {t("mediaBin.defaultTitle")}- </span>- </li>- </ul>- );-}--// ── the transitions and effects pages ────────────────────────────────────────--/**- * A catalogue card. Clickable when the thing it offers actually works;- * otherwise the "Soon" badge stays - the honest version of a disabled drag,- * kept for the motion transitions the engine cannot animate yet.- */-function CatalogueCard({- label,- blurb,- onApply,- children,-}: {- label: string;- blurb: string;- /** Absent means not implemented yet - the card browses but does nothing. */- onApply?: () => void;- children: ReactNode;-}) {- const { t } = useLocale();- return (- <li- title={`${label}\n${blurb}\n${- onApply ? t("mediaBin.applyHint") : t("mediaBin.notAvailable")- }`}- onClick={onApply}- className={`group select-none ${onApply ? "cursor-pointer" : ""}`}- >- <div- className={`relative flex aspect-video items-center justify-center overflow-hidden- rounded-lg bg-sunken ring-1 ring-hairline ${- onApply ? "transition-shadow group-hover:ring-hairline-strong" : ""- }`}- >- {children}- {onApply ? (- <span- className="invisible absolute bottom-1 right-1 flex h-5 w-5 items-center- justify-center rounded bg-black/55 text-white group-hover:visible"- >- <Icon name="plus" size={11} />- </span>- ) : (- <span- className="absolute bottom-1 right-1 rounded bg-black/55 px-1 py-px font-technical- text-[10px] text-white"- >- {t("mediaBin.soon")}- </span>- )}- </div>- <span className="mt-1 block truncate text-[11px] leading-tight text-secondary">{label}</span>- </li>- );-}--function TransitionsPage({- category,- onApply,-}: {- category: TransitionCategory;- onApply: (transitionId: string) => void;-}) {- const visible = TRANSITIONS.filter((transition) => transition.category === category);- return (- <ul className={`${CARD_GRID} pt-2`}>- {visible.map((transition) => (- <CatalogueCard- key={transition.id}- label={transition.label}- blurb={transition.blurb}- onApply={transition.implemented ? () => onApply(transition.id) : undefined}- >- <Icon name="transition" size={22} strokeWidth={1.5} className="text-tertiary" />- </CatalogueCard>- ))}- </ul>- );-}--/**- * Rendered effect previews, one image per effect id, produced by- * `scripts/generate-effect-previews.mjs` running each effect's real FFmpeg- * chain over the chosen source still. Globbed so a missing render simply- * falls back to the effect's gradient swatch - the catalogue never breaks- * because a preview was not generated yet.- */-const EFFECT_PREVIEWS: Record<string, string> = Object.fromEntries(- Object.entries(- import.meta.glob("../assets/effect-previews/*.{webp,jpg,png}", {- eager: true,- query: "?url",- import: "default",- }),- ).map(([file, url]) => [file.replace(/^.*\/|\.\w+$/g, ""), url as string]),-);--function EffectsPage({- category,- onApply,-}: {- category: EffectCategory;- onApply: (effectId: string) => void;-}) {- const visible = EFFECTS.filter((effect) => effect.category === category);- return (- <ul className={`${CARD_GRID} pt-2`}>- {visible.map((effect) => {- const preview = EFFECT_PREVIEWS[effect.id];- return (- <CatalogueCard- key={effect.id}- label={effect.label}- blurb={effect.blurb}- onApply={() => onApply(effect.id)}- >- {preview ? (- <img- src={preview}- alt=""- aria-hidden- draggable={false}- className="absolute inset-0 h-full w-full object-cover"- />- ) : (- <>- <span- className="absolute inset-0"- style={{ background: effect.swatch }}- aria-hidden- />- <Icon- name="sparkles"- size={20}- strokeWidth={1.5}- className="relative text-white/85"- />- </>- )}- </CatalogueCard>- );- })}- </ul>- );-}--// ── the templates page ───────────────────────────────────────────────────────--/**- * The template gallery, in the library where CapCut keeps its own.- *- * Using a template means leaving this project for the fill flow on the launch- * screen - a template makes a *new* project - so the card's verb hands off- * rather than pretending to drag. Loaded fresh each time the tab opens, which- * is what makes a just-saved template appear without any plumbing.- */-function TemplatesPage({- onUse,- onSaveTemplate,-}: {- onUse: (template: TemplateInfo) => void;- onSaveTemplate: () => void;-}) {- const [templates, setTemplates] = useState<TemplateInfo[] | null>(null);- const { t, tp } = useLocale();-- useEffect(() => {- let cancelled = false;- void templateList()- .then((list) => !cancelled && setTemplates(list))- .catch(() => !cancelled && setTemplates([]));- return () => {- cancelled = true;- };- }, []);-- const remove = async (doomed: TemplateInfo) => {- setTemplates((current) =>- current ? current.filter((entry) => entry.path !== doomed.path) : current,- );- await templateDelete(doomed.path).catch(() => undefined);- };-- return (- <>- <div className="px-2 pb-2 pt-2">- <button- type="button"- onClick={onSaveTemplate}- className="flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg- border border-dashed border-hairline-strong px-3 py-2.5 text-xs text-secondary- transition-colors hover:border-accent hover:bg-hover hover:text-primary"- >- <Icon name="slot" size={14} />- {t("mediaBin.saveAsTemplate")}- </button>- </div>-- {templates !== null && templates.length === 0 ? (- <Empty icon={<Icon name="slot" size={28} strokeWidth={1.5} />}>- {t("mediaBin.noTemplates")}- </Empty>- ) : (- <ul className={CARD_GRID}>- {(templates ?? []).map((template) => (- <li key={template.path} className="group relative select-none">- <button- type="button"- title={`${template.name}\n${tp("mediaBin.slotCount", template.slots.length)} · ${- template.width- } x ${template.height}\n${t("mediaBin.useTemplateHint")}`}- onClick={() => onUse(template)}- className="w-full cursor-pointer text-left"- >- <TemplateThumb template={template} />- <span className="mt-1 block truncate text-[11px] leading-tight text-secondary">- {template.name}- </span>- <span className="block font-technical text-[10px] text-tertiary">- {tp("mediaBin.slotCount", template.slots.length)}- </span>- </button>- <button- type="button"- aria-label={t("mediaBin.deleteTemplate", { name: template.name })}- title={t("mediaBin.deleteTemplateHint")}- onClick={(event) => {- event.stopPropagation();- void remove(template);- }}- className="invisible absolute right-1 top-1 cursor-pointer rounded bg-black/55 p-1- text-white transition-colors hover:bg-danger group-hover:visible"- >- <Icon name="trash" size={10} />- </button>- </li>- ))}- </ul>- )}- </>- );-}--// ── thumbnails ───────────────────────────────────────────────────────────────--/**- * Each media kind's hue pair - the vivid mark and the darker same-hue ground- * it sits on - matching the timeline's clip palette, so a card in the bin and- * the clip it becomes read as the same thing.- */-const KIND_TINTS: Record<MediaItem["kind"], { mark: string; body: string }> = {- video: { mark: "var(--color-clip-video)", body: "var(--color-clip-video-body)" },- audio: { mark: "var(--color-clip-audio)", body: "var(--color-clip-audio-body)" },- image: { mark: "var(--color-clip-image)", body: "var(--color-clip-image-body)" },-};--/**- * The bin preview for one item.- *- * Reuses exactly the artwork the timeline uses - the first frame of the cached- * filmstrip for video, the cached peaks for audio - so nothing is decoded- * twice and a clip looks the same in the bin as it does on a track.- *- * Artwork arrives asynchronously and deliberately does not cause a React- * render, so this subscribes and repaints itself instead.- */-function MediaThumb({ item, assets }: { item: MediaItem; assets: MediaAssets }) {- const canvasRef = useRef<HTMLCanvasElement>(null);- const [hasArt, setHasArt] = useState(false);-- useEffect(() => {- const paint = () => {- const canvas = canvasRef.current;- const context = canvas?.getContext("2d");- if (!canvas || !context) return;-- const ratio = window.devicePixelRatio || 1;- const width = canvas.clientWidth;- const height = canvas.clientHeight;- if (width === 0 || height === 0) return;-- canvas.width = Math.round(width * ratio);- canvas.height = Math.round(height * ratio);- context.setTransform(ratio, 0, 0, ratio, 0, 0);- context.clearRect(0, 0, width, height);-- // Stills and footage both draw from the strip cache; only audio differs.- if (item.kind !== "audio") {- const strip = assets.strips.get(item.id);- const frames = assets.stripFrames.get(item.id);- if (!strip || !frames) {- setHasArt(false);- return;- }- // Cover-fit the first frame: letterboxing a small thumbnail wastes- // most of it, and a crop reads better than bars at this size.- const tile = strip.width / frames;- const scale = Math.max(width / tile, height / strip.height);- context.imageSmoothingQuality = "high";- const drawWidth = tile * scale;- const drawHeight = strip.height * scale;- context.drawImage(- strip,- 0,- 0,- tile,- strip.height,- (width - drawWidth) / 2,- (height - drawHeight) / 2,- drawWidth,- drawHeight,- );- setHasArt(true);- return;- }-- const peaks = assets.peaks.get(item.id);- if (!peaks) {- setHasArt(false);- return;- }-- // The wave sits on its own darker orange rather than on the panel's- // near-black - the same two-intensity pair the timeline clip uses.- context.fillStyle = themeColor("clip-audio-body", "#33220e");- context.fillRect(0, 0, width, height);-- // The whole file squeezed into the thumbnail, extremes per column so a- // transient does not vanish at this scale.- const centre = height / 2;- const half = height / 2 - 1;- const buckets = peaks.max.length;-- context.fillStyle = themeColor("clip-audio", "#f09e2f");- context.beginPath();- for (let column = 0; column < width; column += 1) {- const from = Math.floor((column / width) * buckets);- const to = Math.max(from + 1, Math.floor(((column + 1) / width) * buckets));-- let low = 0;- let high = 0;- for (let bucket = from; bucket < to && bucket < buckets; bucket += 1) {- if (peaks.min[bucket] < low) low = peaks.min[bucket];- if (peaks.max[bucket] > high) high = peaks.max[bucket];- }-- const top = centre - high * half;- context.rect(column, top, 1, Math.max(1, centre - low * half - top));- }- context.fill();- setHasArt(true);- };-- paint();- return subscribeAssets(assets, paint);- }, [assets, item]);-- return (- <span- className="relative block aspect-video w-full overflow-hidden"- // The kind's darker hue as the ground, so a card without artwork yet is- // already colour-coded rather than a black hole.- style={{ background: KIND_TINTS[item.kind].body }}- >- <canvas ref={canvasRef} className="h-full w-full" />- {!hasArt && (- <span- className="absolute inset-0 flex items-center justify-center"- style={{ color: KIND_TINTS[item.kind].mark }}- >- <Icon name={item.kind === "video" ? "film" : item.kind === "image" ? "image" : "music"} size={14} />- </span>- )}- </span>- );-}diff --git a/desktop/src/components/Menu.tsx b/desktop/src/components/Menu.tsxdeleted file mode 100644index 2a9a2c9e..00000000--- a/desktop/src/components/Menu.tsx+++ /dev/null@@ -1,141 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { Fragment, useEffect, useRef, useState } from "react";-import type { ReactNode } from "react";--import { Icon, type IconName } from "./Icon";--export interface MenuOption {- label: string;- onSelect: () => void;- icon?: IconName;- /**- * An arbitrary element in the icon slot, for rows whose glyph is drawn- * rather than named - the frame-size menu's aspect shapes. Wins over- * `icon` and `checked` when set.- */- leading?: ReactNode;- /** Right-aligned hint, e.g. a keyboard shortcut. */- hint?: string;- disabled?: boolean;- danger?: boolean;- /**- * Renders as a checkable row when set.- *- * A checkable row does not close the menu, because the whole point of one is- * turning several things on and off in a row.- */- checked?: boolean;-}--/**- * A dropdown menu hung under an arbitrary trigger.- *- * Options arrive in groups and a hairline is drawn between neighbouring- * groups, so callers express structure by nesting arrays rather than by- * threading separator sentinels through a flat list.- */-export function Menu({- groups,- trigger,- align = "left",- direction = "down",-}: {- groups: MenuOption[][];- trigger: (open: boolean) => ReactNode;- align?: "left" | "right";- /** "up" hangs the menu above the trigger, for triggers near the bottom edge. */- direction?: "down" | "up";-}) {- const [open, setOpen] = useState(false);- const root = useRef<HTMLDivElement>(null);-- useEffect(() => {- if (!open) return;-- const onPointerDown = (event: PointerEvent) => {- if (!root.current?.contains(event.target as Node)) setOpen(false);- };- const onKeyDown = (event: KeyboardEvent) => {- if (event.key === "Escape") setOpen(false);- };-- document.addEventListener("pointerdown", onPointerDown);- document.addEventListener("keydown", onKeyDown);- window.addEventListener("blur", () => setOpen(false));- return () => {- document.removeEventListener("pointerdown", onPointerDown);- document.removeEventListener("keydown", onKeyDown);- };- }, [open]);-- return (- <div ref={root} className="relative">- <button- type="button"- aria-haspopup="menu"- aria-expanded={open}- onClick={() => setOpen((current) => !current)}- className="cursor-pointer"- >- {trigger(open)}- </button>-- {open && (- <div- role="menu"- className={`surface absolute z-50 min-w-52 rounded-xl px-1.5 py-1.5 text-primary- ${direction === "up" ? "bottom-full mb-1.5" : "mt-1.5"}- ${align === "right" ? "right-0" : "left-0"}`}- >- {groups.map((group, groupIndex) => (- <Fragment key={groupIndex}>- {groupIndex > 0 && (- <div role="separator" className="my-1.5 border-t border-hairline" />- )}- {group.map((option) => (- <button- key={option.label}- role="menuitem"- type="button"- disabled={option.disabled}- onClick={() => {- option.onSelect();- if (option.checked === undefined) setOpen(false);- }}- className={`flex w-full cursor-pointer items-center gap-2.5 rounded-lg px-2.5 py-1.5- text-left text-xs transition-colors hover:bg-hover- disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent- ${option.danger ? "text-danger" : ""}`}- >- {option.leading ? (- <span className="flex w-4 shrink-0 items-center justify-center">- {option.leading}- </span>- ) : option.checked !== undefined ? (- <Icon- name="check"- size={14}- className={`shrink-0 ${option.checked ? "text-accent" : "opacity-0"}`}- />- ) : option.icon ? (- <Icon name={option.icon} size={14} className="shrink-0 opacity-70" />- ) : (- <span className="w-3.5 shrink-0" />- )}- <span className="min-w-0 flex-1 truncate">{option.label}</span>- {option.hint && (- <span className="shrink-0 font-technical text-[10px] text-tertiary">- {option.hint}- </span>- )}- </button>- ))}- </Fragment>- ))}- </div>- )}- </div>- );-}diff --git a/desktop/src/components/ModifyProjectDialog.tsx b/desktop/src/components/ModifyProjectDialog.tsxdeleted file mode 100644index 3bfa729b..00000000--- a/desktop/src/components/ModifyProjectDialog.tsx+++ /dev/null@@ -1,149 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useState } from "react";--import { useLocale, type MsgKey } from "../lib/i18n";-import { Icon } from "./Icon";--/** Output bounds the encoder accepts comfortably; also the preview footer's. */-const MIN_DIMENSION = 16;-const MAX_DIMENSION = 8192;--/**- * Edits the project's own details: its name and output frame.- *- * Distinct from Settings on purpose - Settings configures the app, this- * configures the project. The frame rate is shown but not editable: every- * clip boundary in the edit is quantised to its grid, and changing it would- * silently re-time the whole timeline. That is a conform, not a config.- */-export function ModifyProjectDialog({- name,- frame,- frameRate,- busy,- onSave,- onCancel,-}: {- name: string;- frame: { width: number; height: number };- frameRate: number;- busy: boolean;- onSave: (next: { name: string; width: number; height: number }) => void;- onCancel: () => void;-}) {- const [draftName, setDraftName] = useState(name);- const [width, setWidth] = useState(String(frame.width));- const [height, setHeight] = useState(String(frame.height));- const { t } = useLocale();-- useEffect(() => {- const onKey = (event: KeyboardEvent) => {- if (event.key === "Escape") onCancel();- };- window.addEventListener("keydown", onKey);- return () => window.removeEventListener("keydown", onKey);- }, [onCancel]);-- // Even dimensions inside the encoder's comfort range; the same rounding- // the preview footer applies, so the two entrances agree.- const parse = (value: string) => {- const number = Math.round(Number(value));- if (!Number.isFinite(number)) return null;- const clamped = Math.min(MAX_DIMENSION, Math.max(MIN_DIMENSION, number));- return clamped - (clamped % 2);- };- const parsedWidth = parse(width);- const parsedHeight = parse(height);- const valid = draftName.trim().length > 0 && parsedWidth !== null && parsedHeight !== null;-- const save = () => {- if (!valid || busy) return;- onSave({ name: draftName.trim(), width: parsedWidth!, height: parsedHeight! });- };-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- if (event.target === event.currentTarget) onCancel();- }}- >- <div className="surface w-full max-w-sm rounded-2xl p-6">- <div className="mb-4 flex items-center gap-2">- <Icon name="settings" size={16} className="text-accent" />- <h2 className="text-sm font-semibold text-primary">{t("modifyProject.title")}</h2>- </div>-- <label className="mb-3 block">- <span className="mb-1 block text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("modifyProject.name")}- </span>- <input- value={draftName}- autoFocus- spellCheck={false}- onChange={(event) => setDraftName(event.target.value)}- onKeyDown={(event) => event.key === "Enter" && save()}- className="w-full rounded-lg bg-sunken px-3 py-2 text-sm text-primary outline-none- ring-1 ring-hairline focus:ring-accent"- />- </label>-- <div className="mb-3 grid grid-cols-2 gap-3">- {(- [- ["modifyProject.width", width, setWidth],- ["modifyProject.height", height, setHeight],- ] as [MsgKey, string, (value: string) => void][]- ).map(([labelKey, value, set]) => (- <label key={labelKey} className="block">- <span className="mb-1 block text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t(labelKey)}- </span>- <input- value={value}- inputMode="numeric"- spellCheck={false}- onChange={(event) => set(event.target.value)}- onKeyDown={(event) => event.key === "Enter" && save()}- className="w-full rounded-lg bg-sunken px-3 py-2 font-technical text-sm- text-primary outline-none ring-1 ring-hairline focus:ring-accent"- />- </label>- ))}- </div>-- <p className="mb-5 flex items-baseline justify-between text-xs text-secondary">- <span>{t("modifyProject.frameRate")}</span>- <span className="font-technical text-primary" title={t("modifyProject.frameRateHint")}>- {t("modifyProject.frameRateValue", { rate: frameRate.toFixed(2) })}- </span>- </p>-- <div className="flex gap-1.5">- <button- type="button"- onClick={onCancel}- className="flex-1 cursor-pointer rounded-lg bg-hover px-4 py-2 text-sm text-primary- transition-colors hover:bg-active"- >- {t("common.cancel")}- </button>- <button- type="button"- disabled={busy || !valid}- onClick={save}- className="flex-1 cursor-pointer rounded-lg bg-accent px-4 py-2 text-sm font-medium- text-on-accent transition-colors hover:bg-accent-hover- disabled:cursor-not-allowed disabled:opacity-40"- >- {busy ? t("modifyProject.saving") : t("modifyProject.save")}- </button>- </div>- </div>- </div>- );-}diff --git a/desktop/src/components/Panel.tsx b/desktop/src/components/Panel.tsxdeleted file mode 100644index 3e090a90..00000000--- a/desktop/src/components/Panel.tsx+++ /dev/null@@ -1,80 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import type { ReactNode } from "react";--/**- * Shared chrome primitives.- *- * Panels are separate rounded surfaces with an even gutter between them, not- * flush regions divided by hairlines. The gap is produced by the resizers- * themselves rather than by margins or a flex `gap`, so it is the same on both- * axes by construction and cannot drift as the layout changes.- *- * `PANEL_SHELL` is the single definition of what a panel looks like. The- * preview and the timeline are not built from `Panel` - they own their whole- * interior - so they reuse this constant instead of copying the classes.- */-// No outline border: the panels separate from the stage by surface colour-// and the resizer gutters alone, and only *interior* dividers draw lines.-// An outline on every panel doubled each gutter's line weight for nothing.-export const PANEL_SHELL =- "flex h-full min-h-0 flex-col overflow-hidden rounded-xl bg-panel";--/** A docked panel with a heading strip and a scrolling body. */-export function Panel({- title,- actions,- children,- className = "",-}: {- title?: string;- actions?: ReactNode;- children: ReactNode;- className?: string;-}) {- return (- <section className={`${PANEL_SHELL} ${className}`}>- {title && (- <header className="flex h-9 shrink-0 items-center gap-2 border-b border-hairline px-3">- <h2 className="text-[11px] font-semibold uppercase tracking-wider text-secondary">- {title}- </h2>- <div className="ml-auto flex items-center gap-0.5">{actions}</div>- </header>- )}- <div className="thin-scroll min-h-0 flex-1 overflow-y-auto">{children}</div>- </section>- );-}--/** A horizontal group of controls, e.g. the timeline toolbar. */-export function Bar({ children }: { children: ReactNode }) {- return (- // Taller than its buttons on purpose: a 36px button in a 44px bar gets- // 4px of air at top and bottom instead of pressing against the edges.- <div className="flex h-11 shrink-0 items-center gap-1 border-b border-hairline bg-panel px-2">- {children}- </div>- );-}--/** The hairline separating groups inside a `Bar`. */-export function Divider() {- return <span className="mx-1 h-5 w-px shrink-0 bg-active" aria-hidden />;-}--/** Pushes everything after it to the far end of a `Bar`. */-export function Spacer() {- return <span className="flex-1" aria-hidden />;-}--/** Centred placeholder for a panel with nothing in it yet. */-export function Empty({ icon, children }: { icon?: ReactNode; children: ReactNode }) {- return (- <div className="flex flex-col items-center gap-2 px-4 py-8 text-center">- {icon && <span className="text-tertiary">{icon}</span>}- <p className="text-xs leading-relaxed text-tertiary">{children}</p>- </div>- );-}diff --git a/desktop/src/components/Preview.tsx b/desktop/src/components/Preview.tsxdeleted file mode 100644index d0700ad5..00000000--- a/desktop/src/components/Preview.tsx+++ /dev/null@@ -1,1444 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import {- useEffect,- useLayoutEffect,- useMemo,- useRef,- useState,- type PointerEvent as ReactPointerEvent,-} from "react";-import { convertFileSrc } from "@tauri-apps/api/core";--import { buildPreviewLook, type AppliedEffect, type CanvasOp } from "../lib/effects";-import type { PreviewSource, TextOverlay } from "../lib/monitor";-import { timecode } from "../lib/time";-import { MAX_SCALE, MIN_SCALE } from "../lib/editor";-import { useLocale, type MsgKey } from "../lib/i18n";-import { textCss } from "../lib/text";-import { Icon, IconButton } from "./Icon";-import { Menu } from "./Menu";-import { PANEL_SHELL } from "./Panel";--/**- * Output frames people actually deliver to. Dimensions rather than bare- * ratios, because a ratio alone does not say how many pixels the export has.- */-const FRAME_PRESETS = [- { label: "16:9", width: 1920, height: 1080 },- { label: "16:9 · 4K", width: 3840, height: 2160 },- { label: "9:16", width: 1080, height: 1920 },- { label: "1:1", width: 1080, height: 1080 },- { label: "4:3", width: 1440, height: 1080 },- { label: "21:9", width: 2560, height: 1080 },-] as const;--/**- * A tiny rectangle in the aspect of a frame size, so "vertical" and- * "landscape" read at a glance before the numbers do.- *- * Normalised so the long side is always the same length - the shapes differ- * only in proportion, which is the one thing they exist to show. The current- * size fills with accent, making the shape double as the selection mark.- */-function RatioShape({- width,- height,- active = false,-}: {- width: number;- height: number;- active?: boolean;-}) {- const long = 13;- const shapeWidth = width >= height ? long : Math.max(5, Math.round((long * width) / height));- const shapeHeight = height >= width ? long : Math.max(5, Math.round((long * height) / width));- return (- <span- aria-hidden- className={`inline-block rounded-[2px] border ${- active ? "border-accent bg-accent-soft" : "border-current opacity-50"- }`}- style={{ width: shapeWidth, height: shapeHeight }}- />- );-}--/** "16:9" for a preset size, the reduced fraction for anything else. */-function ratioLabel(width: number, height: number): string {- const preset = FRAME_PRESETS.find(- (candidate) => candidate.width === width && candidate.height === height,- );- if (preset) return preset.label.split(" ")[0];- const gcd = (a: number, b: number): number => (b === 0 ? a : gcd(b, a % b));- const divisor = gcd(width, height) || 1;- return `${width / divisor}:${height / divisor}`;-}--/** The video clip that should be on screen right now, if any. */--/** How the displayed clip's picture sits in the frame. Mirrors the engine's- * `Transform`: scale over the fitted size, offsets as frame fractions from- * centre, clockwise degrees about the picture's centre. */-export interface PreviewTransform {- scale: number;- offsetX: number;- offsetY: number;- rotation: number;-}---/** Alignment guides live while something is being dragged: vertical lines at- * `x` and horizontal ones at `y`, as fractions of the frame. Lists, because a- * scale snap on a centred picture kisses both bounds of an axis at once and- * should say so with both lines. Empty = none. */-interface Guides {- x: number[];- y: number[];-}--const NO_GUIDES: Guides = { x: [], y: [] };--/** How close an alignment has to be before it takes, in screen pixels. Small- * on purpose: a guide should feel like a nudge you barely notice accepting,- * never like a magnet fighting the drag. */-const SNAP_PX = 6;--/** Chrome shared by every draggable box in the monitor. */-const HANDLE_CLASS =- "absolute h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2 rounded-[3px] border border-black/50 bg-white shadow-sm";--/**- * A window-scoped pointer drag.- *- * Listeners go on the window because the pointer leaves a ten-pixel handle on- * the first movement. Moves are coalesced to one per animation frame: writing- * the project re-renders the whole editor, and macOS delivers pointer events- * faster than frames paint. Returns a detach that is safe to call twice - the- * component may unmount mid-drag when the playhead runs off the clip.- */-function startDrag(onFrame: (pointer: PointerEvent) => void, onEnd: () => void): () => void {- let pending: PointerEvent | null = null;- let scheduled = 0;- let done = false;-- const flush = () => {- scheduled = 0;- if (pending) onFrame(pending);- pending = null;- };- const move = (pointer: PointerEvent) => {- pending = pointer;- if (!scheduled) scheduled = requestAnimationFrame(flush);- };- const finish = () => {- if (done) return;- done = true;- window.removeEventListener("pointermove", move);- window.removeEventListener("pointerup", finish);- if (scheduled) cancelAnimationFrame(scheduled);- // The last computed position still lands - releasing mid-frame should not- // lose the final pixel of the drag.- flush();- onEnd();- };-- window.addEventListener("pointermove", move);- window.addEventListener("pointerup", finish);- return finish;-}--/**- * Softly snaps one axis of a centre offset while dragging.- *- * Candidates are the frame's centre and, for an axis-aligned picture, its two- * edges. Within `SNAP_PX` the value lands exactly on the target and the- * matching guide line is reported; outside it the raw value passes through- * untouched - there is no pull, no resistance, just a small final settle.- */-function softSnap(- raw: number,- frameSpan: number,- extent: number | null,-): { value: number; guide: number | null } {- const targets = [{ value: 0, guide: 0.5 }];- if (extent !== null) {- targets.push(- { value: (extent - frameSpan) / 2 / frameSpan, guide: 0 },- { value: (frameSpan - extent) / 2 / frameSpan, guide: 1 },- );- }- for (const target of targets) {- if (Math.abs(raw - target.value) * frameSpan < SNAP_PX) return target;- }- return { value: raw, guide: null };-}--/**- * Softly snaps a scale while a corner is being dragged.- *- * The candidates are the scales at which a picture edge coincides with a- * frame bound, given where the picture's centre currently sits - scale a- * landscape clip up inside a vertical frame and it settles exactly where its- * top and bottom meet the frame's. The same `SNAP_PX` law as `softSnap`,- * measured at the moving edge, so the catch feels identical to move-snapping.- * A centred picture reaches both bounds of an axis at the same scale and- * lights both guides. `fittedX`/`fittedY` are the picture's unscaled extents- * per axis, null when the picture is tilted and edges cannot line up.- */-function snapScale(- raw: number,- geometry: {- fittedX: number | null;- fittedY: number | null;- centreX: number;- centreY: number;- frameWidth: number;- frameHeight: number;- },-): { value: number; guides: Guides } {- const candidates: { scale: number; axis: "x" | "y"; guide: number; slack: number }[] = [];- const consider = (scale: number, axis: "x" | "y", guide: number, halfExtent: number) => {- if (scale <= MIN_SCALE || scale > MAX_SCALE) return;- const slack = Math.abs(raw - scale) * halfExtent;- if (slack < SNAP_PX) candidates.push({ scale, axis, guide, slack });- };- if (geometry.fittedX !== null) {- consider((2 * geometry.centreX) / geometry.fittedX, "x", 0, geometry.fittedX / 2);- consider(- (2 * (geometry.frameWidth - geometry.centreX)) / geometry.fittedX,- "x",- 1,- geometry.fittedX / 2,- );- }- if (geometry.fittedY !== null) {- consider((2 * geometry.centreY) / geometry.fittedY, "y", 0, geometry.fittedY / 2);- consider(- (2 * (geometry.frameHeight - geometry.centreY)) / geometry.fittedY,- "y",- 1,- geometry.fittedY / 2,- );- }- if (candidates.length === 0) return { value: raw, guides: NO_GUIDES };-- candidates.sort((left, right) => left.slack - right.slack);- const winner = candidates[0].scale;- const guides: Guides = { x: [], y: [] };- for (const candidate of candidates) {- if (Math.abs(candidate.scale - winner) < 1e-6) guides[candidate.axis].push(candidate.guide);- }- return { value: winner, guides };-}--/**- * The program monitor.- *- * A `<video>` element, synced to the transport the same way audio is. This is- * a *preview*, not the engine's output: it shows one clip at a time, so it- * cannot composite, and it knows nothing about effects or the render graph.- * What it does do is let you see and hear your edit today.- *- * The engine takes this over when it can present frames - see- * docs/decisions/0002. Until then the element keeps a strict aspect box,- * because a native surface will eventually be positioned to exactly these- * bounds and the layout has to be right before anything can be aligned to it.- */-export function Preview({- source,- overlays: titleOverlays,- playing,- playhead,- duration,- frameRate,- frame,- quality,- onQualityChange,- transform,- opacity,- effects,- ghost,- engineStill,- veil,- mediaSize,- selectedClipId,- onSelectClip,- onTransformChange,- onTransformEnd,- onOverlayChange,- onOverlayEnd,- onFrameChange,- onTogglePlay,- onStep,- onSeek,-}: {- source: PreviewSource | null;- /** Text clips live at the playhead, bottom-most first. */- overlays: TextOverlay[];- playing: boolean;- playhead: number;- duration: number;- frameRate: number;- /** The project's output size, shown and changed in the footer. */- frame: { width: number; height: number };- /** Engine-preview resolution as a fraction of the output frame. */- quality: number;- onQualityChange: (quality: number) => void;- /** The displayed clip's picture transform. Null when nothing is showing. */- transform: PreviewTransform | null;- /** The displayed clip's blend strength, 1 being solid. */- opacity: number;- /** The displayed clip's video effects, drawn live. Null for none. */- effects: AppliedEffect[] | null;- /** A cross-fade in progress: the incoming clip's pre-roll, faded in over- * the picture. Null outside a dissolve window. */- ghost: { clipId: string; path: string; time: number; speed: number; opacity: number } | null;- /** The engine's true composite for the paused playhead - the exporter's own- * plan and compositor. Drawn over the approximation while it holds. */- engineStill: { bytes: ArrayBuffer; width: number; height: number } | null;- /** A fade-to-colour transition passing over the playhead: a coloured wash- * whose opacity the app computes per frame. Null when no fade is live. */- veil: { color: string; opacity: number } | null;- /** The source's pixel size, when the probe reported one. */- mediaSize: { width: number; height: number } | null;- /** The single selected clip, if there is one - its box shows handles. */- selectedClipId: string | null;- onSelectClip: (clipId: string) => void;- onTransformChange: (clipId: string, transform: Partial<PreviewTransform>) => void;- /** The gizmo drag ended - the echoed transform becomes one engine command. */- onTransformEnd: () => void;- /** Edits to a title dragged in the monitor: position, and size from the- * corner handles. */- onOverlayChange: (- clipId: string,- change: { offsetX?: number; offsetY?: number; fontSize?: number },- ) => void;- /** The title drag ended - the echoed change becomes one engine command. */- onOverlayEnd: () => void;- onFrameChange: (width: number, height: number) => void;- onTogglePlay: () => void;- onStep: (frames: number) => void;- onSeek: (seconds: number) => void;-}) {- const { t } = useLocale();- const video = useRef<HTMLVideoElement>(null);- const still = useRef<HTMLImageElement>(null);- const loadedClip = useRef<string | null>(null);-- // The picture's true pixel size, measured off the element once it has- // decoded. The probe's numbers are the *coded* size, which lies for rotated- // phone footage and anything anamorphic; `videoWidth`/`naturalWidth` are- // what `object-contain` actually lays out, so the gizmo box is derived from- // the same truth as the picture and the two can never disagree.- const [pictureSize, setPictureSize] = useState<{ width: number; height: number } | null>(null);- useEffect(() => {- setPictureSize(null);- }, [source?.clipId]);-- // Alignment guides, drawn while a drag holds one. State lives here because- // both the picture's gizmo and every title box report into the same lines.- const [guides, setGuides] = useState<Guides>(NO_GUIDES);-- // Text is sized as a fraction of the frame, so drawing it needs the pixel- // height of the surface it lands on. That is a layout fact, not a prop, and- // it changes whenever the panel is resized - hence an observer rather than a- // one-off measurement.- const stage = useRef<HTMLDivElement>(null);- const [surface, setSurface] = useState({ width: 0, height: 0 });-- useLayoutEffect(() => {- const element = stage.current;- if (!element) return;-- const measure = () => {- const bounds = element.getBoundingClientRect();- setSurface({ width: bounds.width, height: bounds.height });- };-- measure();- const observer = new ResizeObserver(measure);- observer.observe(element);- return () => observer.disconnect();- }, []);-- // The frame, letterboxed into the stage. Transforms are fractions *of the- // frame*, so drawing them against the raw panel would lie whenever the panel- // and the project have different shapes - a 9:16 edit in a wide panel most- // of all. Everything visual lives inside this box; the compositor will clip- // at its edge, so the preview does too.- const frameRect = useMemo(() => {- if (surface.width <= 0 || surface.height <= 0) return null;- const fit = Math.min(surface.width / frame.width, surface.height / frame.height);- const width = frame.width * fit;- const height = frame.height * fit;- return {- left: (surface.width - width) / 2,- top: (surface.height - height) / 2,- width,- height,- };- }, [surface, frame]);- const hasFrame = frameRect !== null;-- // The same placement the exporter applies, as CSS. Order matters and matches- // the compositor: scale about the picture's centre, rotate about it, then- // translate. (CSS applies the list right to left.)- // Everything the clip's effects need to draw live: the CSS/SVG filter- // string, overlay layers, canvas geometry passes, and shake jitter -- // assembled in applied order, scaled to preview pixels.- const pixelScale = frameRect ? frameRect.width / frame.width : 1;- const look = useMemo(- () => buildPreviewLook(effects ?? undefined, pixelScale),- [effects, pixelScale],- );-- // Deterministic shake, evaluated from the playhead clock - the exact- // `sin(t*f)` expression the export's jitter crop runs, so pausing anywhere- // shows the same displaced frame the file will have.- const jitterX = look.jitter- ? -look.jitter.amount * pixelScale * Math.sin(playhead * look.jitter.speed)- : 0;- const jitterY = look.jitter- ? -look.jitter.amount * pixelScale * Math.cos(playhead * look.jitter.speed * 1.3)- : 0;-- const mediaCss =- transform && frameRect- ? {- transform: `translate(${transform.offsetX * frameRect.width + jitterX}px, ${- transform.offsetY * frameRect.height + jitterY- }px) rotate(${transform.rotation}deg) scale(${transform.scale})`,- // The same blend the compositor applies on export. On the wrapper- // with the transform, so the whole picture fades as one surface.- opacity: Math.min(1, Math.max(0, opacity)),- // The live effect filters. On the wrapper, so the canvas pass- // underneath inherits them too.- filter: look.filter ?? undefined,- }- : undefined;-- // Swap the source only when the clip under the playhead actually changes.- // Reassigning `src` every frame would restart the decoder continuously.- // `hasFrame` is a dependency because the element only exists once the stage- // has been measured - the first run of this effect finds no element at all.- useEffect(() => {- const element = video.current;- if (!element) {- loadedClip.current = null;- return;- }-- // A still never goes near the video element - it is rendered as an <img>- // below - so release whatever the element was holding.- if (!source || source.isStill) {- loadedClip.current = null;- element.removeAttribute("src");- element.load();- return;- }-- if (loadedClip.current !== source.clipId) {- loadedClip.current = source.clipId;- element.src = convertFileSrc(source.path);- element.load();- }- }, [source, hasFrame]);-- // Same corrective sync as the audio preview: generous tolerance while- // playing (a reseek is a visible stutter), tight while paused (a seek is the- // entire operation).- useEffect(() => {- const element = video.current;- if (!element || !source || source.isStill) return;-- // The element free-runs between corrections, so it has to free-run at the- // clip's rate. Clamped to what media elements reliably accept.- const rate = Math.min(16, Math.max(0.0625, source.speed));- if (element.playbackRate !== rate) element.playbackRate = rate;-- const tolerance = playing ? 0.3 : 0.03;- if (element.readyState > 0 && Math.abs(element.currentTime - source.time) > tolerance) {- try {- element.currentTime = Math.max(0, source.time);- } catch {- // Still opening; the next update lands it.- }- }-- if (playing && element.paused) void element.play().catch(() => undefined);- if (!playing && !element.paused) element.pause();- }, [source, playing, hasFrame]);-- return (- <div className={PANEL_SHELL}>- <header className="flex h-9 shrink-0 items-center gap-2 border-b border-hairline px-3">- <h2 className="text-[11px] font-semibold uppercase tracking-wider text-secondary">- Preview- </h2>- </header>-- {/*- Containment, deliberately belt and braces.-- A flex item defaults to `min-height: auto`, so a 4K video's intrinsic- size can push a flex container past its parent no matter what- `max-h-full` says. Rather than rely on that, the stage clips, and the- media is absolutely positioned to fill a box that is exactly the- stage's content area. `object-contain` then fits the picture inside- that box, so it can never exceed the panel whatever its resolution.- */}- <div className="min-h-0 min-w-0 flex-1 overflow-hidden bg-stage p-4">- <div ref={stage} data-preview-surface className="relative h-full w-full">- {frameRect && (- <div- // The frame itself. It clips, because the compositor clips: a- // picture dragged past the edge is gone in the export, so it has- // to be gone here too. The ring is the only hint of where the- // frame ends on an all-black stage.- className="absolute overflow-hidden ring-1 ring-white/15"- style={{- left: frameRect.left,- top: frameRect.top,- width: frameRect.width,- height: frameRect.height,- }}- >- {/* Picture only. Every drop of audio - a video clip's included -- comes from the engine's mixer, so there is exactly one clock- and one gain law. */}- {/* The picture's transform lives on a wrapper rather than the- media element itself: WKWebView keeps `<video>` in its own- compositing layer, and animating transforms directly on it- is unreliable where a plain div never is. */}- {/* The SVG filters the effect chain references via url(#id).- Zero-sized and inert; only the defs matter. */}- {look.svgFilters.length > 0 && (- <svg width="0" height="0" className="absolute" aria-hidden>- <defs- dangerouslySetInnerHTML={{- __html: look.svgFilters- .map(- (entry) =>- `<filter id="${entry.id}" color-interpolation-filters="sRGB">${entry.content}</filter>`,- )- .join(""),- }}- />- </svg>- )}-- <div className="absolute inset-0" style={mediaCss}>- <video- ref={video}- muted- playsInline- onLoadedMetadata={(event) =>- setPictureSize({- width: event.currentTarget.videoWidth,- height: event.currentTarget.videoHeight,- })- }- className={`absolute inset-0 h-full w-full object-contain ${- source && !source.isStill ? "block" : "hidden"- }`}- style={look.canvas.length > 0 ? { visibility: "hidden" } : undefined}- />- {source?.isStill && (- <img- // Keyed on the clip so switching between two stills- // actually swaps the picture rather than reusing the- // decoded one.- key={source.clipId}- ref={still}- src={convertFileSrc(source.path)}- alt=""- draggable={false}- onLoad={(event) =>- setPictureSize({- width: event.currentTarget.naturalWidth,- height: event.currentTarget.naturalHeight,- })- }- className="absolute inset-0 h-full w-full object-contain"- style={look.canvas.length > 0 ? { visibility: "hidden" } : undefined}- />- )}-- {/* Geometry effects - pixelate, mirror, fisheye - redraw the- media on a canvas the wrapper's filters still apply to.- The media element stays live underneath, just invisible:- it is the decoder this canvas samples. */}- {look.canvas.length > 0 && source && (- <EffectCanvas- ops={look.canvas}- pixelScale={pixelScale}- source={() => (source.isStill ? still.current : video.current)}- />- )}- </div>-- {/* Effect overlay layers: vignette's gradient, grain's animated- noise. Over the picture, under the incoming dissolve. */}- {look.overlays.map((overlay, index) => (- <div- key={index}- className={`pointer-events-none absolute ${- overlay.grain ? "-inset-[12%] grain-layer" : "inset-0"- }`}- style={overlay.style as React.CSSProperties}- />- ))}-- {/* A cross-fade in progress: the incoming clip's pre-roll,- ramping in over everything above - the dissolve itself. */}- {ghost && ghost.opacity > 0 && (- <GhostVideo key={ghost.clipId} ghost={ghost} playing={playing} />- )}-- {/* The engine's true frame, once the paused playhead settles:- real multi-track compositing, exact effect chains. It covers- the approximation layers beneath; the veil and titles still- draw above, exactly as the exporter stacks them. */}- {engineStill && <EngineStillLayer still={engineStill} />}-- {/* A fade-to-black/white transition washing over the cut. Above- the picture, below titles - titles ride through a fade the- same way the exporter composites them, on top. */}- {veil && veil.opacity > 0 && (- <div- className="pointer-events-none absolute inset-0"- style={{ backgroundColor: veil.color, opacity: Math.min(1, veil.opacity) }}- />- )}-- {/* Alignment guides, only alive mid-drag. Dashed and faint on- purpose: a hint that something lined up, not a grid. */}- {guides.x.map((guide) => (- <div- key={`x${guide}`}- className="pointer-events-none absolute inset-y-0 w-0 border-l border-dashed- border-white/45"- style={{ left: `${guide * 100}%` }}- />- ))}- {guides.y.map((guide) => (- <div- key={`y${guide}`}- className="pointer-events-none absolute inset-x-0 h-0 border-t border-dashed- border-white/45"- style={{ top: `${guide * 100}%` }}- />- ))}- </div>- )}-- {/* Above the frame and unclipped, so handles survive being dragged- past the edge. */}- {frameRect && source && transform && (- <TransformGizmo- clipId={source.clipId}- transform={transform}- frameRect={frameRect}- mediaSize={pictureSize ?? mediaSize}- selected={selectedClipId === source.clipId}- onSelect={onSelectClip}- onChange={onTransformChange}- onChangeEnd={onTransformEnd}- onGuides={setGuides}- />- )}-- {/*- Titles sit above the picture *and* above the picture's gizmo: they- draw on top, so they select on top - clicking a title must never- fall through to the footage behind it. The layer clips like the- frame does.- */}- {frameRect && titleOverlays.length > 0 && (- <div- // pointer-events-none is load-bearing: this div covers the whole- // frame above the transform gizmo, and a transparent div still- // hit-tests. Without it, nothing inside the frame is clickable -- // each title box re-enables its own pointer events.- className="pointer-events-none absolute overflow-hidden"- style={{- left: frameRect.left,- top: frameRect.top,- width: frameRect.width,- height: frameRect.height,- }}- >- {titleOverlays.map((overlay) => (- <TextOverlayBox- key={overlay.clipId}- overlay={overlay}- frameRect={frameRect}- selected={selectedClipId === overlay.clipId}- onSelect={onSelectClip}- onChange={onOverlayChange}- onChangeEnd={onOverlayEnd}- onGuides={setGuides}- />- ))}- </div>- )}-- {!source && titleOverlays.length === 0 && (- // No surface of its own: an empty monitor *is* black, and drawing- // a bordered card on top of it invents an edge that means nothing.- // Just the words, sitting on the stage.- <div className="absolute inset-0 flex flex-col items-center justify-center gap-3- text-on-stage">- <Icon name="film" size={30} strokeWidth={1.5} />- <p className="text-xs">{t("preview.nothingUnderPlayhead")}</p>- </div>- )}- </div>- </div>-- {/*- A three-column grid, not a flex row with `ml-auto`.-- Two things were making the transport jump as the timecode counted. The- digits themselves can change width, and - worse - auto margins size the- centre group from whatever space the sides leave, so *any* change on- the left shoved the buttons sideways.-- `minmax(0, 1fr)` on both sides fixes the second properly: the columns- are equal and cannot grow past their share, so the middle column is- centred on the panel regardless of what the sides contain. The sides- clip rather than push. `tabular-nums` then handles the first.- */}- <div- className="grid h-11 shrink-0 grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center- gap-2 border-t border-hairline px-3"- >- <span className="min-w-0 truncate font-mono text-[11px] tabular-nums text-secondary">- {timecode(playhead, frameRate)}- <span className="text-tertiary"> / </span>- <span className="text-tertiary">{timecode(duration, frameRate)}</span>- </span>-- <div className="flex items-center gap-0.5">- <IconButton- icon="skipStart"- label={t("preview.goToStart")}- size={7}- onClick={() => onSeek(0)}- />- <IconButton- icon="stepBack"- label={t("preview.prevFrame")}- size={7}- onClick={() => onStep(-1)}- />- <IconButton- icon={playing ? "pause" : "play"}- label={playing ? t("preview.pause") : t("preview.play")}- onClick={onTogglePlay}- tone="go"- active={playing}- />- <IconButton- icon="stepForward"- label={t("preview.nextFrame")}- size={7}- onClick={() => onStep(1)}- />- <IconButton- icon="skipEnd"- label={t("preview.goToEnd")}- size={7}- onClick={() => onSeek(duration)}- />- </div>-- <span className="flex min-w-0 items-center gap-2 justify-self-end">- <Menu- align="right"- direction="up"- groups={[- FRAME_PRESETS.map((preset) => {- const active =- preset.width === frame.width && preset.height === frame.height;- return {- label: `${preset.label} — ${preset.width} x ${preset.height}`,- leading: (- <RatioShape width={preset.width} height={preset.height} active={active} />- ),- onSelect: () => onFrameChange(preset.width, preset.height),- };- }),- ]}- trigger={(open) => (- // Shape and chevron only: the proportions read at a glance,- // and the numbers live in the tooltip and the menu rows -- // spelling them out here crowded the tray for nothing.- <span- title={t("preview.outputSize", {- ratio: ratioLabel(frame.width, frame.height),- width: frame.width,- height: frame.height,- })}- className={`flex items-center gap-1 rounded-md px-1.5 py-1 transition-colors ${- open- ? "bg-active text-primary"- : "text-tertiary hover:bg-hover hover:text-secondary"- }`}- >- <RatioShape width={frame.width} height={frame.height} />- <Icon name="chevronDown" size={10} />- </span>- )}- />- <QualityMenu quality={quality} onQualityChange={onQualityChange} />- </span>- </div>- </div>- );-}--/**- * Engine-preview resolutions, as fractions of the output frame. The labels- * follow the convention every editor uses; the pixels follow the project.- */-const PREVIEW_QUALITIES: { labelKey: MsgKey; ratio: string; value: number }[] = [- { labelKey: "preview.full", ratio: "1:1", value: 1 },- { labelKey: "preview.half", ratio: "1:2", value: 0.5 },- { labelKey: "preview.quarter", ratio: "1:4", value: 0.25 },-];--/**- * The preview-quality picker, next to the output-size menu it modifies:- * what fraction of the frame the engine composites for the monitor. The- * frame rate is not shown here - it lives in the Details panel, and the- * tray reads better carrying only what can be changed from it.- */-function QualityMenu({- quality,- onQualityChange,-}: {- quality: number;- onQualityChange: (quality: number) => void;-}) {- const { t } = useLocale();- const active =- PREVIEW_QUALITIES.find((option) => option.value === quality) ?? PREVIEW_QUALITIES[1];- return (- <Menu- align="right"- direction="up"- groups={[- PREVIEW_QUALITIES.map((option) => ({- label: `${t(option.labelKey)} — ${option.ratio}`,- leading: (- <span- className={`h-1 w-1 rounded-full ${- option.value === active.value ? "bg-current" : "bg-transparent"- }`}- />- ),- onSelect: () => onQualityChange(option.value),- })),- ]}- trigger={(open) => (- <span- title={t("preview.qualityHint", { label: t(active.labelKey), ratio: active.ratio })}- className={`flex items-center gap-1 rounded-md px-1.5 py-1 transition-colors ${- open- ? "bg-active text-primary"- : "text-tertiary hover:bg-hover hover:text-secondary"- }`}- >- <span className="font-technical text-[10px] tabular-nums">{active.ratio}</span>- <Icon name="chevronDown" size={10} />- </span>- )}- />- );-}--/**- * The engine's paused-frame composite, blitted into the frame box.- *- * The bytes arrive as raw RGBA at the request's own resolution; the canvas- * holds them at that resolution and CSS scales it to the frame, which shares- * its aspect by construction.- */-function EngineStillLayer({- still,-}: {- still: { bytes: ArrayBuffer; width: number; height: number };-}) {- const canvasRef = useRef<HTMLCanvasElement>(null);-- useEffect(() => {- const canvas = canvasRef.current;- const context = canvas?.getContext("2d");- if (!canvas || !context) return;- if (still.bytes.byteLength !== still.width * still.height * 4) return;- canvas.width = still.width;- canvas.height = still.height;- context.putImageData(- new ImageData(new Uint8ClampedArray(still.bytes), still.width, still.height),- 0,- 0,- );- }, [still]);-- return (- <canvas- ref={canvasRef}- className="pointer-events-none absolute inset-0 h-full w-full"- aria-hidden- />- );-}--/**- * The canvas pass for geometry effects the CSS filter pipeline cannot do.- *- * Redraws the media element into a canvas every animation frame, applying- * pixelate, mirror and fisheye in effect order. The canvas sits inside the- * filtered wrapper, so colour and blur effects stack on top of the geometry- * the same way the export's single FFmpeg chain runs them - approximate in- * order, identical in look.- */-function EffectCanvas({- ops,- pixelScale,- source,-}: {- ops: CanvasOp[];- /** Preview pixels per export pixel, so block sizes match the file. */- pixelScale: number;- source: () => HTMLVideoElement | HTMLImageElement | null;-}) {- const canvasRef = useRef<HTMLCanvasElement>(null);- const state = useRef({ ops, pixelScale, source });- state.current = { ops, pixelScale, source };-- useEffect(() => {- const work = document.createElement("canvas");- const scratch = document.createElement("canvas");- let frame = 0;-- const tick = () => {- frame = requestAnimationFrame(tick);- const canvas = canvasRef.current;- const media = state.current.source();- const context = canvas?.getContext("2d");- if (!canvas || !media || !context) return;-- const width = canvas.clientWidth;- const height = canvas.clientHeight;- if (width === 0 || height === 0) return;- const ratio = window.devicePixelRatio || 1;- if (canvas.width !== Math.round(width * ratio) || canvas.height !== Math.round(height * ratio)) {- canvas.width = Math.max(1, Math.round(width * ratio));- canvas.height = Math.max(1, Math.round(height * ratio));- }-- const naturalWidth =- media instanceof HTMLVideoElement ? media.videoWidth : media.naturalWidth;- const naturalHeight =- media instanceof HTMLVideoElement ? media.videoHeight : media.naturalHeight;- if (!naturalWidth || !naturalHeight) return;-- // The same contain-fit the hidden element's object-contain performs.- const fit = Math.min(width / naturalWidth, height / naturalHeight);- const drawWidth = naturalWidth * fit;- const drawHeight = naturalHeight * fit;-- work.width = Math.max(1, Math.round(drawWidth * ratio));- work.height = Math.max(1, Math.round(drawHeight * ratio));- const workContext = work.getContext("2d");- if (!workContext) return;- workContext.imageSmoothingQuality = "high";- workContext.drawImage(media, 0, 0, work.width, work.height);-- for (const op of state.current.ops) {- applyCanvasOp(work, workContext, scratch, op, state.current.pixelScale * ratio);- }-- context.setTransform(ratio, 0, 0, ratio, 0, 0);- context.clearRect(0, 0, width, height);- context.drawImage(work, (width - drawWidth) / 2, (height - drawHeight) / 2, drawWidth, drawHeight);- };-- frame = requestAnimationFrame(tick);- return () => cancelAnimationFrame(frame);- }, []);-- return <canvas ref={canvasRef} className="absolute inset-0 h-full w-full" />;-}--/** Applies one geometry op to `work` in place, using `scratch` as the copy. */-function applyCanvasOp(- work: HTMLCanvasElement,- context: CanvasRenderingContext2D,- scratch: HTMLCanvasElement,- op: CanvasOp,- pixelScale: number,-): void {- const { width, height } = work;- const scratchContext = scratch.getContext("2d");- if (!scratchContext) return;-- if (op.kind === "pixelate") {- // Downscale then nearest-neighbour upscale - the definition of pixelate.- const block = Math.max(2, op.size * pixelScale);- const smallWidth = Math.max(1, Math.round(width / block));- const smallHeight = Math.max(1, Math.round(height / block));- scratch.width = smallWidth;- scratch.height = smallHeight;- scratchContext.imageSmoothingQuality = "high";- scratchContext.drawImage(work, 0, 0, smallWidth, smallHeight);- context.imageSmoothingEnabled = false;- context.clearRect(0, 0, width, height);- context.drawImage(scratch, 0, 0, width, height);- context.imageSmoothingEnabled = true;- return;- }-- if (op.kind === "mirror") {- scratch.width = width;- scratch.height = height;- scratchContext.drawImage(work, 0, 0);- const half = Math.floor(width / 2);- context.clearRect(0, 0, width, height);- context.drawImage(scratch, 0, 0, half, height, 0, 0, half, height);- context.save();- context.translate(width, 0);- context.scale(-1, 1);- context.drawImage(scratch, 0, 0, half, height, 0, 0, half, height);- context.restore();- return;- }-- // Fisheye: a two-pass one-dimensional barrel remap in strips. Not a true- // lens equation, but the centre magnifies and the edges compress the same- // way, at a cost of ~100 strip draws instead of a per-pixel loop.- const k = op.strength * 0.45;- const strips = 48;- const remap = (normalised: number) => normalised * (1 - k * (1 - normalised * normalised));-- scratch.width = width;- scratch.height = height;- scratchContext.drawImage(work, 0, 0);- context.clearRect(0, 0, width, height);- for (let index = 0; index < strips; index += 1) {- const x0 = (index / strips) * 2 - 1;- const x1 = ((index + 1) / strips) * 2 - 1;- const sx0 = ((remap(x0) + 1) / 2) * width;- const sx1 = ((remap(x1) + 1) / 2) * width;- context.drawImage(- scratch,- sx0, 0, Math.max(1, sx1 - sx0), height,- (index / strips) * width, 0, width / strips + 1, height,- );- }- scratchContext.clearRect(0, 0, width, height);- scratchContext.drawImage(work, 0, 0);- context.clearRect(0, 0, width, height);- for (let index = 0; index < strips; index += 1) {- const y0 = (index / strips) * 2 - 1;- const y1 = ((index + 1) / strips) * 2 - 1;- const sy0 = ((remap(y0) + 1) / 2) * height;- const sy1 = ((remap(y1) + 1) / 2) * height;- context.drawImage(- scratch,- 0, sy0, width, Math.max(1, sy1 - sy0),- 0, (index / strips) * height, width, height / strips + 1,- );- }-}--/**- * The incoming clip of a cross-fade, playing its pre-roll over the picture.- *- * A second, short-lived video element with the same corrective sync the main- * one uses. It exists only inside the dissolve window; the `key` on its mount- * point retires it the moment the transition's clip changes.- */-function GhostVideo({- ghost,- playing,-}: {- ghost: { clipId: string; path: string; time: number; speed: number; opacity: number };- playing: boolean;-}) {- const element = useRef<HTMLVideoElement>(null);-- useEffect(() => {- const media = element.current;- if (!media) return;- media.src = convertFileSrc(ghost.path);- media.load();- // Mount effect only: the sync effect below lands the position.-- }, [ghost.path]);-- useEffect(() => {- const media = element.current;- if (!media) return;- const rate = Math.min(16, Math.max(0.0625, ghost.speed));- if (media.playbackRate !== rate) media.playbackRate = rate;- const tolerance = playing ? 0.3 : 0.03;- if (media.readyState > 0 && Math.abs(media.currentTime - ghost.time) > tolerance) {- try {- media.currentTime = Math.max(0, ghost.time);- } catch {- // Still opening; the next update lands it.- }- }- if (playing && media.paused) void media.play().catch(() => undefined);- if (!playing && !media.paused) media.pause();- }, [ghost, playing]);-- return (- <video- ref={element}- muted- playsInline- className="pointer-events-none absolute inset-0 h-full w-full object-contain"- style={{ opacity: Math.min(1, Math.max(0, ghost.opacity)) }}- />- );-}--/**- * Direct manipulation of the displayed clip's picture.- *- * Drag the body to move, a corner to scale, the lollipop above the top edge to- * rotate. The box is laid out exactly where the picture is - fitted size times- * scale, centred plus offset, rotated - so grabbing the picture is grabbing- * the picture, not a proxy for it.- *- * Pointer moves write absolute transform values through `onChange`; clamping- * lives with the project model, not here.- */-function TransformGizmo({- clipId,- transform,- frameRect,- mediaSize,- selected,- onSelect,- onChange,- onChangeEnd,- onGuides,-}: {- clipId: string;- transform: PreviewTransform;- frameRect: { left: number; top: number; width: number; height: number };- mediaSize: { width: number; height: number } | null;- selected: boolean;- onSelect: (clipId: string) => void;- onChange: (clipId: string, transform: Partial<PreviewTransform>) => void;- /** The drag finished; whatever was echoed becomes one engine command. */- onChangeEnd: () => void;- onGuides: (guides: Guides) => void;-}) {- const box = useRef<HTMLDivElement>(null);- const detach = useRef<(() => void) | null>(null);-- // A drag can outlive the gizmo - the playhead runs past the clip, say - and- // window listeners do not clean themselves up.- useEffect(() => () => detach.current?.(), []);-- // The picture's box: the fitted size the engine calls scale 1, times the- // scale, centred plus the offset. Unknown media dimensions mean the fit- // cannot be computed, so the frame itself stands in - same as `object-contain`- // does for the element underneath.- const fit = mediaSize- ? Math.min(frameRect.width / mediaSize.width, frameRect.height / mediaSize.height)- : null;- const width = (fit && mediaSize ? mediaSize.width * fit : frameRect.width) * transform.scale;- const height = (fit && mediaSize ? mediaSize.height * fit : frameRect.height) * transform.scale;- const centerX = frameRect.width / 2 + transform.offsetX * frameRect.width;- const centerY = frameRect.height / 2 + transform.offsetY * frameRect.height;-- const beginDrag = (mode: "move" | "scale" | "rotate") => (event: ReactPointerEvent) => {- // Left button only; right-click should not start moving things around.- if (event.button !== 0) return;- event.preventDefault();- event.stopPropagation();- onSelect(clipId);- detach.current?.();-- // Everything is captured at the pointer-down so every move is computed- // from absolute positions rather than accumulated deltas - no drift, no- // stale closures.- const start = { ...transform };- const startX = event.clientX;- const startY = event.clientY;- const bounds = box.current?.getBoundingClientRect();- // The bounding rect of a rotated box is axis-aligned, but its centre is- // still the true centre, which is all scale and rotate need.- const centre = bounds- ? { x: bounds.left + bounds.width / 2, y: bounds.top + bounds.height / 2 }- : { x: startX, y: startY };- const startDistance = Math.max(1, Math.hypot(startX - centre.x, startY - centre.y));- const startAngle = Math.atan2(startY - centre.y, startX - centre.x);- // Edge guides only mean something while the box is axis-aligned; a tilted- // picture has no edge that can line up with the frame's.- const quarter = Math.abs(start.rotation % 180);- const extentX = quarter === 0 ? width : quarter === 90 ? height : null;- const extentY = quarter === 0 ? height : quarter === 90 ? width : null;-- detach.current = startDrag(- (pointer) => {- if (mode === "move") {- const x = softSnap(- start.offsetX + (pointer.clientX - startX) / frameRect.width,- frameRect.width,- extentX,- );- const y = softSnap(- start.offsetY + (pointer.clientY - startY) / frameRect.height,- frameRect.height,- extentY,- );- onChange(clipId, { offsetX: x.value, offsetY: y.value });- onGuides({ x: x.guide === null ? [] : [x.guide], y: y.guide === null ? [] : [y.guide] });- } else if (mode === "scale") {- const distance = Math.hypot(pointer.clientX - centre.x, pointer.clientY - centre.y);- const raw = start.scale * (distance / startDistance);- const snapped = snapScale(Math.max(MIN_SCALE, Math.min(MAX_SCALE, raw)), {- // Unscaled per-axis extents; the drag rescales them from here.- fittedX: extentX === null ? null : extentX / start.scale,- fittedY: extentY === null ? null : extentY / start.scale,- centreX: frameRect.width / 2 + start.offsetX * frameRect.width,- centreY: frameRect.height / 2 + start.offsetY * frameRect.height,- frameWidth: frameRect.width,- frameHeight: frameRect.height,- });- onChange(clipId, { scale: snapped.value });- onGuides(snapped.guides);- } else {- const angle = Math.atan2(pointer.clientY - centre.y, pointer.clientX - centre.x);- let rotation = start.rotation + ((angle - startAngle) * 180) / Math.PI;- if (pointer.shiftKey) {- // Shift is the deliberate grid; 15 is the step every editor uses.- rotation = Math.round(rotation / 15) * 15;- } else {- // A soft catch at the right angles, because "exactly straight" is- // what a free-hand rotation is trying to hit nine times in ten.- const cardinal = Math.round(rotation / 90) * 90;- if (Math.abs(rotation - cardinal) < 3) rotation = cardinal;- }- onChange(clipId, { rotation });- }- },- () => {- onGuides(NO_GUIDES);- detach.current = null;- onChangeEnd();- },- );- };-- return (- <div- className="pointer-events-none absolute"- style={{- left: frameRect.left,- top: frameRect.top,- width: frameRect.width,- height: frameRect.height,- }}- >- <div- ref={box}- className="pointer-events-auto absolute cursor-move"- style={{- left: centerX,- top: centerY,- width,- height,- transform: `translate(-50%, -50%) rotate(${transform.rotation}deg)`,- touchAction: "none",- }}- onPointerDown={beginDrag("move")}- >- {selected && (- <>- <div className="pointer-events-none absolute -inset-px border border-selection" />-- {/* The rotate lollipop: a stem out of the top edge, a knob to grab. */}- <div- className="pointer-events-none absolute left-1/2 h-6 w-px -translate-x-1/2 bg-selection"- style={{ top: -24 }}- />- <div- className="absolute left-1/2 h-3 w-3 -translate-x-1/2 -translate-y-1/2 cursor-grab- rounded-full border border-black/50 bg-white shadow-sm"- style={{ top: -28, touchAction: "none" }}- onPointerDown={beginDrag("rotate")}- />-- {[- { x: 0, y: 0, cursor: "nwse-resize" },- { x: 1, y: 0, cursor: "nesw-resize" },- { x: 0, y: 1, cursor: "nesw-resize" },- { x: 1, y: 1, cursor: "nwse-resize" },- ].map((corner) => (- <div- key={`${corner.x}-${corner.y}`}- className={HANDLE_CLASS}- style={{- left: `${corner.x * 100}%`,- top: `${corner.y * 100}%`,- cursor: corner.cursor,- touchAction: "none",- }}- onPointerDown={beginDrag("scale")}- />- ))}- </>- )}- </div>- </div>- );-}--/** Bounds shared by TextPanel's Size slider; the corner drag obeys the same- * law the slider does. */-const MIN_FONT_SIZE = 0.02;-const MAX_FONT_SIZE = 0.4;--/**- * A title in the monitor: the same rendered block as before, now grabbable.- *- * The box is the text block itself rather than computed geometry - the border- * hugs whatever the words actually occupy, padding and plate included, so- * there is nothing to get out of sync. Dragging moves the offsets; the corner- * handles resize the type through the same fraction-of-frame-height law the- * Text panel's Size slider uses. No rotate handle: nothing downstream can- * draw a rotated title yet, and a handle that lies is worse than none.- */-function TextOverlayBox({- overlay,- frameRect,- selected,- onSelect,- onChange,- onChangeEnd,- onGuides,-}: {- overlay: TextOverlay;- frameRect: { left: number; top: number; width: number; height: number };- selected: boolean;- onSelect: (clipId: string) => void;- onChange: (clipId: string, change: { offsetX?: number; offsetY?: number; fontSize?: number }) => void;- /** The drag finished; whatever was echoed becomes one engine command. */- onChangeEnd: () => void;- onGuides: (guides: Guides) => void;-}) {- const block = useRef<HTMLDivElement>(null);- const detach = useRef<(() => void) | null>(null);- useEffect(() => () => detach.current?.(), []);-- const begin = (mode: "move" | "scale") => (event: ReactPointerEvent) => {- if (event.button !== 0) return;- event.preventDefault();- event.stopPropagation();- onSelect(overlay.clipId);- detach.current?.();-- const start = {- offsetX: overlay.offsetX,- offsetY: overlay.offsetY,- fontSize: overlay.style.fontSize,- };- const startX = event.clientX;- const startY = event.clientY;- const bounds = block.current?.getBoundingClientRect();- const centre = bounds- ? { x: bounds.left + bounds.width / 2, y: bounds.top + bounds.height / 2 }- : { x: startX, y: startY };- const startDistance = Math.max(1, Math.hypot(startX - centre.x, startY - centre.y));-- detach.current = startDrag(- (pointer) => {- if (mode === "move") {- // Centre guides only: a block of type has ragged edges, and lining- // those up with the frame edge is not a thing anyone means to do.- const x = softSnap(- start.offsetX + (pointer.clientX - startX) / frameRect.width,- frameRect.width,- null,- );- const y = softSnap(- start.offsetY + (pointer.clientY - startY) / frameRect.height,- frameRect.height,- null,- );- onChange(overlay.clipId, { offsetX: x.value, offsetY: y.value });- onGuides({ x: x.guide === null ? [] : [x.guide], y: y.guide === null ? [] : [y.guide] });- } else {- const distance = Math.hypot(pointer.clientX - centre.x, pointer.clientY - centre.y);- const fontSize = start.fontSize * (distance / startDistance);- onChange(overlay.clipId, {- fontSize: Math.max(MIN_FONT_SIZE, Math.min(MAX_FONT_SIZE, fontSize)),- });- }- },- () => {- onGuides(NO_GUIDES);- detach.current = null;- onChangeEnd();- },- );- };-- return (- <div className="pointer-events-none absolute inset-0 flex items-center justify-center">- <div- ref={block}- className="pointer-events-auto relative cursor-move"- style={{- ...textCss(overlay.style, frameRect.height),- // Percentages here would resolve against the text block's own- // width, which varies with the words. The frame is the thing- // offsets are relative to, so they are converted against its- // measured box instead.- transform: `translate(${overlay.offsetX * frameRect.width}px, ${- overlay.offsetY * frameRect.height- }px)`,- maxWidth: "92%",- touchAction: "none",- }}- onPointerDown={begin("move")}- >- {overlay.style.content}- {selected && (- <>- <div className="pointer-events-none absolute -inset-1 border border-selection" />- {[- { x: 0, y: 0, cursor: "nwse-resize" },- { x: 1, y: 0, cursor: "nesw-resize" },- { x: 0, y: 1, cursor: "nesw-resize" },- { x: 1, y: 1, cursor: "nwse-resize" },- ].map((corner) => (- <div- key={`${corner.x}-${corner.y}`}- className={HANDLE_CLASS}- style={{- left: `${corner.x * 100}%`,- top: `${corner.y * 100}%`,- cursor: corner.cursor,- touchAction: "none",- }}- onPointerDown={begin("scale")}- />- ))}- </>- )}- </div>- </div>- );-}diff --git a/desktop/src/components/Resizer.tsx b/desktop/src/components/Resizer.tsxdeleted file mode 100644index 189ccabc..00000000--- a/desktop/src/components/Resizer.tsx+++ /dev/null@@ -1,72 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useRef } from "react";-import type { PointerEvent as ReactPointerEvent } from "react";--/**- * A draggable divider between two docked panels.- *- * The hit area is deliberately wider than the visible line (8px versus 1px):- * a 1px grab target is the single most common way a docked layout feels bad- * to use. The line itself only lights up once you are on it.- */-export function Resizer({- direction,- onResize,- className = "",-}: {- /** `vertical` = a vertical bar you drag left/right to size a side panel. */- direction: "vertical" | "horizontal";- /** Receives the pointer delta in pixels since the last event. */- onResize: (delta: number) => void;- className?: string;-}) {- const last = useRef(0);-- const onPointerDown = useCallback((event: ReactPointerEvent<HTMLDivElement>) => {- event.currentTarget.setPointerCapture(event.pointerId);- last.current = direction === "vertical" ? event.clientX : event.clientY;- }, [direction]);-- const onPointerMove = useCallback(- (event: ReactPointerEvent<HTMLDivElement>) => {- if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;- const position = direction === "vertical" ? event.clientX : event.clientY;- onResize(position - last.current);- last.current = position;- },- [direction, onResize],- );-- const vertical = direction === "vertical";-- return (- <div- role="separator"- aria-orientation={vertical ? "vertical" : "horizontal"}- onPointerDown={onPointerDown}- onPointerMove={onPointerMove}- // The resizer *is* the gutter between two panels, which is why it has a- // real size and no background: whatever this is set to becomes the gap,- // on both axes, with nothing else to keep in step.- className={`group relative shrink-0 ${- vertical ? "w-2 cursor-col-resize" : "h-2 cursor-row-resize"- } ${className}`}- >- {/* Nothing is drawn until you are on it. The panels either side already- have their own edges; a third line between them is just noise. Lime,- like the active tools and the selection - grabbing a divider is an- action, and actions read lime everywhere else in the app. */}- <span- aria-hidden- className={`absolute rounded-full bg-tool-active opacity-0 transition-opacity- group-hover:opacity-100 group-active:opacity-100 ${- vertical- ? "inset-y-2 left-1/2 w-0.5 -translate-x-1/2"- : "inset-x-2 top-1/2 h-0.5 -translate-y-1/2"- }`}- />- </div>- );-}diff --git a/desktop/src/components/RightPanel.tsx b/desktop/src/components/RightPanel.tsxdeleted file mode 100644index 36eee41b..00000000--- a/desktop/src/components/RightPanel.tsx+++ /dev/null@@ -1,206 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { memo } from "react";--import type { AppliedEffect, ClipTransition } from "../lib/effects";-import type { ClipFilter } from "../lib/filters";-import {- precedingClip,- type Clip,- type CustomFont,- type EditorProject,- type MediaItem,-} from "../lib/editor";-import { useLocale, type MsgKey } from "../lib/i18n";-import { AdjustPanel } from "./AdjustPanel";-import { EffectsPanel } from "./EffectsPanel";-import { FiltersPanel } from "./FiltersPanel";-import { Inspector } from "./Inspector";-import inspector from "./inspector/inspector.module.css";-import { Panel } from "./Panel";-import { TextPanel } from "./TextPanel";--export type RightTab = "details" | "adjust" | "filters" | "effects" | "text";--/**- * The tab strip follows the selection.- *- * Nothing selected: only Details, showing the project itself - there is- * nothing to edit, so no editing tabs. A media clip selected: Adjust and- * Filters, the things that can actually be changed. A title: just Text,- * because a text clip has no volume, no speed and no audio filters, and- * offering those tabs would be offering panels that can only say "nothing- * here".- */-const DETAILS_TABS: { id: RightTab; labelKey: MsgKey }[] = [- { id: "details", labelKey: "rightPanel.details" },-];--const CLIP_TABS: { id: RightTab; labelKey: MsgKey }[] = [- { id: "adjust", labelKey: "rightPanel.adjust" },- { id: "filters", labelKey: "rightPanel.filters" },- { id: "effects", labelKey: "rightPanel.effects" },-];--// A still has picture but no sound, so it gets Effects but not Filters.-const IMAGE_TABS: { id: RightTab; labelKey: MsgKey }[] = [- { id: "adjust", labelKey: "rightPanel.adjust" },- { id: "effects", labelKey: "rightPanel.effects" },-];--const TEXT_TABS: { id: RightTab; labelKey: MsgKey }[] = [{ id: "text", labelKey: "rightPanel.text" }];--/**- * The right-hand panel.- *- * Details is what a thing *is*, Adjust is what you can change about it, and- * Filters is what you can add to it. Keeping those apart matters because the- * first is read-only and the other two are not, and mixing them makes it- * unclear which numbers you are allowed to touch.- *- * Memoised: playback re-renders the editor per animation frame, and nothing- * here reads the playhead - the panel shows the selection, not the clock.- * App.tsx keeps every callback and derived prop referentially stable- * (useCallback / useMemo / objects straight off the memoised project).- */-export const RightPanel = memo(function RightPanel({- tab,- onTab,- clip,- media,- project,- fonts,- projectName,- projectPath,- frame,- duration,- frameRate,- onChangeClip,- onCommitClip,- onSpeedChange,- onAddFont,- onRemoveFont,- onModifyProject,-}: {- tab: RightTab;- onTab: (tab: RightTab) => void;- clip: Clip | null;- media: MediaItem | null;- project: EditorProject;- /** Custom fonts with the UI's missing-file marks applied. */- fonts: CustomFont[];- projectName: string;- projectPath: string;- frame: { width: number; height: number };- duration: number;- frameRate: number;- onChangeClip: (patch: Partial<Clip>) => void;- /** Ends a control gesture: the accumulated change becomes one command. */- onCommitClip: () => void;- onSpeedChange: (speed: number) => void;- onAddFont: () => void;- onRemoveFont: (family: string) => void;- /** Opens the project-details editor (name, output frame). */- onModifyProject: () => void;-}) {- const { t } = useLocale();- const isText = clip?.kind === "text";- const tabs = clip- ? isText- ? TEXT_TABS- : clip.kind === "image"- ? IMAGE_TABS- : CLIP_TABS- : DETAILS_TABS;-- // A selection change can leave the strip showing a tab that is no longer- // offered, so the active tab falls back to the first one that exists.- const active = tabs.some((entry) => entry.id === tab) ? tab : tabs[0].id;- // A segmented control with one segment is a label wearing a costume; a- // lone tab renders as the panel's plain heading instead.- const single = tabs.length === 1;-- return (- // The Text tab is the first panel on the new inspector chrome, which brings- // its own palette rather than borrowing this app's. `inspector.shell` hands- // that palette to the heading strip above it too, so the panel is one- // surface instead of a light header sitting on a near-black body.- <Panel- title={single ? t(tabs[0].labelKey) : undefined}- className={active === "text" ? inspector.shell : ""}- >- {!single && (- <div className="sticky top-0 z-10 border-b border-hairline bg-panel px-2 pb-2 pt-2">- <div className="flex rounded-lg bg-sunken p-0.5">- {tabs.map((entry) => (- <button- key={entry.id}- type="button"- aria-pressed={active === entry.id}- onClick={() => onTab(entry.id)}- className={`flex-1 cursor-pointer rounded-[6px] px-2 py-1 text-[12px] transition-colors ${- active === entry.id- ? "bg-panel text-primary shadow-[0_1px_2px_rgba(0,0,0,0.14)]"- : "text-secondary hover:text-primary"- }`}- >- {t(entry.labelKey)}- </button>- ))}- </div>- </div>- )}-- {active === "details" && (- <Inspector- clip={clip}- media={media}- frameRate={frameRate}- project={project}- projectName={projectName}- projectPath={projectPath}- frame={frame}- duration={duration}- onModify={onModifyProject}- />- )}- {active === "text" && (- <TextPanel- clip={clip}- fonts={fonts}- onChange={onChangeClip}- onCommit={onCommitClip}- onAddFont={onAddFont}- onRemoveFont={onRemoveFont}- />- )}- {active === "adjust" && (- <AdjustPanel- clip={clip}- onChange={onChangeClip}- onCommit={onCommitClip}- onSpeedChange={onSpeedChange}- />- )}- {active === "filters" && (- <FiltersPanel- clip={clip}- onChange={(filters: ClipFilter[]) => onChangeClip({ filters })}- onCommit={onCommitClip}- />- )}- {active === "effects" && (- <EffectsPanel- clip={clip}- hasPreceding={clip ? precedingClip(project, clip.id) !== null : false}- onChangeEffects={(videoEffects: AppliedEffect[]) => onChangeClip({ videoEffects })}- onChangeTransition={(transitionIn: ClipTransition | undefined) =>- onChangeClip({ transitionIn })- }- onCommit={onCommitClip}- />- )}- </Panel>- );-});diff --git a/desktop/src/components/SaveTemplateDialog.tsx b/desktop/src/components/SaveTemplateDialog.tsxdeleted file mode 100644index f4e71bb0..00000000--- a/desktop/src/components/SaveTemplateDialog.tsx+++ /dev/null@@ -1,100 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useState } from "react";--import { useLocale } from "../lib/i18n";-import { Icon } from "./Icon";--/**- * Names and saves the open project as a template.- *- * The one decision it asks for is the name; the substance - which media are- * slots - was decided in the bin, so the dialog only reports it. Zero slots- * is allowed (a starter project is a legitimate template) but flagged, since- * forgetting to mark slots is the likelier reading, and everything that is- * not a slot ships inside the bundle by copy.- */-export function SaveTemplateDialog({- defaultName,- slotCount,- busy,- onSave,- onCancel,-}: {- defaultName: string;- /** How many media items are marked as slots right now. */- slotCount: number;- busy: boolean;- onSave: (name: string) => void;- onCancel: () => void;-}) {- const [name, setName] = useState(defaultName);- const { t, tp } = useLocale();-- useEffect(() => {- const onKey = (event: KeyboardEvent) => {- if (event.key === "Escape") onCancel();- };- window.addEventListener("keydown", onKey);- return () => window.removeEventListener("keydown", onKey);- }, [onCancel]);-- const save = () => {- const trimmed = name.trim();- if (trimmed && !busy) onSave(trimmed);- };-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- if (event.target === event.currentTarget) onCancel();- }}- >- <div className="surface w-full max-w-sm rounded-2xl p-6">- <div className="mb-2 flex items-center gap-2">- <Icon name="slot" size={16} className="text-accent" />- <h2 className="text-sm font-semibold text-primary">{t("saveTemplate.title")}</h2>- </div>- <p className="mb-4 text-xs leading-relaxed text-secondary">- {slotCount > 0 ? tp("saveTemplate.slots", slotCount) : t("saveTemplate.noSlots")}- </p>-- <input- value={name}- autoFocus- spellCheck={false}- placeholder={t("saveTemplate.namePlaceholder")}- onChange={(event) => setName(event.target.value)}- onFocus={(event) => event.currentTarget.select()}- onKeyDown={(event) => event.key === "Enter" && save()}- className="mb-5 w-full rounded-lg bg-sunken px-3 py-2 text-sm text-primary outline-none- ring-1 ring-hairline focus:ring-accent placeholder:text-tertiary"- />-- <div className="flex gap-1.5">- <button- type="button"- onClick={onCancel}- className="flex-1 cursor-pointer rounded-lg bg-hover px-4 py-2 text-sm text-primary- transition-colors hover:bg-active"- >- {t("common.cancel")}- </button>- <button- type="button"- disabled={busy || !name.trim()}- onClick={save}- className="flex-1 cursor-pointer rounded-lg bg-accent px-4 py-2 text-sm font-medium- text-on-accent transition-colors hover:bg-accent-hover- disabled:cursor-not-allowed disabled:opacity-40"- >- {busy ? t("saveTemplate.saving") : t("saveTemplate.save")}- </button>- </div>- </div>- </div>- );-}diff --git a/desktop/src/components/SettingsDialog.tsx b/desktop/src/components/SettingsDialog.tsxdeleted file mode 100644index 11cdd3da..00000000--- a/desktop/src/components/SettingsDialog.tsx+++ /dev/null@@ -1,646 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useRef, useState } from "react";-import { open } from "@tauri-apps/plugin-dialog";--import {- cancelModelDownload,- cancelTtsModelDownload,- deleteTranscriberModel,- deleteTtsModel,- downloadTranscriberModel,- downloadTtsModel,- engineVersion,- onTranscriberDownload,- onTtsDownload,- setTranscriberBinary,- transcriberStatus,- ttsStatus,- type TranscriberStatus,- type TtsStatus,-} from "../lib/engine";-import { LOCALES, systemLocale, useLocale, type MsgKey } from "../lib/i18n";-import {- getTranscriberLanguage,- getTranscriberModel,- getTtsModel,- setTranscriberLanguage,- setTranscriberModel,- setTtsModel,-} from "../lib/settings";-import { HelpTip } from "./controls";-import { Icon } from "./Icon";--/** The pages of the settings dialog, in display order. */-type SettingsTab = "general" | "transcriber" | "speech" | "about";--const TABS: {- id: SettingsTab;- labelKey: MsgKey;- icon: "settings" | "waveform" | "volume" | "info";-}[] = [- { id: "general", labelKey: "settings.tabs.general", icon: "settings" },- { id: "transcriber", labelKey: "settings.tabs.transcriber", icon: "waveform" },- { id: "speech", labelKey: "settings.tabs.speech", icon: "volume" },- { id: "about", labelKey: "settings.tabs.about", icon: "info" },-];--/**- * The settings sheet: a tab rail on the left, one feature's settings on the- * right - the same shape as the library panel, so the app has one way of- * laying out "categories of things".- *- * Settings here are app-level (this machine), never project state.- */-export function SettingsDialog({ onClose }: { onClose: () => void }) {- const [tab, setTab] = useState<SettingsTab>("general");- const { t } = useLocale();-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- if (event.target === event.currentTarget) onClose();- }}- >- <div className="surface flex h-[460px] w-full max-w-2xl flex-col rounded-2xl">- <div className="flex items-center gap-2 border-b border-hairline px-5 py-3.5">- <Icon name="settings" size={16} className="text-accent" />- <h2 className="flex-1 text-sm font-semibold text-primary">{t("settings.title")}</h2>- <button- type="button"- aria-label={t("common.close")}- onClick={onClose}- className="cursor-pointer rounded p-1 text-secondary hover:bg-hover hover:text-primary"- >- <Icon name="close" size={14} />- </button>- </div>-- <div className="flex min-h-0 flex-1">- <aside className="w-40 shrink-0 border-r border-hairline p-2">- {TABS.map((entry) => (- <button- key={entry.id}- type="button"- aria-pressed={tab === entry.id}- onClick={() => setTab(entry.id)}- className={`flex w-full cursor-pointer items-center gap-2 rounded-lg px-2.5 py-1.5- text-xs transition-colors ${- tab === entry.id- ? "bg-active text-primary"- : "text-secondary hover:bg-hover"- }`}- >- <Icon name={entry.icon} size={13} className="shrink-0 opacity-70" />- {t(entry.labelKey)}- </button>- ))}- </aside>-- <div className="thin-scroll min-w-0 flex-1 overflow-y-auto px-5 py-4">- {tab === "general" && <GeneralSettings />}- {tab === "transcriber" && <TranscriberSettings />}- {tab === "speech" && <SpeechSettings />}- {tab === "about" && <AboutSettings />}- </div>- </div>- </div>- </div>- );-}--function GeneralSettings() {- const { t, preference, setLocale } = useLocale();- // Native names, straight from LOCALES: whoever is stranded in a language- // they cannot read must still recognise their own in this list.- const system = LOCALES.find((entry) => entry.id === systemLocale())!;- const choices = [- {- id: "system" as const,- name: t("settings.general.systemDefault", { language: system.name }),- },- ...LOCALES,- ];-- return (- <div className="flex flex-col gap-5">- <section>- <h3 className="mb-2 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("settings.general.language")}- </h3>- <div className="flex w-72 flex-col gap-1.5">- {choices.map((entry) => {- const selected = preference === entry.id;- return (- <button- key={entry.id}- type="button"- role="radio"- aria-checked={selected}- onClick={() => setLocale(entry.id)}- className={`flex cursor-pointer items-center gap-2.5 rounded-lg px-3 py-2 text-left- ring-1 transition-shadow ${- selected ? "ring-accent" : "ring-hairline hover:ring-hairline-strong"- }`}- >- <span- className="flex h-4 w-4 shrink-0 items-center justify-center rounded-full- ring-1 ring-hairline-strong"- >- {selected && <span className="h-2 w-2 rounded-full bg-accent" />}- </span>- <span className="truncate text-xs text-primary">{entry.name}</span>- </button>- );- })}- </div>- <p className="mt-2 text-[11px] leading-snug text-tertiary">- {t("settings.general.engineNote")}- </p>- </section>- </div>- );-}--/** Bytes as a short human figure for model rows. */-function formatSize(bytes: number): string {- return bytes >= 1_000_000_000- ? `${(bytes / 1_000_000_000).toFixed(1)} GB`- : `${Math.round(bytes / 1_000_000)} MB`;-}--/** Whisper input languages - what the audio is in, not what the UI speaks. */-const LANGUAGES: { id: string; labelKey: MsgKey }[] = [- { id: "auto", labelKey: "settings.transcriber.languageAuto" },- { id: "en", labelKey: "settings.transcriber.languageEnglish" },-];--function TranscriberSettings() {- const { t } = useLocale();- const [status, setStatus] = useState<TranscriberStatus | null>(null);- const [error, setError] = useState<string | null>(null);- const [model, setModel] = useState(getTranscriberModel());- const [language, setLanguage] = useState(getTranscriberLanguage());- /** The model being downloaded and how far along it is, or null. */- const [download, setDownload] = useState<{ id: string; fraction: number } | null>(null);- const unlisten = useRef<(() => void) | null>(null);-- const refresh = () => {- transcriberStatus()- .then((next) => {- setStatus(next);- setError(null);- })- .catch((cause: unknown) => setError(String(cause)));- };-- useEffect(() => {- refresh();- void onTranscriberDownload((progress) => {- if (progress.done) {- setDownload(null);- refresh();- } else {- setDownload({- id: progress.id,- fraction: progress.total > 0 ? progress.received / progress.total : 0,- });- }- }).then((stop) => {- unlisten.current = stop;- });- return () => unlisten.current?.();- }, []);-- const locate = async () => {- const chosen = await open({- title: t("settings.transcriber.locateTitle"),- multiple: false,- filters: [{ name: t("settings.transcriber.locateFilter"), extensions: ["exe", "*"] }],- });- if (typeof chosen !== "string") return;- try {- setStatus(await setTranscriberBinary(chosen));- setError(null);- } catch (cause) {- setError(String(cause));- }- };-- const startDownload = (id: string) => {- setDownload({ id, fraction: 0 });- downloadTranscriberModel(id)- .then(() => {- setDownload(null);- refresh();- })- .catch((cause: unknown) => {- setDownload(null);- setError(String(cause));- refresh();- });- };-- const remove = (id: string) => {- deleteTranscriberModel(id)- .then(refresh)- .catch((cause: unknown) => setError(String(cause)));- };-- const chooseModel = (id: string) => {- setModel(id);- setTranscriberModel(id);- };-- const chooseLanguage = (id: string) => {- setLanguage(id);- setTranscriberLanguage(id);- };-- return (- <div className="flex flex-col gap-5">- {/* Which binary transcribes is plumbing, not a setting: a healthy- install says nothing about it. The bar exists only for a dev build- with no engine at all, where Locate... is the way out. */}- {status !== null && !status.binary && (- <section>- <div className="flex items-center gap-2 rounded-lg bg-sunken px-3 py-2.5">- <span className="h-2 w-2 shrink-0 rounded-full bg-danger" />- <span className="min-w-0 flex-1 truncate text-xs text-secondary">- {t("settings.transcriber.engineMissing")}- </span>- <button- type="button"- onClick={() => void locate()}- className="shrink-0 cursor-pointer rounded-md bg-panel px-2.5 py-1 text-[11px]- text-primary ring-1 ring-hairline transition-colors hover:bg-hover"- >- {t("settings.transcriber.locate")}- </button>- </div>- </section>- )}-- <section>- <h3 className="mb-2 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("settings.transcriber.language")}- </h3>- <div className="flex w-56 rounded-lg bg-sunken p-0.5">- {LANGUAGES.map((entry) => (- <button- key={entry.id}- type="button"- aria-pressed={language === entry.id}- onClick={() => chooseLanguage(entry.id)}- className={`flex-1 cursor-pointer rounded-md px-2 py-1 text-[12px] transition-colors ${- language === entry.id- ? "bg-panel text-primary shadow-[0_1px_2px_rgba(0,0,0,0.14)]"- : "text-secondary hover:text-primary"- }`}- >- {t(entry.labelKey)}- </button>- ))}- </div>- </section>-- <section>- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("settings.transcriber.models")}- <HelpTip align="start" text={t("settings.transcriber.modelsHelp")} />- </h3>-- <ul className="flex flex-col gap-1.5">- {(status?.models ?? []).map((entry) => {- const downloading = download?.id === entry.id;- const selected = model === entry.id;- return (- <li- key={entry.id}- // The whole card selects, not just the radio dot: the dot is- // a 16px target and the card is what the eye reads as the- // option. Buttons inside stop propagation so deleting or- // downloading is never also a selection.- onClick={() => entry.downloaded && chooseModel(entry.id)}- className={`flex items-center gap-2.5 rounded-lg px-3 py-2 ring-1 transition-shadow ${- selected ? "ring-accent" : "ring-hairline"- } ${entry.downloaded ? "cursor-pointer" : ""} ${- entry.downloaded && !selected ? "hover:ring-hairline-strong" : ""- }`}- >- <button- type="button"- role="radio"- aria-checked={selected}- aria-label={t("settings.transcriber.useModel", { model: entry.label })}- disabled={!entry.downloaded}- onClick={() => chooseModel(entry.id)}- title={- entry.downloaded- ? t("settings.transcriber.useModelHint")- : t("settings.transcriber.downloadFirstHint")- }- className="flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center- rounded-full ring-1 ring-hairline-strong- disabled:cursor-not-allowed disabled:opacity-40"- >- {selected && <span className="h-2 w-2 rounded-full bg-accent" />}- </button>-- <span className="min-w-0 flex-1">- <span className="block truncate text-xs text-primary">{entry.label}</span>- <span className="block truncate text-[11px] text-tertiary">{entry.blurb}</span>- </span>-- <span className="shrink-0 font-technical text-[10px] text-tertiary">- {formatSize(entry.sizeBytes)}- </span>-- {downloading ? (- <span className="flex shrink-0 items-center gap-1.5">- <span className="h-1 w-16 overflow-hidden rounded-full bg-sunken">- <span- className="block h-full bg-accent transition-[width]"- style={{ width: `${Math.round(download.fraction * 100)}%` }}- />- </span>- <button- type="button"- aria-label={t("settings.transcriber.cancelDownload")}- onClick={(event) => {- event.stopPropagation();- void cancelModelDownload();- }}- className="cursor-pointer rounded p-0.5 text-secondary hover:bg-hover- hover:text-primary"- >- <Icon name="close" size={10} />- </button>- </span>- ) : entry.downloaded ? (- <span className="flex shrink-0 items-center gap-1">- <Icon name="check" size={12} className="text-success" />- <button- type="button"- aria-label={t("settings.transcriber.deleteModel", { model: entry.label })}- title={t("settings.transcriber.deleteModelHint")}- onClick={(event) => {- event.stopPropagation();- remove(entry.id);- }}- className="cursor-pointer rounded p-0.5 text-secondary transition-colors- hover:bg-hover hover:text-danger"- >- <Icon name="trash" size={11} />- </button>- </span>- ) : (- <button- type="button"- disabled={download !== null}- onClick={(event) => {- event.stopPropagation();- startDownload(entry.id);- }}- className="shrink-0 cursor-pointer rounded-md bg-panel px-2.5 py-1 text-[11px]- text-primary ring-1 ring-hairline transition-colors hover:bg-hover- disabled:cursor-not-allowed disabled:opacity-40"- >- {t("settings.transcriber.download")}- </button>- )}- </li>- );- })}- </ul>-- {error && <p className="mt-2 text-[11px] leading-snug text-danger">{error}</p>}- </section>- </div>- );-}--/**- * The speech (text to speech) page: which Kokoro bundle to keep on disk.- *- * The same shape as the transcriber page, minus the binary bar (synthesis- * runs in-process, there is no tool to locate) and minus a language toggle- * (the voice picked in the speech dialog carries the language).- */-function SpeechSettings() {- const { t } = useLocale();- const [status, setStatus] = useState<TtsStatus | null>(null);- const [error, setError] = useState<string | null>(null);- const [model, setModel] = useState(getTtsModel());- /** The model being fetched: how far along, and whether it is unpacking. */- const [download, setDownload] = useState<{- id: string;- fraction: number;- unpacking: boolean;- } | null>(null);- const unlisten = useRef<(() => void) | null>(null);-- const refresh = () => {- ttsStatus()- .then((next) => {- setStatus(next);- setError(null);- })- .catch((cause: unknown) => setError(String(cause)));- };-- useEffect(() => {- refresh();- void onTtsDownload((progress) => {- if (progress.done) {- setDownload(null);- refresh();- } else {- setDownload({- id: progress.id,- fraction: progress.total > 0 ? progress.received / progress.total : 0,- unpacking: progress.unpacking,- });- }- }).then((stop) => {- unlisten.current = stop;- });- return () => unlisten.current?.();- }, []);-- const startDownload = (id: string) => {- setDownload({ id, fraction: 0, unpacking: false });- downloadTtsModel(id)- .then(() => {- setDownload(null);- refresh();- })- .catch((cause: unknown) => {- setDownload(null);- setError(String(cause));- refresh();- });- };-- const remove = (id: string) => {- deleteTtsModel(id)- .then(refresh)- .catch((cause: unknown) => setError(String(cause)));- };-- const chooseModel = (id: string) => {- setModel(id);- setTtsModel(id);- };-- return (- <div className="flex flex-col gap-5">- <section>- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {t("settings.speech.models")}- <HelpTip align="start" text={t("settings.speech.modelsHelp")} />- </h3>-- <ul className="flex flex-col gap-1.5">- {(status?.models ?? []).map((entry) => {- const downloading = download?.id === entry.id;- const selected = model === entry.id;- return (- <li- key={entry.id}- onClick={() => entry.downloaded && chooseModel(entry.id)}- className={`flex items-center gap-2.5 rounded-lg px-3 py-2 ring-1 transition-shadow ${- selected ? "ring-accent" : "ring-hairline"- } ${entry.downloaded ? "cursor-pointer" : ""} ${- entry.downloaded && !selected ? "hover:ring-hairline-strong" : ""- }`}- >- <button- type="button"- role="radio"- aria-checked={selected}- aria-label={t("settings.speech.useModel", { model: entry.label })}- disabled={!entry.downloaded}- onClick={() => chooseModel(entry.id)}- title={- entry.downloaded- ? t("settings.speech.useModelHint")- : t("settings.speech.downloadFirstHint")- }- className="flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center- rounded-full ring-1 ring-hairline-strong- disabled:cursor-not-allowed disabled:opacity-40"- >- {selected && <span className="h-2 w-2 rounded-full bg-accent" />}- </button>-- <span className="min-w-0 flex-1">- <span className="block truncate text-xs text-primary">{entry.label}</span>- <span className="block truncate text-[11px] text-tertiary">{entry.blurb}</span>- </span>-- <span className="shrink-0 font-technical text-[10px] text-tertiary">- {formatSize(entry.sizeBytes)}- </span>-- {downloading ? (- <span className="flex shrink-0 items-center gap-1.5">- {download.unpacking ? (- <span className="text-[10px] text-tertiary">- {t("settings.speech.unpacking")}- </span>- ) : (- <span className="h-1 w-16 overflow-hidden rounded-full bg-sunken">- <span- className="block h-full bg-accent transition-[width]"- style={{ width: `${Math.round(download.fraction * 100)}%` }}- />- </span>- )}- <button- type="button"- aria-label={t("settings.speech.cancelDownload")}- onClick={(event) => {- event.stopPropagation();- void cancelTtsModelDownload();- }}- className="cursor-pointer rounded p-0.5 text-secondary hover:bg-hover- hover:text-primary"- >- <Icon name="close" size={10} />- </button>- </span>- ) : entry.downloaded ? (- <span className="flex shrink-0 items-center gap-1">- <Icon name="check" size={12} className="text-success" />- <button- type="button"- aria-label={t("settings.speech.deleteModel", { model: entry.label })}- title={t("settings.speech.deleteModelHint")}- onClick={(event) => {- event.stopPropagation();- remove(entry.id);- }}- className="cursor-pointer rounded p-0.5 text-secondary transition-colors- hover:bg-hover hover:text-danger"- >- <Icon name="trash" size={11} />- </button>- </span>- ) : (- <button- type="button"- disabled={download !== null}- onClick={(event) => {- event.stopPropagation();- startDownload(entry.id);- }}- className="shrink-0 cursor-pointer rounded-md bg-panel px-2.5 py-1 text-[11px]- text-primary ring-1 ring-hairline transition-colors hover:bg-hover- disabled:cursor-not-allowed disabled:opacity-40"- >- {t("settings.speech.download")}- </button>- )}- </li>- );- })}- </ul>-- <p className="mt-2 text-[11px] leading-snug text-tertiary">- {t("settings.speech.privacyNote")}- </p>-- {error && <p className="mt-2 text-[11px] leading-snug text-danger">{error}</p>}- </section>- </div>- );-}--function AboutSettings() {- const { t } = useLocale();- const [version, setVersion] = useState<string | null>(null);-- useEffect(() => {- engineVersion()- .then(setVersion)- .catch(() => setVersion(null));- }, []);-- return (- <div className="flex flex-col gap-1.5">- <h3 className="mb-1 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- WolfCut- </h3>- <p className="text-xs text-secondary">- {t("settings.about.version", {- version: version ?? t("settings.about.versionUnknown"),- })}- </p>- <p className="text-[11px] leading-relaxed text-tertiary">{t("settings.about.blurb")}</p>- </div>- );-}diff --git a/desktop/src/components/StartScreen.tsx b/desktop/src/components/StartScreen.tsxdeleted file mode 100644index ca1537f2..00000000--- a/desktop/src/components/StartScreen.tsx+++ /dev/null@@ -1,648 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useState } from "react";-import type { ReactNode } from "react";-import { open } from "@tauri-apps/plugin-dialog";-import { desktopDir, join } from "@tauri-apps/api/path";--import {- createProject,- forgetProject,- newMediaFromSummary,- openProject,- probeMedia,- projectPreview,- recentProjects,- templateDelete,- templateInstantiate,- templateList,- type ProjectInfo,- type SlotFill,- type TemplateInfo,- type TemplateSlot,-} from "../lib/engine";-import { ErrorNotice } from "./ErrorNotice";-import { useLocale, type MsgKey } from "../lib/i18n";-import { relativeTime } from "../lib/time";-import { Icon } from "./Icon";-import { TemplateThumb } from "./TemplateThumb";--/** The settings a project is created with. Fixed for its lifetime, for now. */-export interface ProjectSession {- name: string;- /** Absolute path to the project folder on disk. */- path: string;- width: number;- height: number;- /** Frames per second as a decimal, for display. */- frameRate: number;- /** The same rate as an exact fraction. Export uses these, never the decimal. */- rateNum: number;- rateDen: number;-}--const RESOLUTIONS: { labelKey: MsgKey; width: number; height: number }[] = [- { labelKey: "startScreen.res1080p", width: 1920, height: 1080 },- { labelKey: "startScreen.res720p", width: 1280, height: 720 },- { labelKey: "startScreen.res4k", width: 3840, height: 2160 },- { labelKey: "startScreen.resVertical", width: 1080, height: 1920 },-];--// Stored as fractions because 29.97 is 30000/1001 and never anything else.-const FRAME_RATES = [- { label: "24", num: 24, den: 1 },- { label: "25", num: 25, den: 1 },- { label: "29.97", num: 30000, den: 1001 },- { label: "30", num: 30, den: 1 },- { label: "60", num: 60, den: 1 },-] as const;--/**- * The launch screen.- *- * Full-bleed on the window's own background - no card, no border, no drop- * shadow. A setup screen is not a dialog floating over something; it *is* the- * window, and framing it as a card only adds an edge that means nothing.- * Hierarchy comes from type size and whitespace instead.- *- * An editor should not drop you straight into an untitled timeline either: the- * frame rate, size and location are decisions the whole edit depends on, and- * choosing them after material is cut is how you end up conforming footage.- */-export function StartScreen({- onCreate,- initialTemplate = null,-}: {- onCreate: (session: ProjectSession) => void;- /** Opens straight into a template's fill mode - how "Use template" from- * inside the editor lands here. */- initialTemplate?: TemplateInfo | null;-}) {- const { t, tp } = useLocale();- const [name, setName] = useState(initialTemplate?.name ?? t("startScreen.untitled"));- const [location, setLocation] = useState("");- const [resolution, setResolution] = useState<(typeof RESOLUTIONS)[number]>(RESOLUTIONS[0]);- const [rate, setRate] = useState<(typeof FRAME_RATES)[number]>(FRAME_RATES[3]);- const [busy, setBusy] = useState(false);- const [error, setError] = useState<string | null>(null);- const [recents, setRecents] = useState<ProjectInfo[]>([]);- const [templates, setTemplates] = useState<TemplateInfo[]>([]);- /** A chosen template swaps the form into fill mode. */- const [template, setTemplate] = useState<TemplateInfo | null>(initialTemplate);- /** The chosen media per slot, keyed by the slot's media id. */- const [fills, setFills] = useState<Record<string, SlotFill>>({});-- // Default to Desktop/WolfCut. Failing to resolve it is not worth surfacing;- // the field simply starts empty and Choose still works.- useEffect(() => {- void desktopDir()- .then((desktop) => join(desktop, "WolfCut"))- .then(setLocation)- .catch(() => undefined);- }, []);-- useEffect(() => {- void recentProjects()- .then(setRecents)- .catch(() => undefined);- void templateList()- .then(setTemplates)- .catch(() => undefined);- }, []);-- const chooseTemplate = (chosen: TemplateInfo) => {- setTemplate(chosen);- setFills({});- setError(null);- setName(chosen.name);- };-- const removeTemplate = async (doomed: TemplateInfo) => {- setTemplates((current) => current.filter((entry) => entry.path !== doomed.path));- if (template?.path === doomed.path) setTemplate(null);- await templateDelete(doomed.path).catch(() => undefined);- };-- /** Asks for one slot's file and probes it into fill shape. */- const pickSlot = async (slot: TemplateSlot) => {- if (busy) return;- const chosen = await open({- multiple: false,- title: t("startScreen.chooseMediaFor", { name: slot.name }),- filters: [- slot.kind === "audio"- ? {- name: t("startScreen.audioFilter"),- extensions: ["mp3", "wav", "flac", "aac", "m4a", "ogg", "opus"],- }- : {- // A photo in a video slot is fine - it freeze-frames for the- // slot's length - so visual slots take either.- name: t("startScreen.videoImagesFilter"),- extensions: [- "mp4", "mov", "mkv", "webm", "avi", "m4v",- "png", "jpg", "jpeg", "webp", "bmp", "tif", "tiff", "avif", "gif",- ],- },- { name: t("startScreen.allFilesFilter"), extensions: ["*"] },- ],- });- if (typeof chosen !== "string") return;-- setError(null);- try {- const summary = await probeMedia(chosen);- setFills((current) => ({- ...current,- [slot.mediaId]: { mediaId: slot.mediaId, item: newMediaFromSummary(summary) },- }));- } catch (cause) {- setError(String(cause));- }- };-- const createFromTemplate = async () => {- if (!template || busy || !location.trim()) return;- const ready = template.slots.every((slot) => fills[slot.mediaId]);- if (!ready) return;-- setBusy(true);- setError(null);- try {- const project = await templateInstantiate({- template: template.path,- location: location.trim(),- name: name.trim() || template.name,- fills: template.slots.map((slot) => fills[slot.mediaId]),- });- onCreate(toSession(project));- } catch (cause) {- setError(String(cause));- setBusy(false);- }- };-- const reopen = async (project: ProjectInfo) => {- if (busy) return;- setBusy(true);- setError(null);- try {- // Re-read from disk rather than trusting the cached entry: the manifest- // is the truth, and the folder may have been edited or moved since.- const fresh = await openProject(project.path);- onCreate(toSession(fresh));- } catch (cause) {- setError(String(cause));- setBusy(false);- }- };-- const forget = async (project: ProjectInfo) => {- setRecents((current) => current.filter((entry) => entry.path !== project.path));- await forgetProject(project.path).catch(() => undefined);- };-- const browse = async () => {- const chosen = await open({- directory: true,- multiple: false,- title: t("startScreen.locationTitle"),- defaultPath: location || undefined,- });- if (typeof chosen === "string") setLocation(chosen);- };-- const create = async () => {- const trimmed = name.trim() || t("startScreen.untitled");- if (!location.trim() || busy) return;-- setBusy(true);- setError(null);- try {- // The engine creates the folder and writes the manifest, and hands back- // where it actually landed - which is not always `location/name`, since- // the name has to be made filesystem-safe first.- const project = await createProject({- location: location.trim(),- name: trimmed,- width: resolution.width,- height: resolution.height,- rateNum: rate.num,- rateDen: rate.den,- });-- onCreate(toSession(project));- } catch (cause) {- setError(String(cause));- } finally {- setBusy(false);- }- };-- return (- <div className="thin-scroll h-full overflow-y-auto bg-base">- {/*- Two columns once there is history: the setup form on the left, the- projects being returned to on the right - the two reasons anyone is on- this screen, side by side instead of one buried under the other. With- no history the form sits alone, centred, exactly as before.- */}- <div- className={`mx-auto flex min-h-full w-full flex-col justify-center px-8 py-16 ${- recents.length > 0- ? "max-w-5xl lg:grid lg:grid-cols-[minmax(0,1fr)_minmax(0,22rem)] lg:items-start lg:gap-16"- : "max-w-xl"- }`}- >- <div className="min-w-0">- <header className="mb-10">- {template && (- <button- type="button"- onClick={() => setTemplate(null)}- className="mb-3 flex cursor-pointer items-center gap-1 text-[12px] text-accent- transition-opacity hover:opacity-70"- >- <Icon name="chevronRight" size={11} className="rotate-180" />- {t("startScreen.allTemplates")}- </button>- )}- <h1 className="font-display text-[34px] font-semibold leading-tight tracking-[-0.03em] text-primary">- {template ? template.name : t("startScreen.newProject")}- </h1>- <p className="mt-1.5 text-sm text-secondary">- {template- ? t("startScreen.templateIntro", {- width: template.width,- height: template.height,- rate: (template.rateNum / template.rateDen).toFixed(2),- })- : t("startScreen.settingsIntro")}- </p>- </header>-- <Field label={t("startScreen.name")}>- <input- value={name}- autoFocus- spellCheck={false}- onChange={(event) => setName(event.target.value)}- onFocus={(event) => event.currentTarget.select()}- onKeyDown={(event) => event.key === "Enter" && void create()}- className="w-full bg-transparent py-1 text-[15px] text-primary outline-none- placeholder:text-tertiary"- />- </Field>-- <Field label={t("startScreen.location")}>- <div className="flex items-center gap-3">- <input- value={location}- spellCheck={false}- placeholder={t("startScreen.chooseFolder")}- onChange={(event) => setLocation(event.target.value)}- className="min-w-0 flex-1 bg-transparent py-1 font-technical text-[12px] text-primary- outline-none placeholder:text-tertiary"- />- <button- type="button"- onClick={() => void browse()}- className="shrink-0 cursor-pointer text-[13px] text-accent transition-opacity- hover:opacity-70"- >- {t("startScreen.choose")}- </button>- </div>- </Field>-- {!template && (- <>- <Field label={t("startScreen.resolution")}>- <Segmented- options={RESOLUTIONS.map((option) => t(option.labelKey))}- value={t(resolution.labelKey)}- onChange={(label) =>- setResolution(- RESOLUTIONS.find((option) => t(option.labelKey) === label) ?? RESOLUTIONS[0],- )- }- />- <p className="mt-2 font-technical text-[11px] text-tertiary">- {resolution.width} x {resolution.height}- </p>- </Field>-- <Field label={t("startScreen.frameRate")} last>- <Segmented- options={FRAME_RATES.map((option) => option.label)}- value={rate.label}- onChange={(label) =>- setRate(FRAME_RATES.find((option) => option.label === label) ?? FRAME_RATES[3])- }- />- <p className="mt-2 font-technical text-[11px] text-tertiary">- {rate.num}/{rate.den} fps- </p>- </Field>- </>- )}-- {template && (- <Field label={t("startScreen.slots", { count: template.slots.length })} last>- <ul className="flex flex-col gap-1.5">- {template.slots.map((slot, index) => {- const fill = fills[slot.mediaId];- return (- <li key={slot.mediaId} className="flex items-center gap-2.5">- <span- className={`flex h-8 w-12 shrink-0 items-center justify-center rounded-md- ${fill ? "bg-accent-soft text-accent" : "bg-sunken text-tertiary"}`}- >- <Icon- name={- slot.kind === "audio" ? "music" : slot.kind === "image" ? "image" : "film"- }- size={13}- />- </span>- <span className="min-w-0 flex-1">- <span className="block truncate text-[13px] text-primary">- {fill ? fill.item.name : `${index + 1}. ${slot.name}`}- </span>- <span className="block font-technical text-[11px] text-tertiary">- {t("startScreen.slotSeconds", {- kind: t(- slot.kind === "audio"- ? "startScreen.kindAudio"- : slot.kind === "image"- ? "startScreen.kindImage"- : "startScreen.kindVideo",- ),- seconds: slot.seconds.toFixed(1),- })}- </span>- </span>- <button- type="button"- disabled={busy}- onClick={() => void pickSlot(slot)}- className="shrink-0 cursor-pointer text-[13px] text-accent transition-opacity- hover:opacity-70 disabled:cursor-not-allowed disabled:opacity-40"- >- {fill ? t("startScreen.change") : t("startScreen.choose")}- </button>- </li>- );- })}- {template.slots.length === 0 && (- <li className="text-[12px] text-tertiary">{t("startScreen.noSlots")}</li>- )}- </ul>- </Field>- )}-- {error && <ErrorNotice message={error} onDismiss={() => setError(null)} className="mt-6" />}-- <div className="mt-10 flex items-center gap-4">- <button- type="button"- onClick={() => void (template ? createFromTemplate() : create())}- disabled={- busy ||- !location.trim() ||- (template !== null && !template.slots.every((slot) => fills[slot.mediaId]))- }- className="cursor-pointer rounded-full bg-accent px-6 py-2.5 text-[14px] font-medium- text-on-accent transition-colors hover:bg-accent-hover- disabled:cursor-not-allowed disabled:opacity-40"- >- {busy ? t("startScreen.creating") : t("startScreen.create")}- </button>- <p className="flex items-center gap-1.5 text-[11px] text-tertiary">- <Icon name="info" size={12} className="shrink-0" />- {template- ? (() => {- const missing = template.slots.filter((slot) => !fills[slot.mediaId]).length;- return missing > 0- ? tp("startScreen.slotsMissing", missing)- : t("startScreen.slotsFilled");- })()- : t("startScreen.folderNote")}- </p>- </div>-- {!template && templates.length > 0 && (- <section className="mt-14 border-t border-hairline pt-7">- <h2 className="mb-3 text-[13px] font-semibold text-secondary">- {t("startScreen.fromTemplate")}- </h2>- <ul className="grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))] gap-3">- {templates.map((entry) => (- <li key={entry.path} className="group relative">- <button- type="button"- disabled={busy}- title={entry.path}- onClick={() => chooseTemplate(entry)}- className="w-full cursor-pointer text-left disabled:cursor-not-allowed"- >- <TemplateThumb template={entry} />- <span className="mt-1.5 block truncate text-[13px] text-primary">- {entry.name}- </span>- <span className="block font-technical text-[11px] text-tertiary">- {tp("startScreen.slotCount", entry.slots.length)} · {entry.width} x{" "}- {entry.height}- </span>- </button>- <button- type="button"- aria-label={t("startScreen.deleteTemplate", { name: entry.name })}- title={t("startScreen.deleteTemplateHint")}- onClick={() => void removeTemplate(entry)}- className="invisible absolute right-1.5 top-1.5 cursor-pointer rounded- bg-black/55 p-1 text-white transition-colors hover:bg-danger- group-hover:visible"- >- <Icon name="trash" size={11} />- </button>- </li>- ))}- </ul>- </section>- )}- </div>-- {/* No empty state: a "Recent" heading over nothing is worse than no- heading at all, so the column simply is not there until it has- something to show. */}- {recents.length > 0 && (- <section className="mt-14 border-t border-hairline pt-7 lg:mt-0 lg:border-t-0 lg:pt-0">- <h2 className="mb-3 text-[13px] font-semibold text-secondary">- {t("startScreen.recent")}- </h2>- <ul className="flex flex-col gap-1.5">- {recents.map((project) => (- <li- key={project.path}- className="group flex items-center gap-3 rounded-xl p-2 transition-colors- hover:bg-hover"- >- <button- type="button"- title={project.path}- disabled={busy}- onClick={() => void reopen(project)}- className="flex min-w-0 flex-1 cursor-pointer items-center gap-3 text-left- disabled:cursor-not-allowed"- >- <ProjectThumb project={project} />- <span className="min-w-0 flex-1">- <span className="block truncate text-[14px] text-primary">- {project.name}- </span>- <span className="block truncate font-technical text-[11px] text-tertiary">- {project.width} x {project.height} ·{" "}- {(project.rateNum / project.rateDen).toFixed(2)} fps- </span>- <span className="block text-[11px] text-tertiary">- {relativeTime(project.openedAt)}- </span>- </span>- </button>-- <button- type="button"- aria-label={t("startScreen.removeRecent", { name: project.name })}- title={t("startScreen.removeRecentHint")}- onClick={() => void forget(project)}- className="invisible shrink-0 cursor-pointer rounded p-1 text-tertiary- transition-colors hover:bg-active hover:text-primary- group-hover:visible"- >- <Icon name="close" size={12} />- </button>- </li>- ))}- </ul>- </section>- )}- </div>- </div>- );-}--/**- * A project's poster frame: a frame from the earliest clip of its timeline,- * generated and cached by the host. A project with nothing visual on it - or- * whose media has moved - falls back to a quiet film icon rather than an- * error; the launch screen is not the place to complain about footage.- */-function ProjectThumb({ project }: { project: ProjectInfo }) {- const [poster, setPoster] = useState<string | null>(null);-- useEffect(() => {- let url: string | null = null;- let cancelled = false;- void projectPreview(project.path)- .then((bytes) => {- if (cancelled) return;- url = URL.createObjectURL(new Blob([bytes], { type: "image/jpeg" }));- setPoster(url);- })- .catch(() => undefined);- return () => {- cancelled = true;- if (url) URL.revokeObjectURL(url);- };- }, [project.path]);-- return (- <span- className="relative block aspect-video w-24 shrink-0 overflow-hidden rounded-lg bg-sunken- ring-1 ring-hairline"- >- {poster ? (- <img src={poster} alt="" draggable={false} className="h-full w-full object-cover" />- ) : (- <span className="absolute inset-0 flex items-center justify-center text-tertiary">- <Icon name="film" size={16} strokeWidth={1.5} />- </span>- )}- </span>- );-}--/** The decimal rate is derived, never stored - the fraction is the truth. */-function toSession(project: ProjectInfo): ProjectSession {- return {- name: project.name,- path: project.path,- width: project.width,- height: project.height,- frameRate: project.rateNum / project.rateDen,- rateNum: project.rateNum,- rateDen: project.rateDen,- };-}--/** A labelled row separated by a hairline, in the style of a settings list. */-function Field({- label,- children,- last = false,-}: {- label: string;- children: ReactNode;- last?: boolean;-}) {- return (- <div- className={`grid grid-cols-[7rem_minmax(0,1fr)] items-baseline gap-4 py-4 ${- last ? "" : "border-b border-hairline"- }`}- >- <span className="text-[13px] text-secondary">{label}</span>- <div className="min-w-0">{children}</div>- </div>- );-}--/**- * An Apple-style segmented control: one recessed track with a raised pill- * marking the selection, rather than a row of separate buttons.- */-function Segmented({- options,- value,- onChange,-}: {- options: readonly string[];- value: string;- onChange: (value: string) => void;-}) {- return (- <div- role="radiogroup"- className="inline-flex rounded-lg bg-sunken p-0.5"- >- {options.map((option) => (- <button- key={option}- type="button"- role="radio"- aria-checked={option === value}- onClick={() => onChange(option)}- className={`cursor-pointer rounded-[6px] px-3.5 py-1 text-[13px] transition-colors ${- option === value- ? "bg-panel text-primary shadow-[0_1px_2px_rgba(0,0,0,0.14)]"- : "text-secondary hover:text-primary"- }`}- >- {option}- </button>- ))}- </div>- );-}diff --git a/desktop/src/components/TemplateThumb.tsx b/desktop/src/components/TemplateThumb.tsxdeleted file mode 100644index 1f26c3e2..00000000--- a/desktop/src/components/TemplateThumb.tsx+++ /dev/null@@ -1,49 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useState } from "react";--import { templatePoster, type TemplateInfo } from "../lib/engine";-import { Icon } from "./Icon";--/**- * A template's poster, saved into the bundle when the template was. Shared by- * the launch screen's gallery and the bin's Templates tab, so a template looks- * like itself everywhere. The same quiet fallback as project thumbnails: a- * slot icon, never an error.- */-export function TemplateThumb({ template }: { template: TemplateInfo }) {- const [poster, setPoster] = useState<string | null>(null);-- useEffect(() => {- if (!template.hasPoster) return;- let url: string | null = null;- let cancelled = false;- void templatePoster(template.path)- .then((bytes) => {- if (cancelled) return;- url = URL.createObjectURL(new Blob([bytes], { type: "image/jpeg" }));- setPoster(url);- })- .catch(() => undefined);- return () => {- cancelled = true;- if (url) URL.revokeObjectURL(url);- };- }, [template.path, template.hasPoster]);-- return (- <span- className="relative block aspect-video w-full overflow-hidden rounded-lg bg-sunken- ring-1 ring-hairline transition-shadow group-hover:ring-hairline-strong"- >- {poster ? (- <img src={poster} alt="" draggable={false} className="h-full w-full object-cover" />- ) : (- <span className="absolute inset-0 flex items-center justify-center text-tertiary">- <Icon name="slot" size={18} strokeWidth={1.5} />- </span>- )}- </span>- );-}diff --git a/desktop/src/components/TextPanel.tsx b/desktop/src/components/TextPanel.tsxdeleted file mode 100644index 89ac3fa4..00000000--- a/desktop/src/components/TextPanel.tsx+++ /dev/null@@ -1,401 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useState } from "react";--import type { Clip, CustomFont } from "../lib/editor";-import { t, useLocale } from "../lib/i18n";-import { FONTS, textCss, WEIGHTS, type TextStyle } from "../lib/text";-import { Icon } from "./Icon";-import { clamp } from "./inspector/base";-import {- ColourField,- HelpButton,- Note,- Param,- Row,- Section,- SwitchRow,-} from "./inspector/controls";-import { SegmentedControl, Select, type SelectOption } from "./inspector/fields";-import styles from "./inspector/inspector.module.css";-import { Empty } from "./Panel";--/**- * The Text tab: everything about how a title looks.- *- * Sizes are fractions of the frame rather than points, so a title composed- * against a 1080p project lands in the same place when the same project is- * exported at 4K. The panel converts for display - nobody thinks in "0.09 of- * the frame height" - but the stored value stays relative.- *- * The preview overlay and the export rasteriser both read these numbers- * through `textCss`, so what is on screen is what gets burned in.- *- * This is the first panel on the new inspector chrome in `./inspector`:- * hairline sections instead of shouty group headings, faders paired with a- * scrubbable field, and a specimen of the title pinned to the top. The- * settings and their bounds are unchanged - only the way they are handled is.- */--/** Bounds shared with the monitor's corner drag; see Preview.tsx. */-const MIN_FONT_SIZE = 0.02;-const MAX_FONT_SIZE = 0.4;--/*- * The specimen's scale.- *- * A fraction of the frame height means nothing in a 62px strip, so the sample- * reads the size against a nominal surface and then holds the result to- * something legible. The monitor beside this panel is the truth for scale and- * placement; the specimen is here to judge face, weight, colour and outline.- */-const SAMPLE_SURFACE = 190;-const SAMPLE_MIN = 11;-const SAMPLE_MAX = 34;--export function TextPanel({- clip,- fonts,- onChange,- onCommit,- onAddFont,- onRemoveFont,-}: {- clip: Clip | null;- /** The project's custom fonts, with the UI's missing-file marks applied. */- fonts: CustomFont[];- /** Live change - echoed locally while the gesture is in flight. */- onChange: (patch: Partial<Clip>) => void;- /** Gesture finished - the accumulated change becomes one engine command. */- onCommit: () => void;- onAddFont: () => void;- onRemoveFont: (family: string) => void;-}) {- const { t } = useLocale();- const [shadowHelp, setShadowHelp] = useState(false);- const [plateHelp, setPlateHelp] = useState(false);-- if (!clip || clip.kind !== "text" || !clip.text) {- return (- <Empty icon={<Icon name="type" size={26} strokeWidth={1.5} />}>- {t("textPanel.empty")}- </Empty>- );- }-- const style = clip.text;-- // Every edit rewrites the whole style, and the clip's name follows the first- // line so the timeline label tracks the words without a second control.- const set = (patch: Partial<TextStyle>) => {- const next = { ...style, ...patch };- onChange(- patch.content === undefined- ? { text: next }- : { text: next, name: firstLineOf(patch.content) },- );- };-- // Discrete controls commit immediately; faders and the textarea echo live- // and commit on release or blur.- const commitSet = (patch: Partial<TextStyle>) => {- set(patch);- onCommit();- };-- const commitClip = (patch: Partial<Clip>) => {- onChange(patch);- onCommit();- };-- const families: SelectOption<string>[] = [- ...FONTS.filter((font) => font.bundled).map((font) => ({- value: font.value,- label: font.label,- group: t("textPanel.bundled"),- fontFamily: font.value,- })),- ...fonts.map((font) => ({- value: `"${font.family}"`,- label: font.family,- note: font.missing ? t("textPanel.fileMissing") : undefined,- group: t("textPanel.yours"),- // A missing face has nothing to draw itself in, so its row stays in the- // panel's own type rather than silently borrowing the fallback's.- fontFamily: font.missing ? undefined : `"${font.family}"`,- })),- ...FONTS.filter((font) => !font.bundled).map((font) => ({- value: font.value,- label: font.label,- group: t("textPanel.system"),- fontFamily: font.value,- })),- ];-- // The specimen is scaled to be readable rather than true, so the plate and- // the outline - which `textCss` derives from the size - stay in proportion- // to what is drawn instead of to the frame.- const samplePx = clamp(style.fontSize * SAMPLE_SURFACE, SAMPLE_MIN, SAMPLE_MAX);- const sample = textCss(style, samplePx / Math.max(style.fontSize, 0.001));-- return (- <div className={styles.kit}>- <div- className={styles.sample}- style={{- justifyContent:- style.align === "left" ? "flex-start" : style.align === "right" ? "flex-end" : "center",- }}- >- {style.content.trim() === "" ? (- <span className={styles.samplePlaceholder}>{t("textPanel.placeholder")}</span>- ) : (- <span- className={styles.sampleText}- style={{ ...sample, display: "inline-block", whiteSpace: "nowrap" }}- >- {style.content}- </span>- )}- </div>-- <Section title={t("textPanel.content")}>- <Row stack>- <textarea- className={styles.textarea}- value={style.content}- spellCheck={false}- aria-label={t("textPanel.content")}- placeholder={t("textPanel.placeholder")}- onChange={(event) => set({ content: event.target.value })}- onBlur={onCommit}- />- </Row>- </Section>-- <Section title={t("textPanel.font")}>- <Row stack>- <Select- options={families}- value={style.fontFamily}- onChange={(fontFamily) => commitSet({ fontFamily })}- aria-label={t("textPanel.font")}- />- </Row>-- <Row stack>- <button type="button" className={styles.dashed} onClick={onAddFont}>- <Icon name="import" size={12} />- {t("textPanel.addFontFile")}- </button>- </Row>-- {fonts.map((font) => (- <div key={font.family} className={styles.fontRow}>- <span- className={styles.fontName}- style={{ fontFamily: font.missing ? undefined : `"${font.family}"` }}- title={font.path}- >- {font.family}- </span>- <button- type="button"- className={styles.fontRemove}- aria-label={t("textPanel.removeFont", { name: font.family })}- onClick={() => onRemoveFont(font.family)}- >- <Icon name="close" size={11} />- </button>- </div>- ))}-- <Row stack>- <Select- options={WEIGHTS}- value={style.fontWeight}- onChange={(fontWeight) => commitSet({ fontWeight })}- aria-label={t("textPanel.weight")}- />- </Row>-- <Param- label={t("textPanel.size")}- value={style.fontSize}- min={MIN_FONT_SIZE}- max={MAX_FONT_SIZE}- step={0.005}- // Shown as a share of frame height, which is the thing it actually- // is. Points would be a lie: the frame can be any resolution.- format={(value) => t("textPanel.sizeOfHeight", { value: (value * 100).toFixed(1) })}- onChange={(fontSize) => set({ fontSize })}- onCommit={onCommit}- onReset={() => commitSet({ fontSize: 0.09 })}- />-- <SwitchRow- label={t("textPanel.italic")}- checked={style.italic}- onChange={(italic) => commitSet({ italic })}- />- </Section>-- <Section title={t("textPanel.colour")}>- <ColourField- label={t("textPanel.fill")}- value={style.color}- onChange={(color) => commitSet({ color })}- />-- <Param- label={t("textPanel.opacity")}- value={style.opacity}- min={0}- max={1}- step={0.01}- format={(value) => `${Math.round(value * 100)}%`}- onChange={(opacity) => set({ opacity })}- onCommit={onCommit}- onReset={() => commitSet({ opacity: 1 })}- />-- <SwitchRow- label={t("textPanel.dropShadow")}- checked={style.shadow}- onChange={(shadow) => commitSet({ shadow })}- help={- <HelpButton- label={t("textPanel.about", { name: t("textPanel.dropShadow") })}- open={shadowHelp}- onToggle={() => setShadowHelp((on) => !on)}- />- }- />- {shadowHelp && <Note>{t("textPanel.dropShadowHint")}</Note>}-- <SwitchRow- label={t("textPanel.plate")}- checked={style.background !== ""}- onChange={(on) => commitSet({ background: on ? "#000000" : "" })}- help={- <HelpButton- label={t("textPanel.about", { name: t("textPanel.plate") })}- open={plateHelp}- onToggle={() => setPlateHelp((on) => !on)}- />- }- />- {plateHelp && <Note>{t("textPanel.plateHint")}</Note>}- {style.background !== "" && (- <ColourField- label={t("textPanel.colour")}- name={t("textPanel.plateColour")}- value={style.background}- onChange={(background) => commitSet({ background })}- />- )}- </Section>-- <Section title={t("textPanel.outline")}>- <Param- label={t("textPanel.width")}- value={style.strokeWidth}- min={0}- max={0.15}- step={0.005}- format={(value) => (value === 0 ? t("textPanel.none") : `${(value * 100).toFixed(1)}%`)}- onChange={(strokeWidth) => set({ strokeWidth })}- onCommit={onCommit}- onReset={() => commitSet({ strokeWidth: 0 })}- />- {style.strokeWidth > 0 && (- <ColourField- label={t("textPanel.colour")}- name={t("textPanel.outlineColour")}- value={style.strokeColor}- onChange={(strokeColor) => commitSet({ strokeColor })}- />- )}- </Section>-- <Section title={t("textPanel.layout")}>- <Row stack>- <SegmentedControl- options={[- { value: "left" as const, label: t("textPanel.alignLeft") },- { value: "center" as const, label: t("textPanel.alignCenter") },- { value: "right" as const, label: t("textPanel.alignRight") },- ]}- value={style.align}- onChange={(align) => commitSet({ align })}- aria-label={t("textPanel.layout")}- />- </Row>-- <Param- label={t("textPanel.lineHeight")}- value={style.lineHeight}- min={0.8}- max={2.5}- step={0.05}- format={(value) => value.toFixed(2)}- onChange={(lineHeight) => set({ lineHeight })}- onCommit={onCommit}- onReset={() => commitSet({ lineHeight: 1.2 })}- />-- <Param- label={t("textPanel.tracking")}- value={style.tracking}- min={-0.1}- max={0.4}- step={0.005}- format={(value) => `${value >= 0 ? "+" : ""}${(value * 100).toFixed(1)}%`}- onChange={(tracking) => set({ tracking })}- onCommit={onCommit}- onReset={() => commitSet({ tracking: 0 })}- />- </Section>-- {/*- Offsets are fractions of the frame, and centred is zero - so the reset- on each is "put it back in the middle", and a title composed here sits- in the same place at any export resolution.- */}- <Section title={t("textPanel.position")}>- <Param- label={t("textPanel.horizontal")}- value={clip.offsetX}- min={-0.5}- max={0.5}- step={0.005}- format={centred}- onChange={(offsetX) => onChange({ offsetX })}- onCommit={onCommit}- onReset={() => commitClip({ offsetX: 0 })}- />- <Param- label={t("textPanel.vertical")}- value={clip.offsetY}- min={-0.5}- max={0.5}- step={0.005}- format={centred}- onChange={(offsetY) => onChange({ offsetY })}- onCommit={onCommit}- onReset={() => commitClip({ offsetY: 0 })}- />- </Section>- </div>- );-}--function centred(value: number): string {- return Math.abs(value) < 0.0025 ? t("textPanel.centred") : `${(value * 100).toFixed(1)}%`;-}--function firstLineOf(content: string): string {- const line = content.split("\n").find((candidate) => candidate.trim() !== "");- return (line ?? t("textPanel.defaultName")).trim().slice(0, 40) || t("textPanel.defaultName");-}diff --git a/desktop/src/components/TimelinePanel.tsx b/desktop/src/components/TimelinePanel.tsxdeleted file mode 100644index dadecd39..00000000--- a/desktop/src/components/TimelinePanel.tsx+++ /dev/null@@ -1,1799 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useEffect, useRef, useState } from "react";-import type {- PointerEvent as ReactPointerEvent,- WheelEvent as ReactWheelEvent,-} from "react";--import { subscribeAssets, type MediaAssets, type Peaks } from "../lib/assets";-import { themeColor, type Theme } from "../lib/theme";-import {- activeTimeline,- snapTime,- type Clip,- type ClipMove,- type EditorProject,- type TimelineMeta,- type Track,-} from "../lib/editor";-import { useLocale, type MsgKey } from "../lib/i18n";-import { timecode } from "../lib/time";-import { Icon, IconButton } from "./Icon";-import { Menu, type MenuOption } from "./Menu";-import { Bar, Divider, PANEL_SHELL, Spacer } from "./Panel";--export type Tool = "select" | "razor";--/** Geometry shared by the renderer and the hit tester, so they cannot disagree. */-const RULER_HEIGHT = 28;-/** Tall enough that a filmstrip frame and a waveform are both readable. */-const TRACK_HEIGHT = 64;-/** Marks the canvas so a drag in flight can find it. See `resolveDrop`. */-const CANVAS_MARKER = "data-wolfcut-timeline";-const HEADER_WIDTH = 164;-/** How close to a clip edge the pointer must be to grab it, in pixels. */-const EDGE_GRAB = 6;-/** How near the canvas edge a drag starts pulling the view along, in pixels. */-const EDGE_MARGIN = 56;-/** Top auto-scroll speed. Roughly 4.5 viewport-widths per second at 900px. */-const EDGE_MAX_PIXELS_PER_FRAME = 24;-/** Where the playhead is parked when playback scrolls the view, 0..1. */-const FOLLOW_ANCHOR = 0.1;--/**- * The canvas palette.- *- * Mutable, and deliberately so. Canvas cannot resolve `var(--color-x)` - it- * needs a concrete colour string - so these are copied out of the stylesheet- * whenever the theme changes and read straight from here by the draw loop.- * The initial values are only what shows for the one frame before the first- * refresh lands.- */-const COLORS = {- background: "#0d0d10",- ruler: "#131316",- trackOdd: "#0a0a0d",- trackEven: "#0d0d10",- hairline: "rgba(255,255,255,0.1)",- tickMajor: "rgba(255,255,255,0.2)",- text: "#6e6e73",- clipSelected: "#0a84ff",- clipText: "#ffffff",- playhead: "#ff453a",- dropZone: "rgba(10,132,255,0.18)",-};--/** Re-reads the canvas palette from the stylesheet. Cheap; call on theme change. */-function refreshCanvasPalette(): void {- COLORS.background = themeColor("timeline", COLORS.background);- COLORS.ruler = themeColor("ruler", COLORS.ruler);- COLORS.trackEven = themeColor("timeline", COLORS.trackEven);- COLORS.trackOdd = themeColor("timeline-alt", COLORS.trackOdd);- COLORS.hairline = themeColor("hairline", COLORS.hairline);- COLORS.tickMajor = themeColor("hairline-strong", COLORS.tickMajor);- COLORS.text = themeColor("secondary", COLORS.text);- COLORS.clipSelected = themeColor("accent", COLORS.clipSelected);- COLORS.clipText = themeColor("on-accent", COLORS.clipText);- COLORS.playhead = themeColor("playhead", COLORS.playhead);- COLORS.dropZone = themeColor("accent-soft", COLORS.dropZone);-- PALETTE.video.header = themeColor("clip-video", PALETTE.video.header);- PALETTE.video.body = themeColor("clip-video-body", PALETTE.video.body);- PALETTE.video.edge = PALETTE.video.header;- PALETTE.audio.header = themeColor("clip-audio", PALETTE.audio.header);- PALETTE.audio.body = themeColor("clip-audio-body", PALETTE.audio.body);- PALETTE.audio.edge = PALETTE.audio.header;- PALETTE.audio.wave = themeColor("clip-wave", PALETTE.audio.wave);- PALETTE.image.header = themeColor("clip-image", PALETTE.image.header);- PALETTE.image.body = themeColor("clip-image-body", PALETTE.image.body);- PALETTE.image.edge = PALETTE.image.header;- PALETTE.text.header = themeColor("clip-text", PALETTE.text.header);- PALETTE.text.body = themeColor("clip-text-body", PALETTE.text.body);- PALETTE.text.edge = PALETTE.text.header;-}--/** Where one clip sat when a move began, so the whole set moves rigidly. */-interface MoveOrigin {- clipId: string;- start: number;- row: number;-}--type DragState =- | { kind: "scrub" }- | {- kind: "marquee";- /** Canvas-relative, so the band survives the view scrolling under it. */- originX: number;- originY: number;- x: number;- y: number;- /** Shift held: add to the existing selection rather than replacing it. */- additive: boolean;- basis: readonly string[];- }- | {- kind: "move";- /** The clip actually grabbed; it is the one that snaps. */- primary: string;- /** Seconds between that clip's start and where it was grabbed. */- grab: number;- originRow: number;- origins: MoveOrigin[];- }- | { kind: "trimStart" | "trimEnd"; clipId: string };--export function TimelinePanel({- project,- playhead,- playing,- frameRate,- tool,- snap,- selectedClipIds,- secondsPerPixel,- scrollLeft,- trackScroll,- assets,- theme,- onToolChange,- onSnapChange,- onScrub,- onSelectClips,- onMoveClips,- onTrimClip,- onSplitAtPlayhead,- onMergeSelected,- mergeBlockedBecause,- onDeleteSelected,- mediaDrag,- onZoom,- onScroll,- onTrackScroll,- onFit,- onTrackFlag,- onAddTrack,- onRemoveTrack,- onRenameTrack,- onClipContextMenu,- clipTools,- onSelectTimeline,- onAddTimeline,- onRenameTimeline,- onMoveTimeline,- onRequestRemoveTimeline,- onGestureEnd,-}: {- project: EditorProject;- playhead: number;- /** Drives the view following the playhead during playback. */- playing: boolean;- frameRate: number;- tool: Tool;- snap: boolean;- selectedClipIds: readonly string[];- secondsPerPixel: number;- scrollLeft: number;- /** Vertical offset into the track stack, in pixels. */- trackScroll: number;- /** Waveform and filmstrip cache, read live from inside the draw loop. */- assets: MediaAssets;- /** Only used to know when to re-read the canvas palette. */- theme: Theme;- onToolChange: (tool: Tool) => void;- onSnapChange: (snap: boolean) => void;- onScrub: (seconds: number) => void;- onSelectClips: (clipIds: string[]) => void;- onMoveClips: (moves: ClipMove[]) => void;- onTrimClip: (clipId: string, edge: "start" | "end", delta: number) => void;- onSplitAtPlayhead: () => void;- onMergeSelected: () => void;- /** Null when the selection can be merged; otherwise why it cannot. */- mergeBlockedBecause: MsgKey | null;- onDeleteSelected: () => void;- /** A bin item currently being dragged, in client coordinates. */- mediaDrag: { x: number; y: number } | null;- onZoom: (factor: number, anchorSeconds?: number) => void;- onScroll: (seconds: number) => void;- onTrackScroll: (pixels: number) => void;- /** Receives the canvas width, which is the only place that knows it. */- onFit: (canvasWidth: number) => void;- onTrackFlag: (trackId: string, flag: "visible" | "muted", value: boolean) => void;- onAddTrack: () => void;- onRemoveTrack: (trackId: string) => void;- onRenameTrack: (trackId: string, name: string) => void;- onClipContextMenu: (clipId: string, x: number, y: number) => void;- /**- * The audio/video tools dropdown, as menu groups. Built by the app, which- * owns the selection logic; this panel only hangs it in the tray.- */- clipTools: MenuOption[][];- onSelectTimeline: (timelineId: string) => void;- onAddTimeline: () => void;- onRenameTimeline: (timelineId: string, name: string) => void;- /** Drops a dragged tab at a new slot; the index counts the tab as removed. */- onMoveTimeline: (timelineId: string, index: number) => void;- /** Asks the app to confirm and delete; the panel never deletes directly. */- onRequestRemoveTimeline: (timelineId: string) => void;- /** A move or trim drag finished; the echoed change becomes one command. */- onGestureEnd: () => void;-}) {- const { t } = useLocale();- const canvasRef = useRef<HTMLCanvasElement>(null);- const drag = useRef<DragState | null>(null);- /** Last pointer position, replayed by the edge-scroll loop. */- const pointer = useRef<{ x: number; y: number } | null>(null);- /** Auto-scroll speed in pixels per frame; zero when not near an edge. */- const edgeSpeed = useRef(0);- /** Latest drag applier and scroll callback, for the frame loop to reach. */- const applyDragRef = useRef<(clientX: number, clientY: number) => void>(() => {});- const scrollRef = useRef(onScroll);- scrollRef.current = onScroll;- /** The header column, kept in step with the canvas's vertical offset. */- const headerScroll = useRef<HTMLDivElement>(null);- // The lane and clip set being drawn: the active timeline's.- const timeline = activeTimeline(project);- // Top-most track first on screen; the model stores them bottom-most first to- // match the engine's compositing order.- const rows: Track[] = [...timeline.tracks].reverse();-- // Which lane a dragged bin item would land on. Tracks are untyped, so any- // lane under the pointer is a valid target.- const dropTrack = (() => {- if (!mediaDrag) return null;- const canvas = canvasRef.current;- if (!canvas) return null;- const bounds = canvas.getBoundingClientRect();- if (mediaDrag.x < bounds.left || mediaDrag.x > bounds.right) return null;- const offsetY = mediaDrag.y - bounds.top - RULER_HEIGHT;- if (offsetY < 0) return null;- return rows[Math.floor((offsetY + trackScroll) / TRACK_HEIGHT)]?.id ?? null;- })();-- // Set membership is checked once per visible clip per frame; an array scan- // would be O(clips x selection).- const selected = new Set(selectedClipIds);-- // The draw loop reads everything through this ref, so a prop change never- // tears down and rebuilds the loop.- const view = useRef({ project, timeline, playhead, playing, secondsPerPixel, scrollLeft, trackScroll, frameRate, selected, rows, dropTrack, assets, tool });- view.current = { project, timeline, playhead, playing, secondsPerPixel, scrollLeft, trackScroll, frameRate, selected, rows, dropTrack, assets, tool };-- // Repaint only when something could have changed. Every render marks the- // canvas dirty (props are how state reaches it), pointer moves mark it- // (the cursor and razor guide draw without a render), artwork arrival- // marks it (thumbnails land outside React on purpose), and a live drag- // draws every frame regardless - edge auto-scroll happens inside draw.- // An idle editor previously repainted at full frame rate forever, which- // on a laptop is a battery tax for drawing the same pixels.- const dirty = useRef(true);- dirty.current = true;-- const timeAt = useCallback(- (clientX: number) => {- const canvas = canvasRef.current;- if (!canvas) return 0;- const bounds = canvas.getBoundingClientRect();- return Math.max(0, (clientX - bounds.left) * view.current.secondsPerPixel + view.current.scrollLeft);- },- [],- );-- const rowAt = useCallback((clientY: number) => {- const canvas = canvasRef.current;- if (!canvas) return null;- const bounds = canvas.getBoundingClientRect();- const y = clientY - bounds.top - RULER_HEIGHT;- if (y < 0) return null;- const index = Math.floor((y + view.current.trackScroll) / TRACK_HEIGHT);- return view.current.rows[index] ?? null;- }, []);-- const clipAt = useCallback(- (clientX: number, clientY: number): { clip: Clip; edge: "start" | "end" | null } | null => {- const track = rowAt(clientY);- if (!track) return null;- const time = timeAt(clientX);- const { timeline, secondsPerPixel } = view.current;-- // Later clips draw on top, so search back to front.- for (let index = timeline.clips.length - 1; index >= 0; index -= 1) {- const clip = timeline.clips[index];- if (clip.trackId !== track.id) continue;- if (time < clip.start || time > clip.start + clip.duration) continue;-- const grabSeconds = EDGE_GRAB * secondsPerPixel;- const edge =- time - clip.start < grabSeconds- ? "start"- : clip.start + clip.duration - time < grabSeconds- ? "end"- : null;- return { clip, edge };- }- return null;- },- [rowAt, timeAt],- );-- // ── drawing ──────────────────────────────────────────────────────────────- const draw = useCallback(() => {- const canvas = canvasRef.current;- const context = canvas?.getContext("2d", { alpha: false });- if (!canvas || !context) return;-- const state = view.current;- const ratio = window.devicePixelRatio || 1;- const width = canvas.clientWidth;- const height = canvas.clientHeight;- if (canvas.width !== Math.round(width * ratio) || canvas.height !== Math.round(height * ratio)) {- canvas.width = Math.max(1, Math.round(width * ratio));- canvas.height = Math.max(1, Math.round(height * ratio));- }- context.setTransform(ratio, 0, 0, ratio, 0, 0);-- // Keeping the playhead reachable, once per frame.- //- // Two cases, and dragging wins: while a drag is pulling at an edge the- // view travels with it and the drag is replayed at the new scroll offset,- // so the playhead stays glued to the pointer. Otherwise, during playback,- // the view pages along whenever the playhead leaves the visible span.- const span = width * state.secondsPerPixel;- if (drag.current && edgeSpeed.current !== 0 && pointer.current) {- scrollRef.current(Math.max(0, state.scrollLeft + edgeSpeed.current * state.secondsPerPixel));- applyDragRef.current(pointer.current.x, pointer.current.y);- } else if (- state.playing &&- (state.playhead < state.scrollLeft || state.playhead > state.scrollLeft + span)- ) {- scrollRef.current(Math.max(0, state.playhead - span * FOLLOW_ANCHOR));- }-- const toX = (seconds: number) => (seconds - state.scrollLeft) / state.secondsPerPixel;-- context.fillStyle = COLORS.background;- context.fillRect(0, 0, width, height);-- // Track bands.- state.rows.forEach((track, index) => {- const y = RULER_HEIGHT + index * TRACK_HEIGHT - state.trackScroll;- context.fillStyle = index % 2 === 0 ? COLORS.trackEven : COLORS.trackOdd;- context.fillRect(0, y, width, TRACK_HEIGHT);-- if (state.dropTrack === track.id) {- context.fillStyle = COLORS.dropZone;- context.fillRect(0, y, width, TRACK_HEIGHT);- }-- context.strokeStyle = COLORS.hairline;- context.beginPath();- context.moveTo(0, y + TRACK_HEIGHT - 0.5);- context.lineTo(width, y + TRACK_HEIGHT - 0.5);- context.stroke();- });-- drawRuler(context, width, state.scrollLeft, state.secondsPerPixel, state.frameRate);-- // Grid lines dropping out of the ruler.- const interval = tickInterval(state.secondsPerPixel);- context.strokeStyle = COLORS.hairline;- context.beginPath();- for (- let seconds = Math.ceil(state.scrollLeft / interval) * interval;- toX(seconds) < width;- seconds += interval- ) {- const x = Math.round(toX(seconds)) + 0.5;- context.moveTo(x, RULER_HEIGHT);- context.lineTo(x, height);- }- context.stroke();-- // Clips and the selection band are confined to the lane area: scrolled far- // enough, a clip would otherwise paint straight over the ruler.- context.save();- context.beginPath();- context.rect(0, RULER_HEIGHT, width, Math.max(0, height - RULER_HEIGHT));- context.clip();-- // Row index per track id, once per repaint - the loop below runs per- // clip per frame during playback, and a caption run puts hundreds of- // clips on the timeline.- const rowByTrack = new Map(state.rows.map((track, index) => [track.id, index]));- for (const clip of state.timeline.clips) {- const rowIndex = rowByTrack.get(clip.trackId) ?? -1;- if (rowIndex < 0) continue;-- const x = toX(clip.start);- const clipWidth = clip.duration / state.secondsPerPixel;- if (x + clipWidth < 0 || x > width) continue;-- drawClip(- context,- clip,- x,- RULER_HEIGHT + rowIndex * TRACK_HEIGHT - state.trackScroll,- clipWidth,- state.selected.has(clip.id),- state.assets,- state.secondsPerPixel,- );- }-- // Razor guide: a dashed line at the pointer, but only while it is over a- // clip. Showing it in empty space would promise a cut that does nothing.- if (state.tool === "razor" && pointer.current && !drag.current) {- const canvas = canvasRef.current;- const bounds = canvas?.getBoundingClientRect();- if (bounds) {- const localX = pointer.current.x - bounds.left;- const localY = pointer.current.y - bounds.top;- const time = localX * state.secondsPerPixel + state.scrollLeft;- const rowIndex = Math.floor((localY - RULER_HEIGHT + state.trackScroll) / TRACK_HEIGHT);- const track = state.rows[rowIndex];-- const overClip =- localY > RULER_HEIGHT &&- track !== undefined &&- state.timeline.clips.some(- (clip) =>- clip.trackId === track.id && time > clip.start && time < clip.start + clip.duration,- );-- if (overClip) {- const guide = Math.round(localX) + 0.5;- context.save();- context.strokeStyle = COLORS.playhead;- context.lineWidth = 1;- context.setLineDash([4, 3]);- context.beginPath();- context.moveTo(guide, RULER_HEIGHT);- context.lineTo(guide, height);- context.stroke();- context.restore();- }- }- }-- // The selection band, drawn over the clips it is catching. Palette- // colours like every other mark on this canvas - these were the only- // two that bypassed the theme.- if (drag.current?.kind === "marquee") {- const band = normalise(drag.current);- context.fillStyle = COLORS.dropZone;- context.fillRect(band.x, band.y, band.width, band.height);- context.strokeStyle = COLORS.clipSelected;- context.lineWidth = 1;- context.strokeRect(- Math.round(band.x) + 0.5,- Math.round(band.y) + 0.5,- Math.round(band.width),- Math.round(band.height),- );- }-- context.restore();-- drawPlayhead(context, height, toX(state.playhead));- }, []);-- // Scrolling the canvas moves the headers. Guarded, because assigning- // scrollTop fires onScroll again and the two would chase each other.- useEffect(() => {- const element = headerScroll.current;- if (element && Math.abs(element.scrollTop - trackScroll) > 0.5) {- element.scrollTop = trackScroll;- }- }, [trackScroll]);-- // The stylesheet has already been applied by the time this runs, so the- // computed values it reads are the new theme's.- useEffect(() => {- refreshCanvasPalette();- }, [theme]);-- useEffect(() => {- let frame = 0;- const tick = () => {- if (dirty.current || drag.current !== null || edgeSpeed.current !== 0) {- dirty.current = false;- draw();- }- frame = requestAnimationFrame(tick);- };- frame = requestAnimationFrame(tick);-- const canvas = canvasRef.current;- // Resize draws immediately: resizing clears the canvas, and waiting for- // the next tick would flash a blank frame.- const observer = new ResizeObserver(() => draw());- if (canvas) observer.observe(canvas);-- const unsubscribe = subscribeAssets(view.current.assets, () => {- dirty.current = true;- });-- return () => {- cancelAnimationFrame(frame);- observer.disconnect();- unsubscribe();- };- }, [draw]);-- // ── pointer interaction ──────────────────────────────────────────────────- const onPointerDown = (event: ReactPointerEvent<HTMLCanvasElement>) => {- if (event.button === 2) return; // handled by onContextMenu-- const canvas = event.currentTarget;- const bounds = canvas.getBoundingClientRect();- const overRuler = event.clientY - bounds.top < RULER_HEIGHT;- const hit = overRuler ? null : clipAt(event.clientX, event.clientY);-- canvas.setPointerCapture(event.pointerId);-- // The ruler is the scrub strip. Dragging in the track area draws a- // selection band instead, which is the convention every NLE shares and the- // only way marquee select and scrubbing can coexist on one surface.- if (overRuler) {- drag.current = { kind: "scrub" };- onScrub(timeAt(event.clientX));- return;- }-- if (hit && tool === "razor") {- // The razor cuts where you click, not where the playhead is.- onSelectClips([hit.clip.id]);- onScrub(timeAt(event.clientX));- window.setTimeout(onSplitAtPlayhead, 0);- return;- }-- if (hit) {- const alreadySelected = selectedClipIds.includes(hit.clip.id);-- // Shift toggles. Otherwise grabbing a clip that is already part of the- // selection keeps the whole set - so a multi-clip drag does not collapse- // to one clip the instant you touch it.- const next = event.shiftKey- ? alreadySelected- ? selectedClipIds.filter((id) => id !== hit.clip.id)- : [...selectedClipIds, hit.clip.id]- : alreadySelected- ? [...selectedClipIds]- : [hit.clip.id];-- onSelectClips(next);-- if (hit.edge && next.length <= 1) {- drag.current = {- kind: hit.edge === "start" ? "trimStart" : "trimEnd",- clipId: hit.clip.id,- };- return;- }-- const moving = next.includes(hit.clip.id) ? next : [hit.clip.id];- const originRow = rows.findIndex((track) => track.id === hit.clip.trackId);-- drag.current = {- kind: "move",- primary: hit.clip.id,- grab: timeAt(event.clientX) - hit.clip.start,- originRow,- origins: moving.flatMap((clipId) => {- const clip = timeline.clips.find((candidate) => candidate.id === clipId);- if (!clip) return [];- return [- {- clipId,- start: clip.start,- row: rows.findIndex((track) => track.id === clip.trackId),- },- ];- }),- };- return;- }-- // Empty track area: start a band.- drag.current = {- kind: "marquee",- originX: event.clientX - bounds.left,- originY: event.clientY - bounds.top,- x: event.clientX - bounds.left,- y: event.clientY - bounds.top,- additive: event.shiftKey,- basis: event.shiftKey ? [...selectedClipIds] : [],- };- if (!event.shiftKey) onSelectClips([]);- };-- /**- * Applies whatever drag is in flight at these client coordinates.- *- * Split out from the pointer handler because the edge-scroll loop replays it- * every frame from the last known pointer position - the pointer has stopped- * moving at the window edge, but the timeline underneath it has not.- */- const applyDrag = (clientX: number, clientY: number) => {- const state = drag.current;- if (!state) return;-- const time = timeAt(clientX);-- if (state.kind === "scrub") {- onScrub(time);- return;- }-- if (state.kind === "marquee") {- const canvas = canvasRef.current;- if (!canvas) return;- const bounds = canvas.getBoundingClientRect();- state.x = clientX - bounds.left;- state.y = clientY - bounds.top;- return;- }-- if (state.kind === "move") {- const primary = timeline.clips.find((candidate) => candidate.id === state.primary);- const anchor = state.origins.find((origin) => origin.clipId === state.primary);- if (!primary || !anchor) return;-- // Only the grabbed clip snaps; everything else keeps its offset from it,- // so the shape of a multi-clip selection is preserved exactly.- const raw = time - state.grab;- const snapped = snap- ? snapTime(project, raw, {- threshold: 8 * secondsPerPixel,- playhead,- exclude: primary.id,- })- : raw;-- const deltaTime = snapped - anchor.start;- const currentRow = rowAt(clientY)- ? rows.findIndex((track) => track.id === rowAt(clientY)?.id)- : anchor.row;- const deltaRow = currentRow - state.originRow;-- onMoveClips(- state.origins.flatMap((origin) => {- const row = Math.min(rows.length - 1, Math.max(0, origin.row + deltaRow));- const track = rows[row];- if (!track) return [];- return [- { clipId: origin.clipId, start: Math.max(0, origin.start + deltaTime), trackId: track.id },- ];- }),- );- return;- }-- const clip = timeline.clips.find((candidate) => candidate.id === state.clipId);- if (!clip) return;- if (state.kind === "trimStart") onTrimClip(clip.id, "start", time - clip.start);- if (state.kind === "trimEnd") onTrimClip(clip.id, "end", time - (clip.start + clip.duration));- };- applyDragRef.current = applyDrag;-- const onPointerMove = (event: ReactPointerEvent<HTMLCanvasElement>) => {- const canvas = event.currentTarget;- pointer.current = { x: event.clientX, y: event.clientY };- // The razor guide follows the pointer without a React render.- dirty.current = true;-- if (!drag.current) {- edgeSpeed.current = 0;- // Cursor feedback: the edges are grabbable, the body is draggable.- const hit = clipAt(event.clientX, event.clientY);- canvas.style.cursor =- tool === "razor" && hit- ? "crosshair"- : hit?.edge- ? "ew-resize"- : hit- ? "grab"- : "text";- return;- }-- // Drag the playhead (or a clip) toward either edge and the view starts- // travelling with it, so it cannot be parked somewhere off-screen and- // lost. Speed ramps with how far past the margin the pointer is.- const bounds = canvas.getBoundingClientRect();- const past =- event.clientX < bounds.left + EDGE_MARGIN- ? event.clientX - (bounds.left + EDGE_MARGIN)- : event.clientX > bounds.right - EDGE_MARGIN- ? event.clientX - (bounds.right - EDGE_MARGIN)- : 0;-- edgeSpeed.current =- Math.sign(past) * Math.min(Math.abs(past) / EDGE_MARGIN, 1) * EDGE_MAX_PIXELS_PER_FRAME;-- applyDrag(event.clientX, event.clientY);- };-- const endDrag = (event: ReactPointerEvent<HTMLCanvasElement>) => {- if (event.currentTarget.hasPointerCapture(event.pointerId)) {- event.currentTarget.releasePointerCapture(event.pointerId);- }-- const state = drag.current;- // A move or trim was echoing locally; releasing is what makes it real.- if (state?.kind === "move" || state?.kind === "trimStart" || state?.kind === "trimEnd") {- onGestureEnd();- }- if (state?.kind === "marquee") {- // Commit on release rather than live: selecting as the band sweeps looks- // busy and makes a mistaken sweep hard to back out of.- const band = normalise(state);- const caught = timeline.clips.filter((clip) => {- const rect = clipRect(clip, rows, secondsPerPixel, scrollLeft, trackScroll);- return rect !== null && intersects(band, rect);- });-- const ids = caught.map((clip) => clip.id);- onSelectClips(state.additive ? [...new Set([...state.basis, ...ids])] : ids);- }-- drag.current = null;- edgeSpeed.current = 0;- // An empty marquee that changed no selection triggers no render; the- // band still has to leave the screen.- dirty.current = true;- };-- const onWheel = (event: ReactWheelEvent<HTMLCanvasElement>) => {- if (event.ctrlKey || event.metaKey) {- onZoom(event.deltaY > 0 ? 1.15 : 1 / 1.15, timeAt(event.clientX));- return;- }-- // A trackpad's horizontal axis always pans time. Shift does the same for a- // wheel, which has no horizontal axis of its own. Everything else scrolls- // the track stack, which is what a plain wheel means in every other list.- if (event.deltaX !== 0 || event.shiftKey) {- const delta = (event.deltaX !== 0 ? event.deltaX : event.deltaY) * secondsPerPixel;- onScroll(Math.max(0, scrollLeft + delta));- return;- }-- onTrackScroll(clampTrackScroll(trackScroll + event.deltaY, rows.length, canvasRef.current));- };-- // ── timeline tab reorder ──────────────────────────────────────────────────- // A pointer drag on a tab, not HTML5 drag-and-drop: the webview's OS file- // drop handling owns that channel (see the bin drag in App for the same- // choice). Browser-tab behaviour: past a small threshold the pressed tab- // rides the pointer while its neighbours slide aside in real time, and- // letting go drops it into the gap it is hovering. A plain click still- // selects.- const tabStrip = useRef<HTMLDivElement>(null);- /** A drag in flight: which tab and how far the pointer has pulled it. */- const [tabDrag, setTabDrag] = useState<{ id: string; dx: number } | null>(null);- const tabPress = useRef<{ id: string; x: number; dragging: boolean } | null>(null);- /**- * The strip's geometry frozen at lift-off: every tab's box in the order- * they sat, plus the origin for converting into strip content pixels.- * Live rects would feed back - the neighbours move as they slide aside -- * so every slot decision measures against where the tabs *were*.- */- const tabRest = useRef<{- from: number;- origin: number;- lefts: number[];- widths: number[];- } | null>(null);- /** Swallows exactly one click: the one the browser fires after a drop. */- const tabDropped = useRef(false);- /** The flex gap between tabs (gap-0.5), part of the hole a tab leaves. */- const TAB_GAP = 2;-- const tabCentre = (rest: { lefts: number[]; widths: number[] }, i: number) =>- rest.lefts[i] + rest.widths[i] / 2;-- /** Where the lifted tab would land, counted with it removed from the row:- * how many resting neighbours its centre has passed to the left of. */- const tabSlotFor = (- rest: NonNullable<typeof tabRest.current>,- dx: number,- ): number => {- const centre = tabCentre(rest, rest.from) + dx;- return rest.lefts.filter((_, i) => i !== rest.from && tabCentre(rest, i) < centre)- .length;- };-- const onTabPointerDown = (timelineId: string, event: React.PointerEvent) => {- if (event.button !== 0) return;- event.currentTarget.setPointerCapture(event.pointerId);- tabPress.current = { id: timelineId, x: event.clientX, dragging: false };- };- const onTabPointerMove = (event: React.PointerEvent) => {- const press = tabPress.current;- if (!press) return;- if (!press.dragging) {- if (Math.abs(event.clientX - press.x) < 4) return;- const strip = tabStrip.current;- const tabs = strip- ? Array.from(strip.querySelectorAll<HTMLElement>('[role="tab"]'))- : [];- const from = project.timelines.findIndex((timeline) => timeline.id === press.id);- if (!strip || from === -1 || tabs.length !== project.timelines.length) return;- const rects = tabs.map((tab) => tab.getBoundingClientRect());- tabRest.current = {- from,- origin: strip.getBoundingClientRect().left - strip.scrollLeft,- lefts: rects.map((rect) => rect.left),- widths: rects.map((rect) => rect.width),- };- press.dragging = true;- // Rebase to lift-off so the tab does not jump the threshold distance.- press.x = event.clientX;- }- setTabDrag({ id: press.id, dx: event.clientX - press.x });- };- const onTabPointerUp = (event: React.PointerEvent) => {- const press = tabPress.current;- tabPress.current = null;- if (!press?.dragging) return;- setTabDrag(null);- tabDropped.current = true;- const rest = tabRest.current;- tabRest.current = null;- if (!rest) return;- // The slot is read from the saved geometry, never from the ref the- // line above just cleared - clearing first is how every drop once- // landed at index 0 no matter where the preview showed it.- const index = tabSlotFor(rest, event.clientX - press.x);- if (index !== rest.from) onMoveTimeline(press.id, index);- };- const selectUnlessDropped = (timelineId: string) => {- // Reordering must not also switch documents: the engine command leaves- // the selection alone, so the click that follows a drop is swallowed.- if (tabDropped.current) {- tabDropped.current = false;- return;- }- onSelectTimeline(timelineId);- };-- return (- <div className={PANEL_SHELL}>- {/*- The timeline tabs. One per timeline in the project, like sequences in- any other editor: the active one is what the canvas below, the preview- and the exporter all show. Kept above the tool bar so switching reads- as changing documents, not changing tools.- */}- <div- ref={tabStrip}- className="thin-scroll relative flex h-8 shrink-0 items-end gap-0.5 overflow-x-auto- overflow-y-hidden border-b border-hairline bg-sunken px-1.5 pt-1"- >- {project.timelines.map((timeline, index) => {- // While a drag is in flight the row is drawn as it will land: the- // lifted tab rides the pointer, and each neighbour the pointer has- // carried it past slides one tab-width towards the hole it left.- let slide: "lifted" | "aside" | null = null;- let shift = 0;- const rest = tabDrag ? tabRest.current : null;- if (tabDrag && rest) {- const centre = tabCentre(rest, rest.from) + tabDrag.dx;- const width = rest.widths[rest.from];- if (timeline.id === tabDrag.id) {- slide = "lifted";- shift = tabDrag.dx;- } else {- slide = "aside";- if (index > rest.from && centre > tabCentre(rest, index)) {- shift = -(width + TAB_GAP);- } else if (index < rest.from && centre < tabCentre(rest, index)) {- shift = width + TAB_GAP;- }- }- }- return (- <TimelineTab- key={timeline.id}- timeline={timeline}- active={timeline.id === project.activeTimelineId}- closable={project.timelines.length > 1}- slide={slide}- shift={shift}- onSelect={selectUnlessDropped}- onRename={onRenameTimeline}- onRequestRemove={onRequestRemoveTimeline}- onDragPointerDown={onTabPointerDown}- onDragPointerMove={onTabPointerMove}- onDragPointerUp={onTabPointerUp}- />- );- })}- {(() => {- // The drop marker: the same truth the drop uses, drawn as a line at- // the left edge of the hole the tab will land in. The live preview- // shows the shape of the row; the line pins down the exact slot.- const rest = tabDrag ? tabRest.current : null;- if (!tabDrag || !rest) return null;- const slot = tabSlotFor(rest, tabDrag.dx);- let edge = rest.lefts[0];- let counted = 0;- for (let i = 0; i < rest.widths.length && counted < slot; i += 1) {- if (i === rest.from) continue;- edge += rest.widths[i] + TAB_GAP;- counted += 1;- }- return (- <span- aria-hidden- className="pointer-events-none absolute bottom-0.5 top-1.5 z-20 w-0.5- rounded bg-accent"- style={{ left: edge - rest.origin - 2 }}- />- );- })()}- <span className="self-center">- <IconButton icon="plus" label={t("timeline.newTimeline")} size={7} onClick={onAddTimeline} />- </span>- </div>-- <Bar>- <IconButton- icon="select"- label={t("timeline.selectTool")}- active={tool === "select"}- onClick={() => onToolChange("select")}- />- <IconButton- icon="razor"- label={t("timeline.razorTool")}- active={tool === "razor"}- onClick={() => onToolChange("razor")}- />- <Divider />- <IconButton icon="split" label={t("timeline.split")} onClick={onSplitAtPlayhead} />- <IconButton- icon="merge"- // The reason lives in the tooltip: a button that greys out without- // saying why leaves you guessing at the rule.- label={mergeBlockedBecause ? t(mergeBlockedBecause) : t("timeline.merge")}- disabled={mergeBlockedBecause !== null}- onClick={onMergeSelected}- />- <IconButton- icon="trash"- label={- selectedClipIds.length > 1- ? t("timeline.deleteClips", { count: selectedClipIds.length })- : t("timeline.deleteSelected")- }- tone="danger"- disabled={selectedClipIds.length === 0}- onClick={onDeleteSelected}- />- {selectedClipIds.length > 1 && (- <span className="px-1 font-technical text-[10px] text-accent">- {selectedClipIds.length}- </span>- )}- <Divider />- <IconButton- icon="magnet"- label={t("timeline.snapping")}- active={snap}- onClick={() => onSnapChange(!snap)}- />- {/* Only while the selected clip has tools to offer - sound to detach- or transcribe, or a title's text to speak. A menu of grey rows- teaches nothing. */}- {clipTools.length > 0 && (- <>- <Divider />- <Menu- groups={clipTools}- trigger={(open) => (- <span- title={t("timeline.avTools")}- className={`flex h-9 items-center gap-0.5 rounded-lg px-1.5 transition-colors- duration-150 ${- open- ? "bg-tool-active-bg text-tool-active"- : "text-primary hover:bg-hover"- }`}- >- <Icon name="waveform" size={16} />- <Icon name="chevronDown" size={11} />- </span>- )}- />- </>- )}- <Divider />- <IconButton icon="plus" label={t("timeline.addTrack")} onClick={onAddTrack} />-- <Spacer />-- {/* Fixed width for the same reason: without it the zoom controls to- its right shuffle every time the frame digits change. */}- <span className="w-30 px-2 text-right font-mono text-[10px] tabular-nums text-tertiary">- {timecode(playhead, frameRate)}- </span>- <Divider />- <IconButton- icon="fit"- label={t("timeline.fit")}- onClick={() => onFit(canvasRef.current?.clientWidth ?? 0)}- />- <IconButton icon="minus" label={t("timeline.zoomOut")} size={7} onClick={() => onZoom(1.4)} />- <IconButton- icon="plus"- label={t("timeline.zoomIn")}- size={7}- onClick={() => onZoom(1 / 1.4)}- />- </Bar>-- <div className="flex min-h-0 flex-1">- <div- className="flex shrink-0 flex-col border-r border-hairline"- style={{ width: HEADER_WIDTH }}- >- {/* Sits opposite the ruler and does not scroll with the lanes. */}- <div className="shrink-0 border-b border-hairline" style={{ height: RULER_HEIGHT }} />-- {/*- The headers are a real scroll container, so the native scrollbar and- trackpad both drive the track stack. Its offset is pushed up to the- canvas rather than the two keeping separate positions - one source- of truth is the only way the lanes and their labels stay aligned.- */}- <div- ref={headerScroll}- onScroll={(event) => onTrackScroll(event.currentTarget.scrollTop)}- className="thin-scroll min-h-0 flex-1 overflow-y-auto overflow-x-hidden"- >- {rows.map((track) => (- <TrackHeader- key={track.id}- track={track}- removable={rows.length > 1}- onFlag={onTrackFlag}- onRemove={onRemoveTrack}- onRename={onRenameTrack}- />- ))}- </div>- </div>-- <canvas- ref={canvasRef}- {...{ [CANVAS_MARKER]: true }}- className="min-w-0 flex-1"- onPointerDown={onPointerDown}- onPointerMove={onPointerMove}- onPointerUp={endDrag}- onPointerCancel={endDrag}- onWheel={onWheel}- onContextMenu={(event) => {- event.preventDefault();- const hit = clipAt(event.clientX, event.clientY);- if (hit) onClipContextMenu(hit.clip.id, event.clientX, event.clientY);- }}- />- </div>- </div>- );-}--/**- * One timeline tab.- *- * Click switches, double-click renames in place (the same commit-on-blur rule- * as a track rename), and the close button asks the app to confirm - deleting- * a timeline throws away every clip on it, so the panel never does it- * directly.- */-function TimelineTab({- timeline,- active,- closable,- slide,- shift,- onSelect,- onRename,- onRequestRemove,- onDragPointerDown,- onDragPointerMove,- onDragPointerUp,-}: {- timeline: TimelineMeta;- active: boolean;- closable: boolean;- /**- * This tab's part in a reorder drag: "lifted" rides the pointer raw -- * easing there would make it lag the hand - while "aside" neighbours- * ease between their slots. Null when nothing is being dragged.- */- slide: "lifted" | "aside" | null;- /** Horizontal offset in pixels for the drag being drawn. */- shift: number;- onSelect: (timelineId: string) => void;- onRename: (timelineId: string, name: string) => void;- onRequestRemove: (timelineId: string) => void;- onDragPointerDown: (timelineId: string, event: React.PointerEvent) => void;- onDragPointerMove: (event: React.PointerEvent) => void;- onDragPointerUp: (event: React.PointerEvent) => void;-}) {- const [renaming, setRenaming] = useState(false);- const { t } = useLocale();-- if (renaming) {- return (- <input- autoFocus- defaultValue={timeline.name}- spellCheck={false}- onFocus={(event) => event.currentTarget.select()}- onBlur={(event) => {- onRename(timeline.id, event.target.value);- setRenaming(false);- }}- onKeyDown={(event) => {- if (event.key === "Enter") event.currentTarget.blur();- if (event.key === "Escape") {- event.currentTarget.value = timeline.name;- event.currentTarget.blur();- }- }}- className="w-28 shrink-0 rounded bg-sunken px-1.5 py-0.5 text-xs text-primary- outline-none ring-1 ring-accent"- />- );- }-- return (- <span- role="tab"- aria-selected={active}- title={active ? timeline.name : t("timeline.switchTo", { name: timeline.name })}- onClick={() => onSelect(timeline.id)}- onDoubleClick={() => setRenaming(true)}- onPointerDown={(event) => onDragPointerDown(timeline.id, event)}- onPointerMove={onDragPointerMove}- onPointerUp={onDragPointerUp}- style={shift !== 0 || slide === "lifted" ? { transform: `translateX(${shift}px)` } : undefined}- // Browser-tab shape: rounded top only, and the active tab overlaps the- // strip's bottom border by a pixel with the panel's own background, so- // it reads as one surface with the tray below rather than a pill- // floating above it.- className={`group -mb-px flex max-w-44 shrink-0 cursor-pointer items-center gap-1- rounded-t-md px-2.5 py-1 text-xs ${- active- ? "border border-b-0 border-hairline bg-panel text-primary"- : "text-secondary hover:bg-hover hover:text-primary"- } ${- slide === "lifted"- ? "relative z-10 bg-panel shadow-[0_2px_10px_rgba(0,0,0,0.3)]"- : slide === "aside"- ? "transition-transform duration-150 ease-out"- : "transition-colors"- }`}- >- <span className="truncate">{timeline.name}</span>- {closable && (- <button- type="button"- aria-label={t("timeline.deleteNamed", { name: timeline.name })}- title={t("timeline.deleteNamed", { name: timeline.name })}- onClick={(event) => {- // The x must not also switch tabs: deleting an inactive timeline- // should not first drag the editor onto it.- event.stopPropagation();- onRequestRemove(timeline.id);- }}- className="invisible shrink-0 cursor-pointer rounded p-0.5 text-tertiary- transition-colors hover:bg-danger-soft hover:text-danger group-hover:visible"- >- <Icon name="close" size={10} />- </button>- )}- </span>- );-}--/**- * One lane's controls.- *- * Both a visibility and a mute toggle on every track, because a track is not- * typed - the same lane can be carrying a video clip and an mp3 side by side,- * and each needs its own switch.- */-function TrackHeader({- track,- removable,- onFlag,- onRemove,- onRename,-}: {- track: Track;- removable: boolean;- onFlag: (trackId: string, flag: "visible" | "muted", value: boolean) => void;- onRemove: (trackId: string) => void;- onRename: (trackId: string, name: string) => void;-}) {- const silent = !track.visible && track.muted;- const [renaming, setRenaming] = useState(false);- const { t } = useLocale();-- return (- <div- className="group flex items-center gap-0.5 border-b border-hairline px-2"- style={{ height: TRACK_HEIGHT }}- >- {renaming ? (- <input- autoFocus- defaultValue={track.name}- spellCheck={false}- onFocus={(event) => event.currentTarget.select()}- // Committing on blur means clicking away saves rather than discards,- // which is what every rename-in-place in this app should do.- onBlur={(event) => {- onRename(track.id, event.target.value);- setRenaming(false);- }}- onKeyDown={(event) => {- if (event.key === "Enter") event.currentTarget.blur();- if (event.key === "Escape") {- event.currentTarget.value = track.name;- event.currentTarget.blur();- }- }}- className="min-w-0 flex-1 rounded bg-sunken px-1 py-0.5 text-xs text-primary- outline-none ring-1 ring-accent"- />- ) : (- <span- onDoubleClick={() => setRenaming(true)}- title={t("timeline.renameHint")}- className={`min-w-0 flex-1 cursor-default truncate text-xs ${- silent ? "text-tertiary" : "text-primary"- }`}- >- {track.name}- </span>- )}-- {removable && !renaming && (- <button- type="button"- aria-label={t("timeline.removeTrack", { name: track.name })}- title={t("timeline.removeTrackHint", { name: track.name })}- onClick={() => onRemove(track.id)}- className="invisible shrink-0 cursor-pointer rounded p-1 text-tertiary transition-colors- hover:bg-danger-soft hover:text-danger group-hover:visible"- >- <Icon name="close" size={11} />- </button>- )}- <IconButton- icon={track.visible ? "eye" : "eyeOff"}- label={track.visible ? t("timeline.hideTrack") : t("timeline.showTrack")}- size={7}- active={!track.visible}- onClick={() => onFlag(track.id, "visible", !track.visible)}- />- <IconButton- icon={track.muted ? "volumeOff" : "volume"}- label={track.muted ? t("timeline.unmuteTrack") : t("timeline.muteTrack")}- size={7}- active={track.muted}- onClick={() => onFlag(track.id, "muted", !track.muted)}- />- </div>- );-}--/**- * Where a bin item dropped at these client coordinates would land.- *- * Lives here because this module owns the timeline's geometry, and returns- * null when the point is outside the canvas or above the first track - so the- * caller can simply do nothing.- */-export function resolveDrop(- clientX: number,- clientY: number,- {- tracks,- secondsPerPixel,- scrollLeft,- trackScroll,- }: { tracks: Track[]; secondsPerPixel: number; scrollLeft: number; trackScroll: number },-): { trackId: string; start: number } | null {- const canvas = document.querySelector<HTMLCanvasElement>(`[${CANVAS_MARKER}]`);- if (!canvas) return null;-- const bounds = canvas.getBoundingClientRect();- if (clientX < bounds.left || clientX > bounds.right) return null;- if (clientY < bounds.top || clientY > bounds.bottom) return null;-- const offsetY = clientY - bounds.top - RULER_HEIGHT;- if (offsetY < 0) return null;-- const rows = [...tracks].reverse();- const track = rows[Math.floor((offsetY + trackScroll) / TRACK_HEIGHT)];- if (!track) return null;-- return {- trackId: track.id,- start: Math.max(0, (clientX - bounds.left) * secondsPerPixel + scrollLeft),- };-}--/** Keeps the track stack from scrolling past its own contents. */-export function clampTrackScroll(- value: number,- trackCount: number,- canvas: HTMLCanvasElement | null,-): number {- const viewport = Math.max(0, (canvas?.clientHeight ?? 0) - RULER_HEIGHT);- const content = trackCount * TRACK_HEIGHT;- return Math.min(Math.max(0, content - viewport), Math.max(0, value));-}--interface Rect {- x: number;- y: number;- width: number;- height: number;-}--/** Where a clip sits on the canvas, or null if its track is gone. */-function clipRect(- clip: Clip,- rows: readonly Track[],- secondsPerPixel: number,- scrollLeft: number,- trackScroll: number,-): Rect | null {- const rowIndex = rows.findIndex((track) => track.id === clip.trackId);- if (rowIndex < 0) return null;- return {- x: (clip.start - scrollLeft) / secondsPerPixel,- y: RULER_HEIGHT + rowIndex * TRACK_HEIGHT - trackScroll,- width: clip.duration / secondsPerPixel,- height: TRACK_HEIGHT,- };-}--/** A drag band has a start and a current corner; this gives it a positive size. */-function normalise(band: { originX: number; originY: number; x: number; y: number }): Rect {- return {- x: Math.min(band.originX, band.x),- y: Math.min(band.originY, band.y),- width: Math.abs(band.x - band.originX),- height: Math.abs(band.y - band.originY),- };-}--/** Touching counts as intersecting, so a band brushing a clip catches it. */-function intersects(a: Rect, b: Rect): boolean {- return a.x < b.x + b.width && b.x < a.x + a.width && a.y < b.y + b.height && b.y < a.y + a.height;-}--/** Picks a tick spacing that keeps labels readable at any zoom. */-function tickInterval(secondsPerPixel: number): number {- const candidates = [1 / 30, 0.1, 0.25, 0.5, 1, 2, 5, 10, 15, 30, 60, 120, 300, 600, 1800, 3600];- return candidates.find((seconds) => seconds / secondsPerPixel >= 90) ?? candidates.at(-1)!;-}--function drawRuler(- context: CanvasRenderingContext2D,- width: number,- scrollLeft: number,- secondsPerPixel: number,- frameRate: number,-) {- context.fillStyle = COLORS.ruler;- context.fillRect(0, 0, width, RULER_HEIGHT);- context.strokeStyle = COLORS.hairline;- context.beginPath();- context.moveTo(0, RULER_HEIGHT - 0.5);- context.lineTo(width, RULER_HEIGHT - 0.5);- context.stroke();-- const interval = tickInterval(secondsPerPixel);- context.fillStyle = COLORS.text;- context.font = '10px "Cabinet Grotesk", system-ui, sans-serif';- context.textBaseline = "middle";-- for (- let seconds = Math.ceil(scrollLeft / interval) * interval;- (seconds - scrollLeft) / secondsPerPixel < width;- seconds += interval- ) {- const x = Math.round((seconds - scrollLeft) / secondsPerPixel) + 0.5;- context.strokeStyle = COLORS.tickMajor;- context.beginPath();- context.moveTo(x, RULER_HEIGHT - 7);- context.lineTo(x, RULER_HEIGHT);- context.stroke();- context.fillText(timecode(seconds, frameRate), x + 5, RULER_HEIGHT / 2 - 2);- }-}--/** Height of the coloured name strip at the top of every clip. */-const CLIP_HEADER = 17;-const LABEL_FONT = '11px "Cabinet Grotesk", system-ui, sans-serif';--/**- * Truncates text to fit, with an ellipsis.- *- * Canvas has no built-in equivalent of `text-overflow: ellipsis`. The- * `maxWidth` argument to `fillText` is not it - that *condenses* the glyphs to- * fit, which is what made long clip names look crushed rather than cut.- *- * Results are memoised because this runs for every visible clip on every- * frame, and `measureText` forces text shaping each time it is called.- */-const labelCache = new Map<string, string>();--function ellipsize(context: CanvasRenderingContext2D, text: string, maxWidth: number): string {- if (maxWidth <= 0) return "";-- // Quantise the width so that a clip being dragged does not miss the cache on- // every single frame.- const key = `${text}|${Math.round(maxWidth / 4)}`;- const cached = labelCache.get(key);- if (cached !== undefined) return cached;-- let result = text;- if (context.measureText(text).width > maxWidth) {- let low = 0;- let high = text.length;- while (low < high) {- const mid = Math.ceil((low + high) / 2);- if (context.measureText(`${text.slice(0, mid)}…`).width <= maxWidth) low = mid;- else high = mid - 1;- }- result = low > 0 ? `${text.slice(0, low)}…` : "";- }-- // Plain cap rather than a real LRU: names are few and short-lived enough- // that eviction order does not matter.- if (labelCache.size > 512) labelCache.clear();- labelCache.set(key, result);- return result;-}--/** Clip fills, refreshed alongside COLORS. See `refreshCanvasPalette`. */-const PALETTE = {- video: {- body: "#142640",- header: "#4d8df6",- edge: "#4d8df6",- },- audio: {- body: "#33220e",- header: "#f09e2f",- edge: "#f09e2f",- wave: "rgba(250,214,158,0.7)",- },- image: {- body: "#251a3d",- header: "#8b5cf6",- edge: "#8b5cf6",- },- // Rose, distinct from the three media kinds: a title is the one thing on- // the timeline that is not a file, and it should not be mistaken for one.- text: {- body: "#38131d",- header: "#e8355e",- edge: "#e8355e",- },-};--function drawClip(- context: CanvasRenderingContext2D,- clip: Clip,- x: number,- trackY: number,- width: number,- selected: boolean,- assets: MediaAssets,- secondsPerPixel: number,-) {- const y = trackY + 4;- const height = TRACK_HEIGHT - 10;- const drawWidth = Math.max(2, width);- const palette =- clip.kind === "video"- ? PALETTE.video- : clip.kind === "image"- ? PALETTE.image- : clip.kind === "text"- ? PALETTE.text- : PALETTE.audio;- const bodyY = y + CLIP_HEADER;- const bodyHeight = height - CLIP_HEADER;-- context.save();- // One clip path for the whole clip: artwork drawn inside it cannot bleed- // past the rounded corners, so no separate masking is needed per layer.- context.beginPath();- context.roundRect(x, y, drawWidth, height, 5);- context.clip();-- context.fillStyle = palette.body;- context.fillRect(x, y, drawWidth, height);-- if (bodyHeight > 4) {- if (clip.kind === "audio") {- const peaks = assets.peaks.get(clip.mediaId);- if (peaks) {- drawWaveform(context, peaks, clip, x, bodyY, drawWidth, bodyHeight, secondsPerPixel);- }- } else if (clip.kind === "text") {- // A title has no media to draw, so the body shows the words themselves -- // which is also the fastest way to tell two titles apart at a glance.- const words = clip.text?.content.replace(/\s+/g, " ").trim() ?? "";- if (words && drawWidth > 24) {- context.save();- context.font = LABEL_FONT;- context.fillStyle = "rgba(255,228,178,0.72)";- context.textBaseline = "middle";- context.fillText(- ellipsize(context, words, drawWidth - 14),- x + 7,- bodyY + bodyHeight / 2,- );- context.restore();- }- } else {- // Video and stills share this path: a still is cached as a one-frame- // filmstrip, so tiling it repeats the same picture along the clip.- const strip = assets.strips.get(clip.mediaId);- const frames = assets.stripFrames.get(clip.mediaId);- if (strip && frames) {- drawFilmstrip(context, strip, frames, x, bodyY, drawWidth, bodyHeight);- }- }- }-- if (clip.fadeIn > 0 || clip.fadeOut > 0) {- drawFades(context, clip, x, bodyY, drawWidth, bodyHeight, secondsPerPixel);- }-- context.fillStyle = palette.header;- context.fillRect(x, y, drawWidth, CLIP_HEADER);-- // An "fx" chip in the header when effects are live on the clip, so a styled- // clip is tellable from a plain one without opening a panel.- const liveEffects = clip.videoEffects.some((effect) => effect.enabled !== false);- const chipWidth = liveEffects && drawWidth > 60 ? 20 : 0;-- if (drawWidth > 30) {- context.fillStyle = COLORS.clipText;- context.font = LABEL_FONT;- context.textBaseline = "middle";- const label = ellipsize(context, clip.name, drawWidth - 14 - chipWidth);- if (label) context.fillText(label, x + 7, y + CLIP_HEADER / 2 + 0.5);- }-- if (chipWidth > 0) {- context.fillStyle = "rgba(0,0,0,0.35)";- context.beginPath();- context.roundRect(x + drawWidth - chipWidth + 2, y + 2.5, chipWidth - 6, CLIP_HEADER - 5, 3);- context.fill();- context.fillStyle = COLORS.clipText;- context.font = '9px "Cabinet Grotesk", system-ui, sans-serif';- context.fillText("fx", x + drawWidth - chipWidth + 6, y + CLIP_HEADER / 2 + 0.5);- }-- // A transition on the cut into this clip: a small wedge pair at the left- // edge, the mark every editor uses for "these two dissolve".- if (clip.transitionIn && drawWidth > 16) {- const size = Math.min(9, bodyHeight / 2);- const midY = bodyY + bodyHeight / 2;- context.fillStyle = "rgba(255,255,255,0.8)";- context.beginPath();- context.moveTo(x + 1, midY - size);- context.lineTo(x + 1 + size, midY);- context.lineTo(x + 1, midY + size);- context.closePath();- context.fill();- context.fillStyle = "rgba(255,255,255,0.45)";- context.beginPath();- context.moveTo(x + 1 + size, midY - size);- context.lineTo(x + 1, midY);- context.lineTo(x + 1 + size, midY + size);- context.closePath();- context.fill();- }-- context.restore();-- context.beginPath();- context.roundRect(x, y, drawWidth, height, 5);- context.strokeStyle = selected ? COLORS.clipSelected : palette.edge;- context.lineWidth = selected ? 2 : 1;- context.stroke();-}--/**- * Draws the fade ramps as wedges over the clip body.- *- * The shaded area is the part being attenuated and the bright line is the- * envelope itself - the same shape every editor draws, because it reads as- * "this much is being taken away" at a glance.- *- * On a video clip the wedge is confined to a band at the bottom. The fade is- * an *audio* property, and shading the picture would say it fades to black.- */-function drawFades(- context: CanvasRenderingContext2D,- clip: Clip,- x: number,- bodyY: number,- width: number,- bodyHeight: number,- secondsPerPixel: number,-) {- const band = clip.kind === "audio" ? bodyHeight : Math.min(10, bodyHeight);- const top = bodyY + bodyHeight - band;- const bottom = bodyY + bodyHeight;- if (band <= 1) return;-- context.save();- context.beginPath();- context.rect(x, top, width, band);- context.clip();-- const ramp = (seconds: number, fromLeft: boolean) => {- const span = Math.min(seconds / secondsPerPixel, width);- if (span < 1) return;-- const originX = fromLeft ? x : x + width;- const endX = fromLeft ? x + span : x + width - span;-- context.fillStyle = "rgba(0,0,0,0.42)";- context.beginPath();- context.moveTo(originX, top);- context.lineTo(endX, top);- context.lineTo(originX, bottom);- context.closePath();- context.fill();-- context.strokeStyle = "rgba(255,255,255,0.75)";- context.lineWidth = 1.5;- context.beginPath();- context.moveTo(originX, bottom);- context.lineTo(endX, top);- context.stroke();- };-- if (clip.fadeIn > 0) ramp(clip.fadeIn, true);- if (clip.fadeOut > 0) ramp(clip.fadeOut, false);-- context.restore();-}--/**- * Tiles frames from a single strip image across the clip body.- *- * Each frame is drawn at its natural aspect ratio for the available height,- * and which frame appears is chosen by how far along the clip it sits - so a- * long clip repeats frames rather than stretching four of them.- */-function drawFilmstrip(- context: CanvasRenderingContext2D,- strip: ImageBitmap,- frames: number,- x: number,- y: number,- width: number,- height: number,-) {- const tileWidth = strip.width / frames;- const drawWidth = height * (tileWidth / strip.height);- if (!Number.isFinite(drawWidth) || drawWidth <= 0) return;-- context.imageSmoothingQuality = "high";-- const columns = Math.ceil(width / drawWidth);- for (let column = 0; column < columns; column += 1) {- const fraction = columns > 1 ? column / (columns - 1) : 0;- const index = Math.min(frames - 1, Math.round(fraction * (frames - 1)));- context.drawImage(- strip,- index * tileWidth,- 0,- tileWidth,- strip.height,- x + column * drawWidth,- y,- drawWidth,- height,- );- }-}--/**- * Draws the cached peaks, mirrored about a centre line.- *- * Zoomed out, one pixel covers many buckets, so each column takes the extremes- * across its whole range - otherwise transients disappear and loud passages- * look quiet. The scan is capped at eight samples per column so that zooming- * all the way out stays cheap.- */-function drawWaveform(- context: CanvasRenderingContext2D,- peaks: Peaks,- clip: Clip,- x: number,- y: number,- width: number,- height: number,- secondsPerPixel: number,-) {- const centre = y + height / 2;- const half = height / 2 - 1;- // The drawn amplitude follows the clip's gain, so turning a clip up makes- // its waveform visibly taller. Clamped, because a boosted waveform that- // overflowed its clip would bleed into the lane above.- const gain = Math.max(0, clip.volume);- const perPixel = Math.max(1, Math.round(secondsPerPixel * peaks.bucketsPerSecond));- const stride = Math.max(1, Math.floor(perPixel / 8));-- context.fillStyle = PALETTE.audio.wave;- context.beginPath();-- for (let column = 0; column < width; column += 1) {- const from = Math.floor((clip.sourceStart + column * secondsPerPixel) * peaks.bucketsPerSecond);- if (from < 0 || from >= peaks.max.length) continue;- const to = Math.min(from + perPixel, peaks.max.length);-- let low = 0;- let high = 0;- for (let bucket = from; bucket < to; bucket += stride) {- if (peaks.min[bucket] < low) low = peaks.min[bucket];- if (peaks.max[bucket] > high) high = peaks.max[bucket];- }-- const top = centre - Math.min(1, high * gain) * half;- const bottom = centre - Math.max(-1, low * gain) * half;- context.rect(x + column, top, 1, Math.max(1, bottom - top));- }-- context.fill();-- context.strokeStyle = "rgba(255,255,255,0.18)";- context.lineWidth = 1;- context.beginPath();- context.moveTo(x, Math.round(centre) + 0.5);- context.lineTo(x + width, Math.round(centre) + 0.5);- context.stroke();-}--function drawPlayhead(context: CanvasRenderingContext2D, height: number, x: number) {- const position = Math.round(x) + 0.5;- context.strokeStyle = COLORS.playhead;- context.lineWidth = 1;- context.beginPath();- context.moveTo(position, 0);- context.lineTo(position, height);- context.stroke();-- context.fillStyle = COLORS.playhead;- context.beginPath();- context.moveTo(position - 5, 0);- context.lineTo(position + 5, 0);- context.lineTo(position, 9);- context.closePath();- context.fill();-}diff --git a/desktop/src/components/TitleBar.tsx b/desktop/src/components/TitleBar.tsxdeleted file mode 100644index ff25a0cd..00000000--- a/desktop/src/components/TitleBar.tsx+++ /dev/null@@ -1,208 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { memo, useEffect, useState } from "react";-import type { ReactNode } from "react";-import { isTauri } from "@tauri-apps/api/core";-import { getCurrentWindow } from "@tauri-apps/api/window";--import logo from "../assets/concat-logo.png";-import { useLocale } from "../lib/i18n";-import type { Theme } from "../lib/theme";-import { Icon } from "./Icon";-import { Menu, type MenuOption } from "./Menu";--/**- * The custom title bar.- *- * On Windows the window is undecorated (`decorations: false`), so this strip- * *is* the title bar: it carries the app menu, the project name and the window- * controls, and everything not otherwise interactive is a drag region.- *- * On macOS the native traffic lights are overlaid instead- * (`tauri.macos.conf.json` sets `titleBarStyle: "Overlay"`), because- * Windows-style controls on a Mac read as "ported, carelessly". The strip- * keeps everything else but drops its own window buttons and leaves room on- * the left for the traffic lights.- *- * `data-tauri-drag-region` is what makes an area draggable, and Tauri also- * gives it double-click-to-maximise for free. It has to be on the actual- * element under the pointer - a parent with the attribute does not delegate -- * which is why it appears on the spacers rather than only on the root.- *- * In a plain browser (`npm run dev` without the host) the window APIs are- * absent, so the controls hide themselves rather than throwing.- *- * Memoised: the editor re-renders at animation rate during playback and- * nothing up here depends on the playhead. App.tsx keeps `menus`, `actions`- * and the callbacks referentially stable so this actually holds.- */-export const TitleBar = memo(function TitleBar({- projectName,- menus,- status,- actions,- theme,- onToggleTheme,- onOpenSettings,-}: {- projectName: string;- menus: { label: string; groups: MenuOption[][] }[];- status?: string;- /** Sits to the left of the window controls, CapCut-style. */- actions?: ReactNode;- theme: Theme;- onToggleTheme: () => void;- /** Shows the settings gear beside the theme toggle when provided - the- * visible way in; the File menu entry remains for menu-first users. */- onOpenSettings?: () => void;-}) {- const [maximized, setMaximized] = useState(false);- const { t } = useLocale();- const native = isTauri();- const macOS = navigator.userAgent.includes("Mac");-- useEffect(() => {- if (!native) return;- const appWindow = getCurrentWindow();-- void appWindow.isMaximized().then(setMaximized);- // The window can also be maximised by dragging it to the top edge or by- // the double-click Tauri handles itself, so poll the real state on resize- // rather than tracking our own button presses.- const unlisten = appWindow.onResized(() => {- void appWindow.isMaximized().then(setMaximized);- });-- return () => {- void unlisten.then((stop) => stop());- };- }, [native]);-- const control = async (action: "minimize" | "toggle" | "close") => {- if (!native) return;- const appWindow = getCurrentWindow();- if (action === "minimize") await appWindow.minimize();- if (action === "toggle") await appWindow.toggleMaximize();- if (action === "close") await appWindow.close();- };-- return (- <header- data-tauri-drag-region- className={`flex h-8 shrink-0 items-center gap-1 border-b border-hairline bg-panel ${- macOS ? "pl-20 pr-1" : "pl-2"- }`}- >- <span className="flex items-center gap-1.5 pr-1" data-tauri-drag-region>- <img src={logo} alt="" className="pointer-events-none h-4 w-4" draggable={false} />- <span className="font-display text-[13px] font-bold tracking-tight text-primary">WolfCut</span>- </span>-- <nav className="flex items-center">- {menus.map((menu) => (- <Menu- key={menu.label}- groups={menu.groups}- trigger={(open) => (- <span- className={`rounded-md px-2 py-1 text-xs transition-colors ${- open ? "bg-active text-primary" : "text-secondary hover:bg-hover"- }`}- >- {menu.label}- </span>- )}- />- ))}- </nav>-- {/* Centre: the project name, absolutely placed so it stays centred in the- window rather than centred in whatever space the menus leave. */}- <div- data-tauri-drag-region- className="pointer-events-none absolute left-1/2 flex -translate-x-1/2 items-center gap-2"- >- <span className="text-xs text-secondary">{projectName}</span>- {status && <span className="font-technical text-[10px] text-tertiary">{status}</span>}- </div>-- <span className="h-full flex-1" data-tauri-drag-region />-- {onOpenSettings && (- <button- type="button"- title={t("settings.title")}- aria-label={t("titleBar.openSettings")}- onClick={onOpenSettings}- className="flex h-6 w-6 cursor-pointer items-center justify-center rounded-md- text-secondary transition-colors hover:bg-hover hover:text-primary"- >- <Icon name="settings" size={14} />- </button>- )}-- <button- type="button"- title={theme === "dark" ? t("titleBar.switchLight") : t("titleBar.switchDark")}- aria-label={- theme === "dark" ? t("titleBar.switchLightAria") : t("titleBar.switchDarkAria")- }- onClick={onToggleTheme}- className="mr-1 flex h-6 w-6 cursor-pointer items-center justify-center rounded-md- text-secondary transition-colors hover:bg-hover hover:text-primary"- >- <Icon name={theme === "dark" ? "sun" : "moon"} size={14} />- </button>-- {actions && <div className="flex items-center gap-1 pr-2">{actions}</div>}-- {native && !macOS && (- <div className="flex h-full items-stretch">- <WindowButton label={t("titleBar.minimise")} onClick={() => void control("minimize")}>- <Icon name="winMinimize" size={14} strokeWidth={1.5} />- </WindowButton>- <WindowButton- label={maximized ? t("titleBar.restore") : t("titleBar.maximise")}- onClick={() => void control("toggle")}- >- <Icon name={maximized ? "winRestore" : "winMaximize"} size={13} strokeWidth={1.5} />- </WindowButton>- <WindowButton label={t("common.close")} onClick={() => void control("close")} danger>- <Icon name="close" size={15} strokeWidth={1.5} />- </WindowButton>- </div>- )}- </header>- );-});--/**- * Window controls are wider than they are tall and reach the very top edge, so- * that throwing the pointer at the corner hits Close. They are not `IconButton`- * for that reason - the rounded 36px square would break the corner target.- */-function WindowButton({- label,- onClick,- danger = false,- children,-}: {- label: string;- onClick: () => void;- danger?: boolean;- children: ReactNode;-}) {- return (- <button- type="button"- title={label}- aria-label={label}- onClick={onClick}- className={`flex w-11 cursor-pointer items-center justify-center text-secondary transition-colors- ${danger ? "hover:bg-danger hover:text-on-accent" : "hover:bg-hover hover:text-primary"}`}- >- {children}- </button>- );-}diff --git a/desktop/src/components/Toast.tsx b/desktop/src/components/Toast.tsxdeleted file mode 100644index 83ab869c..00000000--- a/desktop/src/components/Toast.tsx+++ /dev/null@@ -1,73 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useState } from "react";--import { Icon } from "./Icon";--/**- * The bottom-right notice.- *- * Rises in, holds, sinks out - plain CSS transitions, no animation library.- * Errors hold long enough to actually be read; confirmations only need a- * glance. Until this existed the toast just appeared and then sat there- * forever, which made every error look current long after it was history.- */-const HOLD_FAILED_MS = 6500;-const HOLD_OK_MS = 3500;-/** Must match the leaving duration-[] class below. */-const LEAVE_MS = 420;--export function Toast({- toast,- onDone,-}: {- toast: { id: number; message: string; failed: boolean };- onDone: (id: number) => void;-}) {- // "enter" is the single pre-paint frame at the risen toast's start- // position; the browser has to paint it before the move to "shown" can- // animate rather than teleport - hence the double rAF.- const [phase, setPhase] = useState<"enter" | "shown" | "leaving">("enter");-- useEffect(() => {- const raise = requestAnimationFrame(() =>- requestAnimationFrame(() => setPhase("shown")),- );- const hold = window.setTimeout(- () => setPhase("leaving"),- toast.failed ? HOLD_FAILED_MS : HOLD_OK_MS,- );- return () => {- cancelAnimationFrame(raise);- clearTimeout(hold);- };- }, [toast.id, toast.failed]);-- useEffect(() => {- if (phase !== "leaving") return;- const gone = window.setTimeout(() => onDone(toast.id), LEAVE_MS);- return () => clearTimeout(gone);- }, [phase, toast.id, onDone]);-- return (- <div- role="status"- className={`surface fixed bottom-4 right-4 z-50 flex items-center gap-2 rounded-xl- px-3 py-2 text-xs transition-all ease-out- ${toast.failed ? "text-danger" : "text-primary"}- ${- phase === "shown"- ? "translate-y-0 opacity-100 duration-[260ms]"- : "translate-y-3 opacity-0 duration-[420ms]"- }`}- >- <Icon- name={toast.failed ? "close" : "check"}- size={13}- className={toast.failed ? "" : "text-success"}- />- {toast.message}- </div>- );-}diff --git a/desktop/src/components/TtsDialog.tsx b/desktop/src/components/TtsDialog.tsxdeleted file mode 100644index 1e536423..00000000--- a/desktop/src/components/TtsDialog.tsx+++ /dev/null@@ -1,362 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useRef, useState } from "react";-import type { ReactNode } from "react";--import {- cancelSpeak,- cancelTtsModelDownload,- downloadTtsModel,- onSpeakProgress,- onTtsDownload,- speakText,- ttsStatus,- type TtsStatus,- type TtsVoice,-} from "../lib/engine";-import { useLocale, type MsgKey } from "../lib/i18n";-import { getTtsModel, getTtsVoice, setTtsVoice } from "../lib/settings";-import { ErrorNotice } from "./ErrorNotice";-import { Icon } from "./Icon";--/** Speaking-rate presets, in the terms a person picking one thinks in. */-const PACES: { labelKey: MsgKey; speed: number }[] = [- { labelKey: "tts.pace.slower", speed: 0.85 },- { labelKey: "tts.pace.natural", speed: 1.0 },- { labelKey: "tts.pace.faster", speed: 1.2 },-];--type Phase =- | { kind: "idle" }- | { kind: "running"; fraction: number }- | { kind: "failed"; message: string };--/**- * Decodes a Kokoro voice name's prefix - `af` American female, `bm` British- * male, `zf` Chinese female - into the keys of its picker group.- */-function voiceGroup(name: string): { accent: MsgKey; gender: MsgKey } | null {- const accent: Record<string, MsgKey> = {- a: "tts.accent.american",- b: "tts.accent.british",- z: "tts.accent.chinese",- };- const gender: Record<string, MsgKey> = {- f: "tts.gender.female",- m: "tts.gender.male",- };- const [prefix] = name.split("_");- const a = accent[prefix?.[0] ?? ""];- const g = gender[prefix?.[1] ?? ""];- return a && g ? { accent: a, gender: g } : null;-}--/** "af_heart" -> "Heart": the part after the prefix, title-cased. */-function voiceLabel(name: string): string {- const rest = name.split("_")[1] ?? name;- return rest.charAt(0).toUpperCase() + rest.slice(1);-}--/**- * The speech sheet: text in, a narration clip at the playhead out.- *- * Synthesis runs in the host and reports through an event, so this listens- * rather than waits - a paragraph takes long enough that a silent button- * reads as a hang. If the voice model is not on disk yet the sheet offers- * the download right here instead of sending the user to Settings first.- */-export function TtsDialog({- projectPath,- initialText,- onGenerated,- onClose,-}: {- /** The open project's folder - where the host writes the WAV. */- projectPath: string;- /** Prefills the text box - a title clip's content when spoken from one. */- initialText?: string;- /** Places the finished WAV on the timeline; throwing lands in the sheet's- * error notice. The sheet closes itself afterwards. */- onGenerated: (path: string, duration: number) => Promise<void>;- onClose: () => void;-}) {- const { t } = useLocale();- const [text, setText] = useState(initialText ?? "");- const [voice, setVoice] = useState(getTtsVoice());- const [speed, setSpeed] = useState(1.0);- const [phase, setPhase] = useState<Phase>({ kind: "idle" });- const [status, setStatus] = useState<TtsStatus | null>(null);- /** Fraction of the model download, or "unpacking", or null when idle. */- const [download, setDownload] = useState<{ fraction: number; unpacking: boolean } | null>(null);- const unlisten = useRef<(() => void)[]>([]);-- const model = getTtsModel();-- const refresh = () => {- ttsStatus()- .then(setStatus)- .catch((cause: unknown) => setPhase({ kind: "failed", message: String(cause) }));- };-- useEffect(() => {- const stops = unlisten.current;- refresh();- void onSpeakProgress(({ fraction }) => {- setPhase((current) => (current.kind === "running" ? { kind: "running", fraction } : current));- }).then((stop) => stops.push(stop));- void onTtsDownload((progress) => {- if (progress.done) {- setDownload(null);- refresh();- } else {- setDownload({- fraction: progress.total > 0 ? progress.received / progress.total : 0,- unpacking: progress.unpacking,- });- }- }).then((stop) => stops.push(stop));- return () => stops.forEach((stop) => stop());- }, []);-- // A remembered id that no longer names a known model (an old build's- // catalog, say) falls back to the first offered one instead of a dead sheet.- const entry =- status?.models.find((candidate) => candidate.id === model) ?? status?.models[0] ?? null;- const ready = entry?.downloaded ?? false;- const running = phase.kind === "running";-- /** Voices in picker order, grouped by accent and gender. */- const groups: { label: string; voices: TtsVoice[] }[] = [];- for (const candidate of status?.voices ?? []) {- const decoded = voiceGroup(candidate.name);- if (!decoded) continue;- const label = `${t(decoded.accent)} · ${t(decoded.gender)}`;- const group = groups.find((existing) => existing.label === label);- if (group) group.voices.push(candidate);- else groups.push({ label, voices: [candidate] });- }-- const fetchModel = () => {- if (!entry) return;- setDownload({ fraction: 0, unpacking: false });- downloadTtsModel(entry.id)- .then(() => {- setDownload(null);- refresh();- })- .catch((cause: unknown) => {- setDownload(null);- setPhase({ kind: "failed", message: String(cause) });- refresh();- });- };-- const generate = async () => {- if (running || !ready || !entry || !text.trim()) return;- setPhase({ kind: "running", fraction: 0 });- try {- const result = await speakText({- modelId: entry.id,- voice,- text: text.trim(),- speed,- project: projectPath,- });- await onGenerated(result.path, result.duration);- onClose();- } catch (cause) {- const message = String(cause);- // A cancel is the user's own decision, not a failure to report.- if (message.includes("cancelled")) setPhase({ kind: "idle" });- else setPhase({ kind: "failed", message });- }- };-- return (- <div- className="fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-8- backdrop-blur-[2px]"- onMouseDown={(event) => {- // The backdrop closes the sheet the way every sheet closes - but- // never out from under a running synthesis.- if (event.target === event.currentTarget && !running) onClose();- }}- >- <div className="surface w-full max-w-md rounded-2xl p-6">- <div className="mb-5 flex items-center gap-2">- <Icon name="volume" size={17} className="text-accent" />- <h2 className="flex-1 text-sm font-semibold text-primary">{t("tts.title")}</h2>- {!running && (- <button- type="button"- aria-label={t("common.close")}- onClick={onClose}- className="cursor-pointer rounded p-1 text-secondary hover:bg-hover hover:text-primary"- >- <Icon name="close" size={14} />- </button>- )}- </div>-- {status !== null && !ready ? (- // No model on disk: the sheet is a download button until there is.- <div className="py-2">- <p className="mb-4 text-xs leading-relaxed text-secondary">{t("tts.modelNeeded")}</p>- {download ? (- <>- <div className="mb-2 flex items-baseline justify-between gap-3">- <span className="text-xs text-primary">- {download.unpacking ? t("tts.unpacking") : t("tts.downloading")}- </span>- {!download.unpacking && (- <span className="shrink-0 font-technical text-sm tabular-nums text-primary">- {`${Math.round(download.fraction * 100)}%`}- </span>- )}- </div>- <div className="h-1.5 overflow-hidden rounded-full bg-active">- <div- className="h-full rounded-full bg-accent transition-[width] duration-200"- style={{ width: `${download.unpacking ? 100 : Math.round(download.fraction * 100)}%` }}- />- </div>- <button- type="button"- onClick={() => void cancelTtsModelDownload()}- className="mt-4 w-full cursor-pointer rounded-lg bg-hover px-4 py-2 text-xs- text-secondary transition-colors hover:bg-active hover:text-primary"- >- {t("common.cancel")}- </button>- </>- ) : (- <>- {phase.kind === "failed" && <ErrorNotice message={phase.message} className="mb-4" />}- <button- type="button"- onClick={fetchModel}- className="flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg- bg-accent px-4 py-2.5 text-sm font-medium text-on-accent- transition-colors hover:bg-accent-hover"- >- <Icon name="import" size={15} />- {t("tts.downloadModel", {- size: entry ? `${Math.round(entry.sizeBytes / 1_000_000)} MB` : "",- })}- </button>- </>- )}- </div>- ) : (- <>- <Label>{t("tts.textLabel")}</Label>- <textarea- value={text}- onChange={(event) => setText(event.target.value)}- placeholder={t("tts.textPlaceholder")}- rows={5}- autoFocus- disabled={running}- className="mb-5 w-full resize-none rounded-lg border border-hairline bg-sunken px-3- py-2 text-xs leading-relaxed text-primary placeholder:text-tertiary- focus:border-accent focus:outline-none disabled:opacity-60"- />-- <Label>{t("tts.voiceLabel")}</Label>- <select- value={voice}- disabled={running}- onChange={(event) => {- const next = Number(event.target.value);- setVoice(next);- setTtsVoice(next);- }}- className="mb-5 w-full cursor-pointer rounded-lg border border-hairline bg-sunken- px-3 py-2 text-xs text-primary focus:border-accent focus:outline-none- disabled:opacity-60"- >- {groups.map((group) => (- <optgroup key={group.label} label={group.label}>- {group.voices.map((candidate) => (- <option key={candidate.id} value={candidate.id}>- {voiceLabel(candidate.name)}- </option>- ))}- </optgroup>- ))}- </select>-- <Label>{t("tts.paceLabel")}</Label>- <div className="mb-5 grid grid-cols-3 gap-1.5">- {PACES.map((option) => (- <button- key={option.labelKey}- type="button"- aria-pressed={option.speed === speed}- disabled={running}- onClick={() => setSpeed(option.speed)}- className={`cursor-pointer rounded-lg px-2 py-1.5 text-xs transition-colors ${- option.speed === speed- ? "bg-accent text-on-accent"- : "bg-hover text-secondary hover:bg-active"- }`}- >- {t(option.labelKey)}- </button>- ))}- </div>-- {phase.kind === "failed" && <ErrorNotice message={phase.message} className="mb-4" />}-- {running ? (- <div>- <div className="mb-2 flex items-baseline justify-between gap-3">- <span className="text-xs text-primary">{t("tts.generating")}</span>- <span className="shrink-0 font-technical text-sm tabular-nums text-primary">- {`${Math.round(phase.fraction * 100)}%`}- </span>- </div>- <div className="h-1.5 overflow-hidden rounded-full bg-active">- <div- className="h-full rounded-full bg-accent transition-[width] duration-200"- style={{ width: `${Math.max(3, Math.round(phase.fraction * 100))}%` }}- />- </div>- <button- type="button"- onClick={() => void cancelSpeak().catch(() => undefined)}- className="mt-4 w-full cursor-pointer rounded-lg bg-hover px-4 py-2 text-xs- text-secondary transition-colors hover:bg-active hover:text-primary"- >- {t("common.cancel")}- </button>- </div>- ) : (- <button- type="button"- onClick={() => void generate()}- disabled={!text.trim() || !ready}- className="flex w-full cursor-pointer items-center justify-center gap-2 rounded-lg- bg-accent px-4 py-2.5 text-sm font-medium text-on-accent- transition-colors hover:bg-accent-hover disabled:cursor-not-allowed- disabled:opacity-40"- >- <Icon name="volume" size={15} />- {t("tts.generate")}- </button>- )}- </>- )}- </div>- </div>- );-}--function Label({ children }: { children: ReactNode }) {- return (- <span className="mb-1.5 block text-[11px] font-semibold uppercase tracking-wider text-secondary">- {children}- </span>- );-}diff --git a/desktop/src/components/controls.tsx b/desktop/src/components/controls.tsxdeleted file mode 100644index 2e22b9d5..00000000--- a/desktop/src/components/controls.tsx+++ /dev/null@@ -1,314 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useRef, useState } from "react";-import type { KeyboardEvent as ReactKeyboardEvent, PointerEvent as ReactPointerEvent } from "react";--import { useLocale } from "../lib/i18n";-import { Icon } from "./Icon";--/**- * Property controls for the inspector.- *- * Pure: value in, callback out. None of them hold state, because the value- * they show has to be whatever the project says it is - including when it- * changes from somewhere else, like a drag on the timeline. (The Slider's- * typing state is the one exception, and it is display state, not a value:- * the project is not touched until the entry commits.)- */--/**- * A circled question mark that explains itself on hover.- *- * Inline help paragraphs cost a permanent line each and read like a manual- * pasted into a tool. This keeps the explanation one hover away instead, so- * the panel stays controls-first.- */-export function HelpTip({ text, align = "end" }: { text: string; align?: "start" | "end" }) {- return (- <span className="group/help relative inline-flex shrink-0">- <Icon- name="help"- size={12}- className="cursor-help text-tertiary transition-colors group-hover/help:text-secondary"- />- <span- role="tooltip"- // The bubble must open towards the room. "end" hangs it leftward from- // the icon, right for the inspector where the icon hugs the window's- // right edge; "start" opens rightward, for an icon near the left of a- // scroll container - hanging left there pushes the bubble outside the- // container, where it is clipped instead of shown.- className={`pointer-events-none invisible absolute top-full z-50 mt-1.5 w-52- rounded-md border border-hairline bg-panel p-2 text-[11px] font-normal- normal-case leading-snug tracking-normal text-secondary- shadow-[0_4px_14px_rgba(0,0,0,0.25)] group-hover/help:visible ${- align === "end" ? "right-0" : "left-0"- }`}- >- {text}- </span>- </span>- );-}--/** How much finer a shift-drag moves than a plain one. */-const FINE_FACTOR = 0.1;--/**- * A slider whose whole track is the grab target.- *- * Clicking anywhere on it jumps there and starts dragging, the way parameter- * sliders work in editors rather than the way a browser range input does. The- * fill doubles as the readout, so there is no separate progress element to- * keep in step.- *- * Holding Shift while dragging moves at a tenth of the rate, for dialling in- * an exact value; clicking the readout turns it into a text field for typing- * one directly.- */-export function Slider({- label,- value,- min,- max,- step = 0.01,- format,- onChange,- onCommit,- onReset,-}: {- label: string;- value: number;- min: number;- max: number;- step?: number;- /** Turns the raw value into what the reader sees. */- format: (value: number) => string;- onChange: (value: number) => void;- /**- * Fires when a gesture finishes: pointer released, typed value committed,- * or a keyboard step. The engine records one undo entry per commit, so- * this is what makes a drag one undoable edit instead of sixty.- */- onCommit?: () => void;- /** Double-clicking the label returns the control to this value. */- onReset?: () => void;-}) {- const { t } = useLocale();- const track = useRef<HTMLDivElement>(null);- // Where the last pointer event landed, so a shift-drag can be relative to- // the previous position rather than jumping to the pointer.- const lastX = useRef(0);- // What the number field holds while it is being edited. Null means it shows- // the value; the project is not touched until the entry commits.- const [typing, setTyping] = useState<string | null>(null);-- const clampStep = (raw: number) => {- const stepped = Math.round(raw / step) * step;- // Re-round, or steps accumulate float noise like 0.30000000000000004.- return Number(Math.min(max, Math.max(min, stepped)).toFixed(6));- };-- const commit = (event: ReactPointerEvent<HTMLDivElement>) => {- const bounds = track.current?.getBoundingClientRect();- if (!bounds || bounds.width === 0) return;-- if (event.shiftKey) {- // Fine mode: the pointer's movement counts for a tenth. Relative to the- // last position, so toggling shift mid-drag never jumps the value.- const delta = ((event.clientX - lastX.current) / bounds.width) * (max - min) * FINE_FACTOR;- lastX.current = event.clientX;- onChange(clampStep(value + delta));- return;- }-- lastX.current = event.clientX;- const fraction = Math.min(1, Math.max(0, (event.clientX - bounds.left) / bounds.width));- onChange(clampStep(min + fraction * (max - min)));- };-- const commitTyped = () => {- if (typing === null) return;- const parsed = Number.parseFloat(typing.replace(",", "."));- if (Number.isFinite(parsed)) onChange(clampStep(parsed));- setTyping(null);- onCommit?.();- };-- const fill = max === min ? 0 : Math.min(1, Math.max(0, (value - min) / (max - min)));-- return (- <div className="mb-3">- <div className="mb-1 flex items-baseline justify-between gap-2">- <span- onDoubleClick={onReset}- title={onReset ? t("controls.resetHint") : undefined}- className={`text-[12px] text-secondary ${onReset ? "cursor-pointer" : ""}`}- >- {label}- </span>- <span className="font-technical text-[11px] text-tertiary">{format(value)}</span>- </div>-- <div className="flex items-stretch gap-1.5">- <div- ref={track}- role="slider"- aria-label={label}- aria-valuenow={value}- aria-valuemin={min}- aria-valuemax={max}- tabIndex={0}- onKeyDown={(event) => {- // Shift jumps by ten steps - the keyboard's coarse mode, mirroring- // how shift is the pointer's fine mode: both mean "the other rate".- const by = event.shiftKey ? step * 10 : step;- if (event.key === "ArrowLeft") onChange(clampStep(value - by));- if (event.key === "ArrowRight") onChange(clampStep(value + by));- }}- onKeyUp={(event) => {- if (event.key === "ArrowLeft" || event.key === "ArrowRight") onCommit?.();- }}- onPointerDown={(event) => {- event.currentTarget.setPointerCapture(event.pointerId);- lastX.current = event.clientX;- // A shift-click means "adjust from here", not "jump here".- if (!event.shiftKey) commit(event);- }}- onPointerMove={(event) => {- if (event.currentTarget.hasPointerCapture(event.pointerId)) commit(event);- }}- onPointerUp={(event) => {- if (event.currentTarget.hasPointerCapture(event.pointerId)) {- event.currentTarget.releasePointerCapture(event.pointerId);- }- onCommit?.();- }}- className="relative h-6 min-w-0 flex-1 cursor-ew-resize touch-none select-none- overflow-hidden rounded-md bg-sunken"- >- <div- className="absolute inset-y-0 left-0 bg-tool-active-soft"- style={{ width: `${fill * 100}%` }}- />- {/* The knob subtracts its own width as it travels, so it stays inside- the track at both ends instead of hanging over the edge. */}- <div- className="absolute top-0 h-full w-1 rounded bg-tool-active"- style={{ left: `calc(${fill * 100}% - ${fill * 4}px)` }}- />- </div>-- {/*- The number field: the slider's exact twin in height, always present,- for dialling in a value the track is too coarse for. A text input- rather than type="number" because the spinner buttons are the part- nobody wants - arrow keys step instead, and typing commits on Enter- or blur, reverting on Escape.- */}- <input- value={typing ?? String(Number(value.toFixed(4)))}- inputMode="decimal"- spellCheck={false}- aria-label={t("controls.sliderValue", { label })}- onChange={(event) => setTyping(event.target.value)}- onFocus={(event) => event.target.select()}- onBlur={commitTyped}- onKeyDown={(event: ReactKeyboardEvent<HTMLInputElement>) => {- if (event.key === "Enter") commitTyped();- if (event.key === "Escape") {- setTyping(null);- event.currentTarget.blur();- }- if (event.key === "ArrowUp" || event.key === "ArrowDown") {- event.preventDefault();- const by = (event.shiftKey ? step * 10 : step) * (event.key === "ArrowUp" ? 1 : -1);- setTyping(null);- onChange(clampStep(value + by));- onCommit?.();- }- }}- className="h-6 w-14 shrink-0 rounded-md border border-hairline bg-sunken px-1.5- text-right font-technical text-[11px] text-primary outline-none- transition-colors focus:border-accent"- />- </div>- </div>- );-}--/**- * A sliding on/off switch.- *- * A real `<button role="switch">` rather than a native checkbox: the platform- * control cannot be styled into this shape, and it looks like a form field- * dropped into a tool that has none. Being a button means keyboard and screen- * reader behaviour come for free, which a restyled `<div>` would have thrown- * away.- *- * The knob subtracts its own width as it travels so it stays inside the track- * at both ends - the same trick the Slider knob uses.- */-export function Toggle({- label,- hint,- checked,- onChange,-}: {- label: string;- /** Shown behind a help icon, not inline - panels stay controls-first. */- hint?: string;- checked: boolean;- onChange: (checked: boolean) => void;-}) {- return (- <div className="mb-3 flex items-center justify-between gap-3">- <span className="flex min-w-0 items-center gap-1.5">- <span className="truncate text-[12px] text-primary">{label}</span>- {hint && <HelpTip text={hint} />}- </span>-- <button- type="button"- role="switch"- aria-checked={checked}- aria-label={label}- onClick={() => onChange(!checked)}- className={`relative h-5.5 w-9.5 shrink-0 cursor-pointer rounded-full- p-0.75 transition-colors duration-200 ${- checked ? "bg-tool-active" : "bg-tertiary/40"- }`}- >- <span- className={`block h-4 w-4 rounded-full bg-white shadow-[0_1px_2px_rgba(0,0,0,0.3)]- transition-transform duration-200 ${- checked ? "translate-x-4" : "translate-x-0"- }`}- />- </button>- </div>- );-}--/** A labelled group of controls, with optional hover help on the heading. */-export function Group({- title,- help,- children,-}: {- title: string;- /** Shown behind a help icon next to the heading. */- help?: string;- children: React.ReactNode;-}) {- return (- <section className="mb-5">- <h3 className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wider text-tertiary">- {title}- {help && <HelpTip text={help} />}- </h3>- {children}- </section>- );-}diff --git a/desktop/src/components/inspector/base.ts b/desktop/src/components/inspector/base.tsdeleted file mode 100644index 5dd67c82..00000000--- a/desktop/src/components/inspector/base.ts+++ /dev/null@@ -1,156 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";-import type { PointerEvent as ReactPointerEvent } from "react";--/**- * The plumbing under the inspector controls: class joining, number hygiene,- * and the one drag gesture every scrubbing control in the panel shares.- *- * Ported from the wc-ui-rnd design study alongside `inspector.module.css`.- * Nothing here knows about clips or the engine - these are the parts a Fader- * and a NumberField would need in any application.- */--export const cx = (...parts: Array<string | false | null | undefined>): string =>- parts.filter(Boolean).join(" ");--export const clamp = (value: number, min: number, max: number): number =>- Math.min(max, Math.max(min, value));--export const roundTo = (value: number, decimals: number): number =>- Number(value.toFixed(clamp(decimals, 0, 12)));--/** Decimals present in a literal step, so `step={0.005}` implies 3 digits. */-export const decimalsOf = (step: number): number => {- const [, fraction = ""] = String(step).split(".");- return fraction.length;-};--export interface DragInfo {- /** Pointer travel since pointerdown, in px. */- dx: number;- dy: number;- /** Current viewport position, in px. */- x: number;- y: number;- shiftKey: boolean;- altKey: boolean;- /** Flips true once the pointer passes `threshold` - tells a click from a drag. */- moved: boolean;-}--export interface PointerDragOptions {- onStart?: (info: DragInfo) => void;- onMove?: (info: DragInfo) => void;- onEnd?: (info: DragInfo) => void;- /** Px of travel before the gesture counts as a drag. Default 3. */- threshold?: number;- /** Cursor forced on the document while the gesture is live. */- cursor?: string;- disabled?: boolean;-}--/**- * The drag gesture shared by every scrubbing control.- *- * Pointer capture keeps the stream alive when the pointer leaves the element- * or the window, which is what lets a fader keep tracking once you have run- * off the end of it. Returns the `onPointerDown` handler for the drag surface.- */-export function usePointerDrag(options: PointerDragOptions) {- // Latest-ref, so the handler installed on pointerdown always calls the- // current callbacks rather than the ones captured when the drag began.- const latest = useRef(options);- latest.current = options;-- const teardown = useRef<(() => void) | null>(null);- useEffect(() => () => teardown.current?.(), []);-- return useCallback((event: ReactPointerEvent<Element>) => {- const { disabled, threshold = 3, cursor } = latest.current;- if (disabled || event.button !== 0) return;-- // React reuses the event object's currentTarget after the handler returns.- const target = event.currentTarget;- const { pointerId } = event;- const startX = event.clientX;- const startY = event.clientY;- let moved = false;-- teardown.current?.();- target.setPointerCapture(pointerId);-- const previousCursor = document.body.style.cursor;- const previousSelect = document.body.style.userSelect;- if (cursor) document.body.style.cursor = cursor;- document.body.style.userSelect = "none";-- const info = (moveEvent: PointerEvent): DragInfo => ({- dx: moveEvent.clientX - startX,- dy: moveEvent.clientY - startY,- x: moveEvent.clientX,- y: moveEvent.clientY,- shiftKey: moveEvent.shiftKey,- altKey: moveEvent.altKey,- moved,- });-- const handleMove = (moveEvent: PointerEvent) => {- if (!moved && Math.hypot(moveEvent.clientX - startX, moveEvent.clientY - startY) > threshold) {- moved = true;- }- latest.current.onMove?.(info(moveEvent));- };-- const handleEnd = (endEvent: PointerEvent) => {- const final = info(endEvent);- teardown.current?.();- latest.current.onEnd?.(final);- };-- teardown.current = () => {- window.removeEventListener("pointermove", handleMove);- window.removeEventListener("pointerup", handleEnd);- window.removeEventListener("pointercancel", handleEnd);- document.body.style.cursor = previousCursor;- document.body.style.userSelect = previousSelect;- if (target.hasPointerCapture(pointerId)) target.releasePointerCapture(pointerId);- teardown.current = null;- };-- window.addEventListener("pointermove", handleMove);- window.addEventListener("pointerup", handleEnd);- window.addEventListener("pointercancel", handleEnd);-- latest.current.onStart?.({- dx: 0,- dy: 0,- x: startX,- y: startY,- shiftKey: event.shiftKey,- altKey: event.altKey,- moved: false,- });- }, []);-}--/** Measures an element's content box, for geometry that has to match the DOM. */-export function useElementSize<T extends HTMLElement>() {- const ref = useRef<T>(null);- const [size, setSize] = useState({ width: 0, height: 0 });-- useLayoutEffect(() => {- const element = ref.current;- if (!element) return;- const observer = new ResizeObserver((entries) => {- const rect = entries[0]?.contentRect;- if (rect) setSize({ width: rect.width, height: rect.height });- });- observer.observe(element);- return () => observer.disconnect();- }, []);-- return [ref, size] as const;-}diff --git a/desktop/src/components/inspector/controls.tsx b/desktop/src/components/inspector/controls.tsxdeleted file mode 100644index 97310da7..00000000--- a/desktop/src/components/inspector/controls.tsx+++ /dev/null@@ -1,365 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useRef, useState } from "react";-import type { KeyboardEvent, ReactNode } from "react";--import { useLocale } from "../../lib/i18n";-import { clamp, cx, decimalsOf, roundTo, usePointerDrag } from "./base";-import { NumberField } from "./fields";-import styles from "./inspector.module.css";--/**- * The inspector's repeating parts: a section, a row, a fader, the parameter- * that pairs the two, a switch, a help disclosure and a colour well.- *- * Ported from the wc-ui-rnd design study and wired to this app's editing- * contract: `onChange` echoes live while a gesture is in flight, `onCommit`- * ends it and turns everything echoed into a single engine command. A control- * that changes without ever committing leaves the edit local, so every path- * out of a gesture here ends in a commit.- */--/* ── section and row ──────────────────────────────────────────────────────── */--export function Section({ title, children }: { title: string; children: ReactNode }) {- return (- <div className={styles.section}>- <div className={styles.sectionHeader}>- <span className={styles.sectionTitle}>{title}</span>- </div>- <div className={styles.sectionBody}>{children}</div>- </div>- );-}--export function Row({- label,- stack = false,- children,-}: {- label?: string;- /** Stack the controls instead of laying them out in one line. */- stack?: boolean;- children: ReactNode;-}) {- return (- <div className={styles.row}>- {label !== undefined && <span className={styles.rowLabel}>{label}</span>}- <div className={cx(styles.controls, stack && styles.stacked)}>{children}</div>- </div>- );-}--/* ── fader ────────────────────────────────────────────────────────────────── */--/** Horizontal fader. Click to jump, drag to ride, double-click to reset. */-export function Fader({- value,- onChange,- onCommit,- onReset,- min,- max,- step,- valueText,- "aria-label": ariaLabel,-}: {- value: number;- onChange: (value: number) => void;- onCommit?: () => void;- /** Double-click restores this. Omitted means double-click does nothing. */- onReset?: () => void;- min: number;- max: number;- step: number;- /** What a screen reader says instead of the bare number. */- valueText?: string;- "aria-label"?: string;-}) {- const track = useRef<HTMLDivElement>(null);- const digits = decimalsOf(step);- const span = max - min || 1;-- const settle = (next: number) => onChange(roundTo(clamp(next, min, max), digits));-- // The rail is inset from the track by the border plus 2px. Measuring against- // the rail rather than the track is what puts the cap under the pointer at- // both ends instead of a few px short of them.- const INSET = 3;- const applyAt = (clientX: number) => {- const rect = track.current?.getBoundingClientRect();- if (!rect) return;- const usable = rect.width - INSET * 2;- if (usable <= 0) return;- settle(min + clamp((clientX - rect.left - INSET) / usable, 0, 1) * span);- };-- const beginDrag = usePointerDrag({- threshold: 0,- cursor: "ew-resize",- onStart: ({ x }) => applyAt(x),- onMove: ({ x }) => applyAt(x),- onEnd: () => onCommit?.(),- });-- const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {- // Same modifier grammar as the number field: shift coarsens, alt refines.- const scale = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;- const moves: Record<string, number> = {- ArrowRight: step * scale,- ArrowUp: step * scale,- ArrowLeft: -step * scale,- ArrowDown: -step * scale,- PageUp: step * 10,- PageDown: -step * 10,- };- if (event.key === "Home") {- event.preventDefault();- settle(min);- } else if (event.key === "End") {- event.preventDefault();- settle(max);- } else if (event.key in moves) {- event.preventDefault();- settle(value + (moves[event.key] ?? 0));- }- };-- const percent = clamp((value - min) / span, 0, 1) * 100;-- return (- <div- ref={track}- className={styles.fader}- role="slider"- tabIndex={0}- aria-label={ariaLabel}- aria-valuenow={value}- aria-valuemin={min}- aria-valuemax={max}- aria-valuetext={valueText}- onPointerDown={beginDrag}- onKeyDown={onKeyDown}- // One commit per burst of keys, on release, for the same reason a drag- // commits once: undo should step over the adjustment, not through it.- onKeyUp={() => onCommit?.()}- onDoubleClick={onReset}- >- <div className={styles.rail}>- <span className={styles.fill} style={{ width: `${percent}%` }} />- <span- className={styles.cap}- style={{ left: `${percent}%`, transform: `translateX(-${percent}%)` }}- />- </div>- </div>- );-}--/* ── parameter ────────────────────────────────────────────────────────────── */--/**- * The panel's repeating unit: a name and its value in the unit a person thinks- * in, over a fader and the raw number. Two ways to the same value - ride the- * fader for a feel, scrub or type the field for a figure.- */-export function Param({- label,- value,- onChange,- onCommit,- onReset,- min,- max,- step,- format,- help,-}: {- label: string;- value: number;- onChange: (value: number) => void;- onCommit?: () => void;- onReset?: () => void;- min: number;- max: number;- step: number;- /** The readout beside the label: the value in the unit a person thinks in. */- format: (value: number) => string;- help?: ReactNode;-}) {- const { t } = useLocale();- const text = format(value);-- return (- <Row stack>- <div className={styles.head}>- <span className={styles.labelGroup}>- <span- className={cx(styles.label, onReset && styles.resettable)}- title={onReset ? t("controls.resetHint") : undefined}- onDoubleClick={onReset}- >- {label}- </span>- {help}- </span>- <span className={styles.readout}>{text}</span>- </div>- <div className={styles.body}>- <Fader- value={value}- onChange={onChange}- onCommit={onCommit}- onReset={onReset}- min={min}- max={max}- step={step}- valueText={text}- aria-label={label}- />- <div className={styles.numberSlot}>- <NumberField- value={value}- onChange={onChange}- onCommit={onCommit}- min={min}- max={max}- step={step}- aria-label={t("controls.sliderValue", { label })}- />- </div>- </div>- </Row>- );-}--/* ── switch ───────────────────────────────────────────────────────────────── */--/** A labelled switch on one line. Discrete, so it commits as it changes. */-export function SwitchRow({- label,- checked,- onChange,- help,-}: {- label: string;- checked: boolean;- onChange: (checked: boolean) => void;- /** A `HelpButton`, for the settings that need a sentence rather than a name. */- help?: ReactNode;-}) {- return (- <Row>- <div className={styles.switchRow}>- <span className={styles.label}>{label}</span>- {help}- <button- type="button"- role="switch"- aria-checked={checked}- aria-label={label}- onClick={() => onChange(!checked)}- className={cx(styles.switch, checked && styles.switchOn)}- >- <span className={styles.thumb} />- </button>- </div>- </Row>- );-}--/* ── help disclosure ──────────────────────────────────────────────────────── */--/**- * A tooltip hides the answer again the moment the pointer moves, and reaching- * one from the keyboard takes machinery. This toggles a line of prose the- * caller renders where it belongs instead.- */-export function HelpButton({- label,- open,- onToggle,-}: {- label: string;- open: boolean;- onToggle: () => void;-}) {- return (- <button- type="button"- className={cx(styles.help, open && styles.helpOn)}- aria-label={label}- aria-expanded={open}- onClick={onToggle}- >- ?- </button>- );-}--export function Note({ children }: { children: ReactNode }) {- return <p className={styles.note}>{children}</p>;-}--/* ── colour ───────────────────────────────────────────────────────────────── */--const HEX = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;--/**- * A colour well and its hex, because one of the two is always the faster way.- *- * The typed hex is held as a draft until it is a whole colour: repainting on- * "#f" would flash the title black on the way to "#ff0000". The well itself- * paints live, since dragging around a picker with no feedback is guesswork.- */-export function ColourField({- label,- name = label,- value,- onChange,-}: {- /** The row's visible label. Short: the section above already says which. */- label: string;- /** What the control is called out of that context, for a screen reader. */- name?: string;- value: string;- onChange: (value: string) => void;-}) {- const [draft, setDraft] = useState<string | null>(null);-- const commit = (text: string) => {- const candidate = text.trim().replace(/^#?/, "#");- if (HEX.test(candidate)) onChange(candidate.toLowerCase());- setDraft(null);- };-- return (- <Row label={label}>- <input- className={styles.hex}- value={draft ?? value}- spellCheck={false}- aria-label={name}- onChange={(event) => setDraft(event.target.value)}- onBlur={(event) => commit(event.target.value)}- onKeyDown={(event) => {- if (event.key === "Enter") event.currentTarget.blur();- if (event.key === "Escape") {- setDraft(null);- event.currentTarget.blur();- }- }}- />- <span className={styles.swatch} style={{ background: value }}>- <input- type="color"- className={styles.swatchInput}- value={value}- aria-label={name}- onChange={(event) => onChange(event.target.value)}- />- </span>- </Row>- );-}diff --git a/desktop/src/components/inspector/fields.tsx b/desktop/src/components/inspector/fields.tsxdeleted file mode 100644index 94fadd3a..00000000--- a/desktop/src/components/inspector/fields.tsx+++ /dev/null@@ -1,455 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useEffect, useId, useLayoutEffect, useRef, useState } from "react";-import type { KeyboardEvent, PointerEvent as ReactPointerEvent } from "react";-import { createPortal } from "react-dom";--import { Icon } from "../Icon";-import { clamp, cx, decimalsOf, roundTo, useElementSize, usePointerDrag } from "./base";-import styles from "./inspector.module.css";--/**- * The three value pickers: a scrubbable number, a listbox, and a segmented- * row. Ported from the wc-ui-rnd design study.- *- * All three take the app's editing contract rather than the study's plain- * `onChange`: a gesture echoes live and *commits* once, so undo undoes the- * drag instead of sixty frames of it. Discrete controls - the listbox, the- * segments - change and commit in the same tick, which is why only the number- * field carries an explicit `onCommit`.- */--/* ── number field ─────────────────────────────────────────────────────────── */--export function NumberField({- value,- onChange,- onCommit,- min = Number.NEGATIVE_INFINITY,- max = Number.POSITIVE_INFINITY,- step = 1,- /** Drag distance in px that advances the value by one `step`. */- pxPerStep = 2,- "aria-label": ariaLabel,-}: {- value: number;- onChange: (value: number) => void;- onCommit?: () => void;- min?: number;- max?: number;- step?: number;- pxPerStep?: number;- "aria-label"?: string;-}) {- const digits = decimalsOf(step);- const input = useRef<HTMLInputElement>(null);- const origin = useRef(value);- const reverting = useRef(false);- // Null means "showing the value"; a string means "being typed into", and- // the project is not touched until that entry commits.- const [draft, setDraft] = useState<string | null>(null);- const editing = draft !== null;-- const shown = roundTo(value, Math.max(digits, 3));-- const settle = (next: number, fine: boolean) =>- onChange(roundTo(clamp(next, min, max), fine ? digits + 1 : digits));-- const beginDrag = usePointerDrag({- disabled: editing,- cursor: "ew-resize",- onStart: () => {- origin.current = value;- },- onMove: ({ dx, shiftKey, altKey, moved }) => {- if (!moved) return;- // Shift coarsens, Alt refines - the same grammar the fader's arrow keys- // use, so one modifier means one thing across the panel.- const scale = shiftKey ? 10 : altKey ? 0.1 : 1;- settle(origin.current + (dx / pxPerStep) * step * scale, altKey);- },- onEnd: ({ moved }) => {- // A press that never travelled is a click: fall through to text entry.- if (moved) onCommit?.();- else input.current?.focus();- },- });-- const commitTyped = (raw: string) => {- const parsed = Number.parseFloat(raw.replace(",", ".").replace(/[^\d.eE+-]/g, ""));- if (Number.isFinite(parsed)) {- onChange(roundTo(clamp(parsed, min, max), Math.max(digits, 3)));- onCommit?.();- }- };-- const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {- if (event.key === "ArrowUp" || event.key === "ArrowDown") {- event.preventDefault();- const scale = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;- const direction = event.key === "ArrowUp" ? 1 : -1;- const typed = draft !== null ? Number.parseFloat(draft) : Number.NaN;- const base = Number.isFinite(typed) ? typed : value;- const next = roundTo(- clamp(base + direction * step * scale, min, max),- event.altKey ? digits + 1 : digits,- );- onChange(next);- onCommit?.();- if (draft !== null) setDraft(String(next));- } else if (event.key === "Enter") {- event.preventDefault();- input.current?.blur();- } else if (event.key === "Escape") {- event.preventDefault();- reverting.current = true;- input.current?.blur();- }- };-- return (- <div- className={cx(styles.field, editing && styles.editing)}- onPointerDown={(event: ReactPointerEvent<HTMLDivElement>) => {- if (editing) return;- event.preventDefault(); // withhold focus until the gesture resolves- beginDrag(event);- }}- >- <input- ref={input}- className={styles.fieldInput}- value={draft ?? String(shown)}- spellCheck={false}- autoComplete="off"- inputMode="decimal"- role="spinbutton"- aria-label={ariaLabel}- aria-valuenow={value}- aria-valuemin={Number.isFinite(min) ? min : undefined}- aria-valuemax={Number.isFinite(max) ? max : undefined}- onFocus={() => setDraft(String(shown))}- onBlur={() => {- if (draft !== null && !reverting.current) commitTyped(draft);- reverting.current = false;- setDraft(null);- }}- onKeyDown={onKeyDown}- onChange={(event) => setDraft(event.target.value)}- />- </div>- );-}--/* ── select ───────────────────────────────────────────────────────────────── */--export interface SelectOption<T> {- value: T;- label: string;- /** Heading this option sits under. Consecutive options share one heading. */- group?: string;- /** Rendered after the label in a dimmer voice, e.g. "(file missing)". */- note?: string;- /** The face to draw the label in, for a font picker that shows its fonts. */- fontFamily?: string;-}--const TYPEAHEAD_WINDOW = 600;-const OPEN_KEYS = ["ArrowDown", "ArrowUp", "Enter", " "];--/**- * A listbox, not a native `<select>`.- *- * The native control cannot show a font in its own face, group with the app's- * own headings, or be styled to match anything around it. This is keyboard- * complete - arrows, Home/End, typeahead, Escape - and flips above the- * trigger when there is no room below it, which in a right-hand panel there- * often is not.- */-export function Select<T extends string | number>({- options,- value,- onChange,- "aria-label": ariaLabel,-}: {- options: readonly SelectOption<T>[];- value: T;- onChange: (value: T) => void;- "aria-label"?: string;-}) {- const id = useId();- const root = useRef<HTMLDivElement>(null);- const trigger = useRef<HTMLButtonElement>(null);- const list = useRef<HTMLUListElement>(null);- const typeahead = useRef({ query: "", at: 0 });-- const [box, setBox] = useState<{ left: number; top: number; width: number } | null>(null);- const [active, setActive] = useState(0);- const open = box !== null;-- const selectedIndex = options.findIndex((option) => option.value === value);- const selected = selectedIndex >= 0 ? options[selectedIndex] : undefined;-- const close = (refocus: boolean) => {- setBox(null);- if (refocus) trigger.current?.focus();- };-- const openList = () => {- const rect = trigger.current?.getBoundingClientRect();- if (!rect) return;- setActive(selectedIndex >= 0 ? selectedIndex : 0);- // Opened downwards from the trigger; the layout effect below flips it up- // before paint if the list turns out not to fit there.- setBox({ left: rect.left, top: rect.bottom + 4, width: rect.width });- };-- const commit = (index: number) => {- const option = options[index];- if (!option) return;- onChange(option.value);- close(true);- };-- // Correct the placement and hand the list focus once it is in the DOM but- // before paint, so a list that has to open upwards never flashes downwards.- useLayoutEffect(() => {- if (!open) return;- const anchor = trigger.current;- const element = list.current;- if (!anchor || !element) return;- const rect = anchor.getBoundingClientRect();- const height = element.offsetHeight;- const up = rect.bottom + height + 8 > window.innerHeight && rect.top > height + 8;- const top = up ? rect.top - height - 4 : rect.bottom + 4;- setBox((current) =>- current && current.top === top ? current : { left: rect.left, top, width: rect.width },- );- element.focus();- }, [open]);-- useEffect(() => {- if (!open) return;- const onPointerDown = (event: PointerEvent) => {- const target = event.target as Node;- if (!root.current?.contains(target) && !list.current?.contains(target)) setBox(null);- };- // The list is placed against the trigger's box, so anything that moves the- // trigger - the panel scrolling, the window resizing - orphans it. Closing- // is the honest response; a list that follows would still be a list nobody- // meant to leave open.- const dismiss = () => setBox(null);- document.addEventListener("pointerdown", onPointerDown, true);- window.addEventListener("scroll", dismiss, true);- window.addEventListener("resize", dismiss);- return () => {- document.removeEventListener("pointerdown", onPointerDown, true);- window.removeEventListener("scroll", dismiss, true);- window.removeEventListener("resize", dismiss);- };- }, [open]);-- useEffect(() => {- if (!open) return;- list.current?.querySelector<HTMLElement>('[data-active="true"]')?.scrollIntoView({- block: "nearest",- });- }, [open, active]);-- const onListKeyDown = (event: KeyboardEvent<HTMLUListElement>) => {- const last = options.length - 1;- switch (event.key) {- case "ArrowDown":- event.preventDefault();- setActive((current) => (current >= last ? 0 : current + 1));- return;- case "ArrowUp":- event.preventDefault();- setActive((current) => (current <= 0 ? last : current - 1));- return;- case "Home":- event.preventDefault();- setActive(0);- return;- case "End":- event.preventDefault();- setActive(last);- return;- case "Enter":- case " ":- event.preventDefault();- commit(active);- return;- case "Escape":- event.preventDefault();- close(true);- return;- case "Tab":- close(false);- return;- default:- break;- }-- // Typeahead: printable keys jump to the first option with that prefix.- if (event.key.length !== 1 || event.metaKey || event.ctrlKey) return;- const now = Date.now();- const state = typeahead.current;- state.query = now - state.at > TYPEAHEAD_WINDOW ? event.key : state.query + event.key;- state.at = now;- const query = state.query.toLowerCase();- const match = options.findIndex((option) => option.label.toLowerCase().startsWith(query));- if (match >= 0) setActive(match);- };-- return (- <div ref={root} className={styles.select}>- <button- ref={trigger}- type="button"- className={cx(styles.trigger, open && styles.open)}- aria-haspopup="listbox"- aria-expanded={open}- aria-label={ariaLabel}- onClick={() => (open ? close(true) : openList())}- onKeyDown={(event) => {- if (OPEN_KEYS.includes(event.key)) {- event.preventDefault();- openList();- }- }}- >- <span className={styles.triggerLabel} style={{ fontFamily: selected?.fontFamily }}>- {selected?.label ?? String(value)}- </span>- <Icon name="chevronDown" size={12} className={styles.chevron} />- </button>-- {box &&- createPortal(- <ul- ref={list}- role="listbox"- tabIndex={-1}- aria-label={ariaLabel}- aria-activedescendant={`${id}-option-${active}`}- className={cx(styles.vars, styles.list)}- style={{ left: box.left, top: box.top, minWidth: box.width }}- onKeyDown={onListKeyDown}- >- {options.map((option, index) => (- <li key={String(option.value)}>- {option.group !== undefined && option.group !== options[index - 1]?.group && (- <div className={styles.optionGroup} aria-hidden>- {option.group}- </div>- )}- <div- id={`${id}-option-${index}`}- role="option"- aria-selected={option.value === value}- data-active={index === active}- className={styles.option}- onPointerEnter={() => setActive(index)}- onClick={() => commit(index)}- >- <span className={styles.optionLabel} style={{ fontFamily: option.fontFamily }}>- {option.label}- {option.note ? ` ${option.note}` : ""}- </span>- {option.value === value && (- <Icon name="check" size={12} className={styles.check} />- )}- </div>- </li>- ))}- </ul>,- document.body,- )}- </div>- );-}--/* ── segmented control ────────────────────────────────────────────────────── */--/** Single-select row with a thumb that slides to the active segment. */-export function SegmentedControl<T extends string>({- options,- value,- onChange,- "aria-label": ariaLabel,-}: {- options: readonly { value: T; label: string }[];- value: T;- onChange: (value: T) => void;- "aria-label"?: string;-}) {- const [ref, size] = useElementSize<HTMLDivElement>();- const buttons = useRef<Array<HTMLButtonElement | null>>([]);- const [thumb, setThumb] = useState<{ left: number; width: number } | null>(null);- const index = options.findIndex((option) => option.value === value);-- useLayoutEffect(() => {- const element = index >= 0 ? buttons.current[index] : null;- const next = element ? { left: element.offsetLeft, width: element.offsetWidth } : null;- // Same geometry, same object: `options` is rebuilt per render wherever its- // labels are translated, so re-running this effect must not restart it.- setThumb((current) =>- current?.left === next?.left && current?.width === next?.width ? current : next,- );- }, [index, options, size.width]);-- const move = (direction: 1 | -1) => {- const count = options.length;- const next = ((index < 0 ? 0 : index) + direction + count) % count;- onChange(options[next].value);- buttons.current[next]?.focus();- };-- return (- <div- ref={ref}- role="radiogroup"- aria-label={ariaLabel}- className={styles.segGroup}- onKeyDown={(event) => {- if (event.key === "ArrowRight" || event.key === "ArrowDown") {- event.preventDefault();- move(1);- } else if (event.key === "ArrowLeft" || event.key === "ArrowUp") {- event.preventDefault();- move(-1);- }- }}- >- {thumb && (- <span- className={styles.segThumb}- aria-hidden- style={{ transform: `translateX(${thumb.left}px)`, width: thumb.width }}- />- )}- {options.map((option, position) => {- const on = option.value === value;- return (- <button- key={option.value}- ref={(element) => {- buttons.current[position] = element;- }}- type="button"- role="radio"- aria-checked={on}- // Roving tabindex keeps the group a single tab stop.- tabIndex={on || (index < 0 && position === 0) ? 0 : -1}- className={cx(styles.segment, on && styles.segmentOn)}- onClick={() => onChange(option.value)}- >- {option.label}- </button>- );- })}- </div>- );-}diff --git a/desktop/src/components/inspector/inspector.module.css b/desktop/src/components/inspector/inspector.module.cssdeleted file mode 100644index eed26891..00000000--- a/desktop/src/components/inspector/inspector.module.css+++ /dev/null@@ -1,748 +0,0 @@-@import "@fontsource-variable/inter";--/*- * The new inspector's chrome.- *- * Ported from the wc-ui-rnd design study, tokens and all. The study is not a- * restyle of this app's palette and is not treated as one: its dark ground and- * lime accent come across verbatim in `.vars` below, so this panel looks the- * way the study looks whichever theme the rest of the window is in. That is- * the point of the experiment - the study's surface is what is being tried,- * and a panel repainted in the old palette would be trying nothing.- *- * The typeface comes across too. Inter is what the study is drawn in, so it is- * bundled (@fontsource-variable/inter, one variable file covering 100-900)- * rather than named and left to fall back to whatever the machine has, and- * this subtree is set in it instead of the app's Synonym and Cabinet.- *- * Scope: the Text panel today, and the shape the other right-hand panels are- * expected to grow into. Deleting this directory and the imports of it, plus- * the shell class in RightPanel, is the whole rollback.- */--/* Design tokens, from the study's `styles/tokens.css`. Every rule below reads- these and nothing else - no app token, no literal colour - which is what- keeps the retheme to this one block. */-.vars {- --cp-font: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, -apple-system,- 'Segoe UI', Roboto, sans-serif;- --cp-fs-sm: 11px;- --cp-fs: 12px;- --cp-fs-lg: 13px;-- /* surfaces */- --cp-panel: #0d0d0d;- --cp-raised: #161616;- --cp-well: #111;- --cp-field: #1f1f1f;- --cp-field-hover: #272727;- --cp-field-active: #303030;-- /* hairlines */- --cp-line: #232323;- --cp-line-strong: #363636;-- /* text */- --cp-fg: #ededed;- --cp-fg-muted: #8b8b8b;- --cp-fg-dim: #5c5c5c;-- /* accents */- --cp-accent: #cbf53f;- --cp-accent-hover: #d9ff63;- --cp-accent-soft: rgb(203 245 63 / 0.2);- /* Ink for text and glyphs sitting ON the accent. A bright accent needs a- dark one; swap this back to #fff the day the accent goes dark again. */- --cp-on-accent: #15220a;- --cp-danger: #ff453a;-- --cp-r-xs: 3px;- --cp-r-sm: 5px;- --cp-r: 7px;-- --cp-h: 28px; /* standard control height */- --cp-gap: 6px;- --cp-pad: 14px; /* panel horizontal padding */- --cp-label-w: 62px;-- --cp-focus: 0 0 0 1px var(--cp-accent), 0 0 0 3px var(--cp-accent-soft);- --cp-ease: cubic-bezier(0.4, 0, 0.2, 1);-- font-family: var(--cp-font);- /* The app tightens its own face optically; Inter is drawn tight already. */- letter-spacing: normal;-}--/*- * The panel shell, worn by the app's own `Panel` around this body.- *- * The heading strip above the body is drawn by components/Panel.tsx out of the- * app's palette, and a light strip on top of the study's near-black reads as a- * seam rather than a panel. This hands that chrome the study's ground, padding- * and title voice instead - the only place the two systems touch, and the- * reason it is a class passed in rather than a change to the shared component.- */-.shell {- composes: vars;- /* The scroll thumb is drawn by the `thin-scroll` utility off this token. */- --color-hairline-strong: var(--cp-line-strong);-}--/* Doubled selector so the ground beats the shell's own `bg-panel` utility- whichever stylesheet the bundler emits first - the trick the study uses for- its own cross-module overrides. `composes` has to stay on the plain class. */-.shell.shell {- background: var(--cp-panel);-}--.shell > header {- height: 42px;- padding: 0 var(--cp-pad);- border-bottom-color: var(--cp-line);-}--.shell > header h2 {- color: var(--cp-fg);- font-size: var(--cp-fs-lg);- font-weight: 500;- letter-spacing: normal;- text-transform: none;-}--/* The panel body. `.vars` is a class of its own because the listbox escapes- this subtree - see `.list` - and has to carry the tokens with it. */-.kit {- composes: vars;- padding-bottom: 8px;- color: var(--cp-fg);- font-size: var(--cp-fs);-}--/* ── section ─────────────────────────────────────────────────────────────── */--.section {- border-top: 1px solid var(--cp-line);- padding-bottom: 8px;-}--.section:first-child { border-top: 0; }--.sectionHeader {- display: flex;- align-items: center;- justify-content: space-between;- gap: 8px;- height: 34px;- padding: 0 var(--cp-pad);-}--.sectionTitle {- min-width: 0;- color: var(--cp-fg);- font-size: var(--cp-fs-lg);- font-weight: 500;-}--.sectionBody {- display: flex;- flex-direction: column;- gap: var(--cp-gap);-}--/* ── row ─────────────────────────────────────────────────────────────────── */--/*- * One line of the form: muted label on the left, controls on the right.- * Controls with `flex: 1 1 0` split what is left evenly, which is what gives- * paired fields their equal columns.- */-.row {- display: flex;- align-items: center;- gap: 8px;- min-height: var(--cp-h);- padding: 0 var(--cp-pad);-}--.rowLabel {- flex: none;- width: var(--cp-label-w);- color: var(--cp-fg-muted);- font-size: var(--cp-fs);- user-select: none;-}--.controls {- display: flex;- align-items: center;- gap: var(--cp-gap);- flex: 1 1 auto;- min-width: 0;-}--.stacked {- flex-direction: column;- align-items: stretch;-}--/* ── parameter ───────────────────────────────────────────────────────────── */--.head {- display: flex;- align-items: baseline;- justify-content: space-between;- gap: 8px;- min-width: 0;-}--.labelGroup {- display: flex;- align-items: center;- gap: 5px;- min-width: 0;-}--.label {- overflow: hidden;- color: var(--cp-fg);- font-size: var(--cp-fs);- text-overflow: ellipsis;- white-space: nowrap;-}--.resettable { cursor: pointer; }--/* The formatted value lives up here beside the label, the raw one lives in the- field below. One says what the setting means, the other is what you edit. */-.readout {- flex: none;- color: var(--cp-fg-dim);- font-size: var(--cp-fs-sm);- font-variant-numeric: tabular-nums;-}--.body {- display: flex;- align-items: center;- gap: var(--cp-gap);-}--.numberSlot {- flex: none;- width: 62px;-}--/* ── fader ───────────────────────────────────────────────────────────────── */--.fader {- position: relative;- flex: 1 1 0;- min-width: 0;- height: var(--cp-h);- border: 1px solid var(--cp-line);- border-radius: var(--cp-r);- background: var(--cp-well);- cursor: ew-resize;- touch-action: none;-}--.fader:hover { border-color: var(--cp-line-strong); }-.fader:focus-visible { outline: none; box-shadow: var(--cp-focus); }--.rail {- position: absolute;- inset: 2px;-}--.fill {- position: absolute;- top: 0;- bottom: 0;- left: 0;- border-radius: var(--cp-r-xs);- background: var(--cp-accent-soft);-}--/* A bar, not a bead: flat edges land on a value with a precision a circle- never has, and at zero the bar still sits inside the track rather than- half-hanging off its left edge. */-.cap {- position: absolute;- top: 0;- bottom: 0;- width: 3px;- border-radius: 2px;- background: var(--cp-accent);- transition: background 100ms var(--cp-ease);-}--/* ── number field ────────────────────────────────────────────────────────── */--.field {- display: flex;- align-items: center;- gap: 5px;- flex: 1 1 0;- min-width: 0;- height: var(--cp-h);- padding: 0 8px;- border-radius: var(--cp-r);- background: var(--cp-field);- color: var(--cp-fg);- font-size: var(--cp-fs);- cursor: ew-resize;- transition: background 120ms var(--cp-ease), box-shadow 120ms var(--cp-ease);-}--.field:hover { background: var(--cp-field-hover); }--.editing {- cursor: text;- background: var(--cp-field-hover);- box-shadow: var(--cp-focus);-}--.fieldInput {- flex: 1 1 auto;- width: 100%;- min-width: 0;- padding: 0;- border: 0;- outline: none;- background: none;- color: inherit;- font: inherit;- font-variant-numeric: tabular-nums;- text-align: right;- cursor: inherit;-}--/* ── select ──────────────────────────────────────────────────────────────── */--.select {- position: relative;- flex: 1 1 0;- min-width: 0;-}--.trigger {- display: flex;- align-items: center;- gap: 6px;- width: 100%;- height: var(--cp-h);- padding: 0 6px 0 8px;- border: 0;- border-radius: var(--cp-r);- background: var(--cp-field);- color: var(--cp-fg);- font: inherit;- font-size: var(--cp-fs);- text-align: left;- cursor: pointer;- transition: background 120ms var(--cp-ease), box-shadow 120ms var(--cp-ease);-}--.trigger:hover { background: var(--cp-field-hover); }-.trigger:focus-visible { outline: none; box-shadow: var(--cp-focus); }-.open { background: var(--cp-field-hover); box-shadow: var(--cp-focus); }--.triggerLabel {- flex: 1 1 auto;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.chevron {- flex: none;- color: var(--cp-fg-muted);-}--/*- * The list carries the study's own floating material, and its row highlight is- * a filled row rather than a hover tint - so arrowing through a font list- * shows where the keyboard is without a second selection mark.- *- * It is positioned from script and mounted at the document root, because the- * panel body scrolls: a dropdown laid out inside it is clipped by it, and a- * font list is exactly the one that is too long to fit.- */-.list {- position: fixed;- z-index: 60;- max-height: 240px;- margin: 0;- padding: 4px;- overflow-y: auto;- list-style: none;- background: var(--cp-raised);- border: 1px solid var(--cp-line-strong);- border-radius: var(--cp-r);- box-shadow: 0 12px 28px rgb(0 0 0 / 0.55);- outline: none;- animation: pop 110ms var(--cp-ease);-}--@keyframes pop {- from { opacity: 0; transform: translateY(-3px); }- to { opacity: 1; transform: none; }-}--.optionGroup {- padding: 6px 8px 3px;- color: var(--cp-fg-dim);- font-size: var(--cp-fs-sm);- font-weight: 600;- letter-spacing: 0.04em;- text-transform: uppercase;-}--.option {- display: flex;- align-items: center;- gap: 6px;- height: 26px;- padding: 0 6px;- border-radius: var(--cp-r-sm);- color: var(--cp-fg-muted);- font-size: var(--cp-fs);- white-space: nowrap;- cursor: pointer;-}--.option[data-active='true'] {- background: var(--cp-accent);- color: var(--cp-on-accent);-}--.optionLabel {- flex: 1 1 auto;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;-}--.check {- flex: none;- color: var(--cp-accent);-}--.option[data-active='true'] .check { color: var(--cp-on-accent); }--/* ── segmented control ───────────────────────────────────────────────────── */--.segGroup {- position: relative;- display: flex;- flex: 1 1 0;- min-width: 0;- height: var(--cp-h);- padding: 2px;- border: 1px solid var(--cp-line);- border-radius: var(--cp-r);- background: var(--cp-well);-}--.segThumb {- position: absolute;- top: 2px;- bottom: 2px;- left: 0;- border-radius: var(--cp-r-sm);- background: var(--cp-field-hover);- box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);- transition: transform 180ms var(--cp-ease), width 180ms var(--cp-ease);- pointer-events: none;-}--.segment {- position: relative;- flex: 1 1 0;- min-width: 0;- display: grid;- place-items: center;- padding: 0 8px;- border: 0;- border-radius: var(--cp-r-sm);- background: none;- color: var(--cp-fg-muted);- font: inherit;- font-size: var(--cp-fs);- /* Segment labels are single words, and the catalogs hold them lowercase so- they read as prose elsewhere. */- text-transform: capitalize;- white-space: nowrap;- cursor: pointer;- transition: color 140ms var(--cp-ease);-}--.segment:hover { color: var(--cp-fg); }-.segment:focus-visible { outline: none; box-shadow: var(--cp-focus); }-.segmentOn { color: var(--cp-fg); }--/* ── switch ──────────────────────────────────────────────────────────────── */--.switchRow {- display: flex;- align-items: center;- gap: 5px;- width: 100%;- min-width: 0;-}--.switch {- position: relative;- flex: none;- margin-left: auto;- width: 34px;- height: 20px;- padding: 0;- border: 1px solid var(--cp-line-strong);- border-radius: 999px;- background: var(--cp-field);- cursor: pointer;- transition: background 140ms var(--cp-ease), border-color 140ms var(--cp-ease);-}--.switch:hover { background: var(--cp-field-hover); }-.switch:focus-visible { outline: none; box-shadow: var(--cp-focus); }--.switchOn,-.switchOn:hover {- border-color: var(--cp-accent);- background: var(--cp-accent);-}--.thumb {- position: absolute;- top: 2px;- left: 2px;- width: 14px;- height: 14px;- border-radius: 50%;- background: #fff;- box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);- transition: transform 140ms var(--cp-ease);-}--.switchOn .thumb { transform: translateX(14px); }--/* ── help disclosure ─────────────────────────────────────────────────────── */--/*- * A tooltip hides the answer again the moment the pointer moves, and reaching- * one from the keyboard takes machinery. This toggles a line of prose the- * caller renders where it belongs instead.- */-.help {- display: grid;- place-items: center;- flex: none;- width: 14px;- height: 14px;- padding: 0;- border: 1px solid var(--cp-line-strong);- border-radius: 50%;- background: none;- color: var(--cp-fg-dim);- font: inherit;- font-size: 9px;- line-height: 1;- cursor: pointer;- transition: color 100ms var(--cp-ease), border-color 100ms var(--cp-ease);-}--.help:hover { color: var(--cp-fg-muted); border-color: var(--cp-fg-dim); }-.help:focus-visible { outline: none; box-shadow: var(--cp-focus); }--.helpOn {- border-color: var(--cp-accent);- color: var(--cp-accent);-}--.note {- margin: 0;- padding: 0 var(--cp-pad) 2px;- color: var(--cp-fg-dim);- font-size: var(--cp-fs);- line-height: 1.5;-}--/* ── text entry ──────────────────────────────────────────────────────────── */--.textarea {- width: 100%;- min-height: 72px;- padding: 8px 10px;- border: 1px solid var(--cp-line);- border-radius: var(--cp-r);- background: var(--cp-well);- color: var(--cp-fg);- font: inherit;- font-size: var(--cp-fs-lg);- line-height: 1.5;- resize: vertical;- outline: none;-}--.textarea::placeholder { color: var(--cp-fg-dim); }-.textarea:hover { border-color: var(--cp-line-strong); }-.textarea:focus { box-shadow: var(--cp-focus); }--/* An import target has to look like one before it is used, so it is dashed- at rest rather than only while a file is over it. */-.dashed {- display: flex;- align-items: center;- justify-content: center;- gap: 6px;- width: 100%;- height: var(--cp-h);- border: 1px dashed var(--cp-line-strong);- border-radius: var(--cp-r);- background: none;- color: var(--cp-fg-muted);- font: inherit;- font-size: var(--cp-fs);- cursor: pointer;- transition: color 100ms var(--cp-ease), border-color 100ms var(--cp-ease);-}--.dashed:hover { border-color: var(--cp-fg-dim); color: var(--cp-fg); }-.dashed:focus-visible { outline: none; box-shadow: var(--cp-focus); }--/* ── colour ──────────────────────────────────────────────────────────────── */--.hex {- flex: 1 1 auto;- min-width: 0;- height: var(--cp-h);- padding: 0 10px;- border: 1px solid var(--cp-line);- border-radius: var(--cp-r);- background: var(--cp-well);- color: var(--cp-fg);- font: inherit;- font-size: var(--cp-fs);- font-variant-numeric: tabular-nums;- text-transform: lowercase;- outline: none;-}--.hex:hover { border-color: var(--cp-line-strong); }-.hex:focus { box-shadow: var(--cp-focus); }--.swatch {- position: relative;- flex: none;- width: 44px;- height: var(--cp-h);- padding: 0;- overflow: hidden;- border: 1px solid var(--cp-line-strong);- border-radius: var(--cp-r);- cursor: pointer;-}--.swatch:focus-within { box-shadow: var(--cp-focus); }--/* The native picker is the whole hit area, blown up past the edges so no- platform chrome of its own shows through the swatch. */-.swatchInput {- position: absolute;- inset: -8px;- width: calc(100% + 16px);- height: calc(100% + 16px);- padding: 0;- border: 0;- background: none;- opacity: 0;- cursor: pointer;-}--/* ── font list ───────────────────────────────────────────────────────────── */--.fontRow {- display: flex;- align-items: center;- gap: 8px;- height: 24px;- padding: 0 var(--cp-pad);- color: var(--cp-fg-muted);- font-size: var(--cp-fs);-}--.fontRow:hover { background: var(--cp-field); }--.fontName {- flex: 1 1 auto;- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.fontRemove {- display: grid;- place-items: center;- flex: none;- width: 18px;- height: 18px;- padding: 0;- border: 0;- border-radius: var(--cp-r-xs);- background: none;- color: var(--cp-fg-dim);- cursor: pointer;-}--.fontRemove:hover { color: var(--cp-danger); }-.fontRemove:focus-visible { outline: none; box-shadow: var(--cp-focus); }--/* ── sample ──────────────────────────────────────────────────────────────── */--/*- * A strip of the title as it will look, pinned above the controls.- *- * The program monitor next to this panel is the truth for scale and position,- * so the sample does not try to be a second one: it is a type specimen, held- * to a readable size, for judging face, weight, colour and outline without- * hunting for the words in the frame.- */-.sample {- position: sticky;- top: 0;- z-index: 5;- display: flex;- align-items: center;- height: 62px;- padding: 0 var(--cp-pad);- overflow: hidden;- border-bottom: 1px solid var(--cp-line);- background: var(--cp-well);-}--.sampleText {- max-width: 100%;- overflow: hidden;- text-overflow: ellipsis;-}--.samplePlaceholder {- color: var(--cp-fg-dim);- font-size: var(--cp-fs);-}--@media (prefers-reduced-motion: reduce) {- .list { animation: none; }-- .cap,- .thumb,- .switch,- .segThumb,- .segment {- transition: none;- }-}diff --git a/desktop/src/hooks/useCaptions.ts b/desktop/src/hooks/useCaptions.tsdeleted file mode 100644index 04496e7e..00000000--- a/desktop/src/hooks/useCaptions.ts+++ /dev/null@@ -1,87 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Auto-captions: transcribe one clip's audio and lay the result out as text- * clips on a "Captions" track (created on first use, reused after).- *- * The captions land as one batch - one round trip, one undo step - which is- * why each addTextClip carries its own duration and placement.- */-import { useCallback, useState } from "react";--import {- activeTimeline,- type Clip,- type EditorCommand,- type EditorProject,- type MediaItem,-} from "../lib/editor";-import { transcribeClip } from "../lib/engine";-import { getTranscriberLanguage, getTranscriberModel } from "../lib/settings";-import { defaultTextStyle } from "../lib/text";--export function useCaptions({- dispatch,- getProject,- onToast,-}: {- dispatch: (command: EditorCommand) => Promise<string | undefined>;- getProject: () => EditorProject;- onToast: (message: string, failed: boolean) => void;-}) {- const [transcribing, setTranscribing] = useState(false);-- const autoCaption = useCallback(- async (clip: Clip, media: MediaItem) => {- setTranscribing(true);- onToast("Transcribing...", false);- try {- const segments = await transcribeClip({- path: media.path,- sourceStart: clip.sourceStart,- window: clip.duration * clip.speed,- language: getTranscriberLanguage(),- modelId: getTranscriberModel(),- });- if (segments.length === 0) {- onToast("No speech found", false);- return;- }-- let trackId = activeTimeline(getProject()).tracks.find(- (track) => track.name === "Captions",- )?.id;- if (!trackId) {- trackId = await dispatch({ op: "addTrack" });- if (!trackId) return;- await dispatch({ op: "renameTrack", trackId, name: "Captions" });- }-- await dispatch({- op: "batch",- commands: segments.map((segment) => ({- op: "addTextClip",- trackId,- start: clip.start + segment.start / clip.speed,- duration: Math.max(0.4, (segment.end - segment.start) / clip.speed),- offsetY: 0.38,- // Caption-sized and lower-third, not title-sized and centred.- style: { ...defaultTextStyle(), content: segment.text, fontSize: 0.045 },- })),- });- onToast(- `Added ${segments.length} caption${segments.length === 1 ? "" : "s"}`,- false,- );- } catch (cause) {- onToast(String(cause), true);- } finally {- setTranscribing(false);- }- },- [dispatch, getProject, onToast],- );-- return { autoCaption, transcribing };-}diff --git a/desktop/src/hooks/useEngineSession.ts b/desktop/src/hooks/useEngineSession.tsdeleted file mode 100644index b0cdd982..00000000--- a/desktop/src/hooks/useEngineSession.ts+++ /dev/null@@ -1,288 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The engine-owned editing session, as one hook.- *- * Owns everything between the window and `editor_*`: the serialised command- * queue, the authoritative `EditorView`, the gesture echo and its commit,- * undo/redo, the debounced autosave, and the output frame the preview footer- * can edit. App.tsx renders what comes out; nothing else talks to the- * session commands.- */-import { useCallback, useEffect, useMemo, useRef, useState } from "react";--import {- activeTimeline,- commandsForEcho,- withEcho,- type Clip,- type Echo,- type EditorCommand,- type EditorProject,- type EditorView,-} from "../lib/editor";-import {- editorApply,- editorClose,- editorOpen,- editorRedo,- editorSave,- editorUndo,-} from "../lib/engine";-import type { ProjectSession } from "../components/StartScreen";--/** What the editor renders for the frame or two before the session opens. */-const EMPTY_PROJECT: EditorProject = {- media: [],- fonts: [],- timelines: [- {- id: "TL1",- name: "Timeline 1",- tracks: [1, 2, 3, 4].map((number) => ({- id: `T${number}`,- name: `Track ${number}`,- visible: true,- muted: false,- })),- clips: [],- },- ],- activeTimelineId: "TL1",-};--export type SaveState = "idle" | "saving" | "saved" | "failed";--export function useEngineSession({- session,- onOpenError,- onCommandError,- onSaved,-}: {- session: ProjectSession;- /** The project could not be opened at all. */- onOpenError: (message: string) => void;- /** A command was refused; the message is the engine's own sentence. */- onCommandError: (message: string) => void;- /** An explicit save finished, one way or the other. */- onSaved: (ok: boolean, message?: string) => void;-}) {- const [view, setView] = useState<EditorView | null>(null);- const [echo, setEcho] = useState<Echo | null>(null);- const [saveState, setSaveState] = useState<SaveState>("idle");- /**- * The output frame. Starts from the project settings but is editable from- * the preview footer; the engine persists whatever this holds on save.- */- const [frame, setFrame] = useState({ width: session.width, height: session.height });-- const loaded = view !== null;- // What the window draws: the engine's state with the gesture echo on top.- const project = useMemo(() => withEcho(view?.project ?? EMPTY_PROJECT, echo), [view, echo]);-- const viewRef = useRef(view);- viewRef.current = view;- const echoRef = useRef(echo);- echoRef.current = echo;- const frameRef = useRef(frame);- frameRef.current = frame;-- // ── the command queue ────────────────────────────────────────────────────- // Commands are serialised so responses can never land out of order and- // overwrite newer state with older. Errors surface through onCommandError -- // they are user-meaningful sentences from the engine.- const queue = useRef<Promise<unknown>>(Promise.resolve());- const dispatch = useCallback(- (command: EditorCommand): Promise<string | undefined> => {- const run = queue.current.then(async () => {- const next = await editorApply(command);- viewRef.current = next;- setView(next);- return next.createdId;- });- queue.current = run.catch(() => undefined);- return run.catch((cause: unknown) => {- onCommandError(String(cause));- return undefined;- });- },- [onCommandError],- );-- const undoAction = useCallback(() => {- queue.current = queue.current- .then(async () => {- const next = await editorUndo();- viewRef.current = next;- setView(next);- setEcho(null);- })- .catch(() => undefined);- }, []);-- const redoAction = useCallback(() => {- queue.current = queue.current- .then(async () => {- const next = await editorRedo();- viewRef.current = next;- setView(next);- setEcho(null);- })- .catch(() => undefined);- }, []);-- // ── the gesture echo ─────────────────────────────────────────────────────-- /**- * Live: merges a patch into the echo for one clip.- *- * The merge goes through `echoRef` and lands in it synchronously, not just- * through a state updater: a discrete control - adding an effect, picking- * a transition - echoes and commits in the same tick, and a commit that- * read the ref before the next render would see the world without the- * change it is supposed to commit. The engine never hearing about an- * applied effect is exactly how the paused monitor ends up showing the- * unprocessed frame.- */- const liveClip = useCallback((clipId: string, patch: Partial<Clip>) => {- const current = echoRef.current;- const next = {- ...(current ?? {}),- [clipId]: { ...(current?.[clipId] ?? {}), ...patch },- };- echoRef.current = next;- setEcho(next);- }, []);-- /**- * Commit: everything echoed becomes engine commands - one per gesture is- * the point, so undo undoes the drag rather than a pixel of it. Multi-clip- * moves collapse into a single MoveClips; several commands land as one- * batch, one undo step. The echo clears only after the engine's state- * arrives, so nothing flashes back mid-flight.- */- const commitEcho = useCallback(() => {- const pending = echoRef.current;- const engineProject = viewRef.current?.project;- if (!pending || !engineProject) return;-- const active = activeTimeline(engineProject);- const commands: EditorCommand[] = [];- const moves: { clipId: string; start: number; trackId: string }[] = [];-- for (const [clipId, patch] of Object.entries(pending)) {- const base = active.clips.find((clip) => clip.id === clipId);- if (!base) continue;- for (const command of commandsForEcho(base, patch)) {- if (command.op === "moveClips") moves.push(...command.moves);- else commands.push(command);- }- }- if (moves.length > 0) commands.push({ op: "moveClips", moves });-- if (commands.length === 0) {- setEcho(null);- return;- }- const command: EditorCommand =- commands.length === 1 ? commands[0] : { op: "batch", commands };- void dispatch(command).then(() => setEcho(null));- }, [dispatch]);-- // ── the session itself ───────────────────────────────────────────────────- useEffect(() => {- let cancelled = false;- const opening = editorOpen({- path: session.path,- name: session.name,- width: session.width,- height: session.height,- rateNum: session.rateNum,- rateDen: session.rateDen,- });- // The engine installs the session only when the open resolves, but the- // editor is already on screen taking gestures. Seeding the command queue- // with the open makes anything dispatched early - a file dropped onto a- // still-loading editor - wait for the session instead of bouncing off- // "no project is open" (#11).- queue.current = opening.catch(() => undefined);- opening- .then((opened) => {- if (cancelled) return;- viewRef.current = opened;- setView(opened);- setFrame({ width: opened.settings.width, height: opened.settings.height });- })- .catch((cause: unknown) => {- if (!cancelled) onOpenError(String(cause));- });- return () => {- cancelled = true;- void editorClose().catch(() => undefined);- };- // Opened once per session; the error callback must not reopen it.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [session]);-- // Autosave, debounced. The engine writes the document; the UI only says- // when, and carries the output frame the preview footer can edit.- //- // A failure toasts once per losing streak - the first failed autosave is- // news the user must not miss (their edits are not reaching disk), but a- // full disk would otherwise toast every keystroke and a half. The streak- // resets on the next success so a recurrence speaks up again.- const autosaveFailing = useRef(false);- useEffect(() => {- if (!loaded) return;- const timer = window.setTimeout(() => {- setSaveState("saving");- editorSave(frameRef.current)- .then(() => {- setSaveState("saved");- autosaveFailing.current = false;- })- .catch((cause: unknown) => {- setSaveState("failed");- if (!autosaveFailing.current) {- autosaveFailing.current = true;- onSaved(false, String(cause));- }- });- }, 1500);- return () => clearTimeout(timer);- }, [view, frame, loaded, onSaved]);-- const saveAndNotify = useCallback(() => {- setSaveState("saving");- editorSave(frameRef.current)- .then(() => {- setSaveState("saved");- onSaved(true);- })- .catch((cause: unknown) => {- setSaveState("failed");- onSaved(false, String(cause));- });-- }, [onSaved]);-- return {- view,- /** Post-dispatch continuations read the freshest state through this. */- viewRef,- loaded,- project,- echo,- setEcho,- dispatch,- undoAction,- redoAction,- liveClip,- commitEcho,- frame,- setFrame,- saveState,- saveAndNotify,- };-}diff --git a/desktop/src/hooks/useEngineTruth.ts b/desktop/src/hooks/useEngineTruth.tsdeleted file mode 100644index 0a7de7b1..00000000--- a/desktop/src/hooks/useEngineTruth.ts+++ /dev/null@@ -1,169 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The engine's true frames for the monitor: the paused dwell and the- * playback stream, one owner.- *- * Paused: when the playhead settles, fetch the exporter's own composite and- * hold it over the approximation until the playhead moves. Playing: while- * two or more visual layers sit under the playhead, stream frames against- * the transport clock - requests are- * quantised to the project's frame grid and issued one measured round-trip- * ahead of the interpolated playhead, so a frame lands about when it is- * due; each presented frame also warms the engine's cache for the instants- * after it (desktop decision 0009). Single layers keep the smooth element- * preview. Both paths fetch at the user's preview quality - a fraction of- * the output frame, chosen in the monitor's footer.- *- * The request carries an instant and a resolution, nothing else: the engine- * flattens its own session (engine decision 0009). The UI used to serialise- * its whole flattened clip list into every one of these requests - per- * scrub, per streamed frame.- */-import { useEffect, useRef, useState } from "react";--import { clipsAt, type EditorProject } from "../lib/editor";-import { previewFrame, previewPrefetch } from "../lib/engine";--export interface EngineStill {- bytes: ArrayBuffer;- width: number;- height: number;-}--/** Even dimensions at a fraction of the frame - decoders round odd sizes. */-function scaled(frame: { width: number; height: number }, quality: number) {- const fraction = Number.isFinite(quality) && quality > 0 ? Math.min(quality, 1) : 0.5;- return {- width: Math.max(2, Math.round((frame.width * fraction) / 2) * 2),- height: Math.max(2, Math.round((frame.height * fraction) / 2) * 2),- };-}--export function useEngineTruth({- playing,- loaded,- playhead,- project,- renderableClipCount,- frame,- fps,- quality,- latest,-}: {- playing: boolean;- loaded: boolean;- playhead: number;- /** The engine's state; a new identity per edit refreshes the paused still. */- project: EditorProject;- /** Non-text clips on the active timeline - zero means nothing to composite. */- renderableClipCount: number;- frame: { width: number; height: number };- /** The project's frame rate; the grid streamed requests snap to. */- fps: number;- /** Preview resolution as a fraction of the output frame: 1, 0.5, 0.25. */- quality: number;- /** Live values, read mid-flight without restarting the loops. */- latest: { current: { playhead: number; frame: { width: number; height: number }; project: EditorProject } };-}): EngineStill | null {- const [engineStill, setEngineStill] = useState<EngineStill | null>(null);- const stillToken = useRef(0);-- // The paused dwell.- useEffect(() => {- // While playing, the streaming loop below owns the still; clearing it- // here on every playhead tick would fight the stream frame by frame.- if (playing) return;- const token = ++stillToken.current;- setEngineStill(null);- if (!loaded || renderableClipCount === 0) return;-- const timer = window.setTimeout(() => {- const { width, height } = scaled(frame, quality);- previewFrame({ time: latest.current.playhead, width, height })- .then((bytes) => {- if (stillToken.current === token) setEngineStill({ bytes, width, height });- })- .catch(() => {- if (stillToken.current === token) setEngineStill(null);- });- }, 160);- return () => window.clearTimeout(timer);- // `project` is the refresh signal: an edit while paused must re-fetch.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [playing, loaded, playhead, project, renderableClipCount, frame, quality]);-- // The playback stream, paced by the transport clock. Still pull - one- // request in flight, never a queue of stale frames - but the requests are- // snapped to the project's frame grid and issued one lead ahead of the- // interpolated playhead, where the lead tracks the measured round-trip:- // a frame arrives about when it is due instead of a round-trip late, and- // the same instant is never composited twice. After each presented frame- // a fire-and-forget prefetch warms the engine's cache for the instants- // after it, which keeps the pool's readers rolling forward and turns the- // next pulls into cache hits. Frames come back at the chosen preview- // quality; dropping it is the lever when playback cannot keep up.- useEffect(() => {- if (!playing || !loaded) return;- let live = true;- // Invalidate any paused-dwell fetch still in flight from before play.- stillToken.current += 1;- const rate = Number.isFinite(fps) && fps > 0 ? fps : 30;- const wait = (ms: number) => new Promise((resolve) => window.setTimeout(resolve, ms));- const visualLayers = (time: number) =>- clipsAt(latest.current.project, time).filter(- (clip) => clip.kind === "video" || clip.kind === "image",- ).length;-- const run = async () => {- // The lead starts at one frame and follows the round-trip, clamped to- // [1, 3] frames - a pathological decode must not push requests seconds- // ahead of what the user is hearing.- let lead = 1 / rate;- let presented = -1;- while (live) {- const now = latest.current.playhead;- if (visualLayers(now) < 2) {- setEngineStill(null);- presented = -1;- await wait(120);- continue;- }- const target = Math.round((now + lead) * rate);- if (target === presented) {- // The clock has not reached the next frame yet; a quarter-frame- // nap keeps the loop from spinning on an already-shown instant.- await wait(250 / rate);- continue;- }- const { width, height } = scaled(latest.current.frame, quality);- const started = performance.now();- try {- const bytes = await previewFrame({ time: target / rate, width, height });- const trip = (performance.now() - started) / 1000;- lead = Math.min(Math.max(0.8 * lead + 0.2 * trip, 1 / rate), 3 / rate);- presented = target;- if (live) {- setEngineStill({ bytes, width, height });- void previewPrefetch({ time: (target + 1) / rate, width, height }, 2).catch(- () => undefined,- );- }- } catch {- // A failed frame keeps the approximation on screen; back off so a- // persistently failing source cannot spin the pool.- if (live) setEngineStill(null);- presented = -1;- await wait(200);- }- }- };- void run();- return () => {- live = false;- };- }, [playing, loaded, latest, fps, quality]);-- return engineStill;-}diff --git a/desktop/src/hooks/usePlaybackBridge.ts b/desktop/src/hooks/usePlaybackBridge.tsdeleted file mode 100644index 6f50cc7b..00000000--- a/desktop/src/hooks/usePlaybackBridge.ts+++ /dev/null@@ -1,88 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The audio side of the engine bridge: what should be audible, and what the- * engine says went wrong.- *- * The audible clip set is derived from the active timeline and replaced- * wholesale in the engine's mixer, debounced so a drag does not thrash the- * decoder. Playback failures come back as `audio://error` events and reach- * the caller's toast - a mute app must never be a mystery.- */-import { useEffect, useMemo } from "react";-import { isTauri } from "@tauri-apps/api/core";--import { findMedia, findTrack, type EditorProject, type TimelineData } from "../lib/editor";-import { audioSetClips, onAudioError } from "../lib/engine";-import { buildChain } from "../lib/filters";--export function usePlaybackBridge({- project,- timeline,- projectPath,- onError,-}: {- project: EditorProject;- timeline: TimelineData;- projectPath: string;- onError: (message: string) => void;-}) {- const audibleClips = useMemo(- () =>- timeline.clips.flatMap((clip) => {- if (clip.kind !== "audio" && clip.kind !== "video") return [];- if (clip.kind === "video" && clip.muted) return [];- const track = findTrack(project, clip.trackId);- if (!track || track.muted) return [];- const media = findMedia(project, clip.mediaId);- if (!media || !media.hasAudio) return [];- return [- {- path: media.path,- start: clip.start,- duration: clip.duration,- sourceStart: clip.sourceStart,- volume: clip.volume,- fadeIn: clip.fadeIn,- fadeOut: clip.fadeOut,- speed: clip.speed,- preservePitch: clip.preservePitch,- chain: buildChain(clip.filters) ?? "",- },- ];- }),- [project, timeline],- );-- useEffect(() => {- if (!isTauri()) return;- const timer = window.setTimeout(() => {- void audioSetClips(projectPath, audibleClips).catch((cause: unknown) =>- console.error("WolfCut: could not update the mix", cause),- );- }, 150);- return () => window.clearTimeout(timer);- }, [audibleClips, projectPath]);-- // Identical messages within a burst (one per clip of a broken import,- // say) collapse into one.- useEffect(() => {- if (!isTauri()) return;- let unlisten: (() => void) | null = null;- let lastMessage = "";- let lastAt = 0;- void onAudioError((message) => {- const now = Date.now();- if (message === lastMessage && now - lastAt < 10_000) return;- lastMessage = message;- lastAt = now;- onError(message);- }).then((stop) => {- unlisten = stop;- });- return () => unlisten?.();- // Subscribed once; the handler reaches state through onError.- // eslint-disable-next-line react-hooks/exhaustive-deps- }, []);-}diff --git a/desktop/src/lib/assets.test.ts b/desktop/src/lib/assets.test.tsdeleted file mode 100644index e07056c3..00000000--- a/desktop/src/lib/assets.test.ts+++ /dev/null@@ -1,136 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--// @vitest-environment jsdom-/**- * The waveform cache's wire format.- *- * `encodePeaks`/`decodePeaks` are the two halves of the on-disk artwork cache:- * what encode writes today, decode must read on every future launch. A break- * in the round-trip does not crash anything - loadPeaks falls back to a full- * re-decode - but it silently voids the cache, and a decode that misreads- * lengths would draw garbage waveforms. When a layout expectation here fails,- * remember the old files on disk: decode must keep reading yesterday's bytes,- * or the cache key (in `loadPeaks`) must change so stale entries miss.- *- * jsdom because `assets.ts` reads `window.devicePixelRatio` at module scope.- */-import { describe, expect, test } from "vitest";--import { decodePeaks, encodePeaks, type Peaks } from "./assets";--function peaks(min: number[], max: number[], bucketsPerSecond = 200): Peaks {- return {- min: Float32Array.from(min),- max: Float32Array.from(max),- bucketsPerSecond,- };-}--const roundTrip = (source: Peaks) => decodePeaks(encodePeaks(source).buffer);--describe("the peaks round-trip", () => {- test("decode(encode(x)) preserves every bucket exactly", () => {- // Samples are already Float32 on both sides, so the only quantisation- // happened before encode ever saw them: the trip itself must be lossless.- const source = peaks([-1, -0.5, 0, -0.001], [1, 0.5, 0, 0.001]);- const decoded = roundTrip(source);- expect(decoded).not.toBeNull();- expect(decoded!.min).toEqual(source.min);- expect(decoded!.max).toEqual(source.max);- expect(decoded!.bucketsPerSecond).toBe(200);- });-- test("a fractional bucket rate survives to Float32 precision", () => {- // loadPeaks computes sampleRate / bucketSize, rarely a round number.- const rate = 44100 / 220; // 200.4545...- const decoded = roundTrip(peaks([0], [0], rate));- expect(decoded!.bucketsPerSecond).toBe(Math.fround(rate));- expect(decoded!.bucketsPerSecond).toBeCloseTo(rate, 4);- });-- test("many arbitrary values survive within Float32 quantisation", () => {- // A deterministic pseudo-random spread across the full sample range.- const values = Array.from({ length: 1000 }, (_, index) =>- Math.sin(index * 12.9898) * ((index % 7) / 7),- );- const source = peaks(values.map((value) => -Math.abs(value)), values);- const decoded = roundTrip(source);- expect(decoded!.min).toEqual(source.min);- expect(decoded!.max).toEqual(source.max);- for (let index = 0; index < values.length; index += 1) {- expect(Math.abs(decoded!.max[index] - values[index])).toBeLessThanOrEqual(- Math.abs(Math.fround(values[index]) - values[index]) + Number.EPSILON,- );- }- });-- test("the extremes 0, 1 and -1 come back exact", () => {- const decoded = roundTrip(peaks([-1, 0], [1, 0]));- expect(Array.from(decoded!.min)).toEqual([-1, 0]);- expect(Array.from(decoded!.max)).toEqual([1, 0]);- });-- test("a single bucket round-trips", () => {- const decoded = roundTrip(peaks([-0.25], [0.75]));- expect(decoded!.min).toHaveLength(1);- expect(decoded!.min[0]).toBeCloseTo(-0.25, 10);- expect(decoded!.max[0]).toBeCloseTo(0.75, 10);- });-- test("empty peaks round-trip as a valid header-only file", () => {- const bytes = encodePeaks(peaks([], []));- expect(bytes.byteLength).toBe(8);- const decoded = decodePeaks(bytes.buffer);- expect(decoded).not.toBeNull();- expect(decoded!.min).toHaveLength(0);- expect(decoded!.max).toHaveLength(0);- });-});--describe("the encoded layout", () => {- test("[bucketsPerSecond f32][count u32][min f32...][max f32...], little-endian", () => {- // This is the on-disk contract. Changing it strands every existing cache- // file, so a failure here demands either a compatible decode or a new key.- const bytes = encodePeaks(peaks([-0.5, -1], [0.5, 1], 200));- expect(bytes.byteLength).toBe(8 + 2 * 8);- const view = new DataView(bytes.buffer);- expect(view.getFloat32(0, true)).toBe(200);- expect(view.getUint32(4, true)).toBe(2);- expect(view.getFloat32(8, true)).toBe(-0.5); // min block first- expect(view.getFloat32(12, true)).toBe(-1);- expect(view.getFloat32(16, true)).toBe(0.5); // then the max block- expect(view.getFloat32(20, true)).toBe(1);- });-});--describe("decodePeaks fails soft on bad files", () => {- const valid = () => encodePeaks(peaks([-1], [1])).buffer;-- test("a file too short for the header is null", () => {- expect(decodePeaks(new ArrayBuffer(0))).toBeNull();- expect(decodePeaks(new ArrayBuffer(7))).toBeNull();- });-- test("a truncated or padded body is null, never a misread", () => {- const truncated = valid().slice(0, 12);- expect(decodePeaks(truncated)).toBeNull();- const padded = new Uint8Array(24);- padded.set(new Uint8Array(valid()));- expect(decodePeaks(padded.buffer)).toBeNull();- });-- test("a count that overruns the file is null", () => {- const bytes = new Uint8Array(valid());- new DataView(bytes.buffer).setUint32(4, 1000, true);- expect(decodePeaks(bytes.buffer)).toBeNull();- });-- test("a zero, negative or NaN bucket rate is null", () => {- for (const rate of [0, -200, Number.NaN]) {- const bytes = new Uint8Array(valid());- new DataView(bytes.buffer).setFloat32(0, rate, true);- expect(decodePeaks(bytes.buffer)).toBeNull();- }- });-});diff --git a/desktop/src/lib/assets.ts b/desktop/src/lib/assets.tsdeleted file mode 100644index 00f9f1dd..00000000--- a/desktop/src/lib/assets.ts+++ /dev/null@@ -1,297 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Clip artwork: waveforms for audio, filmstrips for video.- *- * Both are expensive to produce and never change, so they are computed once- * per media item and cached in a plain mutable `Map`. The timeline reads that- * map directly from inside its draw loop, which means artwork appearing does- * not require a React render - the next frame simply has it.- *- * Everything here fails soft. A file whose peaks cannot be decoded draws as a- * flat clip, which is exactly what it looked like before, rather than taking- * the timeline down with it.- */---import {- extractFilmstrip,- extractPeaks,- readArtwork as readArtworkFile,- readMediaBytes,- writeArtwork as writeArtworkFile,-} from "./engine";--/** Min/max sample pairs, bucketed at a fixed rate. */-export interface Peaks {- min: Float32Array;- max: Float32Array;- /** How many buckets cover one second of audio. */- bucketsPerSecond: number;-}--export interface MediaAssets {- peaks: Map<string, Peaks>;- /** A horizontal strip of evenly spaced frames, as one decoded image. */- strips: Map<string, ImageBitmap>;- /** How many frames are in each strip. */- stripFrames: Map<string, number>;- /** Guards against starting the same work twice. */- pending: Set<string>;- /** Notified when anything lands, for views that do not redraw continuously. */- listeners: Set<() => void>;-}--export function createAssets(): MediaAssets {- return {- peaks: new Map(),- strips: new Map(),- stripFrames: new Map(),- pending: new Set(),- listeners: new Set(),- };-}--/**- * Subscribes to artwork arriving. Returns an unsubscribe function.- *- * The timeline does not need this - it repaints every frame regardless - but- * anything that draws once and then sits there, like a bin thumbnail, does.- */-export function subscribeAssets(assets: MediaAssets, listener: () => void): () => void {- assets.listeners.add(listener);- return () => assets.listeners.delete(listener);-}--function announce(assets: MediaAssets): void {- for (const listener of assets.listeners) listener();-}--/** Frames per filmstrip. Enough to read the shot, few enough to stay cheap. */-const STRIP_FRAMES = 24;-/**- * Strip frames are drawn at ~32-72 CSS pixels tall, so they need the- * display's real pixel density or a Retina screen upscales them into mush.- * Capped at the engine's 240 limit; the ratio is read once because a strip- * cached at one density is not worth regenerating on a monitor change.- */-const STRIP_HEIGHT = Math.min(240, Math.round(72 * (window.devicePixelRatio || 1)));--/**- * Starts producing artwork for one media item if it is not already cached.- *- * Fire and forget - the caller does not await this. Results land in the maps- * and the timeline picks them up on its next frame.- */-export function requestAssets(- assets: MediaAssets,- media: {- id: string;- path: string;- kind: "video" | "audio" | "image";- duration: number | null;- hasAudio: boolean;- },- /** Project folder holding the on-disk artwork cache; null skips caching. */- projectPath: string | null = null,-): void {- if (assets.pending.has(media.id)) return;-- // Video peaks are deliberately NOT loaded here. Even engine-side, decoding- // a video's whole audio track is real work - so it happens only on demand,- // via requestVideoPeaks, when a detached audio clip needs drawing.- const wantsPeaks = media.kind === "audio" && !assets.peaks.has(media.id);- const wantsStrip = media.kind !== "audio" && !assets.strips.has(media.id);- if (!wantsPeaks && !wantsStrip) return;-- assets.pending.add(media.id);-- const jobs: Promise<unknown>[] = [];- if (wantsPeaks) {- jobs.push(- loadPeaks(media.path, projectPath).then((peaks) => {- if (peaks) assets.peaks.set(media.id, peaks);- }),- );- }- if (wantsStrip) {- jobs.push(- media.kind === "image"- ? // A still is a one-frame filmstrip. Storing it that way means the- // timeline and the bin draw it with the code they already have, and- // a long still clip tiles the same frame instead of stretching it.- loadImage(media.path).then((bitmap) => {- if (bitmap) {- assets.strips.set(media.id, bitmap);- assets.stripFrames.set(media.id, 1);- }- })- : loadStrip(media.path, media.duration, projectPath).then((strip) => {- if (strip) {- assets.strips.set(media.id, strip);- assets.stripFrames.set(media.id, STRIP_FRAMES);- }- }),- );- }-- void Promise.allSettled(jobs).then(() => {- assets.pending.delete(media.id);- announce(assets);- });-}--/**- * Waveform for a video's audio track, on demand.- *- * Called when a detached audio clip exists (or is being created) for a video,- * which is the only time a video needs peaks. Expensive on first run - the- * engine decodes the whole audio track - but the result lands in the disk- * cache, so a reopened project pays only a file read.- */-export function requestVideoPeaks(- assets: MediaAssets,- media: { id: string; path: string; kind: "video" | "audio" | "image"; hasAudio: boolean },- projectPath: string | null = null,-): void {- if (media.kind !== "video" || !media.hasAudio) return;- if (assets.peaks.has(media.id)) return;-- const pendingKey = `${media.id}:peaks`;- if (assets.pending.has(pendingKey)) return;- assets.pending.add(pendingKey);-- void loadPeaks(media.path, projectPath)- .then((peaks) => {- if (peaks) assets.peaks.set(media.id, peaks);- })- .finally(() => {- assets.pending.delete(pendingKey);- announce(assets);- });-}--/**- * The on-disk artwork cache, kept in the project's folder.- *- * Strips and peaks survive a relaunch there, which is the difference between- * a reopened project showing its artwork immediately and every launch paying- * for ffmpeg runs and full audio decodes again. Reads and writes both fail- * soft: a miss or a failed write only means generating now, caching later.- */-function artworkKey(path: string): string {- // FNV-1a over the absolute path. Collisions are astronomically unlikely at- // bin sizes, and a collision's worst case is a wrong thumbnail.- let hash = 0x811c9dc5;- for (let index = 0; index < path.length; index += 1) {- hash ^= path.charCodeAt(index);- hash = Math.imul(hash, 0x01000193) >>> 0;- }- return hash.toString(16).padStart(8, "0");-}--async function readArtwork(project: string | null, key: string): Promise<ArrayBuffer | null> {- if (!project) return null;- try {- return await readArtworkFile(project, key);- } catch {- return null;- }-}--function writeArtwork(project: string | null, key: string, bytes: Uint8Array): void {- if (!project) return;- // Serialising the payload for IPC is main-thread work, and nothing about a- // cache write is urgent - it waits for an idle moment so it never competes- // with playback.- const send = () => void writeArtworkFile(project, key, bytes).catch(() => undefined);- if (typeof window.requestIdleCallback === "function") window.requestIdleCallback(() => send());- else window.setTimeout(send, 500);-}--/** [bucketsPerSecond f32][count u32][min f32...][max f32...], little-endian. */-export function encodePeaks(peaks: Peaks): Uint8Array {- const count = peaks.min.length;- const buffer = new ArrayBuffer(8 + count * 8);- const view = new DataView(buffer);- view.setFloat32(0, peaks.bucketsPerSecond, true);- view.setUint32(4, count, true);- new Float32Array(buffer, 8, count).set(peaks.min);- new Float32Array(buffer, 8 + count * 4, count).set(peaks.max);- return new Uint8Array(buffer);-}--export function decodePeaks(bytes: ArrayBuffer): Peaks | null {- if (bytes.byteLength < 8) return null;- const view = new DataView(bytes);- const bucketsPerSecond = view.getFloat32(0, true);- const count = view.getUint32(4, true);- if (!Number.isFinite(bucketsPerSecond) || bucketsPerSecond <= 0) return null;- if (bytes.byteLength !== 8 + count * 8) return null;- return {- min: new Float32Array(bytes, 8, count),- max: new Float32Array(bytes, 8 + count * 4, count),- bucketsPerSecond,- };-}--/**- * Asks the engine for a file's peaks.- *- * The decode, the bucketing and the disk cache all live host-side now - the- * engine streams FFmpeg's output straight into buckets, so neither the file- * nor its samples ever cross the IPC boundary. What arrives here is the- * encoded buckets, ready for `decodePeaks`.- */-async function loadPeaks(path: string, project: string | null): Promise<Peaks | null> {- try {- return decodePeaks(await extractPeaks(path, project));- } catch (cause) {- console.warn(`WolfCut: no waveform for ${path}`, cause);- return null;- }-}--/** Decodes a still. No ffmpeg involved - the browser already reads these. */-async function loadImage(path: string): Promise<ImageBitmap | null> {- try {- const bytes = await readMediaBytes(path);- return await createImageBitmap(new Blob([bytes]));- } catch (cause) {- console.warn(`WolfCut: could not decode ${path}`, cause);- return null;- }-}--/** Asks the engine for a strip of frames and decodes it into an ImageBitmap. */-async function loadStrip(- path: string,- duration: number | null,- project: string | null,-): Promise<ImageBitmap | null> {- if (!duration || duration <= 0) return null;-- // The key carries the strip's shape, so a density or frame-count change- // regenerates rather than serving yesterday's resolution.- const key = `${artworkKey(path)}-f${STRIP_FRAMES}-h${STRIP_HEIGHT}.strip.jpg`;- const cached = await readArtwork(project, key);- if (cached) {- try {- return await createImageBitmap(new Blob([cached], { type: "image/jpeg" }));- } catch {- // A corrupt cache entry falls through to regeneration.- }- }-- try {- const bytes = await extractFilmstrip(path, STRIP_FRAMES, STRIP_HEIGHT);- writeArtwork(project, key, new Uint8Array(bytes));- // createImageBitmap decodes off the main thread, so a slow JPEG does not- // stall the timeline.- return await createImageBitmap(new Blob([bytes], { type: "image/jpeg" }));- } catch (cause) {- console.warn(`WolfCut: no filmstrip for ${path}`, cause);- return null;- }-}diff --git a/desktop/src/lib/editor-echo.test.ts b/desktop/src/lib/editor-echo.test.tsdeleted file mode 100644index 234aac05..00000000--- a/desktop/src/lib/editor-echo.test.ts+++ /dev/null@@ -1,274 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The echo's commit: accumulated drag patches into engine commands.- *- * `commandsForEcho` is the moment the preview becomes real. Every drag in the- * app funnels through it on release, so a wrong translation here does not- * mislead a preview - it commits a wrong edit to the document. These tests pin- * the exact command list for each echo shape. When one fails, decide which- * side moved: the echo builders in `lib/editor.ts` (trimPatch/speedPatch/- * transformPatch write the patches this function reads) or the command- * vocabulary in `engine/crates/wolfcut-project/src/commands.rs`.- */-import { describe, expect, test } from "vitest";--import {- commandsForEcho,- speedPatch,- transformPatch,- trimPatch,- withEcho,- type Clip,- type EditorProject,-} from "./editor";--function clip(overrides: Partial<Clip> = {}): Clip {- return {- id: "c1",- trackId: "T1",- mediaId: "m1",- name: "a.mp4",- kind: "video",- start: 0,- duration: 10,- sourceStart: 0,- volume: 1,- fadeIn: 0,- fadeOut: 0,- scale: 1,- offsetX: 0,- offsetY: 0,- rotation: 0,- opacity: 1,- speed: 1,- preservePitch: true,- filters: [],- videoEffects: [],- ...overrides,- };-}--describe("commandsForEcho: moves", () => {- test("a start change alone is one move on the same track", () => {- expect(commandsForEcho(clip(), { start: 3 })).toEqual([- { op: "moveClips", moves: [{ clipId: "c1", start: 3, trackId: "T1" }] },- ]);- });-- test("a track change alone is one move keeping the start", () => {- expect(commandsForEcho(clip({ start: 2 }), { trackId: "T2" })).toEqual([- { op: "moveClips", moves: [{ clipId: "c1", start: 2, trackId: "T2" }] },- ]);- });-- test("start and track together stay one move", () => {- expect(commandsForEcho(clip(), { start: 5, trackId: "T3" })).toEqual([- { op: "moveClips", moves: [{ clipId: "c1", start: 5, trackId: "T3" }] },- ]);- });-- test("a trackId echoed back unchanged commits nothing", () => {- // Dropping a clip back onto its own track at its own start is not an- // edit: the same-value guard start and duration already have. It used to- // commit a do-nothing MoveClips and burn an empty undo step.- expect(commandsForEcho(clip(), { trackId: "T1" })).toEqual([]);- });-- test("a track change combined with a trim commits both", () => {- // A busy panel's mixed accumulation: the head trim commits first (the- // engine places the start), then the move carries the track - it used to- // be silently lost in the trim's else-branch.- expect(- commandsForEcho(clip({ start: 2, duration: 4 }), { start: 3, duration: 3, trackId: "T2" }),- ).toEqual([- { op: "trimClip", clipId: "c1", edge: "start", delta: 1 },- { op: "moveClips", moves: [{ clipId: "c1", start: 3, trackId: "T2" }] },- ]);- });-});--describe("commandsForEcho: trims", () => {- test("a head trim becomes one start-edge TrimClip carrying the travel", () => {- const base = clip();- // trimPatch writes start+duration+sourceStart; the commit sends only the- // start delta and trusts the engine to redo the same arithmetic.- const patch = trimPatch(base, "start", 1);- expect(patch).toEqual({ start: 1, duration: 9, sourceStart: 1 });- expect(commandsForEcho(base, patch)).toEqual([- { op: "trimClip", clipId: "c1", edge: "start", delta: 1 },- ]);- });-- test("a clamped head trim commits the applied travel, not the request", () => {- const base = clip({ start: 1 });- const patch = trimPatch(base, "start", -3); // only 1s exists before zero- expect(commandsForEcho(base, patch)).toEqual([- { op: "trimClip", clipId: "c1", edge: "start", delta: -1 },- ]);- });-- test("a head trim at speed keeps the delta in timeline seconds", () => {- const base = clip({ duration: 5, speed: 2 });- const patch = trimPatch(base, "start", 1); // sourceStart moves 2, start moves 1- expect(commandsForEcho(base, patch)).toEqual([- { op: "trimClip", clipId: "c1", edge: "start", delta: 1 },- ]);- });-- test("an end trim becomes one end-edge TrimClip with the duration delta", () => {- expect(commandsForEcho(clip(), trimPatch(clip(), "end", 2))).toEqual([- { op: "trimClip", clipId: "c1", edge: "end", delta: 2 },- ]);- expect(commandsForEcho(clip(), { duration: 7 })).toEqual([- { op: "trimClip", clipId: "c1", edge: "end", delta: -3 },- ]);- });-- test("sourceStart never rides in a command", () => {- // The engine owns that arithmetic; if a sourceStart ever leaks into the- // wire format the two sides can disagree about the in-point.- const commands = commandsForEcho(clip(), trimPatch(clip(), "start", 2));- expect(JSON.stringify(commands)).not.toContain("sourceStart");- });-});--describe("commandsForEcho: speed", () => {- test("a speed change is SetClipSpeed alone - the engine re-derives duration", () => {- const base = clip();- const patch = speedPatch(base, 2); // writes speed AND duration into the echo- expect(patch).toEqual({ speed: 2, duration: 5 });- expect(commandsForEcho(base, patch)).toEqual([- { op: "setClipSpeed", clipId: "c1", speed: 2 },- ]);- });-});--describe("commandsForEcho: transforms", () => {- test("only the echoed transform fields ride the command", () => {- expect(commandsForEcho(clip(), { scale: 1.5, rotation: 90 })).toEqual([- { op: "setClipTransform", clipId: "c1", scale: 1.5, rotation: 90 },- ]);- expect(commandsForEcho(clip(), transformPatch({ offsetX: 0.25 }))).toEqual([- { op: "setClipTransform", clipId: "c1", offsetX: 0.25 },- ]);- });-});--describe("commandsForEcho: the update patch", () => {- test("plain fields collect into one UpdateClip", () => {- expect(- commandsForEcho(clip(), {- name: "renamed",- volume: 0.5,- fadeIn: 0.2,- fadeOut: 0.3,- opacity: 0.8,- preservePitch: false,- filters: [{ id: "bass", params: { gain: 6 } }],- videoEffects: [{ id: "sepia", params: {} }],- }),- ).toEqual([- {- op: "updateClip",- clipId: "c1",- patch: {- name: "renamed",- volume: 0.5,- fadeIn: 0.2,- fadeOut: 0.3,- opacity: 0.8,- preservePitch: false,- filters: [{ id: "bass", params: { gain: 6 } }],- videoEffects: [{ id: "sepia", params: {} }],- },- },- ]);- });-- test("a present-but-undefined transitionIn or text means clear, as null", () => {- // The wire keeps the engine's double-option distinction: absent leaves the- // field alone, null clears it. The echo spells "clear" as a present- // undefined, and the commit must translate that to null, never drop it.- expect(commandsForEcho(clip(), { transitionIn: undefined })).toEqual([- { op: "updateClip", clipId: "c1", patch: { transitionIn: null } },- ]);- expect(commandsForEcho(clip(), { text: undefined })).toEqual([- { op: "updateClip", clipId: "c1", patch: { text: null } },- ]);- });-- test("a real transition value passes through", () => {- expect(- commandsForEcho(clip(), { transitionIn: { id: "cross-fade", duration: 1 } }),- ).toEqual([- {- op: "updateClip",- clipId: "c1",- patch: { transitionIn: { id: "cross-fade", duration: 1 } },- },- ]);- });-});--describe("commandsForEcho: mixed accumulations and no-ops", () => {- test("a busy panel commits in the documented order: speed, transform, move, patch", () => {- const commands = commandsForEcho(clip(), {- volume: 0.7,- start: 4,- scale: 2,- speed: 2,- duration: 5, // speedPatch wrote this; it must NOT read as a trim- });- expect(commands).toEqual([- { op: "setClipSpeed", clipId: "c1", speed: 2 },- { op: "setClipTransform", clipId: "c1", scale: 2 },- { op: "moveClips", moves: [{ clipId: "c1", start: 4, trackId: "T1" }] },- { op: "updateClip", clipId: "c1", patch: { volume: 0.7 } },- ]);- });-- test("an empty echo commits nothing", () => {- expect(commandsForEcho(clip(), {})).toEqual([]);- });-- test("echoed values equal to the base commit nothing", () => {- // A drag that ends where it began, or a trim clamped to zero travel.- expect(commandsForEcho(clip({ start: 2 }), { start: 2 })).toEqual([]);- expect(commandsForEcho(clip(), { duration: 10 })).toEqual([]);- const pinned = clip(); // at 0: dragging the head left cannot travel at all- expect(commandsForEcho(pinned, trimPatch(pinned, "start", -1))).toEqual([]);- });-});--describe("withEcho", () => {- const project = (clips: Clip[]): EditorProject => ({- media: [],- fonts: [],- timelines: [- {- id: "TL1",- name: "Timeline 1",- tracks: [{ id: "T1", name: "Track 1", visible: true, muted: false }],- clips,- },- { id: "TL2", name: "Timeline 2", tracks: [], clips: [clip({ id: "other" })] },- ],- activeTimelineId: "TL1",- });-- test("patches land only on the active timeline's clips", () => {- const p = project([clip()]);- const echoed = withEcho(p, { c1: { start: 5 }, other: { start: 9 } });- expect(echoed.timelines[0].clips[0].start).toBe(5);- // A clip with the same id on another timeline is untouched.- expect(echoed.timelines[1].clips[0].start).toBe(0);- });-- test("no echo returns the project untouched, same reference", () => {- const p = project([clip()]);- expect(withEcho(p, null)).toBe(p);- expect(withEcho(p, {})).toBe(p);- });-});diff --git a/desktop/src/lib/editor.test.ts b/desktop/src/lib/editor.test.tsdeleted file mode 100644index d4cc74d6..00000000--- a/desktop/src/lib/editor.test.ts+++ /dev/null@@ -1,184 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The gesture echo's arithmetic against the engine's.- *- * `lib/editor.ts` deliberately duplicates a handful of the engine's rules so- * a drag can preview locally before its one command commits. That mirror is- * the architecture's soft spot: if the two drift, the preview lies and the- * commit "jumps". Every expectation here is copied from the corresponding- * test or clamp in `engine/crates/wolfcut-project/src/commands.rs` - when one- * of these fails, read the engine first and fix whichever side moved.- */-import { describe, expect, test } from "vitest";--import {- snapTime,- speedPatch,- transformPatch,- trimPatch,- whyNotMerge,- type Clip,- type EditorProject,-} from "./editor";--function clip(overrides: Partial<Clip> = {}): Clip {- return {- id: "c1",- trackId: "T1",- mediaId: "m1",- name: "a.mp4",- kind: "video",- start: 0,- duration: 10,- sourceStart: 0,- volume: 1,- fadeIn: 0,- fadeOut: 0,- scale: 1,- offsetX: 0,- offsetY: 0,- rotation: 0,- opacity: 1,- speed: 1,- preservePitch: true,- filters: [],- videoEffects: [],- ...overrides,- };-}--function project(clips: Clip[]): EditorProject {- return {- media: [],- fonts: [],- timelines: [- {- id: "TL1",- name: "Timeline 1",- tracks: [{ id: "T1", name: "Track 1", visible: true, muted: false }],- clips,- },- ],- activeTimelineId: "TL1",- };-}--const MIN_CLIP_DURATION = 1 / 60;--describe("trimPatch mirrors TrimClip", () => {- test("an end trim grows and shrinks with the duration floor", () => {- expect(trimPatch(clip(), "end", 2)).toEqual({ duration: 12 });- expect(trimPatch(clip(), "end", -20)).toEqual({ duration: MIN_CLIP_DURATION });- });-- test("a head trim moves the in-point with speed", () => {- // The engine's a_head_trim_moves_the_in_point_with_speed: 10s of source- // at 2x occupies 5s; trimming 1s off the head covers 2 source seconds.- const fast = clip({ duration: 5, speed: 2 });- expect(trimPatch(fast, "start", 1)).toEqual({- start: 1,- duration: 4,- sourceStart: 2,- });- });-- test("a head trim clamps at the timeline's start", () => {- const placed = clip({ start: 1 });- // Dragging 3s left only travels the 1s that exists before zero.- expect(trimPatch(placed, "start", -3)).toEqual({- start: 0,- duration: 11,- sourceStart: 0,- });- });-- test("a head trim cannot consume the whole clip", () => {- const patch = trimPatch(clip(), "start", 99);- expect(patch.duration).toBeCloseTo(MIN_CLIP_DURATION, 10);- expect(patch.start).toBeCloseTo(10 - MIN_CLIP_DURATION, 10);- });-});--describe("speedPatch mirrors SetClipSpeed", () => {- test("the source covered is held constant", () => {- // 10 timeline seconds at 1x cover 10 source seconds; at 2x they fit in 5.- expect(speedPatch(clip(), 2)).toEqual({ speed: 2, duration: 5 });- expect(speedPatch(clip({ duration: 5, speed: 2 }), 0.5)).toEqual({- speed: 0.5,- duration: 20,- });- });-- test("speed clamps to the engine range", () => {- expect(speedPatch(clip(), 100).speed).toBe(16);- expect(speedPatch(clip(), 0).speed).toBe(0.0625);- });-});--describe("transformPatch mirrors SetClipTransform", () => {- test("scale and offsets clamp to the engine bounds", () => {- expect(transformPatch({ scale: 100 })).toEqual({ scale: 8 });- expect(transformPatch({ scale: 0 })).toEqual({ scale: 0.05 });- expect(transformPatch({ offsetX: 5, offsetY: -5 })).toEqual({ offsetX: 3, offsetY: -3 });- });-- test("rotation wraps into (-180, 180], never accumulating turns", () => {- expect(transformPatch({ rotation: 190 })).toEqual({ rotation: -170 });- expect(transformPatch({ rotation: -190 })).toEqual({ rotation: 170 });- expect(transformPatch({ rotation: 540 })).toEqual({ rotation: 180 });- // The engine maps the -180 boundary to 180; the echo must agree.- expect(transformPatch({ rotation: -180 })).toEqual({ rotation: 180 });- });-});--describe("whyNotMerge phrases the engine's refusals", () => {- // The keys' en.json values are the engine's own refusal sentences: the- // engine re-validates on the command and its error becomes the toast, so- // in English the tooltip and the toast must match. Other locales translate- // the tooltip while engine errors stay English.- const halves = [- clip({ id: "a", duration: 4 }),- clip({ id: "b", start: 4, duration: 6, sourceStart: 4 }),- ];-- test("source-continuous neighbours merge", () => {- expect(whyNotMerge(project(halves), ["a", "b"])).toBeNull();- });-- test("each refusal names its reason", () => {- expect(whyNotMerge(project(halves), ["a"])).toBe("timeline.mergeNeedTwo");- expect(- whyNotMerge(project([halves[0], { ...halves[1], trackId: "T2" }]), ["a", "b"]),- ).toBe("timeline.mergeSameTrack");- expect(- whyNotMerge(project([halves[0], { ...halves[1], mediaId: "m2" }]), ["a", "b"]),- ).toBe("timeline.mergeSameFile");- expect(- whyNotMerge(project([halves[0], { ...halves[1], speed: 2 }]), ["a", "b"]),- ).toBe("timeline.mergeSameSpeed");- expect(- whyNotMerge(project([halves[0], { ...halves[1], start: 5 }]), ["a", "b"]),- ).toBe("timeline.mergeMustTouch");- expect(- whyNotMerge(project([halves[0], { ...halves[1], sourceStart: 0 }]), ["a", "b"]),- ).toBe("timeline.mergeOutOfOrder");- });-});--describe("snapTime", () => {- test("snaps to clip edges and the playhead within the threshold", () => {- const timeline = project([clip({ start: 2, duration: 3 })]);- const options = { threshold: 0.25, playhead: 9 };- expect(snapTime(timeline, 2.1, options)).toBe(2);- expect(snapTime(timeline, 4.9, options)).toBe(5);- expect(snapTime(timeline, 8.8, options)).toBe(9);- expect(snapTime(timeline, 3.5, options)).toBe(3.5);- });-- test("a clip does not snap to itself", () => {- const timeline = project([clip({ id: "me", start: 2, duration: 3 })]);- expect(snapTime(timeline, 2.1, { threshold: 0.25, playhead: 99, exclude: "me" })).toBe(2.1);- });-});diff --git a/desktop/src/lib/editor.ts b/desktop/src/lib/editor.tsdeleted file mode 100644index c568124c..00000000--- a/desktop/src/lib/editor.ts+++ /dev/null@@ -1,369 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The UI's view of the engine-owned edit.- *- * The engine (`wolfcut-project`, via the `editor_*` commands) is the model of- * record: every mutation is an [`EditorCommand`] sent through- * `lib/engine.ts`, and the state that comes back is the truth. What lives- * here is everything that is legitimately the UI's:- *- * - the TypeScript mirror of the engine's types (field for field - serde on- * the other side writes exactly these names),- * - read-only selectors over that state,- * - the *gesture echo*: during a drag the UI previews the edit locally with- * the same arithmetic the engine will apply, then commits one command on- * release. One command per gesture is what keeps undo meaning "undo the- * drag", not "undo one pixel of it".- *- * No mutation of project state happens in TypeScript outside the echo, and- * the echo never survives past its commit.- */--import type { MsgKey } from "./i18n";-import type { Clip } from "./generated/Clip";-import type { ClipPatch } from "./generated/ClipPatch";-import type { Command as EditorCommand } from "./generated/Command";-import type { CustomFont as EngineFont } from "./generated/CustomFont";-import type { EditorView as EngineEditorView } from "./generated/EditorView";-import type { MediaItem } from "./generated/MediaItem";-import type { Project } from "./generated/Project";-import type { Timeline as TimelineData } from "./generated/Timeline";-import type { Track } from "./generated/Track";--// ── the engine's types, generated ────────────────────────────────────────────-// These used to be hand-mirrored interfaces the compiler could not check-// against serde. They are now generated from the Rust source of truth by-// ts-rs (see ./generated/README.md) and re-exported here under the names the-// UI has always used, so a wire change on the Rust side is a type error on-// this one. `EditorCommand` is the engine's `Command`; `TimelineData` its-// `Timeline`; `EditorSettings` the host's `SettingsView`.--export type { MediaKind } from "./generated/MediaKind";-export type { ClipKind } from "./generated/ClipKind";-export type { MediaItem } from "./generated/MediaItem";-export type { Track } from "./generated/Track";-export type { Clip } from "./generated/Clip";-export type { Timeline as TimelineData } from "./generated/Timeline";-export type { SettingsView as EditorSettings } from "./generated/SettingsView";-export type { ClipPatch } from "./generated/ClipPatch";-export type { ClipMove } from "./generated/ClipMove";-export type { NewMedia } from "./generated/NewMedia";-export type { Command as EditorCommand } from "./generated/Command";--/** A timeline's identity, for the tab strip. */-export type TimelineMeta = Pick<TimelineData, "id" | "name">;--/** Transform limits, shared with the preview gizmo. The engine clamps too. */-export const MIN_SCALE = 0.05;-export const MAX_SCALE = 8;--/** The engine's font entry plus the one field that is legitimately the- * UI's - whether loading the face failed on this machine. */-export type CustomFont = EngineFont & {- /** UI-only: a load attempt failed. Never sent to or from the engine. */- missing?: boolean;-};--/** The engine's project, with fonts widened to carry the UI-only- * `missing` flag. Everything else is exactly what serde wrote. */-export type EditorProject = Omit<Project, "fonts"> & { fonts: CustomFont[] };--/** What every editor call returns: the authoritative state. */-export type EditorView = Omit<EngineEditorView, "project"> & { project: EditorProject };--// ── selectors ────────────────────────────────────────────────────────────────--export function activeTimeline(project: EditorProject): TimelineData {- return (- project.timelines.find((timeline) => timeline.id === project.activeTimelineId) ??- project.timelines[0]- );-}--export function findClip(project: EditorProject, clipId: string): Clip | null {- return activeTimeline(project).clips.find((clip) => clip.id === clipId) ?? null;-}--export function findTrack(project: EditorProject, trackId: string): Track | null {- return activeTimeline(project).tracks.find((track) => track.id === trackId) ?? null;-}--export function findMedia(project: EditorProject, mediaId: string): MediaItem | null {- return project.media.find((item) => item.id === mediaId) ?? null;-}--/** Where the last clip of the active timeline ends. */-export function projectDuration(project: EditorProject): number {- return activeTimeline(project).clips.reduce(- (end, clip) => Math.max(end, clip.start + clip.duration),- 0,- );-}--/** Clips under the playhead on tracks that are not disabled. */-export function clipsAt(project: EditorProject, time: number): Clip[] {- const timeline = activeTimeline(project);- return timeline.clips.filter((clip) => {- const track = timeline.tracks.find((candidate) => candidate.id === clip.trackId);- if (!track) return false;- if (clip.kind !== "audio" && !track.visible) return false;- if (clip.kind === "audio" && track.muted) return false;- return time >= clip.start && time < clip.start + clip.duration;- });-}--/** The audio clips holding sound detached from this video clip, if any. */-export function detachedAudioOf(project: EditorProject, videoClipId: string): Clip[] {- return activeTimeline(project).clips.filter((clip) => clip.detachedFrom === videoClipId);-}--/**- * The clip that ends exactly where this one starts, on the same track - what- * a transition needs to exist. Whole-frame tolerance, matching the engine's- * exporter-side adjacency test.- */-export function precedingClip(project: EditorProject, clipId: string): Clip | null {- const timeline = activeTimeline(project);- const clip = timeline.clips.find((candidate) => candidate.id === clipId);- if (!clip) return null;- return (- timeline.clips.find(- (other) =>- other.id !== clip.id &&- other.trackId === clip.trackId &&- other.kind !== "audio" &&- Math.abs(other.start + other.duration - clip.start) < 1 / 60,- ) ?? null- );-}--/** How many clips a timeline holds. For the delete prompt. */-export function timelineClipCount(project: EditorProject, timelineId: string): number {- return project.timelines.find((timeline) => timeline.id === timelineId)?.clips.length ?? 0;-}--const JOIN_EPSILON = 1e-6;--/**- * Why these clips cannot be merged, or null if they can - the UI's read-only- * twin of the engine's own check, for the disabled button's tooltip. The- * engine re-validates on the command; this only phrases the reason early.- */-export function whyNotMerge(project: EditorProject, clipIds: readonly string[]): MsgKey | null {- if (clipIds.length < 2) return "timeline.mergeNeedTwo";- const timeline = activeTimeline(project);- const clips = clipIds.flatMap((id) => {- const clip = timeline.clips.find((candidate) => candidate.id === id);- return clip ? [clip] : [];- });- if (clips.length < 2) return "timeline.mergeNeedTwo";- if (clips.some((clip) => clip.trackId !== clips[0].trackId)) {- return "timeline.mergeSameTrack";- }- if (clips.some((clip) => clip.mediaId !== clips[0].mediaId)) {- return "timeline.mergeSameFile";- }- if (clips.some((clip) => clip.speed !== clips[0].speed)) {- return "timeline.mergeSameSpeed";- }- const ordered = [...clips].sort((left, right) => left.start - right.start);- for (let index = 1; index < ordered.length; index += 1) {- const previous = ordered[index - 1];- const current = ordered[index];- if (Math.abs(current.start - (previous.start + previous.duration)) > JOIN_EPSILON) {- return "timeline.mergeMustTouch";- }- if (- Math.abs(- current.sourceStart - (previous.sourceStart + previous.duration * previous.speed),- ) > JOIN_EPSILON- ) {- return "timeline.mergeOutOfOrder";- }- }- return null;-}--/**- * The nearest interesting time to `time`, within `threshold` seconds. Pure- * view logic: snapping decides what the gesture *proposes*, the engine only- * ever sees the snapped result.- */-export function snapTime(- project: EditorProject,- time: number,- { threshold, playhead, exclude }: { threshold: number; playhead: number; exclude?: string },-): number {- const targets = [0, playhead];- for (const clip of activeTimeline(project).clips) {- if (clip.id === exclude) continue;- targets.push(clip.start, clip.start + clip.duration);- }- let best = time;- let bestDistance = threshold;- for (const target of targets) {- const distance = Math.abs(target - time);- if (distance < bestDistance) {- best = target;- bestDistance = distance;- }- }- return best;-}--// ── the gesture echo ─────────────────────────────────────────────────────────--/** Transient per-clip patches shown during a gesture, keyed by clip id. */-export type Echo = Record<string, Partial<Clip>>;--/** The project as the monitor and timeline should draw it mid-gesture. */-export function withEcho(project: EditorProject, echo: Echo | null): EditorProject {- if (!echo || Object.keys(echo).length === 0) return project;- return {- ...project,- timelines: project.timelines.map((timeline) =>- timeline.id === project.activeTimelineId- ? {- ...timeline,- clips: timeline.clips.map((clip) =>- echo[clip.id] ? { ...clip, ...echo[clip.id] } : clip,- ),- }- : timeline,- ),- };-}--const MIN_CLIP_DURATION = 1 / 60;--/** The trim arithmetic, identical to the engine's, for the live echo. */-export function trimPatch(clip: Clip, edge: "start" | "end", delta: number): Partial<Clip> {- if (edge === "end") {- return { duration: Math.max(MIN_CLIP_DURATION, clip.duration + delta) };- }- const shift = Math.min(delta, clip.duration - MIN_CLIP_DURATION);- const start = Math.max(0, clip.start + shift);- const applied = start - clip.start;- return {- start,- duration: clip.duration - applied,- sourceStart: Math.max(0, clip.sourceStart + applied * clip.speed),- };-}--/** The speed arithmetic, identical to the engine's, for the live echo. */-export function speedPatch(clip: Clip, speed: number): Partial<Clip> {- const next = Math.max(0.0625, Math.min(16, speed));- const sourceCovered = clip.duration * clip.speed;- return { speed: next, duration: Math.max(MIN_CLIP_DURATION, sourceCovered / next) };-}--/** The transform clamps, identical to the engine's, for the live echo. */-export function transformPatch(- patch: Partial<Pick<Clip, "scale" | "offsetX" | "offsetY" | "rotation">>,-): Partial<Clip> {- const clamped: Partial<Clip> = {};- if (patch.scale !== undefined) clamped.scale = Math.max(0.05, Math.min(8, patch.scale));- if (patch.offsetX !== undefined) clamped.offsetX = Math.max(-3, Math.min(3, patch.offsetX));- if (patch.offsetY !== undefined) clamped.offsetY = Math.max(-3, Math.min(3, patch.offsetY));- if (patch.rotation !== undefined) {- const wrapped = ((patch.rotation % 360) + 540) % 360 - 180;- clamped.rotation = wrapped === -180 ? 180 : wrapped;- }- return clamped;-}--/**- * Turns one clip's accumulated echo into the command(s) that make it real.- *- * A gesture touches one family of fields, so this usually yields exactly one- * command; the ordering (speed, then transform, then move/trim, then the- * patch) only matters for mixed accumulations from a busy panel.- */-export function commandsForEcho(base: Clip, patch: Partial<Clip>): EditorCommand[] {- const commands: EditorCommand[] = [];- const has = (key: keyof Clip) => key in patch;-- if (has("speed") && patch.speed !== undefined) {- commands.push({ op: "setClipSpeed", clipId: base.id, speed: patch.speed });- }-- if (has("scale") || has("offsetX") || has("offsetY") || has("rotation")) {- commands.push({- op: "setClipTransform",- clipId: base.id,- ...(has("scale") ? { scale: patch.scale } : {}),- ...(has("offsetX") ? { offsetX: patch.offsetX } : {}),- ...(has("offsetY") ? { offsetY: patch.offsetY } : {}),- ...(has("rotation") ? { rotation: patch.rotation } : {}),- });- }-- const durationChanged =- !has("speed") && has("duration") && patch.duration !== undefined- ? patch.duration !== base.duration- : false;- const startChanged = has("start") && patch.start !== undefined && patch.start !== base.start;- // Same-value guard, like start: an echoed-but-unchanged track must not- // commit a do-nothing MoveClips, which would burn an empty undo step.- const trackChanged =- has("trackId") && patch.trackId !== undefined && patch.trackId !== base.trackId;-- if (durationChanged && startChanged) {- commands.push({- op: "trimClip",- clipId: base.id,- edge: "start",- delta: (patch.start ?? base.start) - base.start,- });- } else if (durationChanged) {- commands.push({- op: "trimClip",- clipId: base.id,- edge: "end",- delta: (patch.duration ?? base.duration) - base.duration,- });- }-- // A move commits whatever the trims above did not. Not an else-branch: an- // echo holding both a trim and a track change (a busy panel's mixed- // accumulation) used to commit the trim and silently lose the move. After- // a head trim the engine has already placed the start, so the move's start- // - the same value - is idempotent and only the track genuinely applies.- if (trackChanged || (startChanged && !durationChanged)) {- commands.push({- op: "moveClips",- moves: [- {- clipId: base.id,- start: patch.start ?? base.start,- trackId: patch.trackId ?? base.trackId,- },- ],- });- }-- const update: ClipPatch = {};- if (has("name") && patch.name !== undefined) update.name = patch.name;- if (has("volume") && patch.volume !== undefined) update.volume = patch.volume;- if (has("fadeIn") && patch.fadeIn !== undefined) update.fadeIn = patch.fadeIn;- if (has("fadeOut") && patch.fadeOut !== undefined) update.fadeOut = patch.fadeOut;- if (has("opacity") && patch.opacity !== undefined) update.opacity = patch.opacity;- if (has("preservePitch") && patch.preservePitch !== undefined) {- update.preservePitch = patch.preservePitch;- }- if (has("filters") && patch.filters !== undefined) update.filters = patch.filters;- if (has("videoEffects") && patch.videoEffects !== undefined) {- update.videoEffects = patch.videoEffects;- }- // Key present with undefined means "clear" for the two clearable fields.- if (has("transitionIn")) update.transitionIn = patch.transitionIn ?? null;- if (has("text")) update.text = patch.text ?? null;- if (Object.keys(update).length > 0) {- commands.push({ op: "updateClip", clipId: base.id, patch: update });- }-- return commands;-}diff --git a/desktop/src/lib/effects.test.ts b/desktop/src/lib/effects.test.tsdeleted file mode 100644index 7f584443..00000000--- a/desktop/src/lib/effects.test.ts+++ /dev/null@@ -1,190 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The video effect catalogue's export strings, pinned character for character.- *- * `buildEffectChain` writes the FFmpeg fragment the exporter runs; a typo here- * ships as a silently broken or subtly different-looking export. There is no- * second implementation to cross-check against, so these tests ARE the check:- * every catalogue entry at its default, minimum and maximum settings, spelled- * out inline. When one fails, the export string changed - confirm FFmpeg still- * accepts the new spelling and that existing projects render the same picture- * before updating the expectation.- */-import { describe, expect, test } from "vitest";--import { buildEffectChain, EFFECTS, findEffect } from "./effects";--const one = (id: string, params: Record<string, number> = {}) =>- buildEffectChain([{ id, params }]);--/** The definition's sliders, all pushed to one bound. */-const bound = (id: string, which: "min" | "max"): Record<string, number> =>- Object.fromEntries(findEffect(id)!.params.map((param) => [param.key, param[which]]));--const DEFAULT_CHAINS: Record<string, string> = {- "black-white": "hue=s=0",- sepia: "colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131",- invert: "negate",- sharpen: "unsharp=5:5:1.00:5:5:0",- "gaussian-blur": "gblur=sigma=10.0",- "box-blur": "boxblur=6:1",- "motion-blur": "gblur=sigma=18.0:sigmaV=0.1",- warm: "colortemperature=temperature=4600",- cool: "colortemperature=temperature=8500",- vibrance: "vibrance=intensity=0.70",- "contrast-pop": "eq=contrast=1.25",- vignette: "vignette=angle=0.775",- "film-grain": "noise=alls=12:allf=t+u",- glow:- "split[glowa0][glowb0];[glowb0]gblur=sigma=18[glowg0];" +- "[glowa0][glowg0]blend=all_mode=screen:all_opacity=0.45",- posterize: "lutrgb=r=trunc(val/64)*64:g=trunc(val/64)*64:b=trunc(val/64)*64",- pixelate: "pixelize=width=16:height=16",- mirror: "crop=iw/2:ih:0:0,split[mirl0][mirr0];[mirr0]hflip[mirf0];[mirl0][mirf0]hstack",- fisheye: "lenscorrection=k1=-0.275:k2=-0.100:i=bilinear",- shake: "crop=iw-24:ih-24:12+12*sin(t*13):12+12*cos(t*17)",-};--const MIN_CHAINS: Record<string, string> = {- sharpen: "unsharp=5:5:0.20:5:5:0",- "gaussian-blur": "gblur=sigma=1.0",- "box-blur": "boxblur=1:1",- "motion-blur": "gblur=sigma=2.0:sigmaV=0.1",- warm: "colortemperature=temperature=3000",- cool: "colortemperature=temperature=7000",- vibrance: "vibrance=intensity=0.10",- "contrast-pop": "eq=contrast=1.00",- vignette: "vignette=angle=0.355",- "film-grain": "noise=alls=2:allf=t+u",- glow:- "split[glowa0][glowb0];[glowb0]gblur=sigma=18[glowg0];" +- "[glowa0][glowg0]blend=all_mode=screen:all_opacity=0.10",- posterize: "lutrgb=r=trunc(val/128)*128:g=trunc(val/128)*128:b=trunc(val/128)*128",- pixelate: "pixelize=width=2:height=2",- fisheye: "lenscorrection=k1=-0.028:k2=-0.010:i=bilinear",- shake: "crop=iw-4:ih-4:2+2*sin(t*2):2+2*cos(t*3)",-};--const MAX_CHAINS: Record<string, string> = {- sharpen: "unsharp=5:5:3.00:5:5:0",- "gaussian-blur": "gblur=sigma=50.0",- "box-blur": "boxblur=30:1",- "motion-blur": "gblur=sigma=60.0:sigmaV=0.1",- warm: "colortemperature=temperature=6000",- cool: "colortemperature=temperature=11000",- vibrance: "vibrance=intensity=2.00",- "contrast-pop": "eq=contrast=2.00",- vignette: "vignette=angle=1.300",- "film-grain": "noise=alls=40:allf=t+u",- glow:- "split[glowa0][glowb0];[glowb0]gblur=sigma=18[glowg0];" +- "[glowa0][glowg0]blend=all_mode=screen:all_opacity=1.00",- posterize: "lutrgb=r=trunc(val/32)*32:g=trunc(val/32)*32:b=trunc(val/32)*32",- pixelate: "pixelize=width=64:height=64",- fisheye: "lenscorrection=k1=-0.550:k2=-0.200:i=bilinear",- shake: "crop=iw-80:ih-80:40+40*sin(t*30):40+40*cos(t*39)",-};--describe("the effect catalogue's export strings", () => {- test("this suite knows every effect - a new effect must pin its strings here", () => {- expect(Object.keys(DEFAULT_CHAINS).sort()).toEqual(- EFFECTS.map((effect) => effect.id).sort(),- );- const parameterised = EFFECTS.filter((effect) => effect.params.length > 0).map(- (effect) => effect.id,- );- expect(Object.keys(MIN_CHAINS).sort()).toEqual([...parameterised].sort());- expect(Object.keys(MAX_CHAINS).sort()).toEqual([...parameterised].sort());- });-- test("every effect at its default settings", () => {- for (const effect of EFFECTS) {- // No params passed: resolveEffectParams must fill every default.- expect(one(effect.id), effect.id).toBe(DEFAULT_CHAINS[effect.id]);- }- });-- test("every effect at its sliders' minimum", () => {- for (const [id, expected] of Object.entries(MIN_CHAINS)) {- expect(one(id, bound(id, "min")), id).toBe(expected);- }- });-- test("every effect at its sliders' maximum", () => {- for (const [id, expected] of Object.entries(MAX_CHAINS)) {- expect(one(id, bound(id, "max")), id).toBe(expected);- }- });-});--describe("buildEffectChain composition", () => {- test("stacked effects join with commas in applied order", () => {- expect(- buildEffectChain([- { id: "gaussian-blur", params: {} },- { id: "black-white", params: {} },- ]),- ).toBe("gblur=sigma=10.0,hue=s=0");- // The reverse order is a different picture and a different string.- expect(- buildEffectChain([- { id: "black-white", params: {} },- { id: "gaussian-blur", params: {} },- ]),- ).toBe("hue=s=0,gblur=sigma=10.0");- });-- test("stacking one labelled effect twice keeps its graph labels distinct", () => {- // Labels embed the emitted index. With the old fixed labels, two glows- // (or two mirrors) on one clip duplicated [glowa]/[mirl] in a single- // filtergraph and FFmpeg rejected it - the whole export failed.- const chain = buildEffectChain([- { id: "glow", params: {} },- { id: "glow", params: {} },- ]);- expect(chain).toContain("[glowa0]");- expect(chain).toContain("[glowa1]");- // A bypassed entry does not consume an index: labels follow emission.- const skipped = buildEffectChain([- { id: "sepia", params: {}, enabled: false },- { id: "mirror", params: {} },- ]);- expect(skipped).toContain("[mirl0]");- });-- test("a bypassed effect contributes nothing", () => {- expect(- buildEffectChain([- { id: "invert", params: {} },- { id: "sepia", params: {}, enabled: false },- { id: "black-white", params: {} },- ]),- ).toBe("negate,hue=s=0");- });-- test("an unknown id is skipped, not exported as garbage", () => {- // A project written by a newer WolfCut may carry effects this build does- // not know. The chain must stay valid for the effects it does know.- expect(- buildEffectChain([- { id: "from-the-future", params: {} },- { id: "invert", params: {} },- ]),- ).toBe("negate");- });-- test("no effects means null, never an empty string", () => {- expect(buildEffectChain(undefined)).toBeNull();- expect(buildEffectChain([])).toBeNull();- expect(buildEffectChain([{ id: "invert", params: {}, enabled: false }])).toBeNull();- });-- test("stray parameter keys are dropped, missing ones default", () => {- expect(one("sharpen", { amount: 2, bogus: 99 })).toBe("unsharp=5:5:2.00:5:5:0");- expect(one("shake", { amount: 20 })).toBe(- "crop=iw-40:ih-40:20+20*sin(t*13):20+20*cos(t*17)",- );- });-});diff --git a/desktop/src/lib/effects.ts b/desktop/src/lib/effects.tsdeleted file mode 100644index 3a89cdf1..00000000--- a/desktop/src/lib/effects.ts+++ /dev/null@@ -1,700 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The video effect and transition catalogues.- *- * Every effect carries two renderings of one idea:- *- * - `chain` builds the FFmpeg video filter fragment the *export* runs - the- * same design as `lib/filters.ts` for audio, and the ground truth for- * pixels.- * - `preview` says how the *monitor* shows it live: a CSS filter where CSS is- * faithful, an SVG filter where it needs a matrix or a convolution, an- * overlay layer, a canvas redraw for geometry, or a deterministic jitter.- * Every effect previews in real time; the export is only ever a higher- * quality version of what was already on screen.- *- * Ids are forever: they are written into project files, so renaming one later- * would orphan clips. Pick them like you mean them. Labels and blurbs are- * display-only and read from the message catalog as getters, so the id is the- * only identity anything stores.- */--import { t } from "./i18n";-import type { FilterParam } from "./filters";--/**- * How one effect draws itself in the monitor.- *- * `scale` on the builders is preview pixels per export pixel, so a 10px blur- * looks the same on a small monitor as in the file.- */-export type EffectPreview =- | { kind: "css"; filter: (params: Record<string, number>, scale: number) => string }- | {- /** The inner content of an SVG `<filter>`, referenced via `url(#id)`. */- kind: "svg";- build: (params: Record<string, number>, scale: number) => string;- }- | {- /** A full-frame layer composited over the picture. */- kind: "overlay";- style: (params: Record<string, number>) => Record<string, string | number>;- /** Marks the animated grain layer, which carries its own CSS class. */- grain?: boolean;- }- | { kind: "pixelate" }- | { kind: "mirror" }- | { kind: "fisheye" }- | { kind: "jitter" };--/** One geometry redraw the preview's canvas pass performs, in order. */-export type CanvasOp =- | { kind: "pixelate"; size: number }- | { kind: "mirror" }- | { kind: "fisheye"; strength: number };--/** Everything the monitor needs to draw a clip's effects live. */-export interface PreviewLook {- /** The CSS `filter` property: functions and `url(#id)` refs, in order. */- filter: string | null;- /** SVG `<filter>` elements to mount, matching the `url()` refs above. */- svgFilters: { id: string; content: string }[];- /** Layers composited over the picture, in effect order. */- overlays: { style: Record<string, string | number>; grain?: boolean }[];- /** Geometry redraws the canvas pass performs, in order. */- canvas: CanvasOp[];- /** Position jitter, evaluated from the playhead clock. Null for none. */- jitter: { amount: number; speed: number } | null;-}--/**- * The colour cast of a black-body temperature, as an SVG colour matrix.- *- * Tanner Helland's approximation, normalised so the strongest channel stays- * at unity - a tint, not a brightness change - which is also roughly what- * FFmpeg's `colortemperature` does.- */-function temperatureMatrix(kelvinIn: number): string {- const t = Math.min(400, Math.max(10, kelvinIn / 100));- let r: number;- let g: number;- let b: number;- if (t <= 66) {- r = 255;- g = 99.4708 * Math.log(t) - 161.1196;- b = t <= 19 ? 0 : 138.5177 * Math.log(t - 10) - 305.0448;- } else {- r = 329.6987 * Math.pow(t - 60, -0.1332047);- g = 288.1222 * Math.pow(t - 60, -0.0755148);- b = 255;- }- const clamp = (value: number) => Math.min(255, Math.max(0, value)) / 255;- const peak = Math.max(clamp(r), clamp(g), clamp(b), 1e-6);- const [nr, ng, nb] = [clamp(r) / peak, clamp(g) / peak, clamp(b) / peak];- return (- `<feColorMatrix type="matrix" values="` +- `${nr.toFixed(4)} 0 0 0 0 0 ${ng.toFixed(4)} 0 0 0 0 0 ${nb.toFixed(4)} 0 0 0 0 0 1 0"/>`- );-}--/**- * A 128px monochrome noise tile as a data URI, generated once. The grain- * overlay tiles and jiggles it; regenerating per frame would be film-accurate- * and battery-hostile.- */-let grainTile: string | null = null;-function grainDataUri(): string {- if (grainTile !== null) return grainTile;- if (typeof document === "undefined") return (grainTile = "");- const canvas = document.createElement("canvas");- canvas.width = 128;- canvas.height = 128;- const context = canvas.getContext("2d");- if (!context) return (grainTile = "");- const image = context.createImageData(128, 128);- for (let at = 0; at < image.data.length; at += 4) {- const value = Math.floor(Math.random() * 256);- image.data[at] = value;- image.data[at + 1] = value;- image.data[at + 2] = value;- image.data[at + 3] = 255;- }- context.putImageData(image, 0, 0);- return (grainTile = canvas.toDataURL());-}--export type EffectCategory = "basic" | "blur" | "color" | "stylize" | "distort";--/** An effect applied to a clip, with whatever parameters were set. */-export interface AppliedEffect {- id: string;- params: Record<string, number>;- /** False bypasses without losing settings. Absent means enabled. */- enabled?: boolean;-}--/** A transition on the cut into a clip. */-export interface ClipTransition {- id: string;- /** Seconds the transition covers. */- duration: number;-}--export interface EffectDefinition {- id: string;- label: string;- category: EffectCategory;- /** One line on what it does, shown in the card tooltip. */- blurb: string;- /** CSS background for the preview tile, until real thumbnails exist. */- swatch: string;- params: FilterParam[];- /** Builds the FFmpeg video filter fragment for these parameter values.- * `index` is the fragment's position in the clip's chain: any filtergraph- * labels MUST embed it, or stacking the same effect twice duplicates- * labels and FFmpeg rejects the whole graph. */- chain: (params: Record<string, number>, index: number) => string;- /** How the monitor draws it live. Every effect has one - no export-only. */- preview: EffectPreview;-}--/** The categories under the "Video Effects" dropdown, in display order. */-export const EFFECT_CATEGORIES: { id: EffectCategory; label: string }[] = [- { id: "basic", get label() { return t("effects.category.basic"); } },- { id: "blur", get label() { return t("effects.category.blur"); } },- { id: "color", get label() { return t("effects.category.color"); } },- { id: "stylize", get label() { return t("effects.category.stylize"); } },- { id: "distort", get label() { return t("effects.category.distort"); } },-];--const percent = (value: number) => `${Math.round(value)}%`;-const pixels = (value: number) => `${Math.round(value)} px`;-const times = (value: number) => `${value.toFixed(2)}x`;-const kelvin = (value: number) => `${Math.round(value)} K`;--export const EFFECTS: EffectDefinition[] = [- // ── basic ────────────────────────────────────────────────────────────────- {- id: "black-white",- get label() { return t("effects.black-white.label"); },- category: "basic",- get blurb() { return t("effects.black-white.blurb"); },- swatch: "linear-gradient(135deg, #e8e8e8 0%, #6b6b6b 55%, #1c1c1c 100%)",- params: [],- chain: () => "hue=s=0",- preview: { kind: "css", filter: () => "grayscale(1)" },- },- {- id: "sepia",- get label() { return t("effects.sepia.label"); },- category: "basic",- get blurb() { return t("effects.sepia.blurb"); },- swatch: "linear-gradient(135deg, #e9d3ae 0%, #a9773f 60%, #513a1c 100%)",- params: [],- // The standard sepia matrix, the same one the CSS filter defines.- chain: () =>- "colorchannelmixer=.393:.769:.189:0:.349:.686:.168:0:.272:.534:.131",- preview: { kind: "css", filter: () => "sepia(1)" },- },- {- id: "invert",- get label() { return t("effects.invert.label"); },- category: "basic",- get blurb() { return t("effects.invert.blurb"); },- swatch: "linear-gradient(135deg, #00d0ff 0%, #7a00c8 55%, #ffe600 100%)",- params: [],- chain: () => "negate",- preview: { kind: "css", filter: () => "invert(1)" },- },- {- id: "sharpen",- get label() { return t("effects.sharpen.label"); },- category: "basic",- get blurb() { return t("effects.sharpen.blurb"); },- swatch: "linear-gradient(135deg, #cfd8dc 0%, #607d8b 55%, #263238 100%)",- params: [- { key: "amount", get label() { return t("effects.sharpen.param.amount"); }, min: 0.2, max: 3, step: 0.1, default: 1, format: times },- ],- chain: ({ amount = 1 }) => `unsharp=5:5:${amount.toFixed(2)}:5:5:0`,- preview: {- kind: "svg",- // An unsharp kernel: edges subtract, the centre compensates, sum one.- build: ({ amount = 1 }) => {- const a = (amount * 0.55).toFixed(3);- const c = (1 + amount * 0.55 * 4).toFixed(3);- return `<feConvolveMatrix order="3" divisor="1" preserveAlpha="true" kernelMatrix="0 -${a} 0 -${a} ${c} -${a} 0 -${a} 0"/>`;- },- },- },- // ── blur ─────────────────────────────────────────────────────────────────- {- id: "gaussian-blur",- get label() { return t("effects.gaussian-blur.label"); },- category: "blur",- get blurb() { return t("effects.gaussian-blur.blurb"); },- swatch: "linear-gradient(135deg, #b3c7f9 0%, #7f9cf5 55%, #4c6ef5 100%)",- params: [- { key: "radius", get label() { return t("effects.gaussian-blur.param.radius"); }, min: 1, max: 50, step: 1, default: 10, format: pixels },- ],- chain: ({ radius = 10 }) => `gblur=sigma=${radius.toFixed(1)}`,- preview: { kind: "css", filter: ({ radius = 10 }, scale) => `blur(${(radius * scale).toFixed(2)}px)` },- },- {- id: "box-blur",- get label() { return t("effects.box-blur.label"); },- category: "blur",- get blurb() { return t("effects.box-blur.blurb"); },- swatch: "linear-gradient(135deg, #a5d8ff 0%, #4dabf7 55%, #1971c2 100%)",- params: [- { key: "radius", get label() { return t("effects.box-blur.param.radius"); }, min: 1, max: 30, step: 1, default: 6, format: pixels },- ],- chain: ({ radius = 6 }) => `boxblur=${Math.round(radius)}:1`,- preview: { kind: "css", filter: ({ radius = 6 }, scale) => `blur(${(radius * 0.7 * scale).toFixed(2)}px)` },- },- {- id: "motion-blur",- get label() { return t("effects.motion-blur.label"); },- category: "blur",- get blurb() { return t("effects.motion-blur.blurb"); },- swatch: "linear-gradient(90deg, #91a7ff 0%, #5c7cfa 45%, #91a7ff 100%)",- params: [- { key: "length", get label() { return t("effects.motion-blur.param.length"); }, min: 2, max: 60, step: 1, default: 18, format: pixels },- ],- // Gaussian in one axis only is the streak; the tiny vertical sigma keeps- // the filter happy without visibly blurring that axis.- chain: ({ length = 18 }) => `gblur=sigma=${length.toFixed(1)}:sigmaV=0.1`,- preview: {- kind: "svg",- // The same one-axis gaussian, which SVG spells as two deviations.- build: ({ length = 18 }, scale) =>- `<feGaussianBlur stdDeviation="${(length * scale).toFixed(2)} 0.01"/>`,- },- },- // ── color ────────────────────────────────────────────────────────────────- {- id: "warm",- get label() { return t("effects.warm.label"); },- category: "color",- get blurb() { return t("effects.warm.blurb"); },- swatch: "linear-gradient(135deg, #ffd8a8 0%, #ff922b 55%, #d9480f 100%)",- params: [- {- key: "temperature",- get label() { return t("effects.warm.param.temperature"); },- min: 3000,- max: 6000,- step: 100,- default: 4600,- format: kelvin,- },- ],- chain: ({ temperature = 4600 }) =>- `colortemperature=temperature=${Math.round(temperature)}`,- preview: { kind: "svg", build: ({ temperature = 4600 }) => temperatureMatrix(temperature) },- },- {- id: "cool",- get label() { return t("effects.cool.label"); },- category: "color",- get blurb() { return t("effects.cool.blurb"); },- swatch: "linear-gradient(135deg, #99e9f2 0%, #22b8cf 55%, #0b7285 100%)",- params: [- {- key: "temperature",- get label() { return t("effects.cool.param.temperature"); },- min: 7000,- max: 11000,- step: 100,- default: 8500,- format: kelvin,- },- ],- chain: ({ temperature = 8500 }) =>- `colortemperature=temperature=${Math.round(temperature)}`,- preview: { kind: "svg", build: ({ temperature = 8500 }) => temperatureMatrix(temperature) },- },- {- id: "vibrance",- get label() { return t("effects.vibrance.label"); },- category: "color",- get blurb() { return t("effects.vibrance.blurb"); },- swatch: "linear-gradient(135deg, #ff6b6b 0%, #fcc419 40%, #51cf66 70%, #339af0 100%)",- params: [- { key: "intensity", get label() { return t("effects.vibrance.param.intensity"); }, min: 0.1, max: 2, step: 0.05, default: 0.7, format: times },- ],- chain: ({ intensity = 0.7 }) => `vibrance=intensity=${intensity.toFixed(2)}`,- preview: { kind: "css", filter: ({ intensity = 0.7 }) => `saturate(${(1 + intensity * 0.45).toFixed(2)})` },- },- {- id: "contrast-pop",- get label() { return t("effects.contrast-pop.label"); },- category: "color",- get blurb() { return t("effects.contrast-pop.blurb"); },- swatch: "linear-gradient(135deg, #f8f9fa 0%, #868e96 45%, #212529 100%)",- params: [- { key: "contrast", get label() { return t("effects.contrast-pop.param.contrast"); }, min: 1, max: 2, step: 0.05, default: 1.25, format: times },- ],- chain: ({ contrast = 1.25 }) => `eq=contrast=${contrast.toFixed(2)}`,- preview: { kind: "css", filter: ({ contrast = 1.25 }) => `contrast(${contrast.toFixed(2)})` },- },- // ── stylize ──────────────────────────────────────────────────────────────- {- id: "vignette",- get label() { return t("effects.vignette.label"); },- category: "stylize",- get blurb() { return t("effects.vignette.blurb"); },- swatch: "radial-gradient(circle at 50% 50%, #ced4da 0%, #495057 60%, #16191c 100%)",- params: [- { key: "strength", get label() { return t("effects.vignette.param.strength"); }, min: 10, max: 100, step: 1, default: 50, format: percent },- ],- // The filter's angle runs 0..PI/2, wider being darker corners; the slider- // maps into the range that reads as a vignette rather than a tunnel.- chain: ({ strength = 50 }) =>- `vignette=angle=${(0.25 + (strength / 100) * 1.05).toFixed(3)}`,- preview: {- kind: "overlay",- style: ({ strength = 50 }) => ({- background: `radial-gradient(ellipse at center, transparent ${Math.round(- 72 - strength * 0.45,- )}%, rgba(0,0,0,${(0.35 + strength * 0.006).toFixed(3)}) 100%)`,- }),- },- },- {- id: "film-grain",- get label() { return t("effects.film-grain.label"); },- category: "stylize",- get blurb() { return t("effects.film-grain.blurb"); },- swatch: "linear-gradient(135deg, #dee2e6 0%, #adb5bd 50%, #495057 100%)",- params: [- { key: "amount", get label() { return t("effects.film-grain.param.amount"); }, min: 2, max: 40, step: 1, default: 12, format: percent },- ],- // Temporal (t) so the grain dances like film instead of sitting still.- chain: ({ amount = 12 }) => `noise=alls=${Math.round(amount)}:allf=t+u`,- preview: {- kind: "overlay",- grain: true,- style: ({ amount = 12 }) => ({- backgroundImage: `url(${grainDataUri()})`,- backgroundRepeat: "repeat",- mixBlendMode: "overlay",- opacity: Math.min(1, amount / 40),- }),- },- },- {- id: "glow",- get label() { return t("effects.glow.label"); },- category: "stylize",- get blurb() { return t("effects.glow.blurb"); },- swatch: "radial-gradient(circle at 50% 40%, #fff9db 0%, #ffe066 45%, #e8590c 100%)",- params: [- { key: "amount", get label() { return t("effects.glow.param.amount"); }, min: 10, max: 100, step: 1, default: 45, format: percent },- ],- // Screen-blend a blurred copy over itself - the classic bloom. Labels- // carry the chain index so two glows cannot collide in one graph.- chain: ({ amount = 45 }, index) =>- `split[glowa${index}][glowb${index}];[glowb${index}]gblur=sigma=18[glowg${index}];` +- `[glowa${index}][glowg${index}]blend=all_mode=screen:all_opacity=${(amount / 100).toFixed(2)}`,- preview: {- kind: "svg",- // The same bloom: blur a copy, weight it, screen it over the source.- build: ({ amount = 45 }, scale) => {- const weight = (amount / 100).toFixed(3);- return (- `<feGaussianBlur in="SourceGraphic" stdDeviation="${(18 * scale).toFixed(2)}" result="wolfglow-blur"/>` +- `<feColorMatrix in="wolfglow-blur" type="matrix" values="${weight} 0 0 0 0 0 ${weight} 0 0 0 0 0 ${weight} 0 0 0 0 0 1 0" result="wolfglow-dim"/>` +- `<feBlend in="SourceGraphic" in2="wolfglow-dim" mode="screen"/>`- );- },- },- },- {- id: "posterize",- get label() { return t("effects.posterize.label"); },- category: "stylize",- get blurb() { return t("effects.posterize.blurb"); },- swatch:- "linear-gradient(135deg, #e64980 0%, #e64980 33%, #7950f2 33%, #7950f2 66%, #1098ad 66%, #1098ad 100%)",- params: [- { key: "levels", get label() { return t("effects.posterize.param.levels"); }, min: 2, max: 8, step: 1, default: 4, format: (v) => String(Math.round(v)) },- ],- chain: ({ levels = 4 }) => {- const size = Math.round(256 / Math.max(2, Math.round(levels)));- const band = `trunc(val/${size})*${size}`;- return `lutrgb=r=${band}:g=${band}:b=${band}`;- },- preview: {- kind: "svg",- // Discrete transfer with the same band values the lut produces.- build: ({ levels = 4 }) => {- const count = Math.max(2, Math.round(levels));- const size = Math.round(256 / count);- const table = Array.from({ length: count }, (_, index) =>- ((index * size) / 255).toFixed(4),- ).join(" ");- return (- `<feComponentTransfer>` +- `<feFuncR type="discrete" tableValues="${table}"/>` +- `<feFuncG type="discrete" tableValues="${table}"/>` +- `<feFuncB type="discrete" tableValues="${table}"/>` +- `</feComponentTransfer>`- );- },- },- },- // ── distort ──────────────────────────────────────────────────────────────- {- id: "pixelate",- get label() { return t("effects.pixelate.label"); },- category: "distort",- get blurb() { return t("effects.pixelate.blurb"); },- swatch:- "repeating-linear-gradient(0deg, #74c0fc 0 6px, #4dabf7 6px 12px), repeating-linear-gradient(90deg, #74c0fc80 0 6px, #4dabf780 6px 12px)",- params: [- { key: "size", get label() { return t("effects.pixelate.param.size"); }, min: 2, max: 64, step: 1, default: 16, format: pixels },- ],- chain: ({ size = 16 }) =>- `pixelize=width=${Math.round(size)}:height=${Math.round(size)}`,- preview: { kind: "pixelate" },- },- {- id: "mirror",- get label() { return t("effects.mirror.label"); },- category: "distort",- get blurb() { return t("effects.mirror.blurb"); },- swatch: "linear-gradient(90deg, #63e6be 0%, #0ca678 50%, #63e6be 100%)",- params: [],- chain: (_params, index) =>- `crop=iw/2:ih:0:0,split[mirl${index}][mirr${index}];[mirr${index}]hflip[mirf${index}];` +- `[mirl${index}][mirf${index}]hstack`,- preview: { kind: "mirror" },- },- {- id: "fisheye",- get label() { return t("effects.fisheye.label"); },- category: "distort",- get blurb() { return t("effects.fisheye.blurb"); },- swatch: "radial-gradient(circle at 50% 50%, #d0bfff 0%, #9775fa 55%, #5f3dc4 100%)",- params: [- { key: "strength", get label() { return t("effects.fisheye.param.strength"); }, min: 5, max: 100, step: 1, default: 50, format: percent },- ],- // Negative correction coefficients produce barrel distortion - the bulge.- chain: ({ strength = 50 }) => {- const k = strength / 100;- return `lenscorrection=k1=${(-0.55 * k).toFixed(3)}:k2=${(-0.2 * k).toFixed(3)}:i=bilinear`;- },- preview: { kind: "fisheye" },- },- {- id: "shake",- get label() { return t("effects.shake.label"); },- category: "distort",- get blurb() { return t("effects.shake.blurb"); },- swatch: "linear-gradient(105deg, #ffc9c9 0%, #ff8787 40%, #fa5252 60%, #ffc9c9 100%)",- params: [- { key: "amount", get label() { return t("effects.shake.param.amount"); }, min: 2, max: 40, step: 1, default: 12, format: pixels },- { key: "speed", get label() { return t("effects.shake.param.speed"); }, min: 2, max: 30, step: 1, default: 13, format: times },- ],- // A jittering crop window; the decoder's guard scale stretches the- // slightly smaller window back to full size afterwards.- chain: ({ amount = 12, speed = 13 }) => {- const a = Math.round(amount);- const f = Math.round(speed);- return (- `crop=iw-${2 * a}:ih-${2 * a}` +- `:${a}+${a}*sin(t*${f}):${a}+${a}*cos(t*${Math.round(f * 1.3)})`- );- },- preview: { kind: "jitter" },- },-];--export function findEffect(id: string): EffectDefinition | null {- return EFFECTS.find((effect) => effect.id === id) ?? null;-}--/** Fills in any parameter the clip did not set. */-export function resolveEffectParams(- definition: EffectDefinition,- params: Record<string, number>,-): Record<string, number> {- const resolved: Record<string, number> = {};- for (const param of definition.params) {- resolved[param.key] = params[param.key] ?? param.default;- }- return resolved;-}--/**- * The complete FFmpeg video filter string for a clip, or null if it has none.- * Effects apply in the order they were added, exactly like audio filters.- */-export function buildEffectChain(effects: readonly AppliedEffect[] | undefined): string | null {- if (!effects) return null;- const fragments: string[] = [];- for (const applied of effects) {- if (applied.enabled === false) continue;- const definition = findEffect(applied.id);- if (!definition) continue;- // The emitted position, not the list position: labels stay stable when- // a bypassed effect sits earlier in the list.- fragments.push(definition.chain(resolveEffectParams(definition, applied.params), fragments.length));- }- return fragments.length > 0 ? fragments.join(",") : null;-}--/**- * Everything the monitor needs to draw a clip's effects live, assembled from- * each effect's `preview` in applied order.- *- * `scale` is preview pixels per export pixel. CSS/SVG filters keep their- * relative order inside the one `filter` property (CSS applies the list in- * sequence); overlays, canvas geometry and jitter compose on top in their own- * layers - close enough that the export only ever reads as a sharper version- * of the monitor, never a different picture.- */-export function buildPreviewLook(- effects: readonly AppliedEffect[] | undefined,- scale: number,-): PreviewLook {- const look: PreviewLook = {- filter: null,- svgFilters: [],- overlays: [],- canvas: [],- jitter: null,- };- if (!effects || effects.length === 0) return look;-- const filterParts: string[] = [];- effects.forEach((applied, index) => {- if (applied.enabled === false) return;- const definition = findEffect(applied.id);- if (!definition) return;- const params = resolveEffectParams(definition, applied.params);- const preview = definition.preview;-- switch (preview.kind) {- case "css":- filterParts.push(preview.filter(params, scale));- break;- case "svg": {- const id = `wolffx-${index}-${definition.id}`;- look.svgFilters.push({ id, content: preview.build(params, scale) });- filterParts.push(`url(#${id})`);- break;- }- case "overlay":- look.overlays.push({ style: preview.style(params), grain: preview.grain });- break;- case "pixelate":- look.canvas.push({ kind: "pixelate", size: Math.max(2, params.size ?? 16) });- break;- case "mirror":- look.canvas.push({ kind: "mirror" });- break;- case "fisheye":- look.canvas.push({ kind: "fisheye", strength: (params.strength ?? 50) / 100 });- break;- case "jitter":- // Several shakes do not add up to a bigger shake; the strongest wins.- if (!look.jitter || (params.amount ?? 12) > look.jitter.amount) {- look.jitter = { amount: params.amount ?? 12, speed: params.speed ?? 13 };- }- break;- }- });-- look.filter = filterParts.length > 0 ? filterParts.join(" ") : null;- return look;-}--export type TransitionCategory = "basic" | "motion";--export interface TransitionDefinition {- id: string;- label: string;- category: TransitionCategory;- /** One line on what it does, shown in the card tooltip. */- blurb: string;- /**- * False while the engine cannot render it - the card stays browsable with- * a "Soon" badge, exactly as the whole catalogue once was. The motion- * transitions wait on animated transforms in the engine.- */- implemented: boolean;- /** Seconds a freshly applied transition covers. */- defaultDuration: number;-}--/** The categories under the "Transitions" dropdown, in display order. */-export const TRANSITION_CATEGORIES: { id: TransitionCategory; label: string }[] = [- { id: "basic", get label() { return t("transitions.category.basic"); } },- { id: "motion", get label() { return t("transitions.category.motion"); } },-];--export const TRANSITIONS: TransitionDefinition[] = [- {- id: "cross-fade",- get label() { return t("transitions.cross-fade.label"); },- category: "basic",- get blurb() { return t("transitions.cross-fade.blurb"); },- implemented: true,- defaultDuration: 1,- },- {- id: "fade-black",- get label() { return t("transitions.fade-black.label"); },- category: "basic",- get blurb() { return t("transitions.fade-black.blurb"); },- implemented: true,- defaultDuration: 1,- },- {- id: "fade-white",- get label() { return t("transitions.fade-white.label"); },- category: "basic",- get blurb() { return t("transitions.fade-white.blurb"); },- implemented: true,- defaultDuration: 1,- },- {- id: "wipe-left",- get label() { return t("transitions.wipe-left.label"); },- category: "motion",- get blurb() { return t("transitions.wipe-left.blurb"); },- implemented: false,- defaultDuration: 0.8,- },- {- id: "wipe-right",- get label() { return t("transitions.wipe-right.label"); },- category: "motion",- get blurb() { return t("transitions.wipe-right.blurb"); },- implemented: false,- defaultDuration: 0.8,- },- {- id: "push",- get label() { return t("transitions.push.label"); },- category: "motion",- get blurb() { return t("transitions.push.blurb"); },- implemented: false,- defaultDuration: 0.8,- },- {- id: "zoom",- get label() { return t("transitions.zoom.label"); },- category: "motion",- get blurb() { return t("transitions.zoom.blurb"); },- implemented: false,- defaultDuration: 0.8,- },-];--export function findTransition(id: string): TransitionDefinition | null {- return TRANSITIONS.find((transition) => transition.id === id) ?? null;-}diff --git a/desktop/src/lib/engine.ts b/desktop/src/lib/engine.tsdeleted file mode 100644index 72623024..00000000--- a/desktop/src/lib/engine.ts+++ /dev/null@@ -1,626 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The typed boundary between the UI and the Rust engine.- *- * Every `invoke` in this app goes through this file. Nothing else imports- * `@tauri-apps/api/core` for commands, so when a command's shape changes there- * is exactly one place to fix and the compiler finds every call site.- *- * The engine-owned wire types (`EditorView`, `EditorCommand`, `ExportClip`,- * ...) are generated from the Rust serde structs by ts-rs and re-exported- * from `./generated/` - see the README there - so the compiler checks the- * IPC boundary against the source of truth. The smaller host-only shapes- * (probe results, template info, transcriber status) are still hand-mirrored- * here; keep those in step with `src-tauri/src/*.rs`.- */-import { invoke } from "@tauri-apps/api/core";-import { listen, type UnlistenFn } from "@tauri-apps/api/event";--import type { EditorCommand, EditorView, NewMedia } from "./editor";-import type { ExportClip } from "./generated/export/ExportClip";--export interface VideoStreamInfo {- index: number;- codec: string;- width: number;- height: number;- /** Frames per second as a decimal, for display only. */- frameRate: number;- /** The exact fraction, e.g. "30000/1001". The engine works in these. */- frameRateFraction: string;-}--export interface AudioStreamInfo {- index: number;- codec: string;- sampleRate: number;- channels: number;-}--export interface MediaSummary {- path: string;- /** Seconds, or null when the container does not say. Always null for stills. */- duration: number | null;- /** Decided by the host, which sees the extension as well as the streams. */- kind: "video" | "audio" | "image";- video: VideoStreamInfo | null;- audio: AudioStreamInfo | null;-}--/** Asks the engine what is inside a media file. Throws with FFmpeg's message. */-export async function probeMedia(path: string): Promise<MediaSummary> {- return invoke<MediaSummary>("probe_media", { path });-}--/** A probe result in the shape `addMedia` and `fillSlot` take. */-export function newMediaFromSummary(summary: MediaSummary): NewMedia {- return {- path: summary.path,- name: summary.path.split(/[\\/]/).pop() ?? summary.path,- duration: summary.duration,- kind: summary.kind,- width: summary.video?.width ?? null,- height: summary.video?.height ?? null,- frameRate: summary.video?.frameRate ?? null,- frameRateFraction: summary.video?.frameRateFraction ?? null,- videoCodec: summary.video?.codec ?? null,- audioCodec: summary.audio?.codec ?? null,- hasAudio: summary.audio !== null,- };-}--/** Reports the app version the UI is talking to. */-export async function engineVersion(): Promise<string> {- return invoke<string>("engine_version");-}--/**- * Reads a whole file into memory as bytes.- *- * Two callers: still-image decode in `lib/assets.ts`, and custom font- * registration. It loads the entire file and the host refuses anything past- * its size cap, so do not reach for it as a general-purpose reader.- */-export async function readMediaBytes(path: string): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("read_media_bytes", { path });-}--/**- * Waveform peaks for one media file, decoded and bucketed by the engine.- *- * Returns the encoded form `decodePeaks` in `lib/assets.ts` reads. The host- * caches the result in the project folder, so only the first call per file- * pays for a decode; `project: null` skips that cache.- */-export async function extractPeaks(path: string, project: string | null): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("extract_peaks", { path, project });-}---/** A project on disk, as the launch screen sees it. */-export interface ProjectInfo {- path: string;- name: string;- width: number;- height: number;- rateNum: number;- rateDen: number;- /** Milliseconds since the epoch. */- openedAt: number;-}--/**- * Creates the project folder and writes its manifest.- *- * The returned path may differ from `location/name`, because the name has to- * be made filesystem-safe first.- */-export async function createProject(request: {- location: string;- name: string;- width: number;- height: number;- rateNum: number;- rateDen: number;-}): Promise<ProjectInfo> {- return invoke<ProjectInfo>("create_project", request);-}--/** Reads an existing project's settings and marks it as recently opened. */-export async function openProject(path: string): Promise<ProjectInfo> {- return invoke<ProjectInfo>("open_project", { path });-}--// ── playback, transport and artwork ────────────────────────────────────────--/** One audible clip, as `playback.rs` mixes it. */-export interface AudioClipSpec {- path: string;- /** Timeline seconds. */- start: number;- duration: number;- /** Seconds into the source file. */- sourceStart: number;- volume: number;- fadeIn: number;- fadeOut: number;- speed: number;- preservePitch: boolean;- /** FFmpeg audio filter chain, or empty. */- chain: string;-}--/** Replaces the engine mixer's audible clip set wholesale. */-export async function audioSetClips(project: string, clips: AudioClipSpec[]): Promise<void> {- return invoke<void>("audio_set_clips", { project, clips });-}--export async function transportPlay(position: number): Promise<void> {- return invoke<void>("transport_play", { position });-}--export async function transportPause(): Promise<void> {- return invoke<void>("transport_pause");-}--export async function transportSeek(position: number): Promise<void> {- return invoke<void>("transport_seek", { position });-}--/**- * Subscribes to playback failures the engine would otherwise swallow - a- * missing output device, a clip whose audio would not decode. Resolves to an- * unsubscribe function.- */-export async function onAudioError(handler: (message: string) => void): Promise<UnlistenFn> {- return listen<string>("audio://error", (event) => handler(event.payload));-}--/** One cached artwork file from the project's cache, or a throw the caller- * treats as a miss. */-export async function readArtwork(project: string, key: string): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("read_artwork", { project, key });-}--/** Stores one artwork file in the project's cache. Fire-and-forget shaped:- * a failed write only means regenerating next launch. */-export async function writeArtwork(- project: string,- key: string,- bytes: Uint8Array,-): Promise<void> {- return invoke<void>("write_artwork", { project, key, bytes: Array.from(bytes) });-}--/** A strip of evenly spaced frames as one JPEG, for timeline filmstrips. */-export async function extractFilmstrip(- path: string,- count: number,- height: number,-): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("extract_filmstrip", { path, count, height });-}--// ── the editing session ────────────────────────────────────────────────────-// The engine owns the edit (see engine decision 0007): the UI opens a-// session, sends commands, and renders the state that comes back.--/** Opens a project folder as the engine's editing session. */-export async function editorOpen(session: {- path: string;- name: string;- width: number;- height: number;- rateNum: number;- rateDen: number;-}): Promise<EditorView> {- return invoke<EditorView>("editor_open", session);-}--/** Applies one edit command; the returned state is the truth. */-export async function editorApply(command: EditorCommand): Promise<EditorView> {- return invoke<EditorView>("editor_apply", { command });-}--export async function editorUndo(): Promise<EditorView> {- return invoke<EditorView>("editor_undo");-}--export async function editorRedo(): Promise<EditorView> {- return invoke<EditorView>("editor_redo");-}--/** The current state, without changing anything. */-export async function editorState(): Promise<EditorView> {- return invoke<EditorView>("editor_state");-}--/** Writes the session's document to disk. The output size rides along- * because the preview footer can edit it; the name because the project- * details dialog can. */-export async function editorSave(update?: {- width: number;- height: number;- name?: string;-}): Promise<void> {- return invoke<void>("editor_save", {- name: update?.name ?? null,- width: update?.width ?? null,- height: update?.height ?? null,- });-}--/** Closes the session, dropping its undo history. */-export async function editorClose(): Promise<void> {- return invoke<void>("editor_close");-}--/** Recently opened projects, newest first, with vanished folders left out. */-export async function recentProjects(): Promise<ProjectInfo[]> {- return invoke<ProjectInfo[]>("recent_projects");-}--/** Drops a project from the recents list. The folder itself is untouched. */-export async function forgetProject(path: string): Promise<void> {- return invoke<void>("forget_project", { path });-}--/**- * A poster frame for one project, as JPEG bytes - the launch screen's- * thumbnail. Cached in the project folder by the host; throws when the- * project has nothing visual to show, which the caller treats as "no art".- */-export async function projectPreview(path: string): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("project_preview", { path });-}--// ── templates ──────────────────────────────────────────────────────────────-// A template is a project packed into a bundle: its design media (music,-// overlays) ship inside, its placeholder media become slots the user fills.-// The host owns the library; see src-tauri/src/templates.rs.--/** One placeholder the user's media will replace. */-export interface TemplateSlot {- mediaId: string;- name: string;- kind: "video" | "audio" | "image";- /** Timeline seconds this slot covers, for the fill list. */- seconds: number;-}--/** One template, as the gallery sees it. */-export interface TemplateInfo {- /** The bundle folder on disk. */- path: string;- name: string;- width: number;- height: number;- rateNum: number;- rateDen: number;- /** Slots in the order they first appear on the timeline. */- slots: TemplateSlot[];- hasPoster: boolean;-}--/** The user's media for one slot, straight from a probe. */-export interface SlotFill {- mediaId: string;- item: NewMedia;-}--/** The template library, in name order. */-export async function templateList(): Promise<TemplateInfo[]> {- return invoke<TemplateInfo[]>("template_list");-}--/** Packs the open project into a new template bundle. */-export async function templateSave(name: string): Promise<TemplateInfo> {- return invoke<TemplateInfo>("template_save", { name });-}--/**- * Unpacks a template into a fresh project with every slot filled, and- * returns it ready to open. Every slot needs a fill; the host refuses a- * partial set before anything is written.- */-export async function templateInstantiate(request: {- template: string;- location: string;- name: string;- fills: SlotFill[];-}): Promise<ProjectInfo> {- return invoke<ProjectInfo>("template_instantiate", request);-}--/** Removes one template bundle for good. */-export async function templateDelete(path: string): Promise<void> {- return invoke<void>("template_delete", { path });-}--/** A template's poster as JPEG bytes; throws when there is none. */-export async function templatePoster(path: string): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("template_poster", { path });-}--/**- * One clip, flattened for the exporter - generated from the engine's own- * `wolfcut_export::ExportClip` (see ./generated/README.md), so the UI's- * rasterised title overlays are typed by the struct that deserialises them.- */-export type { ExportClip } from "./generated/export/ExportClip";--export interface ExportRequest {- output: string;- crf: number;- preset: string;- /**- * Rasterised titles, rejoining as image clips. The timeline itself is- * deliberately absent: the engine flattens its own session (engine- * decision 0009), so size, rate and clips all come from the model. The- * webview contributes only what it genuinely owns - fonts and layout.- */- titles: ExportClip[];-}--export interface ExportProgress {- frame: number;- total: number;- stage: string;-}--/** Renders the timeline. Resolves with the path written. */-export async function exportProject(request: ExportRequest): Promise<string> {- return invoke<string>("export_project", { request });-}--/**- * Asks the running export to stop at the next frame. The pending- * `exportProject` call then rejects with "export cancelled".- */-export async function cancelExport(): Promise<void> {- return invoke<void>("cancel_export");-}--/**- * The engine-composited frame at one instant: the exporter's own plan,- * compositor and effects, fed from the host's reader pool and flattened- * from the engine's own session. Raw RGBA bytes, exactly- * `width * height * 4` of them. This is what the paused monitor shows -- * the true frame, not the approximation.- */-export async function previewFrame(request: {- time: number;- width: number;- height: number;-}): Promise<ArrayBuffer> {- return invoke<ArrayBuffer>("preview_frame", { request });-}--/**- * Warms the engine's frame cache for the instants about to play.- *- * Fire and forget, from the playback stream only: after presenting a frame,- * asking for the next `frames` starting at `request.time` turns the next- * `previewFrame` pulls into cache hits instead of decode waits. Failures- * are silent here - a source that will not decode fails the pull too, and- * the pull is the path that reports it.- */-export async function previewPrefetch(- request: { time: number; width: number; height: number },- frames: number,-): Promise<void> {- return invoke<void>("preview_prefetch", { request, frames });-}--/**- * Writes one file into the project's cache folder and returns its path.- *- * The same store the artwork cache uses, so it travels with the project and- * vanishes with it. Keys are flat filenames; the host refuses anything else.- */-export async function writeCacheFile(- project: string,- key: string,- bytes: Uint8Array,-): Promise<string> {- await invoke<void>("write_artwork", { project, key, bytes: Array.from(bytes) });- return `${project}/cache/${key}`;-}--/** Subscribes to export progress. Resolves to an unsubscribe function. */-export async function onExportProgress(- handler: (progress: ExportProgress) => void,-): Promise<UnlistenFn> {- return listen<ExportProgress>("export://progress", (event) => handler(event.payload));-}--// ── transcription ──────────────────────────────────────────────────────────--/** One Whisper model, as the settings panel sees it. */-export interface TranscriberModel {- id: string;- label: string;- blurb: string;- englishOnly: boolean;- /** Approximate download size in bytes, for display. */- sizeBytes: number;- downloaded: boolean;-}--export interface TranscriberStatus {- /** Where `whisper-cli` was found, or null when it was not. */- binary: string | null;- /** True when the binary in use is the copy shipped inside the app. */- bundled: boolean;- /** Where models are stored on disk. */- modelsDir: string;- models: TranscriberModel[];-}--/** Progress of a model download, via `transcriber://download`. */-export interface TranscriberDownload {- id: string;- received: number;- total: number;- done: boolean;-}--/** One caption, in seconds relative to the transcribed window's start. */-export interface TranscribedSegment {- start: number;- end: number;- text: string;-}--export interface TranscribeRequest {- path: string;- /** Seconds into the file where the clip's source window begins. */- sourceStart: number;- /** How much source the clip covers, in seconds (`duration * speed`). */- window: number;- /** Whisper language code, or "auto". */- language: string;- modelId: string;-}--export async function transcriberStatus(): Promise<TranscriberStatus> {- return invoke<TranscriberStatus>("transcriber_status");-}--/** Remembers a user-chosen `whisper-cli`. Throws if the path is not a file. */-export async function setTranscriberBinary(path: string): Promise<TranscriberStatus> {- return invoke<TranscriberStatus>("set_transcriber_binary", { path });-}--/** Downloads one model. Resolves when the file is complete and renamed. */-export async function downloadTranscriberModel(id: string): Promise<void> {- return invoke<void>("download_transcriber_model", { id });-}--export async function cancelModelDownload(): Promise<void> {- return invoke<void>("cancel_model_download");-}--export async function deleteTranscriberModel(id: string): Promise<void> {- return invoke<void>("delete_transcriber_model", { id });-}--/** Subscribes to model download progress. Resolves to an unsubscribe function. */-export async function onTranscriberDownload(- handler: (progress: TranscriberDownload) => void,-): Promise<UnlistenFn> {- return listen<TranscriberDownload>("transcriber://download", (event) => handler(event.payload));-}--/** Transcribes one clip's audio window. Runs until done or cancelled. */-export async function transcribeClip(- request: TranscribeRequest,-): Promise<TranscribedSegment[]> {- return invoke<TranscribedSegment[]>("transcribe_clip", { request });-}--/** Kills the running transcription, if any. */-export async function cancelTranscribe(): Promise<void> {- return invoke<void>("cancel_transcribe");-}--// ── text to speech ─────────────────────────────────────────────────────────--/** One Kokoro bundle, as the settings panel sees it. */-export interface TtsModel {- id: string;- label: string;- blurb: string;- /** Approximate download size in bytes, for display. */- sizeBytes: number;- downloaded: boolean;-}--/**- * One Kokoro speaker. The name encodes accent and gender in its prefix -- * `af` American female, `bm` British male, `zf` Chinese female - which the- * speech dialog decodes for display.- */-export interface TtsVoice {- /** Kokoro speaker id, what `speakText` wants back. */- id: number;- name: string;-}--export interface TtsStatus {- /** Where models are stored on disk. */- modelsDir: string;- models: TtsModel[];- voices: TtsVoice[];-}--/** Progress of a model download, via `tts://download`. */-export interface TtsDownload {- id: string;- received: number;- total: number;- /** True while the archive unpacks - bytes stop moving, the job continues. */- unpacking: boolean;- done: boolean;-}--export interface SpeakRequest {- modelId: string;- /** Kokoro speaker id, from the status' voices table. */- voice: number;- text: string;- /** Speaking rate; 1.0 is the voice's natural pace. */- speed: number;- /** The project folder the WAV should land in. */- project: string;-}--export interface SpeakResult {- /** Absolute path of the written WAV, ready for the media import path. */- path: string;- /** Seconds of audio. */- duration: number;-}--export async function ttsStatus(): Promise<TtsStatus> {- return invoke<TtsStatus>("tts_status");-}--/** Downloads one voice model. Resolves once unpacked into place. */-export async function downloadTtsModel(id: string): Promise<void> {- return invoke<void>("download_tts_model", { id });-}--export async function cancelTtsModelDownload(): Promise<void> {- return invoke<void>("cancel_tts_model_download");-}--export async function deleteTtsModel(id: string): Promise<void> {- return invoke<void>("delete_tts_model", { id });-}--/** Subscribes to voice model download progress. Resolves to an unsubscribe function. */-export async function onTtsDownload(- handler: (progress: TtsDownload) => void,-): Promise<UnlistenFn> {- return listen<TtsDownload>("tts://download", (event) => handler(event.payload));-}--/** Synthesizes narration into `<project>/audio/` and returns the WAV's path. */-export async function speakText(request: SpeakRequest): Promise<SpeakResult> {- return invoke<SpeakResult>("speak_text", { request });-}--/** Asks the running synthesis to stop at the next sentence boundary. */-export async function cancelSpeak(): Promise<void> {- return invoke<void>("cancel_speak");-}--/** Subscribes to synthesis progress (0..1). Resolves to an unsubscribe function. */-export async function onSpeakProgress(- handler: (progress: { fraction: number }) => void,-): Promise<UnlistenFn> {- return listen<{ fraction: number }>("tts://progress", (event) => handler(event.payload));-}diff --git a/desktop/src/lib/filters.test.ts b/desktop/src/lib/filters.test.tsdeleted file mode 100644index fe8030f1..00000000--- a/desktop/src/lib/filters.test.ts+++ /dev/null@@ -1,185 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The audio filter catalogue's export strings, pinned character for character.- *- * `buildChain` is the single description of every filter: the exporter and the- * preview both run exactly this string through FFmpeg, so there is nothing to- * cross-check it against - these expectations are the check. Every catalogue- * entry is spelled out at its default, minimum and maximum settings. When one- * fails, the export sound changed - confirm FFmpeg accepts the new spelling- * (aphaser caps speed at 2, atempo floors at 0.5) and that existing projects- * still sound the same before updating the expectation.- */-import { describe, expect, test } from "vitest";--import { buildChain, chainKey, FILTERS, findFilter } from "./filters";--const one = (id: string, params: Record<string, number> = {}) =>- buildChain([{ id, params }]);--/** The definition's sliders, all pushed to one bound. */-const bound = (id: string, which: "min" | "max"): Record<string, number> =>- Object.fromEntries(findFilter(id)!.params.map((param) => [param.key, param[which]]));--// The Voice category is built on the pitchShift helper: asetrate moves pitch-// and formants together, atempo puts the duration back. The rates below are-// 48000 * 2^(semitones/12) and its reciprocal, to the helper's own precision.-const DEFAULT_CHAINS: Record<string, string> = {- sweet:- "aresample=48000,asetrate=59334.357554,aresample=48000,atempo=0.80897480," +- "highpass=f=85,equalizer=f=300:t=q:w=1.1:g=-1.4," +- "equalizer=f=4200:t=q:w=0.8:g=4.180,equalizer=f=10500:t=q:w=0.7:g=5.550," +- "compand=attacks=0.010:decays=0.180:points=-80/-80|-30/-24|-18/-13|-8/-5|0/-1.5:soft-knee=5:gain=1," +- "deesser=i=0.388:m=0.45:f=0.55,aecho=0.8:0.82:38:0.0432," +- "alimiter=limit=0.94:attack=5:release=60",- deep:- "aresample=48000,asetrate=40363.027932,aresample=48000,atempo=1.18920712," +- "highpass=f=55,equalizer=f=140:t=q:w=1.0:g=3.00," +- "equalizer=f=2600:t=q:w=0.9:g=-1.2,alimiter=limit=0.94:attack=5:release=60",- chipmunk:- "aresample=48000,asetrate=71918.739690,aresample=48000,atempo=0.66741993," +- "highpass=f=120,alimiter=limit=0.94",- robot:- "aphaser=type=t:speed=1.20:decay=0.6,flanger=delay=2:depth=4:speed=0.8," +- "equalizer=f=1800:t=q:w=1.2:g=3,alimiter=limit=0.94",- bass: "bass=g=5.00:f=110:w=0.6,alimiter=limit=0.95",- treble: "treble=g=4.00:f=9000:w=0.7,alimiter=limit=0.95",- telephone:- "highpass=f=400,lowpass=f=3400,equalizer=f=1600:t=q:w=1.4:g=4.50,alimiter=limit=0.92",- echo: "aecho=0.8:0.85:250:0.40",- room: "aecho=0.8:0.88:24|43|70|101:0.320|0.240|0.170|0.110",-};--const MIN_CHAINS: Record<string, string> = {- sweet:- "aresample=48000,asetrate=51445.126202,aresample=48000,atempo=0.93303299," +- "highpass=f=85,equalizer=f=300:t=q:w=1.1:g=-1.4," +- "equalizer=f=4200:t=q:w=0.8:g=0.800,equalizer=f=10500:t=q:w=0.7:g=1.000," +- "compand=attacks=0.010:decays=0.180:points=-80/-80|-30/-24|-18/-13|-8/-5|0/-1.5:soft-knee=5:gain=1," +- "deesser=i=0.180:m=0.45:f=0.55,aecho=0.8:0.82:38:0.0120," +- "alimiter=limit=0.94:attack=5:release=60",- deep:- "aresample=48000,asetrate=30238.105197,aresample=48000,atempo=1.58740105," +- "highpass=f=55,equalizer=f=140:t=q:w=1.0:g=0.00," +- "equalizer=f=2600:t=q:w=0.9:g=-1.2,alimiter=limit=0.94:attack=5:release=60",- chipmunk:- "aresample=48000,asetrate=57081.941520,aresample=48000,atempo=0.84089642," +- "highpass=f=120,alimiter=limit=0.94",- robot:- "aphaser=type=t:speed=0.56:decay=0.6,flanger=delay=2:depth=4:speed=0.8," +- "equalizer=f=1800:t=q:w=1.2:g=3,alimiter=limit=0.94",- bass: "bass=g=0.00:f=110:w=0.6,alimiter=limit=0.95",- treble: "treble=g=0.00:f=9000:w=0.7,alimiter=limit=0.95",- telephone:- "highpass=f=400,lowpass=f=3400,equalizer=f=1600:t=q:w=1.4:g=3.00,alimiter=limit=0.92",- echo: "aecho=0.8:0.85:50:0.10",- room: "aecho=0.8:0.88:9|16|27|39:0.320|0.240|0.170|0.110",-};--const MAX_CHAINS: Record<string, string> = {- sweet:- "aresample=48000,asetrate=76195.250494,aresample=48000,atempo=0.62996052," +- "highpass=f=85,equalizer=f=300:t=q:w=1.1:g=-1.4," +- "equalizer=f=4200:t=q:w=0.8:g=6.000,equalizer=f=10500:t=q:w=0.7:g=8.000," +- "compand=attacks=0.010:decays=0.180:points=-80/-80|-30/-24|-18/-13|-8/-5|0/-1.5:soft-knee=5:gain=1," +- "deesser=i=0.500:m=0.45:f=0.55,aecho=0.8:0.82:38:0.0600," +- "alimiter=limit=0.94:attack=5:release=60",- deep:- "aresample=48000,asetrate=45305.967009,aresample=48000,atempo=1.05946309," +- "highpass=f=55,equalizer=f=140:t=q:w=1.0:g=8.00," +- "equalizer=f=2600:t=q:w=0.9:g=-1.2,alimiter=limit=0.94:attack=5:release=60",- chipmunk:- // +12 semitones is exactly double: the one point the maths comes out round.- "aresample=48000,asetrate=96000.000000,aresample=48000,atempo=0.50000000," +- "highpass=f=120,alimiter=limit=0.94",- robot:- // Depth 10 must land exactly on aphaser's speed cap of 2, never above it -- // above the cap the filter refuses and the whole export fails.- "aphaser=type=t:speed=2.00:decay=0.6,flanger=delay=2:depth=4:speed=0.8," +- "equalizer=f=1800:t=q:w=1.2:g=3,alimiter=limit=0.94",- bass: "bass=g=12.00:f=110:w=0.6,alimiter=limit=0.95",- treble: "treble=g=12.00:f=9000:w=0.7,alimiter=limit=0.95",- telephone:- "highpass=f=400,lowpass=f=3400,equalizer=f=1600:t=q:w=1.4:g=8.00,alimiter=limit=0.92",- echo: "aecho=0.8:0.85:1000:0.90",- room: "aecho=0.8:0.88:46|82|134|194:0.320|0.240|0.170|0.110",-};--describe("the filter catalogue's export strings", () => {- test("this suite knows every filter - a new filter must pin its strings here", () => {- const ids = FILTERS.map((filter) => filter.id).sort();- expect(Object.keys(DEFAULT_CHAINS).sort()).toEqual(ids);- expect(Object.keys(MIN_CHAINS).sort()).toEqual(ids);- expect(Object.keys(MAX_CHAINS).sort()).toEqual(ids);- });-- test("every filter at its default settings", () => {- for (const filter of FILTERS) {- // No params passed: resolveParams must fill every default.- expect(one(filter.id), filter.id).toBe(DEFAULT_CHAINS[filter.id]);- }- });-- test("every filter at its sliders' minimum", () => {- for (const [id, expected] of Object.entries(MIN_CHAINS)) {- expect(one(id, bound(id, "min")), id).toBe(expected);- }- });-- test("every filter at its sliders' maximum", () => {- for (const [id, expected] of Object.entries(MAX_CHAINS)) {- expect(one(id, bound(id, "max")), id).toBe(expected);- }- });-});--describe("buildChain composition", () => {- test("stacked filters join with commas in applied order", () => {- // EQ into a limiter is a different sound from a limiter into EQ; the- // array's order is the contract.- expect(- buildChain([- { id: "bass", params: {} },- { id: "echo", params: {} },- ]),- ).toBe("bass=g=5.00:f=110:w=0.6,alimiter=limit=0.95,aecho=0.8:0.85:250:0.40");- });-- test("a bypassed filter contributes nothing", () => {- expect(- buildChain([- { id: "bass", params: {}, enabled: false },- { id: "echo", params: {} },- ]),- ).toBe("aecho=0.8:0.85:250:0.40");- });-- test("an unknown id is skipped, not exported as garbage", () => {- expect(- buildChain([- { id: "from-the-future", params: {} },- { id: "echo", params: {} },- ]),- ).toBe("aecho=0.8:0.85:250:0.40");- });-- test("no audible filters means null, never an empty string", () => {- expect(buildChain([])).toBeNull();- expect(buildChain([{ id: "bass", params: {}, enabled: false }])).toBeNull();- });-});--describe("chainKey", () => {- test("identifies exactly one rendered sound", () => {- const filters = [{ id: "echo", params: { delay: 0.5 } }];- expect(chainKey("m1", 1.25, 4, filters)).toBe(- "m1|1.250|4.000|aecho=0.8:0.85:500:0.40",- );- // A bypassed chain keys the same as no chain: both play the raw file.- expect(chainKey("m1", 0, 4, [{ id: "echo", params: {}, enabled: false }])).toBe(- chainKey("m1", 0, 4, []),- );- });-});diff --git a/desktop/src/lib/filters.ts b/desktop/src/lib/filters.tsdeleted file mode 100644index a286e95c..00000000--- a/desktop/src/lib/filters.ts+++ /dev/null@@ -1,314 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The audio filter catalogue.- *- * Every filter is a function from parameters to an FFmpeg filter fragment.- * That is the whole design: there is one description of what a filter does,- * it produces a string, and both the exporter and the preview run that same- * string through FFmpeg. They cannot drift, because there is nothing to drift- * between - no second implementation in Web Audio approximating the first.- *- * The cost is that a filtered clip has to be rendered before it can be heard.- * See `lib/audio.ts`; the alternative was a preview that lies.- */--import { t } from "./i18n";--export type FilterCategory = "voice" | "tone" | "space";--export interface FilterParam {- key: string;- label: string;- min: number;- max: number;- step: number;- default: number;- /** Turns the raw number into what the reader sees. */- format: (value: number) => string;-}--export interface FilterDefinition {- id: string;- label: string;- category: FilterCategory;- /** One line on what it does, shown under the name. */- blurb: string;- params: FilterParam[];- /** Builds the FFmpeg fragment for these parameter values. */- chain: (params: Record<string, number>) => string;-}--/** A filter applied to a clip, with whatever parameters were set. */-export interface ClipFilter {- id: string;- params: Record<string, number>;- /**- * False bypasses the filter without losing its settings - the A/B switch.- * Absent means enabled, so filters saved before this existed stay audible.- */- enabled?: boolean;-}--export const CATEGORIES: { id: FilterCategory; label: string }[] = [- { id: "voice", get label() { return t("filters.category.voice"); } },- { id: "tone", get label() { return t("filters.category.tone"); } },- { id: "space", get label() { return t("filters.category.space"); } },-];--const percent = (value: number) => `${Math.round(value)}%`;-const semitones = (value: number) =>- `${value > 0 ? "+" : ""}${value.toFixed(1)} st`;-const decibels = (value: number) => `${value > 0 ? "+" : ""}${value.toFixed(1)} dB`;-const seconds = (value: number) => `${value.toFixed(2)}s`;--/**- * Pitch shift that moves the formants with the pitch.- *- * Raising the sample rate and then resampling back shifts everything - which- * is why it sounds like a different voice rather than the same voice- * transposed. `atempo` then puts the duration back, because `asetrate` alone- * would also make the clip shorter.- *- * This is the technique the whole Voice category is built on.- */-function pitchShift(semitoneShift: number): string[] {- const ratio = 2 ** (semitoneShift / 12);- return [- "aresample=48000",- `asetrate=${(48000 * ratio).toFixed(6)}`,- "aresample=48000",- `atempo=${(1 / ratio).toFixed(8)}`,- ];-}--export const FILTERS: FilterDefinition[] = [- {- id: "sweet",- get label() { return t("filters.sweet.label"); },- category: "voice",- get blurb() { return t("filters.sweet.blurb"); },- params: [- {- key: "amount",- get label() { return t("filters.sweet.param.amount"); },- min: 0,- max: 100,- step: 1,- default: 65,- format: percent,- },- {- key: "pitch",- get label() { return t("filters.sweet.param.pitch"); },- min: 0,- max: 8,- step: 0.1,- // 0 means "follow amount", which is what the original did when no- // explicit pitch was passed.- default: 0,- format: (value) => (value === 0 ? t("filters.sweet.pitchAuto") : semitones(value)),- },- ],- chain: ({ amount = 65, pitch = 0 }) => {- const strength = Math.max(0, Math.min(100, amount)) / 100;-- /*- * The filter chain below is the reference implementation, unchanged.- * These *coefficients* are not.- *- * The original mapped the whole 0-100 slider onto 1.2-2.7 semitones and- * about 2 dB of EQ, so dragging it end to end barely changed anything -- * a faithful port of numbers that made a poor control. The shape is the- * same and the low end still matches; the top now goes somewhere.- *- * Original, if you want the subtler feel back:- * shift = 1.2 + 1.5 * strength- * presence = 0.8 + 1.5 * strength- * air = 1.0 + 2.0 * strength- * deess = 0.18 + 0.22 * strength- * echo = 0.012 + 0.018 * strength- */- const shift = pitch > 0 ? pitch : 1.2 + 3.8 * strength;- const presence = 0.8 + 5.2 * strength;- const air = 1.0 + 7.0 * strength;- const deess = 0.18 + 0.32 * strength;- const echo = 0.012 + 0.048 * strength;-- return [- ...pitchShift(shift),- "highpass=f=85",- "equalizer=f=300:t=q:w=1.1:g=-1.4",- `equalizer=f=4200:t=q:w=0.8:g=${presence.toFixed(3)}`,- `equalizer=f=10500:t=q:w=0.7:g=${air.toFixed(3)}`,- "compand=attacks=0.010:decays=0.180:points=-80/-80|-30/-24|-18/-13|-8/-5|0/-1.5:soft-knee=5:gain=1",- `deesser=i=${deess.toFixed(3)}:m=0.45:f=0.55`,- `aecho=0.8:0.82:38:${echo.toFixed(4)}`,- "alimiter=limit=0.94:attack=5:release=60",- ].join(",");- },- },- {- id: "deep",- get label() { return t("filters.deep.label"); },- category: "voice",- get blurb() { return t("filters.deep.blurb"); },- params: [- { key: "pitch", get label() { return t("filters.deep.param.pitch"); }, min: -8, max: -1, step: 0.1, default: -3, format: semitones },- { key: "body", get label() { return t("filters.deep.param.body"); }, min: 0, max: 8, step: 0.5, default: 3, format: decibels },- ],- chain: ({ pitch = -3, body = 3 }) =>- [- ...pitchShift(pitch),- "highpass=f=55",- `equalizer=f=140:t=q:w=1.0:g=${body.toFixed(2)}`,- "equalizer=f=2600:t=q:w=0.9:g=-1.2",- "alimiter=limit=0.94:attack=5:release=60",- ].join(","),- },- {- id: "chipmunk",- get label() { return t("filters.chipmunk.label"); },- category: "voice",- get blurb() { return t("filters.chipmunk.blurb"); },- params: [- { key: "pitch", get label() { return t("filters.chipmunk.param.pitch"); }, min: 3, max: 12, step: 0.5, default: 7, format: semitones },- ],- chain: ({ pitch = 7 }) =>- [...pitchShift(pitch), "highpass=f=120", "alimiter=limit=0.94"].join(","),- },- {- id: "robot",- get label() { return t("filters.robot.label"); },- category: "voice",- get blurb() { return t("filters.robot.blurb"); },- params: [- { key: "depth", get label() { return t("filters.robot.param.depth"); }, min: 1, max: 10, step: 0.5, default: 5, format: percent },- ],- chain: ({ depth = 5 }) =>- [- // aphaser caps speed at 2, so depth maps into 0.4-2.0 rather than- // being halved - which put it out of range and made the filter refuse.- `aphaser=type=t:speed=${(0.4 + (depth / 10) * 1.6).toFixed(2)}:decay=0.6`,- "flanger=delay=2:depth=4:speed=0.8",- "equalizer=f=1800:t=q:w=1.2:g=3",- "alimiter=limit=0.94",- ].join(","),- },-- {- id: "bass",- get label() { return t("filters.bass.label"); },- category: "tone",- get blurb() { return t("filters.bass.blurb"); },- params: [- { key: "gain", get label() { return t("filters.bass.param.gain"); }, min: 0, max: 12, step: 0.5, default: 5, format: decibels },- ],- chain: ({ gain = 5 }) => `bass=g=${gain.toFixed(2)}:f=110:w=0.6,alimiter=limit=0.95`,- },- {- id: "treble",- get label() { return t("filters.treble.label"); },- category: "tone",- get blurb() { return t("filters.treble.blurb"); },- params: [- { key: "gain", get label() { return t("filters.treble.param.gain"); }, min: 0, max: 12, step: 0.5, default: 4, format: decibels },- ],- chain: ({ gain = 4 }) => `treble=g=${gain.toFixed(2)}:f=9000:w=0.7,alimiter=limit=0.95`,- },- {- id: "telephone",- get label() { return t("filters.telephone.label"); },- category: "tone",- get blurb() { return t("filters.telephone.blurb"); },- params: [- { key: "drive", get label() { return t("filters.telephone.param.drive"); }, min: 0, max: 10, step: 0.5, default: 3, format: percent },- ],- chain: ({ drive = 3 }) =>- [- "highpass=f=400",- "lowpass=f=3400",- `equalizer=f=1600:t=q:w=1.4:g=${(3 + drive / 2).toFixed(2)}`,- "alimiter=limit=0.92",- ].join(","),- },-- {- id: "echo",- get label() { return t("filters.echo.label"); },- category: "space",- get blurb() { return t("filters.echo.blurb"); },- params: [- { key: "delay", get label() { return t("filters.echo.param.delay"); }, min: 0.05, max: 1, step: 0.01, default: 0.25, format: seconds },- { key: "decay", get label() { return t("filters.echo.param.decay"); }, min: 0.1, max: 0.9, step: 0.05, default: 0.4, format: percent },- ],- chain: ({ delay = 0.25, decay = 0.4 }) =>- `aecho=0.8:0.85:${Math.round(delay * 1000)}:${decay.toFixed(2)}`,- },- {- id: "room",- get label() { return t("filters.room.label"); },- category: "space",- get blurb() { return t("filters.room.blurb"); },- params: [- { key: "size", get label() { return t("filters.room.param.size"); }, min: 0, max: 100, step: 1, default: 40, format: percent },- ],- chain: ({ size = 40 }) => {- const scale = 0.4 + (size / 100) * 1.6;- const taps = [23, 41, 67, 97].map((ms) => Math.round(ms * scale));- const gains = [0.32, 0.24, 0.17, 0.11].map((g) => g.toFixed(3));- return `aecho=0.8:0.88:${taps.join("|")}:${gains.join("|")}`;- },- },-];--export function findFilter(id: string): FilterDefinition | null {- return FILTERS.find((filter) => filter.id === id) ?? null;-}--/** Fills in any parameter the clip did not set. */-export function resolveParams(- definition: FilterDefinition,- params: Record<string, number>,-): Record<string, number> {- const resolved: Record<string, number> = {};- for (const param of definition.params) {- resolved[param.key] = params[param.key] ?? param.default;- }- return resolved;-}--/**- * The complete FFmpeg filter string for a clip, or null if it has none.- *- * Filters apply in the order they were added, which is why `filters` is an- * array: EQ before a limiter is a different sound from the reverse.- */-export function buildChain(filters: readonly ClipFilter[]): string | null {- const fragments = filters.flatMap((applied) => {- // A bypassed filter contributes nothing, so preview and export both fall- // out of this one check - there is no second place to forget.- if (applied.enabled === false) return [];- const definition = findFilter(applied.id);- if (!definition) return [];- return [definition.chain(resolveParams(definition, applied.params))];- });-- return fragments.length > 0 ? fragments.join(",") : null;-}--/**- * A stable key for "this exact filtered audio".- *- * Used to cache rendered results, so dragging a slider back to a value you- * already heard plays instantly instead of re-rendering.- */-export function chainKey(- mediaId: string,- sourceStart: number,- duration: number,- filters: readonly ClipFilter[],-): string {- return `${mediaId}|${sourceStart.toFixed(3)}|${duration.toFixed(3)}|${buildChain(filters) ?? ""}`;-}diff --git a/desktop/src/lib/generated/AppliedFilter.ts b/desktop/src/lib/generated/AppliedFilter.tsdeleted file mode 100644index 3f108a69..00000000--- a/desktop/src/lib/generated/AppliedFilter.ts+++ /dev/null@@ -1,22 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * One applied audio filter or video effect: a catalogue id plus whatever- * parameters were set. The catalogues themselves (and the FFmpeg strings- * they build) live in the UI today; the model only stores the numbers.- */-export type AppliedFilter = {-/**- * Which catalogue entry this is, e.g. "sepia". Not minted; an id the- * catalogue no longer knows is simply skipped at render time.- */-id: string,-/**- * The user's knob settings, keyed by parameter name. Missing keys mean- * the catalogue's defaults; ordered so serialisation is stable.- */-params: { [key in string]: number },-/**- * False bypasses without losing settings. Absent means enabled.- */-enabled?: boolean, };diff --git a/desktop/src/lib/generated/Clip.ts b/desktop/src/lib/generated/Clip.tsdeleted file mode 100644index 2d8b6582..00000000--- a/desktop/src/lib/generated/Clip.ts+++ /dev/null@@ -1,114 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { AppliedFilter } from "./AppliedFilter";-import type { ClipKind } from "./ClipKind";-import type { TextStyle } from "./TextStyle";-import type { Transition } from "./Transition";--/**- * One placed piece of a timeline: a stretch of media (or a title) with its- * timing, mix, transform, and effects. Everything an edit decision touches- * lives here, which is why most commands are clip commands.- */-export type Clip = {-/**- * Minted by the editor ("c1", "c2", ...); how every command names its- * target. Survives splits - the head keeps the id - and merges.- */-id: string,-/**- * The lane this clip sits on. Always a track of the same timeline; the- * reader drops clips whose track vanished.- */-trackId: string,-/**- * Empty for a text clip, which has no file behind it.- */-mediaId: string,-/**- * Display label. Snapshotted from the media's name (or a title's first- * line) at creation, then the user's to change.- */-name: string,-/**- * What this clip renders as. Follows the media's kind, and is rewritten- * when a template slot is filled with a different kind of file.- */-kind: ClipKind,-/**- * Seconds from the start of the timeline.- */-start: number,-/**- * Seconds of timeline the clip occupies. Source seconds divided by- * `speed`; never below a sixtieth of a second.- */-duration: number,-/**- * In-point: how far into the media the clip starts.- */-sourceStart: number,-/**- * Linear gain, 1 being unity.- */-volume: number,-/**- * Seconds of audio ramp-in from silence at the head. Zero for none.- */-fadeIn: number,-/**- * Seconds of audio ramp-out to silence at the tail. Zero for none.- */-fadeOut: number,-/**- * Multiplier over the fitted size. 1 fills the frame, preserving aspect.- */-scale: number,-/**- * Offset from centred, as a fraction of frame width / height.- */-offsetX: number,-/**- * The vertical half of `offset_x`'s pair; positive moves down.- */-offsetY: number,-/**- * Clockwise rotation in degrees, about the picture's centre.- */-rotation: number,-/**- * Blend strength over whatever is beneath, in 0..1.- */-opacity: number,-/**- * Playback rate. 1 is normal.- */-speed: number,-/**- * Keep voices at their natural pitch when `speed` is not 1. On by- * default; off gives the tape-machine chipmunk/slow-motion sound.- */-preservePitch: boolean,-/**- * Audio filters, in order - order is audible.- */-filters: Array<AppliedFilter>,-/**- * Video effects, in order - the visual sibling of `filters`.- */-videoEffects: Array<AppliedFilter>,-/**- * True when a video clip's embedded audio is detached out of it.- */-muted?: boolean,-/**- * On a detached audio clip: the video clip the sound came from.- */-detachedFrom?: string,-/**- * The transition on the cut into this clip, if any.- */-transitionIn?: Transition,-/**- * The overlay, when this is a text clip.- */-text?: TextStyle, };diff --git a/desktop/src/lib/generated/ClipKind.ts b/desktop/src/lib/generated/ClipKind.tsdeleted file mode 100644index baca2cc6..00000000--- a/desktop/src/lib/generated/ClipKind.ts+++ /dev/null@@ -1,7 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * What a clip can be - wider than [`MediaKind`] because a text clip has no- * file behind it; it *is* its own content.- */-export type ClipKind = "video" | "audio" | "image" | "text";diff --git a/desktop/src/lib/generated/ClipMove.ts b/desktop/src/lib/generated/ClipMove.tsdeleted file mode 100644index d0d97375..00000000--- a/desktop/src/lib/generated/ClipMove.ts+++ /dev/null@@ -1,20 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * Where one clip is going, in a multi-clip move.- */-export type ClipMove = {-/**- * The clip to move. An unknown id is skipped, not an error - the rest- * of the batch of moves still lands.- */-clipId: string,-/**- * New timeline position in seconds, floored at 0.- */-start: number,-/**- * Destination track. An unknown id moves the clip in time but leaves it- * on its current track.- */-trackId: string, };diff --git a/desktop/src/lib/generated/ClipPatch.ts b/desktop/src/lib/generated/ClipPatch.tsdeleted file mode 100644index 275c023b..00000000--- a/desktop/src/lib/generated/ClipPatch.ts+++ /dev/null@@ -1,56 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { AppliedFilter } from "./AppliedFilter";-import type { TextStyle } from "./TextStyle";-import type { Transition } from "./Transition";--/**- * A partial update to one clip. Every field optional; `transition_in` and- * `text` are double-optional so "clear it" and "leave it alone" stay- * distinct on the wire (absent = untouched, null = cleared).- */-export type ClipPatch = {-/**- * New display name, taken verbatim. A later `text` patch overwrites it- * with the title's first line.- */-name?: string,-/**- * New gain; floored at 0, deliberately not capped at 1 - boosting quiet- * footage is legitimate.- */-volume?: number,-/**- * New fade-in length in seconds, floored at 0.- */-fadeIn?: number,-/**- * New fade-out length in seconds, floored at 0.- */-fadeOut?: number,-/**- * New opacity, clamped into 0..=1.- */-opacity?: number,-/**- * New pitch-preservation setting, taken as sent.- */-preservePitch?: boolean,-/**- * Wholesale replacement of the audio filter chain - the UI sends the- * full list, not a diff.- */-filters?: Array<AppliedFilter>,-/**- * Wholesale replacement of the video effect chain, like `filters`.- */-videoEffects?: Array<AppliedFilter>,-/**- * The transition on the cut into the clip: absent leaves it alone,- * null clears it, a value replaces it.- */-transitionIn?: Transition | null,-/**- * The title styling, same three-way wire semantics as `transition_in`.- * Setting a style also renames the clip after its first line.- */-text?: TextStyle | null, };diff --git a/desktop/src/lib/generated/Command.ts b/desktop/src/lib/generated/Command.tsdeleted file mode 100644index 8f039bb5..00000000--- a/desktop/src/lib/generated/Command.ts+++ /dev/null@@ -1,226 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { ClipMove } from "./ClipMove";-import type { ClipPatch } from "./ClipPatch";-import type { NewMedia } from "./NewMedia";-import type { TextStyle } from "./TextStyle";-import type { TrackFlag } from "./TrackFlag";-import type { TrimEdge } from "./TrimEdge";--/**- * Every edit, as the UI sends it over IPC: a tagged `op` plus camelCase- * fields. [`apply`] is the single place each variant's meaning lives; the- * notes here state the contract - clamps, tolerances, what gets minted -- * so a caller need not read `apply` to know what a command will do.- */-export type Command = { "op": "addMedia",-/**- * The probed file, as described by the host.- */-item: NewMedia, } | { "op": "removeMedia",-/**- * The bin item to remove. An unknown id is a no-op.- */-mediaId: string, } | { "op": "setMediaPlaceholder",-/**- * The bin item to mark. An unknown id is a no-op.- */-mediaId: string,-/**- * True to make it a slot, false to make it ordinary media again.- */-placeholder: boolean, } | { "op": "fillSlot",-/**- * The slot being filled - must have `placeholder` set.- */-mediaId: string,-/**- * The user's file that takes the slot's place.- */-item: NewMedia, } | { "op": "batch",-/**- * The commands, applied in order. Nesting is legal.- */-commands: Array<Command>, } | { "op": "addClip",-/**- * The bin item to cut from.- */-mediaId: string,-/**- * The lane to place it on.- */-trackId: string,-/**- * Timeline position in seconds, floored at 0.- */-start: number, } | { "op": "addClipAtFirstFree",-/**- * The bin item to cut from.- */-mediaId: string,-/**- * Timeline position in seconds, floored at 0.- */-start: number, } | { "op": "addTextClip",-/**- * The lane to place it on. None picks the first free track like- * [`Command::AddClipAtFirstFree`]; naming a vanished track errs.- */-trackId: string | null,-/**- * Timeline position in seconds, floored at 0.- */-start: number,-/**- * The words and their look. None means [`TextStyle::default`].- */-style: TextStyle | null,-/**- * Seconds on the timeline; the editorial default when absent. Here- * so a caption run can land as one batch instead of add-then-trim- * per clip - a batch cannot trim a clip whose id it cannot know yet.- */-duration?: number,-/**- * Vertical placement as a frame-height fraction, clamped like- * SetClipTransform. Lower thirds are made of this.- */-offsetY?: number, } | { "op": "moveClips",-/**- * Where each clip is going.- */-moves: Array<ClipMove>, } | { "op": "trimClip",-/**- * The clip to trim.- */-clipId: string,-/**- * Which edge is being dragged.- */-edge: TrimEdge,-/**- * Signed seconds of timeline the edge moves: positive drags the- * head right (shortening) or the tail right (lengthening).- */-delta: number, } | { "op": "splitClips",-/**- * The clips under the playhead - normally the selection.- */-clipIds: Array<string>,-/**- * The cut point, in timeline seconds.- */-time: number, } | { "op": "mergeClips",-/**- * The pieces to rejoin, any order.- */-clipIds: Array<string>, } | { "op": "removeClips",-/**- * The clips to delete.- */-clipIds: Array<string>, } | { "op": "updateClip",-/**- * The clip to patch.- */-clipId: string,-/**- * Which properties change, and to what.- */-patch: ClipPatch, } | { "op": "setClipSpeed",-/**- * The clip to retime. An unknown id is a no-op.- */-clipId: string,-/**- * The new rate, clamped into 0.0625..=16 (the engine's range).- */-speed: number, } | { "op": "setClipTransform",-/**- * The clip to place. An unknown id is a no-op.- */-clipId: string,-/**- * New scale, clamped into 0.05..=8.- */-scale?: number,-/**- * New horizontal offset as a frame-width fraction, clamped to ±3.- */-offsetX?: number,-/**- * New vertical offset as a frame-height fraction, clamped to ±3.- */-offsetY?: number,-/**- * New rotation in degrees, wrapped into (-180, 180] so a full drag- * never accumulates turns.- */-rotation?: number, } | { "op": "detachAudio",-/**- * The video clip to detach from.- */-clipId: string, } | { "op": "reattachAudio",-/**- * The video clip - or its detached sound.- */-clipId: string, } | { "op": "addTrack" } | { "op": "removeTrack",-/**- * The lane to delete.- */-trackId: string, } | { "op": "renameTrack",-/**- * The lane to rename.- */-trackId: string,-/**- * The new label; trimmed before it lands.- */-name: string, } | { "op": "setTrackFlag",-/**- * The lane to change.- */-trackId: string,-/**- * Which toggle: visibility or mute.- */-flag: TrackFlag,-/**- * The new setting.- */-value: boolean, } | { "op": "addTimeline" } | { "op": "removeTimeline",-/**- * The timeline to delete. An unknown id is a no-op.- */-timelineId: string, } | { "op": "renameTimeline",-/**- * The timeline to rename.- */-timelineId: string,-/**- * The new tab label; trimmed before it lands.- */-name: string, } | { "op": "selectTimeline",-/**- * The timeline to switch to.- */-timelineId: string, } | { "op": "moveTimeline",-/**- * The timeline to move. An unknown id is a no-op.- */-timelineId: string,-/**- * Where it lands among its siblings, 0-based, counted with the- * timeline already removed from its old slot. Clamped to the end.- */-index: number, } | { "op": "addFont",-/**- * The family name titles will refer to.- */-family: string,-/**- * Where the font file lives on disk.- */-path: string, } | { "op": "removeFont",-/**- * The family to unregister.- */-family: string, };diff --git a/desktop/src/lib/generated/CustomFont.ts b/desktop/src/lib/generated/CustomFont.tsdeleted file mode 100644index 71b3339e..00000000--- a/desktop/src/lib/generated/CustomFont.ts+++ /dev/null@@ -1,16 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * A font the user added from disk.- */-export type CustomFont = {-/**- * The family name titles refer to; removal leaves referring clips- * untouched so the face can come back when the file does.- */-family: string,-/**- * Where the font file lives on disk. Doubles as the duplicate check- * when adding.- */-path: string, };diff --git a/desktop/src/lib/generated/EditorView.ts b/desktop/src/lib/generated/EditorView.tsdeleted file mode 100644index 9b6dd126..00000000--- a/desktop/src/lib/generated/EditorView.ts+++ /dev/null@@ -1,19 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { Project } from "./Project";-import type { SettingsView } from "./SettingsView";--/**- * What every mutating call returns: the authoritative state plus history- * availability, so the UI's undo/redo affordances are never guessing.- */-export type EditorView = { project: Project, canUndo: boolean, canRedo: boolean,-/**- * The settings as the session holds them - the document's own output- * size wins over the manifest's on open, exactly as the old loader- * preferred it.- */-settings: SettingsView,-/**- * The id a creating command minted, if any.- */-createdId?: string, };diff --git a/desktop/src/lib/generated/MediaItem.ts b/desktop/src/lib/generated/MediaItem.tsdeleted file mode 100644index a6e684f4..00000000--- a/desktop/src/lib/generated/MediaItem.ts+++ /dev/null@@ -1,68 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { MediaKind } from "./MediaKind";--/**- * One entry in the media bin: a file the user imported, plus what the host's- * probe learned about it. The probe metadata is stored, not re-derived, so a- * document opens meaningfully even when the file itself is missing.- */-export type MediaItem = {-/**- * Minted by the editor ("m1", "m2", ...) and never re-issued, even- * across a save/load - clips reference media by this id.- */-id: string,-/**- * Absolute path on the user's disk. Doubles as the duplicate check:- * adding the same path twice is a no-op.- */-path: string,-/**- * Display name in the bin, normally the file's basename.- */-name: string,-/**- * Seconds. None when the container did not say.- */-duration: number | null,-/**- * What the probe decided the file is; fixes which [`ClipKind`] its- * clips get.- */-kind: MediaKind,-/**- * Pixel width, when the file has pictures and the probe found one.- */-width: number | null,-/**- * Pixel height, same terms as `width`.- */-height: number | null,-/**- * Frames per second as a decimal - convenient for display, not exact.- */-frameRate: number | null,-/**- * The exact fraction the engine works in, e.g. "30000/1001".- */-frameRateFraction: string | null,-/**- * Codec name as the probe reported it, e.g. "h264". Informational.- */-videoCodec: string | null,-/**- * Codec of the embedded audio, when there is any.- */-audioCodec: string | null,-/**- * Whether the file carries an audio stream; gates `DetachAudio`.- */-hasAudio: boolean,-/**- * True when this item is a template slot: a stand-in whose metadata says- * what kind of media belongs here, waiting to be replaced by the user's- * own file (`Command::FillSlot`). In a creator's own project the path is- * still real; only a packed template bundle blanks it. Skipped when- * false, so documents without templates stay byte-identical.- */-placeholder?: boolean, };diff --git a/desktop/src/lib/generated/MediaKind.ts b/desktop/src/lib/generated/MediaKind.tsdeleted file mode 100644index 2f6cf46f..00000000--- a/desktop/src/lib/generated/MediaKind.ts+++ /dev/null@@ -1,7 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * What a piece of media is. A still is not a video with one frame: it has no- * intrinsic duration, so its length on a timeline is editorial.- */-export type MediaKind = "video" | "audio" | "image";diff --git a/desktop/src/lib/generated/NewMedia.ts b/desktop/src/lib/generated/NewMedia.tsdeleted file mode 100644index 979b4907..00000000--- a/desktop/src/lib/generated/NewMedia.ts+++ /dev/null@@ -1,53 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { MediaKind } from "./MediaKind";--/**- * A media item as probed by the host, before the model mints its id.- */-export type NewMedia = {-/**- * Absolute path on disk. Adding a path already in the bin is a no-op,- * so re-imports cannot duplicate media.- */-path: string,-/**- * Display name for the bin, normally the file's basename.- */-name: string,-/**- * Seconds, or None when the container did not report one - clips of- * such media get a five-second fallback length.- */-duration: number | null,-/**- * What the host's probe decided the file is.- */-kind: MediaKind,-/**- * Pixel width, when the probe found one.- */-width: number | null,-/**- * Pixel height, same terms as `width`.- */-height: number | null,-/**- * Frames per second as a decimal, for display.- */-frameRate: number | null,-/**- * The exact rate fraction the engine works in, e.g. "30000/1001".- */-frameRateFraction: string | null,-/**- * Codec name as probed, e.g. "h264". Informational.- */-videoCodec: string | null,-/**- * Codec of the embedded audio, when there is any.- */-audioCodec: string | null,-/**- * Whether the file carries an audio stream.- */-hasAudio: boolean, };diff --git a/desktop/src/lib/generated/Outcome.ts b/desktop/src/lib/generated/Outcome.tsdeleted file mode 100644index 05ee8d1d..00000000--- a/desktop/src/lib/generated/Outcome.ts+++ /dev/null@@ -1,20 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * What a command produced, beyond the new state: the ids it minted, so the- * UI can select what it just created, and whether anything changed at all.- */-export type Outcome = {-/**- * The id of what the command created - a clip, track, timeline, or- * media item - or, for a batch, the last id minted inside it. Absent- * when nothing was created, including tolerated no-ops.- */-createdId?: string,-/**- * Whether the command actually changed the project. A tolerated no-op -- * a missing id, a field set to the value it already had - succeeds but- * reports false, which is how the editor knows not to record an undo- * snapshot for it. For a batch: whether any member changed anything.- */-applied: boolean, };diff --git a/desktop/src/lib/generated/Project.ts b/desktop/src/lib/generated/Project.tsdeleted file mode 100644index 6addb1af..00000000--- a/desktop/src/lib/generated/Project.ts+++ /dev/null@@ -1,28 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { CustomFont } from "./CustomFont";-import type { MediaItem } from "./MediaItem";-import type { Timeline } from "./Timeline";--/**- * The edit: everything the document stores except the app-level settings- * (name, output format) that the host manages around it.- */-export type Project = {-/**- * The bin: every imported file, shared by all timelines.- */-media: Array<MediaItem>,-/**- * Fonts the user added from disk, available to every title.- */-fonts: Array<CustomFont>,-/**- * Every timeline, in tab order. Always at least one.- */-timelines: Array<Timeline>,-/**- * Which timeline commands act on. Maintained by the command layer, so- * it always names a member of `timelines`; [`Project::active`] degrades- * to the first timeline if it somehow does not.- */-activeTimelineId: string, };diff --git a/desktop/src/lib/generated/README.md b/desktop/src/lib/generated/README.mddeleted file mode 100644index 4fe0f8ab..00000000--- a/desktop/src/lib/generated/README.md+++ /dev/null@@ -1,40 +0,0 @@-# Generated IPC types--Every `.ts` file in this directory is **generated from the Rust wire types**-by [ts-rs](https://github.com/Aleph-Alpha/ts-rs) - do not edit them by hand.-The Rust structs and enums are the source of truth:--- `engine/crates/wolfcut-project` - the document model and the whole command- vocabulary (`Command`, `Clip`, `Project`, ...).-- `engine/crates/wolfcut-export` - the flattened clip the UI sends as a- rasterised title overlay (`export/ExportClip.ts`).-- `desktop/src-tauri/src/editor_api.rs` - the host's own wire types- (`EditorView`, `SettingsView`).--`desktop/src/lib/editor.ts` and `engine.ts` re-export these under the names-the UI has always used (`Command` as `EditorCommand`, `Timeline` as-`TimelineData`, and so on), so nothing else imports from here directly.--## Regenerating--After changing any `#[ts(export)]` type, run from the repository root:--```sh-scripts/generate-ipc-types.sh # everything-scripts/generate-ipc-types.sh engine # just the engine crates-scripts/generate-ipc-types.sh host # just desktop/src-tauri-```--which is shorthand for (the export dir must be absolute):--```sh-export TS_RS_EXPORT_DIR="$PWD/desktop/src/lib/generated"-(cd engine && cargo test -p wolfcut-project -p wolfcut-export \- --features wolfcut-project/types,wolfcut-export/types export_bindings)-(cd desktop/src-tauri && cargo test --features types export_bindings)-```--The files are committed, and CI regenerates them and fails on any diff - so a-Rust wire-type change that forgets to regenerate cannot land green. ts-rs-never deletes files: if a Rust type is renamed or removed, delete its stale-`.ts` file here by hand.diff --git a/desktop/src/lib/generated/SettingsView.ts b/desktop/src/lib/generated/SettingsView.tsdeleted file mode 100644index 66f31d57..00000000--- a/desktop/src/lib/generated/SettingsView.ts+++ /dev/null@@ -1,3 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--export type SettingsView = { name: string, width: number, height: number, rateNum: number, rateDen: number, };diff --git a/desktop/src/lib/generated/TextAlign.ts b/desktop/src/lib/generated/TextAlign.tsdeleted file mode 100644index 3d803936..00000000--- a/desktop/src/lib/generated/TextAlign.ts+++ /dev/null@@ -1,7 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * How a title's lines sit within their block. The block itself is placed by- * the clip's transform, so this only matters for multi-line text.- */-export type TextAlign = "left" | "center" | "right";diff --git a/desktop/src/lib/generated/TextStyle.ts b/desktop/src/lib/generated/TextStyle.tsdeleted file mode 100644index 00043731..00000000--- a/desktop/src/lib/generated/TextStyle.ts+++ /dev/null@@ -1,71 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { TextAlign } from "./TextAlign";--/**- * A title's styling. Sizes are fractions of the frame, so a title composed- * against 1080p lands correctly exported at 4K.- */-export type TextStyle = {-/**- * The words themselves, newlines included. The clip's display name is- * snapshotted from the first non-empty line.- */-content: string,-/**- * CSS-style family name, quotes included where the name needs them,- * e.g. `"Cabinet Grotesk"`. May name a [`CustomFont`] the user added.- */-fontFamily: string,-/**- * Cap height as a fraction of frame height.- */-fontSize: number,-/**- * CSS-scale weight, 100..=900; the reader clamps hand-edited values- * into that range.- */-fontWeight: number,-/**- * Italic when true. A style flag, not a separate face.- */-italic: boolean,-/**- * Fill colour as a CSS hex string, e.g. "#ffffff".- */-color: string,-/**- * Line alignment within the block; see [`TextAlign`].- */-align: TextAlign,-/**- * Opacity of the whole title in 0..=1, multiplied with the clip's own- * opacity.- */-opacity: number,-/**- * Outline thickness as a fraction of frame height. Zero - the default -- * means no stroke.- */-strokeWidth: number,-/**- * Outline colour, only visible when `stroke_width` is non-zero.- */-strokeColor: string,-/**- * A drop shadow for legibility over footage. On by default.- */-shadow: boolean,-/**- * A solid plate behind the text. Empty string for none.- */-background: string,-/**- * Baseline spacing as a multiple of the font size; the reader floors it- * at 0.5 so lines cannot collapse onto each other.- */-lineHeight: number,-/**- * Extra letter spacing, in the same frame-height fractions as- * `font_size`. Zero is the font's natural fit.- */-tracking: number, };diff --git a/desktop/src/lib/generated/Timeline.ts b/desktop/src/lib/generated/Timeline.tsdeleted file mode 100644index 6021cd28..00000000--- a/desktop/src/lib/generated/Timeline.ts+++ /dev/null@@ -1,29 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { Clip } from "./Clip";-import type { Track } from "./Track";--/**- * One timeline: a name and its lanes and clips. Unlike the UI's provisional- * model there is no "shelf" - that split existed only so the TypeScript- * operations could stay ignorant of timelines. Here every operation takes- * the project and works on whichever timeline is active.- */-export type Timeline = {-/**- * Minted by the editor ("tl2", ...), except the founding "TL1".- */-id: string,-/**- * The tab label; "Timeline N" by default, renameable but never blank.- */-name: string,-/**- * The lanes, top to bottom. Never empty - `RemoveTrack` keeps a floor- * of one.- */-tracks: Array<Track>,-/**- * Every clip on this timeline, in insertion order, not time order -- * readers must sort by `start` where order matters.- */-clips: Array<Clip>, };diff --git a/desktop/src/lib/generated/Track.ts b/desktop/src/lib/generated/Track.tsdeleted file mode 100644index b19af3bb..00000000--- a/desktop/src/lib/generated/Track.ts+++ /dev/null@@ -1,24 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * A lane. Deliberately untyped: any media goes on any track.- */-export type Track = {-/**- * Minted per timeline ("t5", or "T1".."T4" for the first timeline's- * starter lanes); never shared between timelines.- */-id: string,-/**- * User-editable label. Renames to whitespace are ignored, so it is- * never blank.- */-name: string,-/**- * Video clips on this track are left out of the composite when false.- */-visible: boolean,-/**- * Audio on this track is silent when true.- */-muted: boolean, };diff --git a/desktop/src/lib/generated/TrackFlag.ts b/desktop/src/lib/generated/TrackFlag.tsdeleted file mode 100644index 90c60666..00000000--- a/desktop/src/lib/generated/TrackFlag.ts+++ /dev/null@@ -1,6 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * Which per-track toggle a [`Command::SetTrackFlag`] flips.- */-export type TrackFlag = "visible" | "muted";diff --git a/desktop/src/lib/generated/Transition.ts b/desktop/src/lib/generated/Transition.tsdeleted file mode 100644index 48d7659a..00000000--- a/desktop/src/lib/generated/Transition.ts+++ /dev/null@@ -1,14 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * A transition on the cut into a clip.- */-export type Transition = {-/**- * Which transition from the catalogue, e.g. "cross-fade".- */-id: string,-/**- * Seconds the transition covers.- */-duration: number, };diff --git a/desktop/src/lib/generated/TrimEdge.ts b/desktop/src/lib/generated/TrimEdge.tsdeleted file mode 100644index 41bba0ad..00000000--- a/desktop/src/lib/generated/TrimEdge.ts+++ /dev/null@@ -1,7 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * Which end of a clip a trim drags. The two are not symmetric: see- * [`Command::TrimClip`].- */-export type TrimEdge = "start" | "end";diff --git a/desktop/src/lib/generated/export/ClipKind.ts b/desktop/src/lib/generated/export/ClipKind.tsdeleted file mode 100644index f8113ce3..00000000--- a/desktop/src/lib/generated/export/ClipKind.ts+++ /dev/null@@ -1,7 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * What a flattened clip is. Typed, so a kind check the compiler has not- * seen cannot exist - the wire still says "video"/"audio"/"image".- */-export type ClipKind = "video" | "audio" | "image";diff --git a/desktop/src/lib/generated/export/ExportClip.ts b/desktop/src/lib/generated/export/ExportClip.tsdeleted file mode 100644index 2e37db0a..00000000--- a/desktop/src/lib/generated/export/ExportClip.ts+++ /dev/null@@ -1,117 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.-import type { ClipKind } from "./ClipKind";-import type { TransitionSpec } from "./TransitionSpec";--/**- * One clip, as the frontend's flattener describes it.- */-export type ExportClip = {-/**- * The media file this clip shows or plays.- */-path: string,-/**- * Whether the clip is footage, sound or a still.- */-kind: ClipKind,-/**- * Seconds into the timeline where the clip begins.- */-start: number,-/**- * Seconds of timeline the clip covers.- */-duration: number,-/**- * Seconds into the source where playback begins.- */-sourceStart: number,-/**- * Index into the track stack, zero being bottom-most.- */-track: number,-/**- * The track's picture is switched off.- */-hidden: boolean,-/**- * The track's sound is switched off.- */-muted: boolean,-/**- * Linear gain, 1 being unity.- */-volume: number,-/**- * Audio fade up from the clip's start, in seconds.- */-fadeIn: number,-/**- * Audio fade out into the clip's end, in seconds.- */-fadeOut: number,-/**- * FFmpeg filter chain from the Filters tab, or empty.- */-filterChain: string,-/**- * Playback rate. 1 is normal.- */-speed: number,-/**- * False lets pitch rise with the rate, like tape.- */-preservePitch: boolean,-/**- * Multiplier over the fitted size. 1 fills the frame, preserving aspect.- */-scale: number,-/**- * Offset of the picture's centre from frame centre, frame-width fraction.- */-offsetX: number,-/**- * Offset as a frame-height fraction.- */-offsetY: number,-/**- * Clockwise rotation in degrees.- */-rotation: number,-/**- * Blend strength over the layers beneath, 1 being solid. Defaulted for- * requests from a UI that predates it.- */-opacity: number,-/**- * FFmpeg *video* filter chain from the Effects tab, or empty. Applied at- * decode, after scaling - see `DecodeOptions::filter_chain`.- */-videoFilterChain: string,-/**- * The transition into this clip's cut, when the UI put one there. The- * clip before it on the same track is found here, by adjacency - the UI- * only says what it wants, never how to overlap decoders.- */-transition?: TransitionSpec | null,-/**- * Video opacity ramp up from the clip's start, in seconds. Set by- * transition resolution below, never by the UI directly.- */-videoFadeIn?: number,-/**- * The source's pixel width, when the UI knows it. What makes an- * aspect-correct decode possible - absent, the frame is filled edge to- * edge the way it always was.- */-mediaWidth?: number | null,-/**- * The source's pixel height; see `media_width`.- */-mediaHeight?: number | null,-/**- * Whether the file carries an audio stream, when the UI knows (the- * document records it at import). Absent falls back to probing, so an- * older caller still exports correctly - just slower to start.- */-hasAudio?: boolean | null, };diff --git a/desktop/src/lib/generated/export/TransitionSpec.ts b/desktop/src/lib/generated/export/TransitionSpec.tsdeleted file mode 100644index f4b697e7..00000000--- a/desktop/src/lib/generated/export/TransitionSpec.ts+++ /dev/null@@ -1,14 +0,0 @@-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.--/**- * A transition on the cut into a clip.- */-export type TransitionSpec = {-/**- * "cross-fade", "fade-black" or "fade-white". Anything else is ignored.- */-kind: string,-/**- * Seconds the transition covers.- */-duration: number, };diff --git a/desktop/src/lib/i18n.test.ts b/desktop/src/lib/i18n.test.tsdeleted file mode 100644index 9b0cd87b..00000000--- a/desktop/src/lib/i18n.test.ts+++ /dev/null@@ -1,85 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The message catalogs against each other.- *- * en.json is the source of truth; every other locale must define exactly its- * key set with matching placeholders. The catalogs are read from disk, not- * imported, so a locale file someone dropped in but forgot to register still- * gets caught. Same enforcement style as ipc-registry.test.ts: conventions- * the type system cannot see, held by a test that names the offenders.- */-import { readFileSync, readdirSync } from "node:fs";-import { join } from "node:path";-import { describe, expect, test } from "vitest";--import { LOCALES } from "./i18n";--const dir = join(process.cwd(), "src", "locales");--function catalog(file: string): Record<string, string> {- return JSON.parse(readFileSync(join(dir, file), "utf8")) as Record<string, string>;-}--/** The {name} placeholders of a message, as a sorted list. */-function placeholders(message: string): string[] {- return (message.match(/\{\w+\}/g) ?? []).sort();-}--const files = readdirSync(dir).filter((entry) => entry.endsWith(".json"));-const en = catalog("en.json");-const enKeys = Object.keys(en);--describe("the message catalogs", () => {- test("every locale file on disk is registered in LOCALES", () => {- const registered = new Set<string>(LOCALES.map((entry) => entry.id));- const unregistered = files.filter((file) => !registered.has(file.replace(/\.json$/, "")));- expect(unregistered, "locale files LOCALES never registers").toEqual([]);- const fileless = [...registered].filter((id) => !files.includes(`${id}.json`));- expect(fileless, "registered locales with no file on disk").toEqual([]);- });-- test("plural keys come in complete one/other pairs", () => {- const widowed = enKeys.filter((key) => {- if (key.endsWith(".one")) return !(key.replace(/\.one$/, ".other") in en);- if (key.endsWith(".other")) return !(key.replace(/\.other$/, ".one") in en);- return false;- });- expect(widowed, "plural keys missing their sibling form").toEqual([]);- });-- test("en.json keys are sorted", () => {- expect(enKeys, "keys out of alphabetical order").toEqual([...enKeys].sort());- });-- for (const file of files) {- const messages = catalog(file);-- describe(file, () => {- test("defines every key en.json defines", () => {- const missing = enKeys.filter((key) => !(key in messages));- expect(missing, "keys en.json has that this locale lacks").toEqual([]);- });-- test("defines no key en.json does not", () => {- const stale = Object.keys(messages).filter((key) => !(key in en));- expect(stale, "keys this locale has that en.json dropped").toEqual([]);- });-- test("placeholders match en.json exactly", () => {- const mismatched = enKeys.filter(- (key) =>- key in messages &&- placeholders(messages[key]).join(" ") !== placeholders(en[key]).join(" "),- );- expect(mismatched, "keys whose {placeholders} differ from en.json").toEqual([]);- });-- test("no value is empty", () => {- const empty = Object.keys(messages).filter((key) => messages[key].trim() === "");- expect(empty, "an empty string is a translation hole, not a translation").toEqual([]);- });- });- }-});diff --git a/desktop/src/lib/i18n.ts b/desktop/src/lib/i18n.tsdeleted file mode 100644index af4dfc80..00000000--- a/desktop/src/lib/i18n.ts+++ /dev/null@@ -1,192 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useSyncExternalStore } from "react";--import en from "../locales/en.json";-import zhCN from "../locales/zh-CN.json";--/**- * The UI language.- *- * Every string a person reads in the app comes out of a per-locale JSON- * catalog in `src/locales/`, looked up by a typed key - a typo'd key is a- * compile error, and `i18n.test.ts` holds every catalog to exactly the key- * set en.json defines. Adding a language is copying en.json, translating the- * values, and registering one entry in LOCALES and CATALOGS below; see- * TRANSLATING.md at the repo root.- *- * Unlike the theme, the language *does* follow the OS by default. The theme- * refuses to (see theme.ts) because a surround that changes on its own is- * disorienting; language is the opposite case - an interface you cannot read- * is not a neutral default, so first launch speaks whatever the system- * speaks, and the explicit choice in Settings overrides it from then on.- *- * Switching re-renders by subscription, not remount: App owns the live- * editing session, so rebuilding the tree under a changed `key` would dump- * the user out of their project. Components that render text call- * `useLocale()` and take `t` from it - the snapshot (and `t`'s identity)- * changes per switch, so `useSyncExternalStore` re-renders subscribers- * directly (through `React.memo`), and exhaustive-deps forces `t` into any- * dependency array that caches a translated string. The module-level `t`/`tp`- * exports are for non-React code and event handlers, which always run after- * the switch and therefore always see the current language.- */-export type MsgKey = keyof typeof en;--/** Bases of plural sets: `x.one`/`x.other` in the catalog collapse to `x`. */-// Distributed through a type parameter - a conditional over the union alias-// itself would not distribute and would collapse to never.-type PluralBase<Key> = Key extends `${infer Base}.one` ? Base : never;-export type PluralKey = PluralBase<MsgKey>;--/**- * Native names, never translated: whoever landed in a language they cannot- * read must still be able to find their own in the picker.- */-export const LOCALES = [- { id: "en", name: "English" },- { id: "zh-CN", name: "简体中文" },-] as const;--export type LocaleId = (typeof LOCALES)[number]["id"];--// Record<MsgKey, string> makes a catalog missing keys fail `tsc`, before the-// friendlier i18n.test.ts even runs.-const CATALOGS: Record<LocaleId, Record<MsgKey, string>> = { en, "zh-CN": zhCN };--const STORAGE_KEY = "wolfcut.locale";--/** The stored preference: an explicit locale, or absence meaning "system". */-function stored(): LocaleId | "system" {- try {- const value = localStorage.getItem(STORAGE_KEY);- const known = LOCALES.find((entry) => entry.id === value);- return known ? known.id : "system";- } catch {- // Private mode, blocked storage, node - the system default anyway.- return "system";- }-}--function persist(next: LocaleId | "system"): void {- try {- if (next === "system") localStorage.removeItem(STORAGE_KEY);- else localStorage.setItem(STORAGE_KEY, next);- } catch {- // Not being able to remember the choice is not worth failing over.- }-}--/** "system" resolved against what we actually ship: exact id, then language prefix, then en. */-function resolve(next: LocaleId | "system"): LocaleId {- if (next !== "system") return next;- const wanted = typeof navigator !== "undefined" ? navigator.language : "";- if (!wanted) return "en";- const lower = wanted.toLowerCase();- for (const entry of LOCALES) if (entry.id.toLowerCase() === lower) return entry.id;- const prefix = lower.split("-")[0];- for (const entry of LOCALES) {- if (entry.id.split("-")[0].toLowerCase() === prefix) return entry.id;- }- return "en";-}--/** What "System default" would mean right now, for labelling the picker. */-export function systemLocale(): LocaleId {- return resolve("system");-}--/**- * Puts the language on `<html lang>`, where the OS spellchecker, screen- * readers and CSS quotes rules key off it. index.html carries lang="en" only- * as the pre-hydration default.- */-function applyLocale(next: LocaleId): void {- if (typeof document !== "undefined") document.documentElement.lang = next;-}--let preference: LocaleId | "system" = stored();-let locale: LocaleId = resolve(preference);--function interpolate(message: string, params?: Record<string, string | number>): string {- if (!params) return message;- // An unfilled placeholder stays visible as {name} - an on-screen bug is- // louder and more honest than a silently swallowed one.- return message.replace(/\{(\w+)\}/g, (whole, name: string) =>- params[name] != null ? String(params[name]) : whole,- );-}--/** The message for `key` in the current language, English if the catalog has a hole. */-export function t(key: MsgKey, params?: Record<string, string | number>): string {- const message = CATALOGS[locale][key] ?? CATALOGS.en[key];- return interpolate(message, params);-}--/**- * The plural form of `key` for `count`, per the language's own rules- * (Intl.PluralRules - English says "one"/"other", Chinese only "other").- * `{count}` is available as a placeholder without passing it again.- */-export function tp(key: PluralKey, count: number, params?: Record<string, string | number>): string {- const category = new Intl.PluralRules(locale).select(count);- const exact = `${key}.${category}` as MsgKey;- const other = `${key}.other` as MsgKey;- const message = CATALOGS[locale][exact] ?? CATALOGS[locale][other] ?? CATALOGS.en[other];- return interpolate(message, { count, ...params });-}--export function getLocale(): LocaleId {- return locale;-}--export type LocaleSnapshot = {- locale: LocaleId;- preference: LocaleId | "system";- setLocale: (next: LocaleId | "system") => void;- t: typeof t;- tp: typeof tp;-};--// The snapshot is rebuilt (new identities throughout) on every switch, so a-// `t` taken from useLocale() is a reactive value the linter refuses to let-// out of dependency arrays - stale memoized strings become lint errors.-function buildSnapshot(): LocaleSnapshot {- return {- locale,- preference,- setLocale,- t: (key, params) => t(key, params),- tp: (key, count, params) => tp(key, count, params),- };-}--const listeners = new Set<() => void>();--function subscribe(listener: () => void): () => void {- listeners.add(listener);- return () => {- listeners.delete(listener);- };-}--export function setLocale(next: LocaleId | "system"): void {- persist(next);- preference = next;- locale = resolve(next);- applyLocale(locale);- snapshot = buildSnapshot();- for (const listener of listeners) listener();-}--let snapshot = buildSnapshot();--// At import time, before React renders anything, so the first paint is-// already in the right language - same move as theme.ts.-applyLocale(locale);--/** The current language for React: subscribes the component to switches. */-export function useLocale(): LocaleSnapshot {- return useSyncExternalStore(subscribe, () => snapshot);-}diff --git a/desktop/src/lib/ipc-registry.test.ts b/desktop/src/lib/ipc-registry.test.tsdeleted file mode 100644index d6894855..00000000--- a/desktop/src/lib/ipc-registry.test.ts+++ /dev/null@@ -1,78 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The IPC boundary's two halves against each other.- *- * The boundary is JSON, so nothing at compile time checks that a wrapper in- * `lib/engine.ts` names a command the host actually registered, or that every- * registered command has a wrapper. This test closes the gap the desktop- * README used to flag ("nothing checks steps 1 and 3 against each other"),- * and enforces the standing rule that `lib/engine.ts` is the only file that- * calls `invoke` at all.- */-import { readFileSync, readdirSync, statSync } from "node:fs";-import { join } from "node:path";-import { describe, expect, test } from "vitest";--const root = process.cwd();--function read(path: string): string {- return readFileSync(join(root, path), "utf8");-}--/** Command names the host registers, from the generate_handler! block. */-function registeredCommands(): Set<string> {- const source = read("src-tauri/src/lib.rs");- const block = source.match(/generate_handler!\[([\s\S]*?)\]/);- expect(block, "generate_handler! block in src-tauri/src/lib.rs").toBeTruthy();- const names = block![1]- .split(",")- .map((entry) => entry.trim())- .filter((entry) => entry.length > 0)- // `editor_api::editor_open` registers as `editor_open`.- .map((entry) => entry.split("::").pop()!);- return new Set(names);-}--/** Command names the frontend invokes, from lib/engine.ts. */-function invokedCommands(): Set<string> {- const source = read("src/lib/engine.ts");- const names = new Set<string>();- for (const match of source.matchAll(/invoke(?:<[^>]*>)?\(\s*"([a-z_]+)"/g)) {- names.add(match[1]);- }- return names;-}--function walk(directory: string, out: string[] = []): string[] {- for (const entry of readdirSync(join(root, directory))) {- const path = join(directory, entry);- if (statSync(join(root, path)).isDirectory()) walk(path, out);- else if (/\.(ts|tsx)$/.test(entry) && !/\.test\.tsx?$/.test(entry)) out.push(path);- }- return out;-}--describe("the IPC registry", () => {- test("every wrapper names a registered command", () => {- const registered = registeredCommands();- const unregistered = [...invokedCommands()].filter((name) => !registered.has(name));- expect(unregistered, "wrappers invoking commands the host never registered").toEqual([]);- });-- test("every registered command has a wrapper", () => {- const invoked = invokedCommands();- const orphaned = [...registeredCommands()].filter((name) => !invoked.has(name));- expect(orphaned, "registered commands nothing in the UI can call").toEqual([]);- });-- test("lib/engine.ts is the only file that calls invoke", () => {- const offenders = walk("src").filter(- (path) =>- path !== join("src", "lib", "engine.ts") &&- /\binvoke\s*[(<]/.test(read(path)),- );- expect(offenders, "files calling invoke outside the typed boundary").toEqual([]);- });-});diff --git a/desktop/src/lib/monitor.test.ts b/desktop/src/lib/monitor.test.tsdeleted file mode 100644index 7911478c..00000000--- a/desktop/src/lib/monitor.test.ts+++ /dev/null@@ -1,185 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * The monitor's derivations, including the one that mirrors the exporter.- *- * `previewGhostAt`'s handle clamp is a deliberate twin of the host's- * `resolve_transitions` (export.rs): no source handle, shorter dissolve.- * If these expectations fail, read the exporter first and fix whichever- * side moved - a preview ghost that disagrees with the render is exactly- * the bug class this suite exists to keep out.- */-import { describe, expect, test } from "vitest";--import type { Clip, EditorProject } from "./editor";-import {- previewGhostAt,- previewSourceAt,- previewVeilAt,- textOverlaysAt,-} from "./monitor";--function clip(overrides: Partial<Clip> = {}): Clip {- return {- id: "c1",- trackId: "T1",- mediaId: "m1",- name: "a.mp4",- kind: "video",- start: 0,- duration: 10,- sourceStart: 0,- volume: 1,- fadeIn: 0,- fadeOut: 0,- scale: 1,- offsetX: 0,- offsetY: 0,- rotation: 0,- opacity: 1,- speed: 1,- preservePitch: true,- filters: [],- videoEffects: [],- ...overrides,- };-}--function project(clips: Clip[]): EditorProject {- return {- media: [- {- id: "m1",- path: "/a.mp4",- name: "a.mp4",- duration: 30,- kind: "video",- width: 1920,- height: 1080,- frameRate: 30,- frameRateFraction: "30/1",- videoCodec: "h264",- audioCodec: "aac",- hasAudio: true,- },- ],- fonts: [],- timelines: [- {- id: "TL1",- name: "Timeline 1",- tracks: [- { id: "T1", name: "Track 1", visible: true, muted: false },- { id: "T2", name: "Track 2", visible: true, muted: false },- ],- clips,- },- ],- activeTimelineId: "TL1",- };-}--const timeline = (p: EditorProject) => p.timelines[0];--describe("previewSourceAt", () => {- test("the top-most visual clip wins and maps into its source", () => {- const p = project([- clip({ id: "under", trackId: "T1" }),- clip({ id: "over", trackId: "T2", sourceStart: 5, speed: 2 }),- ]);- const source = previewSourceAt(p, timeline(p), 3);- expect(source?.clipId).toBe("over");- // 3s into the clip at 2x from a 5s in-point: the affine map.- expect(source?.time).toBe(11);- expect(source?.speed).toBe(2);- });-- test("a gap shows nothing", () => {- const p = project([clip({ start: 5 })]);- expect(previewSourceAt(p, timeline(p), 1)).toBeNull();- });-});--describe("previewGhostAt mirrors the exporter's handle clamp", () => {- const dissolve = (incoming: Partial<Clip>) =>- project([- clip({ id: "out", duration: 4 }),- clip({- id: "in",- start: 4,- duration: 4,- transitionIn: { id: "cross-fade", duration: 1 },- ...incoming,- }),- ]);-- test("inside the window the pre-roll fades in", () => {- const p = dissolve({ sourceStart: 2 });- const ghost = previewGhostAt(p, timeline(p), 3.5);- expect(ghost?.clipId).toBe("in");- // Half a second before the cut: half faded, showing the handle.- expect(ghost?.opacity).toBeCloseTo(0.5, 10);- expect(ghost?.time).toBeCloseTo(1.5, 10);- });-- test("no handle, shorter dissolve - exactly like resolve_transitions", () => {- // Only 0.25s of source exists before the in-point, so the window is- // 0.25s: at 0.5s before the cut there is no ghost yet.- const p = dissolve({ sourceStart: 0.25 });- expect(previewGhostAt(p, timeline(p), 3.5)).toBeNull();- expect(previewGhostAt(p, timeline(p), 3.9)?.opacity).toBeCloseTo(0.6, 10);- });-- test("a still has an infinite handle", () => {- const p = dissolve({ kind: "image", sourceStart: 0 });- expect(previewGhostAt(p, timeline(p), 3.5)).not.toBeNull();- });-- test("a cut edited apart orphans the transition", () => {- const p = project([- clip({ id: "out", duration: 3 }), // ends at 3, the cut is at 4- clip({- id: "in",- start: 4,- duration: 4,- sourceStart: 2,- transitionIn: { id: "cross-fade", duration: 1 },- }),- ]);- expect(previewGhostAt(p, timeline(p), 3.5)).toBeNull();- });-});--describe("previewVeilAt", () => {- test("washes in to the cut and out after it, peaking at one", () => {- const p = project([- clip({ id: "out", duration: 4 }),- clip({- id: "in",- start: 4,- duration: 4,- sourceStart: 1,- transitionIn: { id: "fade-black", duration: 2 },- }),- ]);- expect(previewVeilAt(p, timeline(p), 2.9)).toBeNull();- expect(previewVeilAt(p, timeline(p), 3.5)?.opacity).toBeCloseTo(0.5, 10);- expect(previewVeilAt(p, timeline(p), 4)?.opacity).toBe(1);- expect(previewVeilAt(p, timeline(p), 4.5)?.opacity).toBeCloseTo(0.5, 10);- expect(previewVeilAt(p, timeline(p), 5.1)).toBeNull();- });-});--describe("textOverlaysAt", () => {- test("only visible text at the playhead, bottom-most first", () => {- const style = { content: "hi" } as never;- const p = project([- clip({ id: "t2", trackId: "T2", kind: "text", text: style }),- clip({ id: "t1", trackId: "T1", kind: "text", text: style }),- clip({ id: "late", trackId: "T1", kind: "text", text: style, start: 20 }),- ]);- const overlays = textOverlaysAt(p, timeline(p), 1);- expect(overlays.map((overlay) => overlay.clipId)).toEqual(["t1", "t2"]);- });-});diff --git a/desktop/src/lib/monitor.ts b/desktop/src/lib/monitor.tsdeleted file mode 100644index 668c564d..00000000--- a/desktop/src/lib/monitor.ts+++ /dev/null@@ -1,198 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Pure derivations of what the monitor and the exporter see.- *- * Everything here answers one question - given the project and a playhead,- * what is on screen, what ghosts in, what washes over, what exports - with- * no React and no IO, which is what makes the cross-fade pre-roll arithmetic- * and the exporter flattening testable in microseconds. App.tsx memoises- * these; nothing else derives them a second way.- */--import {- clipsAt,- findMedia,- findTrack,- precedingClip,- type EditorProject,- type TimelineData,-} from "./editor";-import type { TextStyle } from "./text";--/** The clip the element preview shows: top-most visual clip at the playhead. */-export interface PreviewSource {- clipId: string;- path: string;- /** Where in the source file the playhead sits, in seconds. */- time: number;- /** Playback rate, 1 being normal - the element must run at this rate or it- drifts from the transport and stutters on every corrective seek. */- speed: number;- /** A still is shown as an image; there is nothing to seek or play. */- isStill: boolean;-}--/** A title to draw over the picture, already positioned. */-export interface TextOverlay {- clipId: string;- style: TextStyle;- /** Offset from centred, as a fraction of the frame. */- offsetX: number;- offsetY: number;-}--/** A title flattened for the export dialog's rasteriser. */-export interface ExportTitle {- clipId: string;- style: TextStyle;- /** Offset from centred, as a fraction of the frame. */- offsetX: number;- offsetY: number;- start: number;- duration: number;- /** Index into the track stack, zero being bottom-most. */- track: number;-}--/** A cross-fade in progress: the incoming clip's pre-roll, faded in. */-export interface PreviewGhost {- clipId: string;- path: string;- time: number;- speed: number;- opacity: number;-}--/** A fade-to-colour transition washing over the playhead. */-export interface PreviewVeil {- color: string;- opacity: number;-}--const depthIn = (timeline: TimelineData) => {- return (trackId: string) => timeline.tracks.findIndex((track) => track.id === trackId);-};--/** Text clips at the playhead on visible tracks, bottom-most first. */-export function textOverlaysAt(- project: EditorProject,- timeline: TimelineData,- playhead: number,-): TextOverlay[] {- const depth = depthIn(timeline);- return clipsAt(project, playhead)- .filter((clip) => clip.kind === "text" && clip.text !== undefined)- .filter((clip) => findTrack(project, clip.trackId)?.visible !== false)- .sort((a, b) => depth(a.trackId) - depth(b.trackId))- .map((clip) => ({- clipId: clip.id,- style: clip.text!,- offsetX: clip.offsetX,- offsetY: clip.offsetY,- }));-}--/** The top-most visual clip under the playhead, mapped into its source. */-export function previewSourceAt(- project: EditorProject,- timeline: TimelineData,- playhead: number,-): PreviewSource | null {- const active = clipsAt(project, playhead).filter(- (clip) => clip.kind !== "audio" && clip.kind !== "text",- );- if (active.length === 0) return null;- const depth = depthIn(timeline);- const top = active.reduce((best, clip) =>- depth(clip.trackId) > depth(best.trackId) ? clip : best,- );- const media = findMedia(project, top.mediaId);- if (!media) return null;- return {- clipId: top.id,- path: media.path,- time: top.sourceStart + (playhead - top.start) * top.speed,- speed: top.speed,- isStill: top.kind === "image",- };-}--/**- * The incoming half of a cross-fade under the playhead, if one is in its- * dissolve window. The handle clamp mirrors the exporter's- * `resolve_transitions` exactly: no handle, shorter dissolve.- */-export function previewGhostAt(- project: EditorProject,- timeline: TimelineData,- playhead: number,-): PreviewGhost | null {- for (const clip of timeline.clips) {- const transition = clip.transitionIn;- if (!transition || transition.id !== "cross-fade") continue;- if (clip.kind !== "video" && clip.kind !== "image") continue;- if (!precedingClip(project, clip.id)) continue;- const handle =- clip.kind === "image" ? Infinity : clip.sourceStart / Math.max(0.0625, clip.speed);- const d = Math.min(transition.duration, handle);- const cut = clip.start;- if (d <= 0 || playhead < cut - d || playhead >= cut) continue;- const media = findMedia(project, clip.mediaId);- if (!media) continue;- return {- clipId: clip.id,- path: media.path,- time: Math.max(0, clip.sourceStart - (cut - playhead) * clip.speed),- speed: clip.speed,- opacity: 1 - (cut - playhead) / d,- };- }- return null;-}--/** A fade-to-colour wash over the playhead, if a cut's window covers it. */-export function previewVeilAt(- project: EditorProject,- timeline: TimelineData,- playhead: number,-): PreviewVeil | null {- for (const clip of timeline.clips) {- const transition = clip.transitionIn;- if (!transition) continue;- if (transition.id !== "fade-black" && transition.id !== "fade-white") continue;- if (!precedingClip(project, clip.id)) continue;- const half = transition.duration / 2;- const cut = clip.start;- if (playhead < cut - half || playhead > cut + half) continue;- const opacity =- playhead <= cut ? (playhead - (cut - half)) / half : (cut + half - playhead) / half;- return {- color: transition.id === "fade-white" ? "#ffffff" : "#000000",- opacity: Math.min(1, Math.max(0, opacity)),- };- }- return null;-}--/** The active timeline's titles, flattened for rasterisation at export. */-export function exportTitlesOf(project: EditorProject, timeline: TimelineData): ExportTitle[] {- return timeline.clips.flatMap((clip) => {- if (clip.kind !== "text" || !clip.text) return [];- const track = findTrack(project, clip.trackId);- const index = timeline.tracks.findIndex((candidate) => candidate.id === clip.trackId);- if (!track || !track.visible || index < 0) return [];- return [- {- clipId: clip.id,- style: clip.text,- offsetX: clip.offsetX,- offsetY: clip.offsetY,- start: clip.start,- duration: clip.duration,- track: index,- },- ];- });-}diff --git a/desktop/src/lib/rasterize.ts b/desktop/src/lib/rasterize.tsdeleted file mode 100644index f2c84a98..00000000--- a/desktop/src/lib/rasterize.ts+++ /dev/null@@ -1,120 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Turning a title into pixels for the exporter.- *- * The engine composites RGBA frames; it knows nothing about fonts. So a text- * clip goes into an export as a full-frame transparent PNG, drawn here at the- * exact output size with the same rules `textCss` gives the preview overlay -- * same fraction-of-frame-height sizing, same stroke-behind-fill, same plate.- * One PNG per title, full frame rather than tight bounds, so the clip's- * offsets are already baked in and the exporter places it edge to edge with- * an identity transform.- */--import type { TextStyle } from "./text";--/** Mirrors `textCss`'s shadow: offset 4% of the size, blur 12%. */-const SHADOW = { offset: 0.04, blur: 0.12, color: "rgba(0,0,0,0.55)" };-/** Mirrors `textCss`'s plate: padding 20%/35% of the size, radius 12%. */-const PLATE = { padY: 0.2, padX: 0.35, radius: 0.12 };--/**- * Draws one title into a `width` x `height` transparent PNG.- *- * Known divergence from the DOM: the preview wraps a line longer than 92% of- * the frame, canvas does not - a title that long is already unreadable, so- * explicit line breaks are the layout and overflow just runs off the frame.- */-export async function rasterizeTitle(- style: TextStyle,- offsetX: number,- offsetY: number,- width: number,- height: number,-): Promise<Uint8Array> {- const size = style.fontSize * height;- const font = `${style.italic ? "italic " : ""}${style.fontWeight} ${size}px ${style.fontFamily}`;-- // Make sure the face is actually resident before measuring: a fallback font- // would bake the wrong glyphs into the file, which is worse than a slow- // start. Best-effort - an unknown family falls back exactly like CSS does.- await document.fonts.load(font, style.content).catch(() => undefined);-- const canvas = document.createElement("canvas");- canvas.width = Math.max(1, Math.round(width));- canvas.height = Math.max(1, Math.round(height));- const context = canvas.getContext("2d");- if (!context) throw new Error("no 2d canvas for the title rasteriser");-- context.font = font;- context.textBaseline = "middle";- // `letterSpacing` is newer canvas API; where it is missing the export just- // loses tracking, matching nothing worse than an older browser.- if ("letterSpacing" in context) context.letterSpacing = `${style.tracking * size}px`;-- const lines = style.content.split("\n");- const lineHeight = style.lineHeight * size;- const blockWidth = Math.max(...lines.map((line) => context.measureText(line).width), 1);- const blockHeight = lines.length * lineHeight;-- const centerX = width / 2 + offsetX * width;- const centerY = height / 2 + offsetY * height;-- context.globalAlpha = style.opacity;-- if (style.background) {- const padX = size * PLATE.padX;- const padY = size * PLATE.padY;- context.fillStyle = style.background;- context.beginPath();- context.roundRect(- centerX - blockWidth / 2 - padX,- centerY - blockHeight / 2 - padY,- blockWidth + padX * 2,- blockHeight + padY * 2,- size * PLATE.radius,- );- context.fill();- }-- // The shadow goes on after the plate: `textCss` shadows the letters, never- // the plate behind them.- if (style.shadow) {- context.shadowColor = SHADOW.color;- context.shadowOffsetY = size * SHADOW.offset;- context.shadowBlur = size * SHADOW.blur;- }-- context.textAlign = style.align;- const alignX =- style.align === "left"- ? centerX - blockWidth / 2- : style.align === "right"- ? centerX + blockWidth / 2- : centerX;-- for (const [index, line] of lines.entries()) {- const y = centerY - blockHeight / 2 + (index + 0.5) * lineHeight;- // Stroke first, fill over it - the canvas spelling of- // `paint-order: stroke fill`, so an outline thickens outwards instead of- // eating into the letterforms.- if (style.strokeWidth > 0) {- context.strokeStyle = style.strokeColor;- context.lineWidth = style.strokeWidth * size;- context.lineJoin = "round";- context.strokeText(line, alignX, y);- }- context.fillStyle = style.color;- context.fillText(line, alignX, y);- }-- const blob = await new Promise<Blob>((resolve, reject) => {- canvas.toBlob(- (result) => (result ? resolve(result) : reject(new Error("title PNG encode failed"))),- "image/png",- );- });- return new Uint8Array(await blob.arrayBuffer());-}diff --git a/desktop/src/lib/settings.ts b/desktop/src/lib/settings.tsdeleted file mode 100644index 71facf47..00000000--- a/desktop/src/lib/settings.ts+++ /dev/null@@ -1,63 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * App-level preferences, in localStorage.- *- * These are machine preferences, not edit state: which Whisper model to use,- * which language to expect. They deliberately do not live in the project -- * copying a project to a machine without the model should not break it, and- * the choice is about this computer's speed/quality tradeoff.- */--const MODEL_KEY = "wolfcut.transcriber.model";-const LANGUAGE_KEY = "wolfcut.transcriber.language";--/** The default model: the speed/quality sweet spot, per the settings panel. */-export const DEFAULT_TRANSCRIBER_MODEL = "base.en";--export function getTranscriberModel(): string {- return localStorage.getItem(MODEL_KEY) ?? DEFAULT_TRANSCRIBER_MODEL;-}--export function setTranscriberModel(id: string): void {- localStorage.setItem(MODEL_KEY, id);-}--/** A Whisper language code, or "auto" to let the model decide. */-export function getTranscriberLanguage(): string {- return localStorage.getItem(LANGUAGE_KEY) ?? "auto";-}--export function setTranscriberLanguage(code: string): void {- localStorage.setItem(LANGUAGE_KEY, code);-}--const TTS_MODEL_KEY = "wolfcut.tts.model";-const TTS_VOICE_KEY = "wolfcut.tts.voice";--/** The default voice model: the compact build the settings panel recommends. */-export const DEFAULT_TTS_MODEL = "kokoro-int8-multi-lang-v1_0";--/** The default speaker: af_heart, Kokoro's showcase voice. */-export const DEFAULT_TTS_VOICE = 3;--export function getTtsModel(): string {- return localStorage.getItem(TTS_MODEL_KEY) ?? DEFAULT_TTS_MODEL;-}--export function setTtsModel(id: string): void {- localStorage.setItem(TTS_MODEL_KEY, id);-}--/** A Kokoro speaker id, from the host's voices table. */-export function getTtsVoice(): number {- const raw = localStorage.getItem(TTS_VOICE_KEY);- if (raw === null) return DEFAULT_TTS_VOICE;- const stored = Number(raw);- return Number.isInteger(stored) && stored >= 0 ? stored : DEFAULT_TTS_VOICE;-}--export function setTtsVoice(id: number): void {- localStorage.setItem(TTS_VOICE_KEY, String(id));-}diff --git a/desktop/src/lib/text.test.ts b/desktop/src/lib/text.test.tsdeleted file mode 100644index 419e3dc4..00000000--- a/desktop/src/lib/text.test.ts+++ /dev/null@@ -1,42 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Font identity from a file path.- *- * `familyForPath` names the CSS family a custom font registers under, and that- * name is written into the project's font list and referenced by text clips.- * Two files that end up with one name would silently render as each other -- * exactly the collision the uniquing exists to prevent.- */-import { describe, expect, test } from "vitest";--import { familyForPath } from "./text";--describe("familyForPath", () => {- test("the file's own name, without its extension", () => {- expect(familyForPath("/fonts/Inter-Bold.otf", [])).toBe("Inter-Bold");- expect(familyForPath("/fonts/Cabinet Grotesk.TTF", [])).toBe("Cabinet Grotesk");- });-- test("windows paths split on backslashes too", () => {- expect(familyForPath("C:\\Fonts\\Regular.otf", [])).toBe("Regular");- });-- test("a taken name gets a counter, and the counter keeps counting", () => {- expect(familyForPath("/a/Regular.otf", ["Regular"])).toBe("Regular 2");- expect(familyForPath("/b/Regular.otf", ["Regular", "Regular 2"])).toBe("Regular 3");- });-- test("punctuation CSS would choke on is stripped", () => {- expect(familyForPath("/f/Font™.otf", [])).toBe("Font");- // Inner dots go with the punctuation; only the last extension was an- // extension.- expect(familyForPath("/f/My.Font.v2.otf", [])).toBe("MyFontv2");- });-- test("a name with nothing usable left falls back, and still uniques", () => {- expect(familyForPath("/f/★.otf", [])).toBe("Custom font");- expect(familyForPath("/f/★.otf", ["Custom font"])).toBe("Custom font 2");- });-});diff --git a/desktop/src/lib/text.ts b/desktop/src/lib/text.tsdeleted file mode 100644index f5063fa7..00000000--- a/desktop/src/lib/text.ts+++ /dev/null@@ -1,192 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Text overlays.- *- * A text clip has no media file behind it - it *is* its own content - which is- * why the style lives on the clip rather than in the bin. Everything is stored- * relative to the frame rather than in pixels, so a title composed against a- * 1080p project still lands correctly when exported at 4K.- */--import { t } from "./i18n";--export interface TextStyle {- content: string;- /** CSS family name. See `FONTS`. */- fontFamily: string;- /**- * Cap height as a fraction of frame height.- *- * Relative, not points: a 48pt title means something different on a 720p- * frame than a 4K one, and the project can be either.- */- fontSize: number;- fontWeight: number;- italic: boolean;- color: string;- align: "left" | "center" | "right";- /** 0..1. */- opacity: number;- /** Outline width as a fraction of the font size. Zero for none. */- strokeWidth: number;- strokeColor: string;- /** A soft drop shadow, which is what makes text readable over footage. */- shadow: boolean;- /** A solid plate behind the text. Empty string for none. */- background: string;- /** Extra space between lines, as a multiple of the font size. */- lineHeight: number;- /** Letter spacing as a fraction of the font size. */- tracking: number;-}--/**- * The fonts on offer.- *- * The two bundled faces are guaranteed - they ship with the app, so a project- * opened on another machine looks the same. The system families below them are- * a convenience and may fall back to something else elsewhere, which is why- * they are grouped separately in the picker.- */-export const FONTS: { label: string; value: string; bundled: boolean }[] = [- { label: "Cabinet Grotesk", value: '"Cabinet Grotesk"', bundled: true },- { label: "Synonym", value: '"Synonym"', bundled: true },- { label: "System sans", value: "system-ui, sans-serif", bundled: false },- { label: "Georgia", value: "Georgia, serif", bundled: false },- { label: "Times", value: '"Times New Roman", serif', bundled: false },- { label: "Courier", value: '"Courier New", monospace', bundled: false },- { label: "Impact", value: "Impact, sans-serif", bundled: false },- { label: "Comic Sans", value: '"Comic Sans MS", cursive', bundled: false },-];--/**- * A font the user added from disk.- *- * The path is what gets saved, not the bytes: a project file that embedded- * every face would grow without limit, and the same font on the same machine- * is the overwhelmingly common case. Reopening a project on a machine that- * lacks the file falls back to the default face rather than failing to open,- * which is why `missing` is tracked rather than thrown.- */-export interface CustomFont {- /** The CSS family name, derived from the file name and made unique. */- family: string;- path: string;- /** True once a load attempt has failed - shown in the picker, not fatal. */- missing?: boolean;-}--/** Families already handed to the document, so reopening does not re-register. */-const registered = new Set<string>();--/**- * Turns a font file into a usable CSS family.- *- * `FontFace` accepts the raw bytes, so this works for any face the webview can- * parse - ttf, otf, woff, woff2 - without installing anything system-wide.- * Registration is idempotent: the same family loaded twice is a no-op, which- * matters because opening a project re-runs this for every font it names.- */-export async function registerFont(- font: CustomFont,- read: (path: string) => Promise<ArrayBuffer>,-): Promise<boolean> {- if (registered.has(font.family)) return true;-- try {- const face = new FontFace(font.family, await read(font.path));- await face.load();- document.fonts.add(face);- registered.add(font.family);- return true;- } catch {- // A missing or unparseable file must not stop a project opening. The- // picker shows the face as unavailable and text falls back to the default.- return false;- }-}--/**- * A family name for a font file: its own name, made unique against what is- * already loaded.- *- * Two different files called `Regular.otf` in different folders would- * otherwise collide, and the second would silently render as the first.- */-export function familyForPath(path: string, taken: readonly string[]): string {- const base = (path.split(/[\\/]/).pop() ?? path).replace(/\.[a-z0-9]+$/i, "");- const cleaned = base.replace(/[^\w\s-]/g, "").trim() || "Custom font";-- if (!taken.includes(cleaned)) return cleaned;- for (let n = 2; ; n += 1) {- const candidate = `${cleaned} ${n}`;- if (!taken.includes(candidate)) return candidate;- }-}--export const WEIGHTS: { label: string; value: number }[] = [- { get label() { return t("text.weight.light"); }, value: 300 },- { get label() { return t("text.weight.regular"); }, value: 400 },- { get label() { return t("text.weight.medium"); }, value: 500 },- { get label() { return t("text.weight.bold"); }, value: 700 },- { get label() { return t("text.weight.black"); }, value: 900 },-];--export function defaultTextStyle(): TextStyle {- return {- content: "Your text",- fontFamily: '"Cabinet Grotesk"',- // Roughly a tenth of the frame: big enough to read on a phone, small- // enough not to fill the screen before anyone has touched it.- fontSize: 0.09,- fontWeight: 700,- italic: false,- color: "#ffffff",- align: "center",- opacity: 1,- strokeWidth: 0,- strokeColor: "#000000",- shadow: true,- background: "",- lineHeight: 1.2,- tracking: 0,- };-}--/**- * The CSS for one text clip, given the height of the surface it is drawn on.- *- * Shared by the preview overlay and the export rasteriser, so a title cannot- * look one way on screen and another in the file.- */-export function textCss(style: TextStyle, surfaceHeight: number): React.CSSProperties {- const size = style.fontSize * surfaceHeight;-- const shadow = style.shadow- ? `0 ${(size * 0.04).toFixed(2)}px ${(size * 0.12).toFixed(2)}px rgba(0,0,0,0.55)`- : undefined;-- return {- fontFamily: style.fontFamily,- fontSize: `${size}px`,- fontWeight: style.fontWeight,- fontStyle: style.italic ? "italic" : "normal",- color: style.color,- textAlign: style.align,- opacity: style.opacity,- lineHeight: style.lineHeight,- letterSpacing: `${style.tracking * size}px`,- textShadow: shadow,- // `paint-order` puts the stroke behind the fill, so an outline thickens- // outwards instead of eating into the letterforms.- WebkitTextStrokeWidth: style.strokeWidth > 0 ? `${style.strokeWidth * size}px` : undefined,- WebkitTextStrokeColor: style.strokeColor,- paintOrder: "stroke fill",- backgroundColor: style.background || undefined,- padding: style.background ? `${size * 0.2}px ${size * 0.35}px` : undefined,- borderRadius: style.background ? `${size * 0.12}px` : undefined,- whiteSpace: "pre-wrap",- };-}diff --git a/desktop/src/lib/theme.ts b/desktop/src/lib/theme.tsdeleted file mode 100644index 871b49ba..00000000--- a/desktop/src/lib/theme.ts+++ /dev/null@@ -1,93 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useLayoutEffect, useState } from "react";--/**- * Light or dark, chosen explicitly.- *- * WolfCut defaults to light whatever the OS is set to. A creative tool that- * inverts itself because of a system setting the user was not thinking about- * is disorienting, and judging an image against a surround that changed on its- * own is worse than disorienting.- *- * The choice is stored per machine. Nothing about it reaches the project file:- * it is a property of the person sitting there, not of the edit.- */-export type Theme = "light" | "dark";--const STORAGE_KEY = "wolfcut.theme";--function stored(): Theme {- try {- return localStorage.getItem(STORAGE_KEY) === "dark" ? "dark" : "light";- } catch {- // Private mode, blocked storage - light is the default anyway.- return "light";- }-}--/**- * Puts the theme on `<html>`, where the stylesheet keys off it.- *- * Called imperatively the moment the theme changes rather than from an effect,- * and this matters more than it looks. React runs child effects before parent- * effects, so anything that reads computed styles in its own effect - the- * timeline, which copies the palette out for its canvas - would run *before* a- * parent effect had applied the attribute, and read the outgoing theme. The- * symptom is a timeline that is always exactly one theme behind, so switching- * to dark paints it light.- */-function applyTheme(theme: Theme): void {- document.documentElement.dataset.theme = theme;-}--function persist(theme: Theme): void {- try {- localStorage.setItem(STORAGE_KEY, theme);- } catch {- // Not being able to remember the choice is not worth failing over.- }-}--// At import time, before React renders anything, so the first paint and the-// first canvas palette read already agree with the stored choice.-applyTheme(stored());--export function useTheme(): { theme: Theme; setTheme: (theme: Theme) => void; toggle: () => void } {- const [theme, setThemeState] = useState<Theme>(stored);-- // A backstop only: the attribute is normally already correct by now.- useLayoutEffect(() => {- applyTheme(theme);- }, [theme]);-- const setTheme = useCallback((next: Theme) => {- applyTheme(next);- persist(next);- setThemeState(next);- }, []);-- const toggle = useCallback(() => {- setThemeState((current) => {- const next = current === "dark" ? "light" : "dark";- applyTheme(next);- persist(next);- return next;- });- }, []);-- return { theme, setTheme, toggle };-}--/**- * Reads a theme colour as a concrete value.- *- * Canvas cannot use `var(--color-x)`; it needs a real colour string. Call this- * when the theme changes, not per frame - `getComputedStyle` forces a style- * recalculation every time it is asked.- */-export function themeColor(name: string, fallback: string): string {- const value = getComputedStyle(document.documentElement).getPropertyValue(`--color-${name}`);- return value.trim() || fallback;-}diff --git a/desktop/src/lib/time.test.ts b/desktop/src/lib/time.test.tsdeleted file mode 100644index cbc2bce3..00000000--- a/desktop/src/lib/time.test.ts+++ /dev/null@@ -1,131 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Time as the reader sees it.- *- * These helpers only format - the arithmetic lives in the engine - but they- * are on screen constantly: the monitor's timecode, the bin's durations, the- * recents list. A wrong digit here misreports the edit everywhere at once.- */-import { afterEach, describe, expect, test, vi } from "vitest";--import { getLocale } from "./i18n";-import { relativeTime, shortDuration, timecode } from "./time";--describe("timecode", () => {- test("zero is all zeros", () => {- expect(timecode(0, 30)).toBe("00:00:00:00");- });-- test("frames count within the second at the given rate", () => {- expect(timecode(1.5, 30)).toBe("00:00:01:15");- expect(timecode(1.5, 24)).toBe("00:00:01:12");- expect(timecode(2.96, 25)).toBe("00:00:02:24"); // the second's last frame- });-- test("hours, minutes and seconds carry like a clock", () => {- expect(timecode(59, 30)).toBe("00:00:59:00");- expect(timecode(60, 30)).toBe("00:01:00:00");- expect(timecode(3599, 30)).toBe("00:59:59:00");- expect(timecode(3600, 30)).toBe("01:00:00:00");- expect(timecode(3661.5, 30)).toBe("01:01:01:15");- });-- test("the frame counter never reaches the rate", () => {- // 0.999s at 30fps is frame 29, not a rollover into :30.- expect(timecode(0.999, 30)).toBe("00:00:00:29");- expect(timecode(1, 30)).toBe("00:00:01:00");- });-- test("negative time clamps to zero rather than going surreal", () => {- expect(timecode(-5, 30)).toBe("00:00:00:00");- });-- test("fractional rates keep frames and seconds in one clock", () => {- // Non-drop-frame: both fields derive from the frame count. 100s at- // 29.97 is frame 2997 exactly - second 99, frame 27 - and the frame- // field must roll to :00 exactly when its own seconds increment, never- // disagree with them (the old wall-clock seconds read 01:40 here).- expect(timecode(100, 29.97)).toBe("00:01:39:27");- expect(timecode(100.101, 29.97)).toBe("00:01:40:00");- });-});--describe("shortDuration", () => {- test("unknown duration reads as placeholder dashes", () => {- expect(shortDuration(null)).toBe("--:--");- });-- test("whole seconds, floor not round", () => {- expect(shortDuration(0)).toBe("0:00");- expect(shortDuration(59.9)).toBe("0:59");- expect(shortDuration(61)).toBe("1:01");- });-- test("minutes keep counting past an hour - no third field appears", () => {- expect(shortDuration(3600)).toBe("60:00");- expect(shortDuration(3725)).toBe("62:05");- });-- test("negative clamps to zero", () => {- expect(shortDuration(-3)).toBe("0:00");- });-});--describe("relativeTime", () => {- const NOW = new Date("2026-08-28T12:00:00Z").getTime();- const ago = (seconds: number) => relativeTime(NOW - seconds * 1000);-- afterEach(() => {- vi.useRealTimers();- });-- const freeze = () => {- vi.useFakeTimers();- vi.setSystemTime(NOW);- };-- test("under ninety seconds is just now", () => {- freeze();- expect(ago(0)).toBe("just now");- expect(ago(89)).toBe("just now");- });-- test("minutes until the hour", () => {- freeze();- expect(ago(90)).toBe("2 min ago"); // 1.5 min rounds up- expect(ago(10 * 60)).toBe("10 min ago");- expect(ago(3599)).toBe("60 min ago");- });-- test("hours until a day, singular reads as singular", () => {- freeze();- expect(ago(3600)).toBe("1 hour ago");- expect(ago(2 * 3600)).toBe("2 hours ago");- });-- test("days until a week, one day ago reads as yesterday", () => {- freeze();- expect(ago(86_400)).toBe("yesterday");- expect(ago(3 * 86_400)).toBe("3 days ago");- });-- test("a week or more becomes a real date in the reader's locale", () => {- freeze();- const timestamp = NOW - 30 * 86_400 * 1000;- expect(relativeTime(timestamp)).toBe(- new Date(timestamp).toLocaleDateString(getLocale(), {- day: "numeric",- month: "short",- year: "numeric",- }),- );- });-- test("a timestamp from the future clamps to just now", () => {- // Clock skew between machines must not render "-3 min ago".- freeze();- expect(relativeTime(NOW + 60_000)).toBe("just now");- });-});diff --git a/desktop/src/lib/time.ts b/desktop/src/lib/time.tsdeleted file mode 100644index 8c0f1bf6..00000000--- a/desktop/src/lib/time.ts+++ /dev/null@@ -1,64 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/**- * Display formatting for time.- *- * The UI never does time *arithmetic* - that belongs in the engine, in exact- * rational seconds. These helpers only turn a number into something to look at.- */--import { getLocale, t, tp } from "./i18n";--/** Formats seconds as `HH:MM:SS:FF` at the given frame rate. */-export function timecode(seconds: number, frameRate: number): string {- const safe = Math.max(0, seconds);- const totalFrames = Math.floor(safe * frameRate);- // Both fields derive from the frame count - non-drop-frame timecode. The- // seconds used to come from the wall clock instead, so at 29.97 the frame- // field disagreed with its own seconds near boundaries (00:01:40:27 where- // :00 belonged). NDF runs slightly behind the wall clock at NTSC rates;- // that is the standard trade, not a bug.- const fps = Math.max(1, Math.round(frameRate));- const frames = totalFrames % fps;- const totalSeconds = Math.floor(totalFrames / fps);-- const pad = (value: number) => value.toString().padStart(2, "0");- return [- pad(Math.floor(totalSeconds / 3600)),- pad(Math.floor(totalSeconds / 60) % 60),- pad(totalSeconds % 60),- pad(frames),- ].join(":");-}--/**- * Formats a timestamp as how long ago it was.- *- * Coarse on purpose: "3 days ago" is what you want from a recents list, and a- * precise date is noise until it is old enough to actually be a date.- */-export function relativeTime(milliseconds: number): string {- const seconds = Math.max(0, (Date.now() - milliseconds) / 1000);-- if (seconds < 90) return t("time.relative.justNow");- if (seconds < 3600) return tp("time.relative.minutesAgo", Math.round(seconds / 60));- if (seconds < 86_400) {- return tp("time.relative.hoursAgo", Math.round(seconds / 3600));- }- if (seconds < 7 * 86_400) {- return tp("time.relative.daysAgo", Math.round(seconds / 86_400));- }- return new Date(milliseconds).toLocaleDateString(getLocale(), {- day: "numeric",- month: "short",- year: "numeric",- });-}--/** Formats seconds as `M:SS`, for places where a full timecode is noise. */-export function shortDuration(seconds: number | null): string {- if (seconds === null) return "--:--";- const whole = Math.max(0, Math.floor(seconds));- return `${Math.floor(whole / 60)}:${(whole % 60).toString().padStart(2, "0")}`;-}diff --git a/desktop/src/lib/transport.ts b/desktop/src/lib/transport.tsdeleted file mode 100644index 1f7cdc71..00000000--- a/desktop/src/lib/transport.ts+++ /dev/null@@ -1,149 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { isTauri } from "@tauri-apps/api/core";--import { transportPause, transportPlay, transportSeek } from "./engine";-import { listen } from "@tauri-apps/api/event";--/**- * The playback clock.- *- * The engine owns it: the position that matters is the audio device's sample- * counter, reported through `transport` events at ~30Hz. Between events the- * UI interpolates on the wall clock from the last reported anchor, so the- * playhead moves at animation rate while never drifting further than one- * event interval from the truth.- *- * In a plain browser (`npm run dev` with no Rust host) there is no engine and- * the anchor simply never gets corrected - the wall clock alone is the same- * prototype behaviour this file always had there.- */-/**- * The methods, kept apart from the values on purpose. `playhead` changes- * every animation frame while playing; the methods never change at all. One- * object holding both would get a fresh identity per frame, and everything- * keyed on it - effect deps, memoised children - would churn at 60fps. So- * consumers that only *drive* the transport take `controls` (one stable- * identity for the life of the hook) and never re-render on playback, while- * the few that *display* the playhead subscribe to it explicitly.- */-export interface TransportControls {- play: () => void;- pause: () => void;- toggle: () => void;- /** Jumps to an absolute time, clamped at zero. */- seek: (seconds: number) => void;- /** Moves by a signed number of frames at the given rate. */- step: (frames: number, frameRate: number) => void;-}--export interface Transport {- playhead: number;- playing: boolean;- controls: TransportControls;-}--export function useTransport({ duration }: { duration: number }): Transport {- const native = isTauri();- const [playhead, setPlayhead] = useState(0);- const [playing, setPlaying] = useState(false);-- // The last known-true position and when it was known. While playing, the- // rendered playhead is `position + (now - at)`.- const anchor = useRef({ position: 0, at: 0 });- // Read inside loops and callbacks without restarting them.- const playheadRef = useRef(0);- playheadRef.current = playhead;- const playingRef = useRef(false);- playingRef.current = playing;- const durationRef = useRef(duration);- durationRef.current = duration;-- const pause = useCallback(() => {- setPlaying(false);- if (native) void transportPause().catch(() => undefined);- }, [native]);-- const play = useCallback(() => {- const from = playheadRef.current;- anchor.current = { position: from, at: performance.now() };- if (native) void transportPlay(from).catch(() => undefined);- setPlaying(true);- }, [native]);-- const toggle = useCallback(() => {- if (playingRef.current) pause();- else play();- }, [pause, play]);-- const seek = useCallback(- (seconds: number) => {- const next = Math.max(0, seconds);- anchor.current = { position: next, at: performance.now() };- setPlayhead(next);- if (native) void transportSeek(next).catch(() => undefined);- },- [native],- );-- const step = useCallback(- (frames: number, frameRate: number) => {- // Land on an exact frame boundary rather than adding an offset to- // wherever the playhead happened to stop.- const next = Math.max(0, (Math.round(playheadRef.current * frameRate) + frames) / frameRate);- seek(next);- },- [seek],- );-- // Engine position reports re-anchor the interpolation. Ignored while- // paused: a report can arrive just after a local pause, and rewinding the- // playhead to it would visibly snap.- useEffect(() => {- if (!native) return;- let stopped = false;- const stopping = listen<number>("transport", (event) => {- if (stopped || !playingRef.current) return;- anchor.current = { position: event.payload, at: performance.now() };- });- return () => {- stopped = true;- void stopping.then((stop) => stop());- };- }, [native]);-- // The render loop: interpolate from the anchor while playing.- useEffect(() => {- if (!playing) return;-- let frame = 0;- const tick = (now: number) => {- const next = anchor.current.position + (now - anchor.current.at) / 1000;- const end = durationRef.current;-- if (end > 0 && next >= end) {- setPlayhead(end);- setPlaying(false);- if (native) void transportPause().catch(() => undefined);- return;- }-- setPlayhead(next);- frame = requestAnimationFrame(tick);- };-- frame = requestAnimationFrame(tick);- return () => cancelAnimationFrame(frame);- }, [playing, native]);-- // Every method is a useCallback keyed only on `native`, so this memo holds- // one identity for the hook's whole life - see the note on TransportControls.- const controls = useMemo<TransportControls>(- () => ({ play, pause, toggle, seek, step }),- [play, pause, toggle, seek, step],- );-- return { playhead, playing, controls };-}diff --git a/desktop/src/locales/en.json b/desktop/src/locales/en.jsondeleted file mode 100644index 637e4fde..00000000--- a/desktop/src/locales/en.json+++ /dev/null@@ -1,533 +0,0 @@-{- "adjust.empty": "Select a single clip to adjust it.",- "adjust.fadeIn": "Fade in",- "adjust.fadeOut": "Fade out",- "adjust.fades": "Fades",- "adjust.level": "Level",- "adjust.none": "none",- "adjust.opacity": "Opacity",- "adjust.pitchHint": "Off keeps the voice where it is. On is tape behaviour - faster also means higher.",- "adjust.pitchToggle": "Change pitch with speed",- "adjust.positionX": "Position X",- "adjust.positionY": "Position Y",- "adjust.rate": "Rate",- "adjust.rotation": "Rotation",- "adjust.scale": "Scale",- "adjust.silent": "silent",- "adjust.speed": "Speed",- "adjust.speedHelp": "The clip covers the same material either way, so its length on the timeline changes to match.",- "adjust.transform": "Transform",- "adjust.transformHelp": "You can also drag the picture in the preview - corners scale, the handle above rotates. Double-click any label to reset it, or click a value to type one.",- "adjust.volume": "Volume",- "common.cancel": "Cancel",- "common.close": "Close",- "common.export": "Export",- "contextMenu.deleteClips.one": "Delete",- "contextMenu.deleteClips.other": "Delete {count} clips",- "contextMenu.mergeClips.one": "Merge clips",- "contextMenu.mergeClips.other": "Merge {count} clips",- "contextMenu.moveToPlayhead": "Move to playhead",- "contextMenu.splitClips.one": "Split at playhead",- "contextMenu.splitClips.other": "Split {count} clips at playhead",- "controls.resetHint": "Double-click to reset",- "controls.sliderValue": "{label} value",- "dialog.addFont.filter": "Fonts",- "dialog.addFont.title": "Add a font",- "dialog.deleteTimeline.clipsLost.one": "The {count} clip on this timeline will be lost.",- "dialog.deleteTimeline.clipsLost.other": "The {count} clips on this timeline will be lost.",- "dialog.deleteTimeline.confirm": "Delete timeline",- "dialog.deleteTimeline.empty": "The timeline is empty; nothing else is affected.",- "dialog.deleteTimeline.title": "Delete \"{name}\"?",- "effects.black-white.blurb": "Drops all colour, keeps the tones.",- "effects.black-white.label": "Black & White",- "effects.box-blur.blurb": "Fast, slightly harsher blur.",- "effects.box-blur.label": "Box Blur",- "effects.box-blur.param.radius": "Radius",- "effects.category.basic": "Basic",- "effects.category.blur": "Blur",- "effects.category.color": "Color",- "effects.category.distort": "Distort",- "effects.category.stylize": "Stylize",- "effects.contrast-pop.blurb": "Deeper blacks, brighter whites.",- "effects.contrast-pop.label": "Contrast Pop",- "effects.contrast-pop.param.contrast": "Contrast",- "effects.cool.blurb": "Pushes the frame toward blue and teal.",- "effects.cool.label": "Cool",- "effects.cool.param.temperature": "Temperature",- "effects.film-grain.blurb": "Fine analogue noise over the picture.",- "effects.film-grain.label": "Film Grain",- "effects.film-grain.param.amount": "Amount",- "effects.fisheye.blurb": "Bulges the centre like a wide lens.",- "effects.fisheye.label": "Fisheye",- "effects.fisheye.param.strength": "Strength",- "effects.gaussian-blur.blurb": "Soft, even blur across the whole frame.",- "effects.gaussian-blur.label": "Gaussian Blur",- "effects.gaussian-blur.param.radius": "Radius",- "effects.glow.blurb": "Blooms the highlights softly.",- "effects.glow.label": "Glow",- "effects.glow.param.amount": "Amount",- "effects.invert.blurb": "Flips every colour to its negative.",- "effects.invert.label": "Invert",- "effects.mirror.blurb": "Reflects the left half of the frame onto the right.",- "effects.mirror.label": "Mirror",- "effects.motion-blur.blurb": "Horizontal streaking, as if the camera swept.",- "effects.motion-blur.label": "Motion Blur",- "effects.motion-blur.param.length": "Length",- "effects.panel.addEffect": "Add an effect",- "effects.panel.applied": "Applied",- "effects.panel.appliedHelp": "Effects run top to bottom. The eye bypasses one without losing its settings - flick it to compare.",- "effects.panel.bypass": "Bypass {name}",- "effects.panel.duration": "Duration",- "effects.panel.empty": "Select a video or image clip to add effects.",- "effects.panel.enable": "Enable {name}",- "effects.panel.moveEarlier": "Move earlier in the chain",- "effects.panel.moveLater": "Move later in the chain",- "effects.panel.noPreceding": "No clip ends where this one starts, so this transition currently renders as a plain cut.",- "effects.panel.nothingToAdjust": "Nothing to adjust.",- "effects.panel.remove": "Remove {name}",- "effects.panel.transition": "Transition",- "effects.panel.transitionHelp": "The transition on the cut into this clip. It needs the clip before it to stay touching - moved apart, it renders as a plain cut.",- "effects.pixelate.blurb": "Chunks the frame into visible blocks.",- "effects.pixelate.label": "Pixelate",- "effects.pixelate.param.size": "Block size",- "effects.posterize.blurb": "Flattens colour into bold bands.",- "effects.posterize.label": "Posterize",- "effects.posterize.param.levels": "Levels",- "effects.sepia.blurb": "Aged warm brown, like an old photograph.",- "effects.sepia.label": "Sepia",- "effects.shake.blurb": "Handheld-style camera judder.",- "effects.shake.label": "Shake",- "effects.shake.param.amount": "Amount",- "effects.shake.param.speed": "Speed",- "effects.sharpen.blurb": "Crisps up edges and fine detail.",- "effects.sharpen.label": "Sharpen",- "effects.sharpen.param.amount": "Amount",- "effects.vibrance.blurb": "Richer colour without blowing out skin tones.",- "effects.vibrance.label": "Vibrance",- "effects.vibrance.param.intensity": "Intensity",- "effects.vignette.blurb": "Darkens the corners to pull the eye inward.",- "effects.vignette.label": "Vignette",- "effects.vignette.param.strength": "Strength",- "effects.warm.blurb": "Pushes the frame toward orange and gold.",- "effects.warm.label": "Warm",- "effects.warm.param.temperature": "Temperature",- "error.fontUnreadable": "Could not read {file} as a font.",- "errorNotice.copied": "Copied",- "errorNotice.copy": "Copy error",- "errorNotice.dismiss": "Dismiss",- "export.browse": "Browse",- "export.clips.one": "{count} clip",- "export.clips.other": "{count} clips",- "export.contents": "Contents",- "export.done": "Done",- "export.duration": "Duration",- "export.finished": "Export finished",- "export.format": "Format",- "export.frameOf": "frame {frame} of {total}",- "export.mp4Filter": "MP4 video",- "export.nothing": "Nothing to export",- "export.quality.balanced": "Balanced",- "export.quality.balancedHint": "default",- "export.quality.high": "High",- "export.quality.highHint": "large",- "export.quality.small": "Small",- "export.quality.smallHint": "compact",- "export.qualityTitle": "Quality",- "export.reveal": "Show in Finder",- "export.saveTitle": "Export to",- "export.saveTo": "Save to",- "export.stageTitles": "drawing titles",- "export.starting": "starting",- "export.timeLeft": "about {duration} left",- "export.titles.one": "{count} title",- "export.titles.other": "{count} titles",- "export.tryAgain": "Try again",- "filters.bass.blurb": "Lifts the low end without touching anything above it.",- "filters.bass.label": "Bass boost",- "filters.bass.param.gain": "Gain",- "filters.category.space": "Space",- "filters.category.tone": "Tone",- "filters.category.voice": "Voice",- "filters.chipmunk.blurb": "Sharply higher. Formants move too, so it is a different voice.",- "filters.chipmunk.label": "Chipmunk",- "filters.chipmunk.param.pitch": "Pitch",- "filters.deep.blurb": "Lower and heavier, with the low end lifted to match.",- "filters.deep.label": "Deep",- "filters.deep.param.body": "Body",- "filters.deep.param.pitch": "Pitch",- "filters.echo.blurb": "A single distinct repeat.",- "filters.echo.label": "Echo",- "filters.echo.param.decay": "Decay",- "filters.echo.param.delay": "Delay",- "filters.panel.applied": "Applied",- "filters.panel.appliedHelp": "Filters run top to bottom, and order is audible. The eye bypasses one without losing its settings - flick it to compare.",- "filters.panel.bypass": "Bypass {name}",- "filters.panel.clearSearch": "Clear search",- "filters.panel.empty": "Select a single clip to add filters.",- "filters.panel.emptyImage": "A still has no audio to filter.",- "filters.panel.enable": "Enable {name}",- "filters.panel.moveEarlier": "Move earlier in the chain",- "filters.panel.moveLater": "Move later in the chain",- "filters.panel.noMatches": "Nothing matches \"{query}\".",- "filters.panel.remove": "Remove {name}",- "filters.panel.searchPlaceholder": "Search filters",- "filters.robot.blurb": "Flattened and metallic, from a very short modulated delay.",- "filters.robot.label": "Robot",- "filters.robot.param.depth": "Depth",- "filters.room.blurb": "Several short reflections, so it sits in a space rather than repeating.",- "filters.room.label": "Room",- "filters.room.param.size": "Size",- "filters.sweet.blurb": "Brighter, softer and a little higher. Ported from the reference chain.",- "filters.sweet.label": "Sweet",- "filters.sweet.param.amount": "Amount",- "filters.sweet.param.pitch": "Pitch",- "filters.sweet.pitchAuto": "auto",- "filters.telephone.blurb": "Band-limited to a phone line, everything else discarded.",- "filters.telephone.label": "Telephone",- "filters.telephone.param.drive": "Drive",- "filters.treble.blurb": "Adds air at the top. Useful on dull recordings.",- "filters.treble.label": "Treble boost",- "filters.treble.param.gain": "Gain",- "inspector.audio": "Audio",- "inspector.clip": "Clip",- "inspector.clips": "Clips",- "inspector.codec": "Codec",- "inspector.contents": "Contents",- "inspector.duration": "Duration",- "inspector.end": "End",- "inspector.exact": "Exact",- "inspector.folder": "Folder",- "inspector.inPoint": "In point",- "inspector.media": "Media",- "inspector.modify": "Modify",- "inspector.name": "Name",- "inspector.output": "Output",- "inspector.path": "Path",- "inspector.project": "Project",- "inspector.rate": "Rate",- "inspector.size": "Size",- "inspector.source": "Source",- "inspector.start": "Start",- "inspector.track": "Track",- "inspector.tracks": "Tracks",- "inspector.unknown": "unknown",- "inspector.video": "Video",- "mediaBin.addTitleHint": "Adds a title at the playhead",- "mediaBin.allFilesFilter": "All files",- "mediaBin.allMedia": "All media",- "mediaBin.applyHint": "Click to apply to the selected clip",- "mediaBin.audioFallback": "audio",- "mediaBin.cardHint": "Drag onto a track, or double-click to add at the playhead",- "mediaBin.defaultTitle": "Default title",- "mediaBin.delete": "Delete",- "mediaBin.deleteTemplate": "Delete the template {name}",- "mediaBin.deleteTemplateHint": "Delete this template for good",- "mediaBin.dropHint": "Drop video and audio files anywhere in the window, or paste a path above.",- "mediaBin.importMedia": "Import media",- "mediaBin.importing": "Importing...",- "mediaBin.kindAudio": "Audio",- "mediaBin.kindImages": "Images",- "mediaBin.kindVideo": "Video",- "mediaBin.markSlot": "Mark {name} as a template slot",- "mediaBin.markSlotHint": "Make this a template slot: saved templates ask for the user's own media here",- "mediaBin.mediaFilter": "Media",- "mediaBin.myTemplates": "My templates",- "mediaBin.noTemplates": "No templates yet. Mark media as slots, then save this project as a template - it will ask for the user's own clips in those slots.",- "mediaBin.notAvailable": "Not available yet",- "mediaBin.releaseToImport": "Release to import",- "mediaBin.removeFromBin": "Remove from bin",- "mediaBin.removeItem": "Remove {name}",- "mediaBin.saveAsTemplate": "Save this project as a template",- "mediaBin.selectedCount": "{count} selected - drag any of them to place all",- "mediaBin.sizeStill": "{size} still",- "mediaBin.slotBadge": "Slot",- "mediaBin.slotCount.one": "{count} slot",- "mediaBin.slotCount.other": "{count} slots",- "mediaBin.soon": "Soon",- "mediaBin.still": "still",- "mediaBin.tabEffects": "Effects",- "mediaBin.tabMedia": "Media",- "mediaBin.tabTemplates": "Templates",- "mediaBin.tabText": "Text",- "mediaBin.tabTransitions": "Transitions",- "mediaBin.titles": "Titles",- "mediaBin.unmarkSlot": "Unmark {name} as a template slot",- "mediaBin.unmarkSlotHint": "No longer a template slot",- "mediaBin.useTemplateHint": "Click to start a new project from this template",- "mediaBin.videoEffects": "Video Effects",- "menu.clip.autoCaptions": "Auto captions",- "menu.clip.detachAudio": "Detach audio",- "menu.clip.generateVoice": "Generate voice...",- "menu.clip.reattachAudio": "Reattach audio",- "menu.clip.transcribing": "Transcribing...",- "menu.edit.deleteClips.one": "Delete clip",- "menu.edit.deleteClips.other": "Delete {count} clips",- "menu.edit.disableSnapping": "Disable snapping",- "menu.edit.enableSnapping": "Enable snapping",- "menu.edit.redo": "Redo",- "menu.edit.splitAtPlayhead": "Split at playhead",- "menu.edit.title": "Edit",- "menu.edit.undo": "Undo",- "menu.file.addSelected": "Add selected to timeline",- "menu.file.closeProject": "Close project",- "menu.file.closeWindow": "Close window",- "menu.file.export": "Export...",- "menu.file.save": "Save",- "menu.file.saveAsTemplate": "Save as template...",- "menu.file.settings": "Settings...",- "menu.file.speech": "Text to speech...",- "menu.file.title": "File",- "menu.view.goToEnd": "Go to end",- "menu.view.goToStart": "Go to start",- "menu.view.title": "View",- "menu.view.zoomIn": "Zoom in",- "menu.view.zoomOut": "Zoom out",- "modifyProject.frameRate": "Frame rate",- "modifyProject.frameRateHint": "Fixed for the project's lifetime: every cut is quantised to this grid,\nand changing it would re-time the whole edit.",- "modifyProject.frameRateValue": "{rate} fps · fixed",- "modifyProject.height": "Height",- "modifyProject.name": "Name",- "modifyProject.save": "Save",- "modifyProject.saving": "Saving...",- "modifyProject.title": "Project details",- "modifyProject.width": "Width",- "preview.full": "Full",- "preview.goToEnd": "Go to end",- "preview.goToStart": "Go to start",- "preview.half": "Half",- "preview.nextFrame": "Next frame",- "preview.nothingUnderPlayhead": "Nothing under the playhead",- "preview.outputSize": "Output size: {ratio} · {width} x {height}",- "preview.pause": "Pause (Space)",- "preview.play": "Play (Space)",- "preview.prevFrame": "Previous frame",- "preview.qualityHint": "Preview quality: {label} ({ratio})",- "preview.quarter": "Quarter",- "rightPanel.adjust": "Adjust",- "rightPanel.details": "Details",- "rightPanel.effects": "Effects",- "rightPanel.filters": "Filters",- "rightPanel.text": "Text",- "saveTemplate.namePlaceholder": "Template name",- "saveTemplate.noSlots": "No media is marked as a slot, so this template opens as a ready-made project. Mark slots in the bin first if users should supply their own clips.",- "saveTemplate.save": "Save template",- "saveTemplate.saving": "Saving...",- "saveTemplate.slots.one": "{count} slot will ask for the user's own media. Everything else - music, overlays, titles - is copied into the template.",- "saveTemplate.slots.other": "{count} slots will ask for the user's own media. Everything else - music, overlays, titles - is copied into the template.",- "saveTemplate.title": "Save as template",- "settings.about.blurb": "Local-first video editing. Media, models and renders stay on this machine.",- "settings.about.version": "Version {version}",- "settings.about.versionUnknown": "unknown",- "settings.general.engineNote": "Some text from the engine appears in English.",- "settings.general.language": "Language",- "settings.general.systemDefault": "System default ({language})",- "settings.speech.cancelDownload": "Cancel download",- "settings.speech.deleteModel": "Delete {model}",- "settings.speech.deleteModelHint": "Delete the downloaded model",- "settings.speech.download": "Download",- "settings.speech.downloadFirstHint": "Download it first",- "settings.speech.models": "Voice models",- "settings.speech.modelsHelp": "Both builds carry the same voices and differ only in precision; the compact one is a third of the download and rarely audibly different. The selected build is what Text to speech uses.",- "settings.speech.privacyNote": "Voices download once and are stored locally. Generating speech never touches the network.",- "settings.speech.unpacking": "Unpacking...",- "settings.speech.useModel": "Use {model}",- "settings.speech.useModelHint": "Use this model",- "settings.tabs.about": "About",- "settings.tabs.general": "General",- "settings.tabs.speech": "Speech",- "settings.tabs.transcriber": "Transcriber",- "settings.title": "Settings",- "settings.transcriber.cancelDownload": "Cancel download",- "settings.transcriber.deleteModel": "Delete {model}",- "settings.transcriber.deleteModelHint": "Delete the downloaded model",- "settings.transcriber.download": "Download",- "settings.transcriber.downloadFirstHint": "Download it first",- "settings.transcriber.engineMissing": "Transcription engine not found in this dev build",- "settings.transcriber.language": "Language",- "settings.transcriber.languageAuto": "Auto-detect",- "settings.transcriber.languageEnglish": "English",- "settings.transcriber.locate": "Locate...",- "settings.transcriber.locateFilter": "Program",- "settings.transcriber.locateTitle": "Locate whisper-cli",- "settings.transcriber.models": "Models",- "settings.transcriber.modelsHelp": "Bigger models transcribe better and slower. English-only variants beat the multilingual ones at the same size when the audio is English. The selected model is what Auto captions uses. Everything runs locally - nothing leaves this machine.",- "settings.transcriber.useModel": "Use {model}",- "settings.transcriber.useModelHint": "Use this model",- "startScreen.allFilesFilter": "All files",- "startScreen.allTemplates": "All templates",- "startScreen.audioFilter": "Audio",- "startScreen.change": "Change...",- "startScreen.choose": "Choose...",- "startScreen.chooseFolder": "Choose a folder",- "startScreen.chooseMediaFor": "Choose media for \"{name}\"",- "startScreen.create": "Create",- "startScreen.creating": "Creating...",- "startScreen.deleteTemplate": "Delete the template {name}",- "startScreen.deleteTemplateHint": "Delete this template for good",- "startScreen.folderNote": "The project folder is created now; the edit autosaves into it.",- "startScreen.frameRate": "Frame rate",- "startScreen.fromTemplate": "Start from a template",- "startScreen.kindAudio": "audio",- "startScreen.kindImage": "image",- "startScreen.kindVideo": "video",- "startScreen.location": "Location",- "startScreen.locationTitle": "Where should this project live?",- "startScreen.name": "Name",- "startScreen.newProject": "New project",- "startScreen.noSlots": "This template has no slots - it opens ready-made.",- "startScreen.recent": "Recent",- "startScreen.removeRecent": "Remove {name} from recents",- "startScreen.removeRecentHint": "Remove from this list. The folder is left alone.",- "startScreen.res1080p": "1080p",- "startScreen.res4k": "4K",- "startScreen.res720p": "720p",- "startScreen.resVertical": "Vertical",- "startScreen.resolution": "Resolution",- "startScreen.settingsIntro": "These settings apply to the whole edit and cannot be changed later.",- "startScreen.slotCount.one": "{count} slot",- "startScreen.slotCount.other": "{count} slots",- "startScreen.slotSeconds": "{kind} · {seconds}s on the timeline",- "startScreen.slots": "Slots ({count})",- "startScreen.slotsFilled": "Every slot is filled.",- "startScreen.slotsMissing.one": "{count} slot still needs a clip.",- "startScreen.slotsMissing.other": "{count} slots still need a clip.",- "startScreen.templateIntro": "Pick a clip for each slot. The template's timing, music and effects stay as designed - {width} x {height} at {rate} fps.",- "startScreen.untitled": "Untitled project",- "startScreen.videoImagesFilter": "Video or images",- "status.engine": "engine {version}",- "status.engineUnavailable": "engine unavailable",- "status.saveFailed": "save failed",- "status.saved": "saved",- "status.saving": "saving...",- "text.weight.black": "Black",- "text.weight.bold": "Bold",- "text.weight.light": "Light",- "text.weight.medium": "Medium",- "text.weight.regular": "Regular",- "textPanel.about": "About {name}",- "textPanel.addFontFile": "Add font file",- "textPanel.alignCenter": "center",- "textPanel.alignLeft": "left",- "textPanel.alignRight": "right",- "textPanel.bundled": "Bundled",- "textPanel.centred": "centred",- "textPanel.colour": "Colour",- "textPanel.content": "Content",- "textPanel.defaultName": "Text",- "textPanel.dropShadow": "Drop shadow",- "textPanel.dropShadowHint": "Keeps text readable over bright footage.",- "textPanel.empty": "Select a text clip to style it.",- "textPanel.fileMissing": "(file missing)",- "textPanel.fill": "Fill",- "textPanel.font": "Font",- "textPanel.horizontal": "Horizontal",- "textPanel.italic": "Italic",- "textPanel.layout": "Layout",- "textPanel.lineHeight": "Line height",- "textPanel.none": "none",- "textPanel.opacity": "Opacity",- "textPanel.outline": "Outline",- "textPanel.outlineColour": "Outline colour",- "textPanel.placeholder": "Your text",- "textPanel.plate": "Plate behind text",- "textPanel.plateColour": "Plate colour",- "textPanel.plateHint": "A solid block, for when a shadow is not enough.",- "textPanel.position": "Position",- "textPanel.removeFont": "Remove {name}",- "textPanel.size": "Size",- "textPanel.sizeOfHeight": "{value}% of height",- "textPanel.system": "System",- "textPanel.tracking": "Tracking",- "textPanel.vertical": "Vertical",- "textPanel.weight": "Weight",- "textPanel.width": "Width",- "textPanel.yours": "Yours",- "time.relative.daysAgo.one": "yesterday",- "time.relative.daysAgo.other": "{count} days ago",- "time.relative.hoursAgo.one": "1 hour ago",- "time.relative.hoursAgo.other": "{count} hours ago",- "time.relative.justNow": "just now",- "time.relative.minutesAgo.one": "{count} min ago",- "time.relative.minutesAgo.other": "{count} min ago",- "timeline.addTrack": "Add track",- "timeline.avTools": "Audio & video tools",- "timeline.deleteClips": "Delete {count} clips (Del)",- "timeline.deleteNamed": "Delete {name}",- "timeline.deleteSelected": "Delete selected (Del)",- "timeline.fit": "Fit to window (F)",- "timeline.hideTrack": "Hide picture on this track",- "timeline.merge": "Merge selected clips (M)",- "timeline.mergeMustTouch": "Merged clips must touch, with no gap or overlap.",- "timeline.mergeNeedTwo": "Select two or more clips to merge.",- "timeline.mergeOutOfOrder": "These pieces are no longer in their original order.",- "timeline.mergeSameFile": "Merged clips must come from the same file.",- "timeline.mergeSameSpeed": "Merged clips must play at the same speed.",- "timeline.mergeSameTrack": "Merged clips must be on the same track.",- "timeline.muteTrack": "Mute this track",- "timeline.newTimeline": "New timeline",- "timeline.razorTool": "Razor tool (C)",- "timeline.removeTrack": "Remove {name}",- "timeline.removeTrackHint": "Remove {name} and its clips",- "timeline.renameHint": "Double-click to rename",- "timeline.selectTool": "Select tool (V)",- "timeline.showTrack": "Show picture on this track",- "timeline.snapping": "Snapping (N)",- "timeline.split": "Split at playhead (Ctrl+B)",- "timeline.switchTo": "Switch to {name}",- "timeline.unmuteTrack": "Unmute this track",- "timeline.zoomIn": "Zoom in",- "timeline.zoomOut": "Zoom out",- "titleBar.maximise": "Maximise",- "titleBar.minimise": "Minimise",- "titleBar.openSettings": "Open settings",- "titleBar.restore": "Restore",- "titleBar.switchDark": "Switch to dark",- "titleBar.switchDarkAria": "Switch to dark theme",- "titleBar.switchLight": "Switch to light",- "titleBar.switchLightAria": "Switch to light theme",- "toast.effectNeedsClip": "Select a video or image clip on the timeline first",- "toast.narrationAdded": "Narration added at the playhead",- "toast.projectDetailsSaved": "Project details saved",- "toast.projectSaved": "Project saved",- "toast.saveFailed": "Save failed: {message}",- "toast.templateSaved": "Saved template \"{name}\"",- "toast.transitionAdded": "{transition} added to the cut",- "toast.transitionNeedsClip": "Select the incoming clip - the one after the cut - first",- "toast.transitionNeedsCut": "No clip ends where this one starts - transitions need a cut",- "transitions.category.basic": "Basic",- "transitions.category.motion": "Motion",- "transitions.cross-fade.blurb": "The outgoing clip dissolves into the incoming one.",- "transitions.cross-fade.label": "Cross Fade",- "transitions.fade-black.blurb": "Out through black, then in from black.",- "transitions.fade-black.label": "Fade to Black",- "transitions.fade-white.blurb": "Out through white, then in from white.",- "transitions.fade-white.label": "Fade to White",- "transitions.push.blurb": "The incoming clip shoves the outgoing one off screen.",- "transitions.push.label": "Push",- "transitions.wipe-left.blurb": "The incoming clip sweeps in from the right edge.",- "transitions.wipe-left.label": "Wipe Left",- "transitions.wipe-right.blurb": "The incoming clip sweeps in from the left edge.",- "transitions.wipe-right.label": "Wipe Right",- "transitions.zoom.blurb": "Punches in on the cut, then settles.",- "transitions.zoom.label": "Zoom",- "tts.accent.american": "American English",- "tts.accent.british": "British English",- "tts.accent.chinese": "Chinese",- "tts.downloadModel": "Download voice model ({size})",- "tts.downloading": "Downloading...",- "tts.gender.female": "Female",- "tts.gender.male": "Male",- "tts.generate": "Generate speech",- "tts.generating": "Generating...",- "tts.importFailed": "The generated audio could not be added to the project",- "tts.modelNeeded": "Speech is generated by the Kokoro voice model, entirely on this machine. It downloads once; after that, nothing you type ever leaves this computer.",- "tts.pace.faster": "Faster",- "tts.pace.natural": "Natural",- "tts.pace.slower": "Slower",- "tts.paceLabel": "Pace",- "tts.textLabel": "Text",- "tts.textPlaceholder": "Type the narration to read aloud...",- "tts.title": "Text to speech",- "tts.unpacking": "Unpacking...",- "tts.voiceLabel": "Voice"-}diff --git a/desktop/src/locales/zh-CN.json b/desktop/src/locales/zh-CN.jsondeleted file mode 100644index 5365113f..00000000--- a/desktop/src/locales/zh-CN.json+++ /dev/null@@ -1,533 +0,0 @@-{- "adjust.empty": "选择单个片段进行调整。",- "adjust.fadeIn": "淡入",- "adjust.fadeOut": "淡出",- "adjust.fades": "淡入淡出",- "adjust.level": "电平",- "adjust.none": "无",- "adjust.opacity": "不透明度",- "adjust.pitchHint": "关闭时人声保持原调。开启是磁带式行为——更快也意味着更高。",- "adjust.pitchToggle": "音调随速度变化",- "adjust.positionX": "位置 X",- "adjust.positionY": "位置 Y",- "adjust.rate": "速率",- "adjust.rotation": "旋转",- "adjust.scale": "缩放",- "adjust.silent": "静音",- "adjust.speed": "速度",- "adjust.speedHelp": "无论快慢,片段覆盖的素材相同,因此它在时间线上的长度会相应变化。",- "adjust.transform": "变换",- "adjust.transformHelp": "也可以在预览中直接拖动画面——四角缩放,上方手柄旋转。双击任意标签可重置,点击数值可直接输入。",- "adjust.volume": "音量",- "common.cancel": "取消",- "common.close": "关闭",- "common.export": "导出",- "contextMenu.deleteClips.one": "删除",- "contextMenu.deleteClips.other": "删除 {count} 个片段",- "contextMenu.mergeClips.one": "合并片段",- "contextMenu.mergeClips.other": "合并 {count} 个片段",- "contextMenu.moveToPlayhead": "移动到播放头",- "contextMenu.splitClips.one": "在播放头处分割",- "contextMenu.splitClips.other": "在播放头处分割 {count} 个片段",- "controls.resetHint": "双击重置",- "controls.sliderValue": "{label} 数值",- "dialog.addFont.filter": "字体",- "dialog.addFont.title": "添加字体",- "dialog.deleteTimeline.clipsLost.one": "此时间线上的 {count} 个片段将丢失。",- "dialog.deleteTimeline.clipsLost.other": "此时间线上的 {count} 个片段将丢失。",- "dialog.deleteTimeline.confirm": "删除时间线",- "dialog.deleteTimeline.empty": "该时间线是空的;不影响其他内容。",- "dialog.deleteTimeline.title": "删除“{name}”?",- "effects.black-white.blurb": "去除所有色彩,保留影调。",- "effects.black-white.label": "黑白",- "effects.box-blur.blurb": "更快、略显生硬的模糊。",- "effects.box-blur.label": "方框模糊",- "effects.box-blur.param.radius": "半径",- "effects.category.basic": "基础",- "effects.category.blur": "模糊",- "effects.category.color": "色彩",- "effects.category.distort": "扭曲",- "effects.category.stylize": "风格化",- "effects.contrast-pop.blurb": "黑得更深,白得更亮。",- "effects.contrast-pop.label": "对比增强",- "effects.contrast-pop.param.contrast": "对比度",- "effects.cool.blurb": "将画面推向蓝色和青色。",- "effects.cool.label": "冷色",- "effects.cool.param.temperature": "色温",- "effects.film-grain.blurb": "画面上细腻的模拟噪点。",- "effects.film-grain.label": "胶片颗粒",- "effects.film-grain.param.amount": "强度",- "effects.fisheye.blurb": "像广角镜头一样使画面中心凸起。",- "effects.fisheye.label": "鱼眼",- "effects.fisheye.param.strength": "强度",- "effects.gaussian-blur.blurb": "柔和均匀的全画面模糊。",- "effects.gaussian-blur.label": "高斯模糊",- "effects.gaussian-blur.param.radius": "半径",- "effects.glow.blurb": "柔和地晕开高光。",- "effects.glow.label": "辉光",- "effects.glow.param.amount": "强度",- "effects.invert.blurb": "将每种颜色翻转为其负片。",- "effects.invert.label": "反色",- "effects.mirror.blurb": "将画面左半边映射到右半边。",- "effects.mirror.label": "镜像",- "effects.motion-blur.blurb": "水平拖影,如同镜头扫过。",- "effects.motion-blur.label": "运动模糊",- "effects.motion-blur.param.length": "长度",- "effects.panel.addEffect": "添加特效",- "effects.panel.applied": "已应用",- "effects.panel.appliedHelp": "特效从上到下依次生效。眼睛图标可以在不丢失设置的情况下旁通——切换它来对比。",- "effects.panel.bypass": "旁通 {name}",- "effects.panel.duration": "时长",- "effects.panel.empty": "选择视频或图片片段来添加特效。",- "effects.panel.enable": "启用 {name}",- "effects.panel.moveEarlier": "在链中前移",- "effects.panel.moveLater": "在链中后移",- "effects.panel.noPreceding": "没有片段在此片段开始处结束,因此该转场目前呈现为普通剪切。",- "effects.panel.nothingToAdjust": "没有可调整的参数。",- "effects.panel.remove": "移除 {name}",- "effects.panel.transition": "转场",- "effects.panel.transitionHelp": "进入此片段的剪切点上的转场。它需要前一个片段保持相接——移开后将呈现为普通剪切。",- "effects.pixelate.blurb": "将画面分割成可见的色块。",- "effects.pixelate.label": "像素化",- "effects.pixelate.param.size": "块大小",- "effects.posterize.blurb": "将色彩压平为大胆的色带。",- "effects.posterize.label": "色调分离",- "effects.posterize.param.levels": "级数",- "effects.sepia.blurb": "泛黄的暖棕色,如同老照片。",- "effects.sepia.label": "怀旧棕褐",- "effects.shake.blurb": "手持相机般的晃动。",- "effects.shake.label": "抖动",- "effects.shake.param.amount": "幅度",- "effects.shake.param.speed": "速度",- "effects.sharpen.blurb": "使边缘和细节更清晰。",- "effects.sharpen.label": "锐化",- "effects.sharpen.param.amount": "强度",- "effects.vibrance.blurb": "色彩更丰富,同时不破坏肤色。",- "effects.vibrance.label": "自然饱和度",- "effects.vibrance.param.intensity": "强度",- "effects.vignette.blurb": "压暗四角,将视线引向中心。",- "effects.vignette.label": "暗角",- "effects.vignette.param.strength": "强度",- "effects.warm.blurb": "将画面推向橙色和金色。",- "effects.warm.label": "暖色",- "effects.warm.param.temperature": "色温",- "error.fontUnreadable": "无法将 {file} 读取为字体。",- "errorNotice.copied": "已复制",- "errorNotice.copy": "复制错误信息",- "errorNotice.dismiss": "关闭",- "export.browse": "浏览",- "export.clips.one": "{count} 个片段",- "export.clips.other": "{count} 个片段",- "export.contents": "内容",- "export.done": "完成",- "export.duration": "时长",- "export.finished": "导出完成",- "export.format": "格式",- "export.frameOf": "第 {frame} 帧,共 {total} 帧",- "export.mp4Filter": "MP4 视频",- "export.nothing": "没有可导出的内容",- "export.quality.balanced": "均衡",- "export.quality.balancedHint": "默认",- "export.quality.high": "高",- "export.quality.highHint": "较大",- "export.quality.small": "小",- "export.quality.smallHint": "紧凑",- "export.qualityTitle": "质量",- "export.reveal": "在访达中显示",- "export.saveTitle": "导出到",- "export.saveTo": "保存到",- "export.stageTitles": "正在绘制标题",- "export.starting": "正在开始",- "export.timeLeft": "剩余约 {duration}",- "export.titles.one": "{count} 个标题",- "export.titles.other": "{count} 个标题",- "export.tryAgain": "重试",- "filters.bass.blurb": "提升低频,不影响其上的任何频段。",- "filters.bass.label": "低音增强",- "filters.bass.param.gain": "增益",- "filters.category.space": "空间",- "filters.category.tone": "音色",- "filters.category.voice": "人声",- "filters.chipmunk.blurb": "大幅升高音调。共振峰也随之移动,因此听起来是另一个声音。",- "filters.chipmunk.label": "花栗鼠",- "filters.chipmunk.param.pitch": "音调",- "filters.deep.blurb": "更低更厚重,低频也相应提升。",- "filters.deep.label": "低沉",- "filters.deep.param.body": "厚度",- "filters.deep.param.pitch": "音调",- "filters.echo.blurb": "一次清晰的重复。",- "filters.echo.label": "回声",- "filters.echo.param.decay": "衰减",- "filters.echo.param.delay": "延迟",- "filters.panel.applied": "已应用",- "filters.panel.appliedHelp": "滤镜从上到下依次生效,顺序是听得出来的。眼睛图标可以在不丢失设置的情况下旁通——切换它来对比。",- "filters.panel.bypass": "旁通 {name}",- "filters.panel.clearSearch": "清除搜索",- "filters.panel.empty": "选择单个片段来添加滤镜。",- "filters.panel.emptyImage": "静态图片没有可过滤的音频。",- "filters.panel.enable": "启用 {name}",- "filters.panel.moveEarlier": "在链中前移",- "filters.panel.moveLater": "在链中后移",- "filters.panel.noMatches": "没有与“{query}”匹配的结果。",- "filters.panel.remove": "移除 {name}",- "filters.panel.searchPlaceholder": "搜索滤镜",- "filters.robot.blurb": "扁平而金属感,来自极短的调制延迟。",- "filters.robot.label": "机器人",- "filters.robot.param.depth": "深度",- "filters.room.blurb": "若干短反射,使声音置身于空间中而非重复。",- "filters.room.label": "房间",- "filters.room.param.size": "大小",- "filters.sweet.blurb": "更亮、更柔和、略微升高。移植自参考链。",- "filters.sweet.label": "甜美",- "filters.sweet.param.amount": "强度",- "filters.sweet.param.pitch": "音调",- "filters.sweet.pitchAuto": "自动",- "filters.telephone.blurb": "限制在电话线路的频带内,其余全部舍弃。",- "filters.telephone.label": "电话",- "filters.telephone.param.drive": "驱动",- "filters.treble.blurb": "在顶部增加空气感。适合发闷的录音。",- "filters.treble.label": "高音增强",- "filters.treble.param.gain": "增益",- "inspector.audio": "音频",- "inspector.clip": "片段",- "inspector.clips": "片段数",- "inspector.codec": "编码",- "inspector.contents": "内容",- "inspector.duration": "时长",- "inspector.end": "结束",- "inspector.exact": "精确值",- "inspector.folder": "文件夹",- "inspector.inPoint": "入点",- "inspector.media": "媒体数",- "inspector.modify": "修改",- "inspector.name": "名称",- "inspector.output": "输出",- "inspector.path": "路径",- "inspector.project": "项目",- "inspector.rate": "帧率",- "inspector.size": "尺寸",- "inspector.source": "来源",- "inspector.start": "开始",- "inspector.track": "轨道",- "inspector.tracks": "轨道数",- "inspector.unknown": "未知",- "inspector.video": "视频",- "mediaBin.addTitleHint": "在播放头处添加一个标题",- "mediaBin.allFilesFilter": "所有文件",- "mediaBin.allMedia": "所有媒体",- "mediaBin.applyHint": "点击应用到所选片段",- "mediaBin.audioFallback": "音频",- "mediaBin.cardHint": "拖到轨道上,或双击添加到播放头处",- "mediaBin.defaultTitle": "默认标题",- "mediaBin.delete": "删除",- "mediaBin.deleteTemplate": "删除模板 {name}",- "mediaBin.deleteTemplateHint": "永久删除此模板",- "mediaBin.dropHint": "将视频和音频文件拖放到窗口任意位置,或在上方粘贴路径。",- "mediaBin.importMedia": "导入媒体",- "mediaBin.importing": "导入中...",- "mediaBin.kindAudio": "音频",- "mediaBin.kindImages": "图片",- "mediaBin.kindVideo": "视频",- "mediaBin.markSlot": "将 {name} 标记为模板槽位",- "mediaBin.markSlotHint": "将其设为模板槽位:保存的模板会在此处请求用户提供自己的媒体",- "mediaBin.mediaFilter": "媒体",- "mediaBin.myTemplates": "我的模板",- "mediaBin.noTemplates": "还没有模板。先将媒体标记为槽位,再将此项目保存为模板——它会在这些槽位请求用户提供自己的片段。",- "mediaBin.notAvailable": "暂不可用",- "mediaBin.releaseToImport": "松开即可导入",- "mediaBin.removeFromBin": "从素材箱中移除",- "mediaBin.removeItem": "移除 {name}",- "mediaBin.saveAsTemplate": "将此项目保存为模板",- "mediaBin.selectedCount": "已选择 {count} 项——拖动其中任意一项可放置全部",- "mediaBin.sizeStill": "{size} 静态图片",- "mediaBin.slotBadge": "槽位",- "mediaBin.slotCount.one": "{count} 个槽位",- "mediaBin.slotCount.other": "{count} 个槽位",- "mediaBin.soon": "敬请期待",- "mediaBin.still": "静态",- "mediaBin.tabEffects": "特效",- "mediaBin.tabMedia": "媒体",- "mediaBin.tabTemplates": "模板",- "mediaBin.tabText": "文本",- "mediaBin.tabTransitions": "转场",- "mediaBin.titles": "标题",- "mediaBin.unmarkSlot": "取消将 {name} 标记为模板槽位",- "mediaBin.unmarkSlotHint": "不再是模板槽位",- "mediaBin.useTemplateHint": "点击从此模板开始新项目",- "mediaBin.videoEffects": "视频特效",- "menu.clip.autoCaptions": "自动字幕",- "menu.clip.detachAudio": "分离音频",- "menu.clip.generateVoice": "生成语音...",- "menu.clip.reattachAudio": "重新附加音频",- "menu.clip.transcribing": "正在转录...",- "menu.edit.deleteClips.one": "删除片段",- "menu.edit.deleteClips.other": "删除 {count} 个片段",- "menu.edit.disableSnapping": "关闭吸附",- "menu.edit.enableSnapping": "开启吸附",- "menu.edit.redo": "重做",- "menu.edit.splitAtPlayhead": "在播放头处分割",- "menu.edit.title": "编辑",- "menu.edit.undo": "撤销",- "menu.file.addSelected": "将所选添加到时间线",- "menu.file.closeProject": "关闭项目",- "menu.file.closeWindow": "关闭窗口",- "menu.file.export": "导出...",- "menu.file.save": "保存",- "menu.file.saveAsTemplate": "保存为模板...",- "menu.file.settings": "设置...",- "menu.file.speech": "文字转语音...",- "menu.file.title": "文件",- "menu.view.goToEnd": "跳到结尾",- "menu.view.goToStart": "跳到开头",- "menu.view.title": "视图",- "menu.view.zoomIn": "放大",- "menu.view.zoomOut": "缩小",- "modifyProject.frameRate": "帧率",- "modifyProject.frameRateHint": "在项目的整个生命周期中固定:每个剪切点都量化到此网格上,更改它会重新调整整个剪辑的时间。",- "modifyProject.frameRateValue": "{rate} fps · 固定",- "modifyProject.height": "高度",- "modifyProject.name": "名称",- "modifyProject.save": "保存",- "modifyProject.saving": "保存中...",- "modifyProject.title": "项目详情",- "modifyProject.width": "宽度",- "preview.full": "全分辨率",- "preview.goToEnd": "转到结尾",- "preview.goToStart": "转到开头",- "preview.half": "二分之一",- "preview.nextFrame": "下一帧",- "preview.nothingUnderPlayhead": "播放头下没有内容",- "preview.outputSize": "输出尺寸:{ratio} · {width} x {height}",- "preview.pause": "暂停(空格)",- "preview.play": "播放(空格)",- "preview.prevFrame": "上一帧",- "preview.qualityHint": "预览质量:{label}({ratio})",- "preview.quarter": "四分之一",- "rightPanel.adjust": "调整",- "rightPanel.details": "详情",- "rightPanel.effects": "特效",- "rightPanel.filters": "滤镜",- "rightPanel.text": "文本",- "saveTemplate.namePlaceholder": "模板名称",- "saveTemplate.noSlots": "没有媒体被标记为槽位,因此该模板会以现成项目的形式打开。如果希望用户提供自己的片段,请先在素材箱中标记槽位。",- "saveTemplate.save": "保存模板",- "saveTemplate.saving": "保存中...",- "saveTemplate.slots.one": "{count} 个槽位将请求用户提供自己的媒体。其他一切——音乐、叠加层、标题——都会复制到模板中。",- "saveTemplate.slots.other": "{count} 个槽位将请求用户提供自己的媒体。其他一切——音乐、叠加层、标题——都会复制到模板中。",- "saveTemplate.title": "保存为模板",- "settings.about.blurb": "本地优先的视频剪辑。媒体、模型和渲染都留在这台电脑上。",- "settings.about.version": "版本 {version}",- "settings.about.versionUnknown": "未知",- "settings.general.engineNote": "来自引擎的部分文本仍以英文显示。",- "settings.general.language": "语言",- "settings.general.systemDefault": "系统默认({language})",- "settings.speech.cancelDownload": "取消下载",- "settings.speech.deleteModel": "删除 {model}",- "settings.speech.deleteModelHint": "删除已下载的模型",- "settings.speech.download": "下载",- "settings.speech.downloadFirstHint": "请先下载",- "settings.speech.models": "语音模型",- "settings.speech.modelsHelp": "两个版本的音色完全相同,只是精度不同;精简版体积只有三分之一,音质几乎听不出差别。所选版本即“文字转语音”使用的模型。",- "settings.speech.privacyNote": "语音模型只需下载一次,保存在本机。生成语音时完全不会联网。",- "settings.speech.unpacking": "解压中...",- "settings.speech.useModel": "使用 {model}",- "settings.speech.useModelHint": "使用此模型",- "settings.tabs.about": "关于",- "settings.tabs.general": "通用",- "settings.tabs.speech": "语音",- "settings.tabs.transcriber": "转录器",- "settings.title": "设置",- "settings.transcriber.cancelDownload": "取消下载",- "settings.transcriber.deleteModel": "删除 {model}",- "settings.transcriber.deleteModelHint": "删除已下载的模型",- "settings.transcriber.download": "下载",- "settings.transcriber.downloadFirstHint": "请先下载",- "settings.transcriber.engineMissing": "此开发构建中未找到转录引擎",- "settings.transcriber.language": "语言",- "settings.transcriber.languageAuto": "自动检测",- "settings.transcriber.languageEnglish": "英语",- "settings.transcriber.locate": "查找...",- "settings.transcriber.locateFilter": "程序",- "settings.transcriber.locateTitle": "查找 whisper-cli",- "settings.transcriber.models": "模型",- "settings.transcriber.modelsHelp": "模型越大,转录越准也越慢。音频为英语时,同等大小下纯英语模型胜过多语言模型。所选模型即“自动字幕”所用的模型。一切都在本地运行——任何内容都不会离开这台电脑。",- "settings.transcriber.useModel": "使用 {model}",- "settings.transcriber.useModelHint": "使用此模型",- "startScreen.allFilesFilter": "所有文件",- "startScreen.allTemplates": "所有模板",- "startScreen.audioFilter": "音频",- "startScreen.change": "更换...",- "startScreen.choose": "选择...",- "startScreen.chooseFolder": "选择一个文件夹",- "startScreen.chooseMediaFor": "为“{name}”选择媒体",- "startScreen.create": "创建",- "startScreen.creating": "创建中...",- "startScreen.deleteTemplate": "删除模板 {name}",- "startScreen.deleteTemplateHint": "永久删除此模板",- "startScreen.folderNote": "项目文件夹现在就会创建;剪辑会自动保存到其中。",- "startScreen.frameRate": "帧率",- "startScreen.fromTemplate": "从模板开始",- "startScreen.kindAudio": "音频",- "startScreen.kindImage": "图片",- "startScreen.kindVideo": "视频",- "startScreen.location": "位置",- "startScreen.locationTitle": "这个项目应该放在哪里?",- "startScreen.name": "名称",- "startScreen.newProject": "新建项目",- "startScreen.noSlots": "此模板没有槽位——它以现成的形式打开。",- "startScreen.recent": "最近",- "startScreen.removeRecent": "从最近列表中移除 {name}",- "startScreen.removeRecentHint": "从此列表中移除。文件夹本身不受影响。",- "startScreen.res1080p": "1080p",- "startScreen.res4k": "4K",- "startScreen.res720p": "720p",- "startScreen.resVertical": "竖屏",- "startScreen.resolution": "分辨率",- "startScreen.settingsIntro": "这些设置适用于整个剪辑,以后无法更改。",- "startScreen.slotCount.one": "{count} 个槽位",- "startScreen.slotCount.other": "{count} 个槽位",- "startScreen.slotSeconds": "{kind} · 时间线上 {seconds} 秒",- "startScreen.slots": "槽位({count})",- "startScreen.slotsFilled": "所有槽位都已填充。",- "startScreen.slotsMissing.one": "还有 {count} 个槽位需要片段。",- "startScreen.slotsMissing.other": "还有 {count} 个槽位需要片段。",- "startScreen.templateIntro": "为每个槽位选择一个片段。模板的时序、音乐和效果保持原样——{width} x {height},{rate} fps。",- "startScreen.untitled": "未命名项目",- "startScreen.videoImagesFilter": "视频或图片",- "status.engine": "引擎 {version}",- "status.engineUnavailable": "引擎不可用",- "status.saveFailed": "保存失败",- "status.saved": "已保存",- "status.saving": "正在保存...",- "text.weight.black": "特粗",- "text.weight.bold": "粗体",- "text.weight.light": "细体",- "text.weight.medium": "中等",- "text.weight.regular": "常规",- "textPanel.about": "关于{name}",- "textPanel.addFontFile": "添加字体文件",- "textPanel.alignCenter": "居中",- "textPanel.alignLeft": "左对齐",- "textPanel.alignRight": "右对齐",- "textPanel.bundled": "内置",- "textPanel.centred": "居中",- "textPanel.colour": "颜色",- "textPanel.content": "内容",- "textPanel.defaultName": "文本",- "textPanel.dropShadow": "阴影",- "textPanel.dropShadowHint": "让文字在明亮画面上保持可读。",- "textPanel.empty": "选择文本片段来设置样式。",- "textPanel.fileMissing": "(文件缺失)",- "textPanel.fill": "填充",- "textPanel.font": "字体",- "textPanel.horizontal": "水平",- "textPanel.italic": "斜体",- "textPanel.layout": "布局",- "textPanel.lineHeight": "行高",- "textPanel.none": "无",- "textPanel.opacity": "不透明度",- "textPanel.outline": "描边",- "textPanel.outlineColour": "描边颜色",- "textPanel.placeholder": "输入文字",- "textPanel.plate": "文字底板",- "textPanel.plateColour": "底板颜色",- "textPanel.plateHint": "一块实心色块,用于阴影不够时。",- "textPanel.position": "位置",- "textPanel.removeFont": "移除 {name}",- "textPanel.size": "大小",- "textPanel.sizeOfHeight": "高度的 {value}%",- "textPanel.system": "系统",- "textPanel.tracking": "字距",- "textPanel.vertical": "垂直",- "textPanel.weight": "字重",- "textPanel.width": "宽度",- "textPanel.yours": "自定义",- "time.relative.daysAgo.one": "昨天",- "time.relative.daysAgo.other": "{count} 天前",- "time.relative.hoursAgo.one": "1 小时前",- "time.relative.hoursAgo.other": "{count} 小时前",- "time.relative.justNow": "刚刚",- "time.relative.minutesAgo.one": "{count} 分钟前",- "time.relative.minutesAgo.other": "{count} 分钟前",- "timeline.addTrack": "添加轨道",- "timeline.avTools": "音频与视频工具",- "timeline.deleteClips": "删除 {count} 个片段(Del)",- "timeline.deleteNamed": "删除 {name}",- "timeline.deleteSelected": "删除所选(Del)",- "timeline.fit": "适应窗口(F)",- "timeline.hideTrack": "隐藏此轨道的画面",- "timeline.merge": "合并所选片段(M)",- "timeline.mergeMustTouch": "合并的片段必须相接,不能有间隙或重叠。",- "timeline.mergeNeedTwo": "选择两个或更多片段来合并。",- "timeline.mergeOutOfOrder": "这些片段已不再是原始顺序。",- "timeline.mergeSameFile": "合并的片段必须来自同一个文件。",- "timeline.mergeSameSpeed": "合并的片段必须以相同速度播放。",- "timeline.mergeSameTrack": "合并的片段必须在同一条轨道上。",- "timeline.muteTrack": "静音此轨道",- "timeline.newTimeline": "新建时间线",- "timeline.razorTool": "剃刀工具(C)",- "timeline.removeTrack": "移除 {name}",- "timeline.removeTrackHint": "移除 {name} 及其片段",- "timeline.renameHint": "双击重命名",- "timeline.selectTool": "选择工具(V)",- "timeline.showTrack": "显示此轨道的画面",- "timeline.snapping": "吸附(N)",- "timeline.split": "在播放头处分割(Ctrl+B)",- "timeline.switchTo": "切换到 {name}",- "timeline.unmuteTrack": "取消静音此轨道",- "timeline.zoomIn": "放大",- "timeline.zoomOut": "缩小",- "titleBar.maximise": "最大化",- "titleBar.minimise": "最小化",- "titleBar.openSettings": "打开设置",- "titleBar.restore": "还原",- "titleBar.switchDark": "切换到深色",- "titleBar.switchDarkAria": "切换到深色主题",- "titleBar.switchLight": "切换到浅色",- "titleBar.switchLightAria": "切换到浅色主题",- "toast.effectNeedsClip": "请先在时间线上选择一个视频或图像片段",- "toast.narrationAdded": "旁白已添加到播放头处",- "toast.projectDetailsSaved": "项目详情已保存",- "toast.projectSaved": "项目已保存",- "toast.saveFailed": "保存失败:{message}",- "toast.templateSaved": "已保存模板“{name}”",- "toast.transitionAdded": "{transition} 已加入剪辑",- "toast.transitionNeedsClip": "请先选择切点之后的入场片段",- "toast.transitionNeedsCut": "没有片段在此片段开始处结束——转场需要一个切点",- "transitions.category.basic": "基础",- "transitions.category.motion": "运动",- "transitions.cross-fade.blurb": "出场片段溶解进入场片段。",- "transitions.cross-fade.label": "交叉淡化",- "transitions.fade-black.blurb": "经黑色淡出,再从黑色淡入。",- "transitions.fade-black.label": "淡出至黑",- "transitions.fade-white.blurb": "经白色淡出,再从白色淡入。",- "transitions.fade-white.label": "淡出至白",- "transitions.push.blurb": "入场片段将出场片段推出画面。",- "transitions.push.label": "推移",- "transitions.wipe-left.blurb": "入场片段从右边缘扫入。",- "transitions.wipe-left.label": "向左划像",- "transitions.wipe-right.blurb": "入场片段从左边缘扫入。",- "transitions.wipe-right.label": "向右划像",- "transitions.zoom.blurb": "在剪切点上急推放大,随后回稳。",- "transitions.zoom.label": "缩放",- "tts.accent.american": "美式英语",- "tts.accent.british": "英式英语",- "tts.accent.chinese": "中文",- "tts.downloadModel": "下载语音模型({size})",- "tts.downloading": "下载中...",- "tts.gender.female": "女声",- "tts.gender.male": "男声",- "tts.generate": "生成语音",- "tts.generating": "生成中...",- "tts.importFailed": "生成的音频无法添加到项目",- "tts.modelNeeded": "语音由 Kokoro 模型完全在本机生成。模型只需下载一次;此后你输入的文字不会离开这台电脑。",- "tts.pace.faster": "较快",- "tts.pace.natural": "自然",- "tts.pace.slower": "较慢",- "tts.paceLabel": "语速",- "tts.textLabel": "文本",- "tts.textPlaceholder": "输入要朗读的旁白...",- "tts.title": "文字转语音",- "tts.unpacking": "解压中...",- "tts.voiceLabel": "声音"-}diff --git a/desktop/src/main.tsx b/desktop/src/main.tsxdeleted file mode 100644index 145b2017..00000000--- a/desktop/src/main.tsx+++ /dev/null@@ -1,35 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--import React from "react";-import ReactDOM from "react-dom/client";--import { App } from "./App";-import "./styles.css";--/*- * The webview's own context menu has no place in a desktop app - it offers- * Reload, View Source and Inspect, none of which mean anything here, and it- * appears instead of whatever menu the app wanted to show.- *- * Suppressed at the document, so a component only has to call- * `preventDefault` where it wants its *own* menu. Inputs keep theirs, because- * cut/copy/paste in a text field is genuinely useful and there is no custom- * replacement for it.- */-document.addEventListener("contextmenu", (event) => {- const target = event.target as HTMLElement | null;- if (target?.closest("input, textarea, [contenteditable='true'], .selectable")) return;- event.preventDefault();-});--const root = document.getElementById("root");-if (!root) {- throw new Error("index.html is missing #root");-}--ReactDOM.createRoot(root).render(- <React.StrictMode>- <App />- </React.StrictMode>,-);diff --git a/desktop/src/styles.css b/desktop/src/styles.cssdeleted file mode 100644index 60674ded..00000000--- a/desktop/src/styles.css+++ /dev/null@@ -1,352 +0,0 @@-@import "tailwindcss";--/*- * Cabinet Grotesk, the UI face.- *- * One variable file covering 100-900 rather than eight static weights: a- * single ~40KB request instead of eight, and any weight in between is- * available if a heading ever wants 550.- *- * `font-display: swap` shows the fallback immediately and swaps when the font- * lands. The alternative, `block`, means a blank window for up to three- * seconds on a cold start, which is a bad trade for an app that is already- * local.- *- * Licensed under the ITF Free Font License - see LICENSE-CabinetGrotesk.txt- * next to the font file.- */-@font-face {- font-family: "Cabinet Grotesk";- src: url("./assets/fonts/CabinetGrotesk-Variable.woff2") format("woff2-variations");- font-weight: 100 900;- font-style: normal;- font-display: swap;-}--@font-face {- font-family: "Synonym";- src: url("./assets/fonts/Synonym-Variable.woff2") format("woff2-variations");- font-weight: 200 700;- font-style: normal;- font-display: swap;-}--/*- * Theming.- *- * Every colour in the app comes from a token here. No component writes a hex- * value or a `white/10`, because the moment one does it stops responding to- * the theme and you find out six screens later in the wrong mode.- *- * The light values are the defaults; dark overrides the same custom- * properties. Tailwind v4 generates `bg-panel` as `var(--color-panel)`, so an- * override in a selector is all it takes - no `dark:` variants anywhere.- *- * The palette is Apple's: near-white greys rather than pure white, near-black- * rather than pure black, one saturated accent, and text that steps down in- * three deliberate weights rather than fading arbitrarily.- */-/*- * `static` is load-bearing, not decoration.- *- * By default Tailwind v4 only emits the CSS variables it can see used as- * utility classes. Several tokens here - the timeline lanes, the ruler, the- * clip fills - are never written as a class because a canvas cannot resolve- * `var(...)`; they are read from JavaScript with `getComputedStyle`. Without- * `static` those get tree-shaken, the lookup returns an empty string, and the- * canvas silently falls back to its built-in dark defaults - which is a black- * timeline in light mode.- */-@theme static {- /* Surfaces, from furthest back to nearest front. */- /* Deep enough that borderless white panels visibly float, and the- resizer gutters read as grooves you can grab. */- --color-base: #e6e7eb;- --color-panel: #ffffff;- --color-sunken: #e8e8ec;- --color-elevated: #ffffff;- --color-hover: rgba(0, 0, 0, 0.05);- --color-active: rgba(0, 0, 0, 0.09);-- /* Hairlines. */- --color-hairline: rgba(0, 0, 0, 0.1);- --color-hairline-strong: rgba(0, 0, 0, 0.18);-- /* Text, in three deliberate steps. */- --color-primary: #1d1d1f;- --color-secondary: #6e6e73;- --color-tertiary: #a1a1a6;-- /* One accent, plus the two states it needs. */- --color-accent: #0071e3;- --color-accent-hover: #0077ed;- --color-accent-soft: rgba(0, 113, 227, 0.12);- --color-on-accent: #ffffff;-- --color-danger: #d70015;- --color-danger-soft: rgba(215, 0, 21, 0.1);- --color-success: #248a3d;-- /* Editor-specific colours with no equivalent in a general palette. */- /*- * The program monitor is black in both themes and has no dark override.- * Picture is judged against its surround, so that surround must not change- * when the interface does - and black is the only honest backdrop for it.- * `on-stage` is therefore a fixed value too, since it always sits on black.- */- --color-stage: #101013;- --color-on-stage: rgba(255, 255, 255, 0.38);- /*- * Selection highlight, the same in both themes.- *- * Lime is legible against near-black and near-white alike, which is what a- * selection has to be - it lands on whatever text happens to be underneath- * it. The dark ink on top is fixed for the same reason.- */- --color-selection: #c6f432;- --color-on-selection: #101014;-- /*- * An activated tool button: lime glyph on a slightly darker surface, so the- * toolbar reads as "this mode is on" without shouting accent-blue. The lime- * is darkened for light mode - a 2px stroke of the selection lime would- * wash out on a near-white bar - and is the selection lime itself in dark.- */- --color-tool-active: #65a30d;- --color-tool-active-bg: rgba(0, 0, 0, 0.08);- /* The lime's translucent fill, for slider tracks and control fills. */- --color-tool-active-soft: rgba(101, 163, 13, 0.18);-- --color-playhead: #ff3b30;- /*- * One hue per media kind, in two intensities: a vivid mark and a pale- * same-hue body it sits on. Blue footage, orange sound, purple stills,- * rose titles - four kinds, four hues, and the pair structure is what- * keeps a waveform readable on its own clip.- */- --color-clip-video: #2f6fe0;- --color-clip-video-body: #d3e2fb;- --color-clip-audio: #d97f16;- --color-clip-audio-body: #fae6c8;- --color-clip-wave: rgba(140, 85, 10, 0.55);- --color-clip-image: #7743e8;- --color-clip-image-body: #e4dbfa;- --color-clip-text: #d41f4d;- --color-clip-text-body: #fad7df;- --color-timeline: #e4e4e9;- --color-timeline-alt: #ededf1;- --color-ruler: #f4f4f6;-- /*- * Three type roles, not one.- *- * Synonym carries the interface: it is a text face, drawn for paragraph- * sizes, and it stays readable at the 10 and 11px this app is full of.- *- * Cabinet Grotesk is the display face - headings, the project title - where- * its tighter, more characterful shapes are an asset rather than a tax on- * legibility.- *- * Cabinet also handles the technical readouts: timecode, the timeline ruler,- * clip labels, paths, dimensions. Its even, mechanical letterforms suit- * numbers, and `font-technical` pairs it with tabular figures so a running- * timecode does not jitter as the digits change width.- *- * The system stack sits behind all three, so the app is legible for the- * frame before the fonts load and on a machine where they fail to.- */- --font-sans:- "Synonym", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",- ui-sans-serif, system-ui, sans-serif;- --font-display:- "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;- --font-technical:- "Cabinet Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;- /* Kept for anything that genuinely needs fixed-width cells. */- --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;-}--/*- * Dark, applied only by explicit choice.- *- * Deliberately not wired to `prefers-color-scheme`: light is WolfCut's default- * regardless of what the OS is set to. A creative tool that flips its entire- * appearance because of a system setting the user was not thinking about is- * disorienting, and colour work in particular wants a predictable surround.- */-:root[data-theme="dark"] {- /* Near-black ground for the same reason as light's deeper grey: the- borderless panels and their grab-able gutters must self-evidently- separate. */- --color-base: #050506;- --color-panel: #18181b;- /* Between the stage and the panels, never equal to the stage: a sunken- surface that matches --color-base reads as a hole punched through the- panel - the timeline tab tray was pitch black and its top edge- vanished into the background. */- --color-sunken: #0e0e11;- --color-elevated: #1f1f22;- --color-hover: rgba(255, 255, 255, 0.07);- --color-active: rgba(255, 255, 255, 0.12);-- --color-hairline: rgba(255, 255, 255, 0.1);- --color-hairline-strong: rgba(255, 255, 255, 0.2);-- --color-primary: #f5f5f7;- --color-secondary: #a1a1a6;- --color-tertiary: #6e6e73;-- --color-accent: #0a84ff;- --color-accent-hover: #3d9bff;- --color-accent-soft: rgba(10, 132, 255, 0.18);- --color-on-accent: #ffffff;-- --color-tool-active: #c6f432;- --color-tool-active-bg: rgba(0, 0, 0, 0.32);- --color-tool-active-soft: rgba(198, 244, 50, 0.16);-- --color-danger: #ff453a;- --color-danger-soft: rgba(255, 69, 58, 0.14);- --color-success: #30d158;-- --color-playhead: #ff453a;- --color-clip-video: #4d8df6;- --color-clip-video-body: #142640;- --color-clip-audio: #f09e2f;- --color-clip-audio-body: #33220e;- --color-clip-wave: rgba(250, 214, 158, 0.7);- --color-clip-image: #8b5cf6;- --color-clip-image-body: #251a3d;- --color-clip-text: #e8355e;- --color-clip-text-body: #38131d;- --color-timeline: #0d0d10;- --color-timeline-alt: #0a0a0d;- --color-ruler: #131316;-}--/**- * Opts a region back into text selection.- *- * The app disables selection globally, because dragging clips around a- * timeline should not paint half the interface blue. Read-only information is- * the exception - a file path you cannot copy is a file path you have to- * retype.- */-@utility selectable {- user-select: text;- -webkit-user-select: text;- cursor: auto;-}--/* Panel scrollbars: no visible track or gutter, just a small rounded thumb. */-@utility thin-scroll {- scrollbar-width: thin;- scrollbar-color: var(--color-hairline-strong) transparent;-- &::-webkit-scrollbar {- width: 8px;- height: 8px;- }-- &::-webkit-scrollbar-track,- &::-webkit-scrollbar-corner {- background: transparent;- }-- &::-webkit-scrollbar-thumb {- background: var(--color-hairline-strong);- border-radius: 9999px;- border: 2px solid transparent;- background-clip: content-box;- }-- &::-webkit-scrollbar-button {- display: none;- }-}--/* The material every floating thing shares: menus, dialogs, the drag ghost. */-@utility surface {- background-color: var(--color-elevated);- border: 1px solid var(--color-hairline);- box-shadow:- 0 0 0 0.5px rgba(0, 0, 0, 0.04),- 0 10px 20px -6px rgba(0, 0, 0, 0.18),- 0 24px 48px -12px rgba(0, 0, 0, 0.22);-}--/* Dark needs a heavier, tighter shadow: a soft light-mode shadow simply- disappears against a near-black background. */-:root[data-theme="dark"] .surface {- box-shadow:- 0 0 0 0.5px rgba(255, 255, 255, 0.05),- 0 16px 32px -8px rgba(0, 0, 0, 0.7);-}---@layer base {- html,- body,- #root {- height: 100%;- }-- body {- margin: 0;- background-color: var(--color-base);- color: var(--color-primary);- font-family: var(--font-sans);- font-size: 13px;- /* Apple's type is optically tighter than a browser default. */- letter-spacing: -0.01em;- -webkit-font-smoothing: antialiased;- /* A fixed-layout application: the page never scrolls, panels do. */- overflow: hidden;- /* Text selection while dragging clips is never what you wanted. */- user-select: none;- -webkit-user-select: none;- }-- /* The window is undecorated, so nothing else draws its edge. */- #root {- border: 1px solid var(--color-hairline);- }-- input {- user-select: text;- -webkit-user-select: text;- }-- ::selection {- background-color: var(--color-selection);- color: var(--color-on-selection);- }-- /* Numbers that change in place must not reflow as they do. */- .font-technical {- font-variant-numeric: tabular-nums;- }-- :focus-visible {- outline: 2px solid var(--color-accent);- outline-offset: 1px;- }-}--/*- * The film-grain preview layer: a static noise tile jumped between positions- * in coarse steps, which reads as new grain per step the way film does. The- * layer is oversized by its parent so the jumps never expose an edge.- */-@keyframes wolfcut-grain {- 0% { transform: translate(0, 0); }- 20% { transform: translate(-4%, 3%); }- 40% { transform: translate(3%, -5%); }- 60% { transform: translate(-5%, -2%); }- 80% { transform: translate(5%, 4%); }- 100% { transform: translate(-2%, 5%); }-}--.grain-layer {- animation: wolfcut-grain 0.5s steps(5, jump-none) infinite;-}diff --git a/desktop/src/vite-env.d.ts b/desktop/src/vite-env.d.tsdeleted file mode 100644index 9bb3b52b..00000000--- a/desktop/src/vite-env.d.ts+++ /dev/null@@ -1,4 +0,0 @@-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--/// <reference types="vite/client" />diff --git a/desktop/tsconfig.json b/desktop/tsconfig.jsondeleted file mode 100644index d4aba321..00000000--- a/desktop/tsconfig.json+++ /dev/null@@ -1,25 +0,0 @@-{- "compilerOptions": {- "target": "ES2022",- "useDefineForClassFields": true,- "lib": ["ES2022", "DOM", "DOM.Iterable"],- "module": "ESNext",- "skipLibCheck": true,-- /* Bundler mode */- "moduleResolution": "bundler",- "allowImportingTsExtensions": true,- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "react-jsx",-- /* Linting */- "strict": true,- "noUnusedLocals": true,- "noUnusedParameters": true,- "noFallthroughCasesInSwitch": true- },- "include": ["src"],- "references": [{ "path": "./tsconfig.node.json" }]-}diff --git a/desktop/tsconfig.node.json b/desktop/tsconfig.node.jsondeleted file mode 100644index 42872c59..00000000--- a/desktop/tsconfig.node.json+++ /dev/null@@ -1,10 +0,0 @@-{- "compilerOptions": {- "composite": true,- "skipLibCheck": true,- "module": "ESNext",- "moduleResolution": "bundler",- "allowSyntheticDefaultImports": true- },- "include": ["vite.config.ts"]-}diff --git a/desktop/vite.config.ts b/desktop/vite.config.tsdeleted file mode 100644index 49cb23ac..00000000--- a/desktop/vite.config.ts+++ /dev/null@@ -1,40 +0,0 @@-import { defineConfig } from "vite";-import react from "@vitejs/plugin-react";-import tailwindcss from "@tailwindcss/vite";--// @ts-expect-error process is a nodejs global-const host = process.env.TAURI_DEV_HOST;--export default defineConfig(async () => ({- // Tailwind v4 runs as a Vite plugin. There is no tailwind.config.js and no- // PostCSS step: the theme lives in src/styles.css under @theme.- plugins: [react(), tailwindcss()],-- // Do not let Vite's screen-clearing hide Rust compiler errors.- clearScreen: false,-- server: {- port: 1420,- strictPort: true,- host: host || false,- hmr: host ? { protocol: "ws", host, port: 1421 } : undefined,- watch: {- ignored: ["**/src-tauri/**"],- },- },-- build: {- // We ship inside WebView2 / WKWebView / WebKitGTK, all of which are modern.- // Targeting them directly means no legacy transpilation and smaller output.- target: "esnext",- minify: "esbuild",- // Source maps in debug builds only - they double the bundle otherwise.- sourcemap: !!process.env.TAURI_ENV_DEBUG,- chunkSizeWarningLimit: 1500,- },-- // Vite pre-bundles these once instead of re-resolving them on every reload.- optimizeDeps: {- include: ["react", "react-dom", "@tauri-apps/api/core"],- },-}));diff --git a/desktop/vitest.config.ts b/desktop/vitest.config.tsdeleted file mode 100644index 6028e535..00000000--- a/desktop/vitest.config.ts+++ /dev/null@@ -1,11 +0,0 @@-import { defineConfig } from "vitest/config";--// Node is the default: the lib/ tests are pure logic and need no DOM.-// Component tests opt into a browser-like environment per file with a-// `// @vitest-environment jsdom` docblock at the top.-export default defineConfig({- test: {- environment: "node",- include: ["src/**/*.test.{ts,tsx}"],- },-});diff --git a/engine/Cargo.lock b/engine/Cargo.lockindex 2eb5b97b..072914df 100644--- a/engine/Cargo.lock+++ b/engine/Cargo.lock@@ -1132,7 +1132,6 @@ dependencies = ["concat-project","concat-render","serde",- "ts-rs",][[package]]@@ -1166,7 +1165,6 @@ dependencies = ["serde","serde_json","thiserror 2.0.20",- "ts-rs",][[package]]@@ -6054,28 +6052,6 @@ dependencies = ["once_cell",]-[[package]]-name = "ts-rs"-version = "12.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "756050066659291d47a554a9f558125db17428b073c5ffce1daf5dcb0f7231d8"-dependencies = [- "thiserror 2.0.20",- "ts-rs-macros",-]--[[package]]-name = "ts-rs-macros"-version = "12.0.1"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "38d90eea51bc7988ef9e674bf80a85ba6804739e535e9cab48e4bb34a8b652aa"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",- "termcolor",-]-[[package]]name = "ttf-parser"version = "0.25.1"diff --git a/engine/README.md b/engine/README.mdindex abb5faf8..d4f07fc3 100644--- a/engine/README.md+++ b/engine/README.md@@ -19,11 +19,11 @@ The dependency arrows point one way: `{concat, cli} -> {media, render} -> core`.If you ever find yourself wanting `core` to depend on `media`, something hasbeen put in the wrong crate.-`concat` replaces the Tauri + React app in `../desktop`, which is deprecated-and stays only until this window can do everything it did. The window was-built in the wc-ui-rnd repository against the same design as the React-editor; what landed here is the whole UI driven by demo data, and the work-now is to hand it the engine's real project, preview and export.+`concat` is the app. The window was built in the wc-ui-rnd repository+against the same design as the earlier web-based editor, then wired to the+engine here: it opens project folders through `concat-host`, reads the+engine's project to draw the bin and the lanes, and writes every edit as a+`concat-project` command.## Build and rundiff --git a/engine/crates/concat-export/Cargo.toml b/engine/crates/concat-export/Cargo.tomlindex 369865c3..4807468d 100644--- a/engine/crates/concat-export/Cargo.toml+++ b/engine/crates/concat-export/Cargo.toml@@ -10,10 +10,6 @@ description = "Rendering a timeline to a file, and one true frame of it to a mon# The GPU compositor for full exports. Off by default for the same reason as# concat-render's: engine-only work never pays for the wgpu tree.gpu = ["concat-render/gpu"]-# TypeScript bindings for the wire types the UI sends (rasterised title-# overlays ride the export request as ExportClips). Off by default; see-# desktop/src/lib/generated/README.md for the generator command.-types = ["dep:ts-rs"][dependencies]concat-core.workspace = true@@ -21,7 +17,6 @@ concat-media.workspace = trueconcat-render.workspace = trueconcat-project = { path = "../concat-project" }serde = { version = "1", features = ["derive"] }-ts-rs = { version = "12", optional = true }[lints]workspace = truediff --git a/engine/crates/concat-export/src/chains.rs b/engine/crates/concat-export/src/chains.rsindex 06fe3aef..7e1522d4 100644--- a/engine/crates/concat-export/src/chains.rs+++ b/engine/crates/concat-export/src/chains.rs@@ -6,14 +6,14 @@//! This is a byte-for-byte port of the two TypeScript catalogues that are the//! ground truth for exported pixels and sound://!-//! - `desktop/src/lib/effects.ts` - the video effect catalogue and+//! - the video effect catalogue and//! `buildEffectChain`.-//! - `desktop/src/lib/filters.ts` - the audio filter catalogue and+//! - the audio filter catalogue and//! `buildChain`.//!//! The contract is the same one `lib/editor.ts`'s ported arithmetic lives//! under: the TS files are the mirror, and their fixtures-//! (`desktop/src/lib/effects.test.ts`, `desktop/src/lib/filters.test.ts`) pin+//! The pinned-string tests below//! the exact chain string for every catalogue entry at its default, minimum//! and maximum settings. The tests at the bottom of this file assert those//! same strings, character for character - a change to either side that the@@ -87,7 +87,7 @@ fn round(value: f64) -> i64 {value.round() as i64}-// ─── the video effect catalogue ─ mirror of desktop/src/lib/effects.ts ──────+// ─── the video effect catalogue ─────────────────────────────────────────────fn fx_black_white(_: &Params, _index: usize) -> String {"hue=s=0".to_owned()@@ -391,7 +391,7 @@ static EFFECTS: &[Entry] = &[},];-// ─── the audio filter catalogue ─ mirror of desktop/src/lib/filters.ts ──────+// ─── the audio filter catalogue ─────────────────────────────────────────────/// Pitch shift that moves the formants with the pitch.///diff --git a/engine/crates/concat-export/src/lib.rs b/engine/crates/concat-export/src/lib.rsindex 8e4ad454..66b83a11 100644--- a/engine/crates/concat-export/src/lib.rs+++ b/engine/crates/concat-export/src/lib.rs@@ -40,8 +40,6 @@ use serde::Deserialize;/// What a flattened clip is. Typed, so a kind check the compiler has not/// seen cannot exist - the wire still says "video"/"audio"/"image".#[derive(Deserialize, Clone, Copy, PartialEq, Eq)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export, export_to = "export/"))]#[serde(rename_all = "lowercase")]pub enum ClipKind {/// Footage: pictures over time, possibly with its own sound.@@ -61,8 +59,6 @@ impl ClipKind {/// One clip, as the frontend's flattener describes it.#[derive(Deserialize, Clone)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export, export_to = "export/"))]#[serde(rename_all = "camelCase")]pub struct ExportClip {/// The media file this clip shows or plays.@@ -122,36 +118,29 @@ pub struct ExportClip {/// The transition into this clip's cut, when the UI put one there. The/// clip before it on the same track is found here, by adjacency - the UI/// only says what it wants, never how to overlap decoders.- #[cfg_attr(feature = "types", ts(optional = nullable))]#[serde(default)]pub transition: Option<TransitionSpec>,/// Video opacity ramp up from the clip's start, in seconds. Set by/// transition resolution below, never by the UI directly.- #[cfg_attr(feature = "types", ts(as = "Option<f64>", optional))]#[serde(default)]pub video_fade_in: f64,/// The source's pixel width, when the UI knows it. What makes an/// aspect-correct decode possible - absent, the frame is filled edge to/// edge the way it always was.- #[cfg_attr(feature = "types", ts(optional = nullable))]#[serde(default)]pub media_width: Option<u32>,/// The source's pixel height; see `media_width`.- #[cfg_attr(feature = "types", ts(optional = nullable))]#[serde(default)]pub media_height: Option<u32>,/// Whether the file carries an audio stream, when the UI knows (the/// document records it at import). Absent falls back to probing, so an/// older caller still exports correctly - just slower to start.- #[cfg_attr(feature = "types", ts(optional = nullable))]#[serde(default)]pub has_audio: Option<bool>,}/// A transition on the cut into a clip.#[derive(Deserialize, Clone)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export, export_to = "export/"))]#[serde(rename_all = "camelCase")]pub struct TransitionSpec {/// "cross-fade", "fade-black" or "fade-white". Anything else is ignored.diff --git a/engine/crates/concat-host/src/lib.rs b/engine/crates/concat-host/src/lib.rsindex 07b7d25f..3c06746c 100644--- a/engine/crates/concat-host/src/lib.rs+++ b/engine/crates/concat-host/src/lib.rs@@ -10,12 +10,12 @@//! project, composites the paused monitor's true frame, plays the audible//! clips, packs templates, and holds the one-at-a-time slots for long jobs.//!-//! It used to be the Tauri host of the React editor, where every one of-//! these was a `#[tauri::command]` converting wire formats. There is no wire-//! any more - the Slint window calls these functions in-process - so what is-//! left is the plumbing itself, with the same doctrine: no editing decision-//! is made here. If a function starts deciding what an edit means, it-//! belongs in `concat-project`.+//! It began as the host process of an earlier, web-based front end, where+//! every one of these converted wire formats. There is no wire - the window+//! calls these functions in-process - so what is left is the plumbing+//! itself, with the same doctrine: no editing decision is made here. If a+//! function starts deciding what an edit means, it belongs in+//! `concat-project`.//!//! Nothing here knows about a window. Long work reports through callbacks//! and cancels through flags, and the caller decides which thread it runs on.diff --git a/engine/crates/concat-project/Cargo.toml b/engine/crates/concat-project/Cargo.tomlindex 358f2373..3160a7a8 100644--- a/engine/crates/concat-project/Cargo.toml+++ b/engine/crates/concat-project/Cargo.toml@@ -6,19 +6,10 @@ rust-version.workspace = truelicense.workspace = truedescription = "The edit itself: the project document, its operations, and undo. The engine's ownership of the model."-[features]-# TypeScript bindings for the wire types, generated straight from these serde-# structs so the UI cannot drift from the engine. Off by default: normal-# builds never pay for the generator. Regenerate with-# `TS_RS_EXPORT_DIR=<abs path to desktop/src/lib/generated> cargo test -p concat-project --features types export_bindings`-# (see desktop/src/lib/generated/README.md).-types = ["dep:ts-rs"]-[dependencies]serde = { version = "1", features = ["derive"] }serde_json.workspace = truethiserror.workspace = true-ts-rs = { version = "12", optional = true }[lints]workspace = truediff --git a/engine/crates/concat-project/src/commands.rs b/engine/crates/concat-project/src/commands.rsindex 14e66acd..f0b44872 100644--- a/engine/crates/concat-project/src/commands.rs+++ b/engine/crates/concat-project/src/commands.rs@@ -37,8 +37,6 @@ const JOIN_EPSILON: f64 = 1e-6;/// Which end of a clip a trim drags. The two are not symmetric: see/// [`Command::TrimClip`].#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "lowercase")]pub enum TrimEdge {/// The head. Trimming here moves the in-point with the edge, so the@@ -50,8 +48,6 @@ pub enum TrimEdge {/// Which per-track toggle a [`Command::SetTrackFlag`] flips.#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "lowercase")]pub enum TrackFlag {/// [`Track::visible`]: whether the track's video reaches the composite.@@ -62,8 +58,6 @@ pub enum TrackFlag {/// Where one clip is going, in a multi-clip move.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct ClipMove {/// The clip to move. An unknown id is skipped, not an error - the rest@@ -80,46 +74,34 @@ pub struct ClipMove {/// `text` are double-optional so "clear it" and "leave it alone" stay/// distinct on the wire (absent = untouched, null = cleared).#[derive(Clone, Default, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct ClipPatch {/// New display name, taken verbatim. A later `text` patch overwrites it/// with the title's first line.- #[cfg_attr(feature = "types", ts(optional))]pub name: Option<String>,/// New gain; floored at 0, deliberately not capped at 1 - boosting quiet/// footage is legitimate.- #[cfg_attr(feature = "types", ts(optional))]pub volume: Option<f64>,/// New fade-in length in seconds, floored at 0.- #[cfg_attr(feature = "types", ts(optional))]pub fade_in: Option<f64>,/// New fade-out length in seconds, floored at 0.- #[cfg_attr(feature = "types", ts(optional))]pub fade_out: Option<f64>,/// New opacity, clamped into 0..=1.- #[cfg_attr(feature = "types", ts(optional))]pub opacity: Option<f64>,/// New pitch-preservation setting, taken as sent.- #[cfg_attr(feature = "types", ts(optional))]pub preserve_pitch: Option<bool>,/// Wholesale replacement of the audio filter chain - the UI sends the/// full list, not a diff.- #[cfg_attr(feature = "types", ts(optional))]pub filters: Option<Vec<AppliedFilter>>,/// Wholesale replacement of the video effect chain, like `filters`.- #[cfg_attr(feature = "types", ts(optional))]pub video_effects: Option<Vec<AppliedFilter>>,/// The transition on the cut into the clip: absent leaves it alone,/// null clears it, a value replaces it.#[serde(default, with = "double_option", skip_serializing_if = "Option::is_none")]- #[cfg_attr(feature = "types", ts(as = "Option<Transition>", optional = nullable))]pub transition_in: Option<Option<Transition>>,/// The title styling, same three-way wire semantics as `transition_in`./// Setting a style also renames the clip after its first line.#[serde(default, with = "double_option", skip_serializing_if = "Option::is_none")]- #[cfg_attr(feature = "types", ts(as = "Option<TextStyle>", optional = nullable))]pub text: Option<Option<TextStyle>>,}@@ -146,8 +128,6 @@ mod double_option {/// A media item as probed by the host, before the model mints its id.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct NewMedia {/// Absolute path on disk. Adding a path already in the bin is a no-op,@@ -181,8 +161,6 @@ pub struct NewMedia {/// notes here state the contract - clamps, tolerances, what gets minted -/// so a caller need not read `apply` to know what a command will do.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(tag = "op", rename_all = "camelCase", rename_all_fields = "camelCase")]pub enum Command {/// Imports a file into the bin, minting an "m" id. A path already@@ -256,12 +234,10 @@ pub enum Command {/// Seconds on the timeline; the editorial default when absent. Here/// so a caption run can land as one batch instead of add-then-trim/// per clip - a batch cannot trim a clip whose id it cannot know yet.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default)]duration: Option<f64>,/// Vertical placement as a frame-height fraction, clamped like/// SetClipTransform. Lower thirds are made of this.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default)]offset_y: Option<f64>,},@@ -331,17 +307,13 @@ pub enum Command {/// The clip to place. An unknown id is a no-op.clip_id: String,/// New scale, clamped into 0.05..=8.- #[cfg_attr(feature = "types", ts(optional))]scale: Option<f64>,/// New horizontal offset as a frame-width fraction, clamped to ±3.- #[cfg_attr(feature = "types", ts(optional))]offset_x: Option<f64>,/// New vertical offset as a frame-height fraction, clamped to ±3.- #[cfg_attr(feature = "types", ts(optional))]offset_y: Option<f64>,/// New rotation in degrees, wrapped into (-180, 180] so a full drag/// never accumulates turns.- #[cfg_attr(feature = "types", ts(optional))]rotation: Option<f64>,},/// Pulls a video clip's sound out into its own audio clip on a free@@ -435,14 +407,11 @@ pub enum Command {/// What a command produced, beyond the new state: the ids it minted, so the/// UI can select what it just created, and whether anything changed at all.#[derive(Clone, Default, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Outcome {/// The id of what the command created - a clip, track, timeline, or/// media item - or, for a batch, the last id minted inside it. Absent/// when nothing was created, including tolerated no-ops.- #[cfg_attr(feature = "types", ts(optional))]#[serde(skip_serializing_if = "Option::is_none")]pub created_id: Option<String>,/// Whether the command actually changed the project. A tolerated no-op -@@ -455,7 +424,7 @@ pub struct Outcome {/// Why a command was refused. Every variant renders through `Display` as the/// exact user-facing sentence the UI shows - byte for byte the strings-/// `desktop/src/lib/editor.ts` treats as the contract; the enum only gives+/// the window treats as the contract; the enum only gives/// those sentences names a host can match on.#[derive(Clone, PartialEq, Eq, Debug, thiserror::Error)]pub enum CommandError {diff --git a/engine/crates/concat-project/src/model.rs b/engine/crates/concat-project/src/model.rsindex bf006ce2..ed88a327 100644--- a/engine/crates/concat-project/src/model.rs+++ b/engine/crates/concat-project/src/model.rs@@ -20,8 +20,6 @@ use serde::{Deserialize, Serialize};/// What a piece of media is. A still is not a video with one frame: it has no/// intrinsic duration, so its length on a timeline is editorial.#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "lowercase")]pub enum MediaKind {/// Moving pictures, with or without embedded sound.@@ -35,8 +33,6 @@ pub enum MediaKind {/// What a clip can be - wider than [`MediaKind`] because a text clip has no/// file behind it; it *is* its own content.#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "lowercase")]pub enum ClipKind {/// A cut of a video media item.@@ -60,8 +56,6 @@ impl ClipKind {/// probe learned about it. The probe metadata is stored, not re-derived, so a/// document opens meaningfully even when the file itself is missing.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct MediaItem {/// Minted by the editor ("m1", "m2", ...) and never re-issued, even@@ -96,7 +90,6 @@ pub struct MediaItem {/// own file (`Command::FillSlot`). In a creator's own project the path is/// still real; only a packed template bundle blanks it. Skipped when/// false, so documents without templates stay byte-identical.- #[cfg_attr(feature = "types", ts(as = "Option<bool>", optional))]#[serde(default, skip_serializing_if = "is_false")]pub placeholder: bool,}@@ -107,8 +100,6 @@ fn is_false(value: &bool) -> bool {/// A lane. Deliberately untyped: any media goes on any track.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Track {/// Minted per timeline ("t5", or "T1".."T4" for the first timeline's@@ -127,8 +118,6 @@ pub struct Track {/// parameters were set. The catalogues themselves (and the FFmpeg strings/// they build) live in the UI today; the model only stores the numbers.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct AppliedFilter {/// Which catalogue entry this is, e.g. "sepia". Not minted; an id the@@ -139,7 +128,6 @@ pub struct AppliedFilter {#[serde(default)]pub params: BTreeMap<String, f64>,/// False bypasses without losing settings. Absent means enabled.- #[cfg_attr(feature = "types", ts(as = "Option<bool>", optional))]#[serde(default = "yes")]pub enabled: bool,}@@ -150,8 +138,6 @@ fn yes() -> bool {/// A transition on the cut into a clip.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Transition {/// Which transition from the catalogue, e.g. "cross-fade".@@ -163,8 +149,6 @@ pub struct Transition {/// How a title's lines sit within their block. The block itself is placed by/// the clip's transform, so this only matters for multi-line text.#[derive(Clone, Copy, PartialEq, Eq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "lowercase")]pub enum TextAlign {/// Lines share a left edge.@@ -179,8 +163,6 @@ pub enum TextAlign {/// A title's styling. Sizes are fractions of the frame, so a title composed/// against 1080p lands correctly exported at 4K.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct TextStyle {/// The words themselves, newlines included. The clip's display name is@@ -245,8 +227,6 @@ impl Default for TextStyle {/// timing, mix, transform, and effects. Everything an edit decision touches/// lives here, which is why most commands are clip commands.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Clip {/// Minted by the editor ("c1", "c2", ...); how every command names its@@ -298,19 +278,15 @@ pub struct Clip {#[serde(default)]pub video_effects: Vec<AppliedFilter>,/// True when a video clip's embedded audio is detached out of it.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default, skip_serializing_if = "Option::is_none")]pub muted: Option<bool>,/// On a detached audio clip: the video clip the sound came from.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default, skip_serializing_if = "Option::is_none")]pub detached_from: Option<String>,/// The transition on the cut into this clip, if any.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default, skip_serializing_if = "Option::is_none")]pub transition_in: Option<Transition>,/// The overlay, when this is a text clip.- #[cfg_attr(feature = "types", ts(optional))]#[serde(default, skip_serializing_if = "Option::is_none")]pub text: Option<TextStyle>,}@@ -320,8 +296,6 @@ pub struct Clip {/// operations could stay ignorant of timelines. Here every operation takes/// the project and works on whichever timeline is active.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Timeline {/// Minted by the editor ("tl2", ...), except the founding "TL1".@@ -338,8 +312,6 @@ pub struct Timeline {/// A font the user added from disk.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct CustomFont {/// The family name titles refer to; removal leaves referring clips@@ -353,8 +325,6 @@ pub struct CustomFont {/// The edit: everything the document stores except the app-level settings/// (name, output format) that the host manages around it.#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]-#[cfg_attr(feature = "types", derive(ts_rs::TS))]-#[cfg_attr(feature = "types", ts(export))]#[serde(rename_all = "camelCase")]pub struct Project {/// The bin: every imported file, shared by all timelines.diff --git a/engine/crates/concat/src/main.rs b/engine/crates/concat/src/main.rsindex 285eb1db..234839ba 100644--- a/engine/crates/concat/src/main.rs+++ b/engine/crates/concat/src/main.rs@@ -161,7 +161,7 @@ fn main() -> Result<(), slint::PlatformError> {app.set_languages(ModelRc::from(Rc::new(VecModel::from(LANGUAGES.iter()- .map(|(label, _)| SharedString::from(*label))+ .map(|label| SharedString::from(*label)).collect::<Vec<_>>(),))));@@ -784,7 +784,9 @@ fn main() -> Result<(), slint::PlatformError> {state.prefs.save(&state.host.dirs);}));app.on_settings_transcribe_language_changed(on_window!(|state, index: i32| {- state.settings.transcribe_language = index.max(0).min(LANGUAGES.len() as i32 - 1);+ state.settings.transcribe_language = index+ .max(0)+ .min(studio::TRANSCRIBE_LANGUAGES.len() as i32 - 1);state.prefs.transcribe_language = Some(state.settings.transcribe_language);state.prefs.save(&state.host.dirs);}));diff --git a/engine/crates/concat/src/studio.rs b/engine/crates/concat/src/studio.rsindex c6476712..e2973175 100644--- a/engine/crates/concat/src/studio.rs+++ b/engine/crates/concat/src/studio.rs@@ -103,22 +103,13 @@ pub const START_RATES: [(&str, i64, i64); 5] = [("60", 60, 1),];-/// The transcriber's languages: what Settings lists, and the whisper code-/// each row means.-pub const LANGUAGES: [(&str, &str); 12] = [- ("Auto-detect", "auto"),- ("English", "en"),- ("中文", "zh"),- ("Español", "es"),- ("Français", "fr"),- ("Deutsch", "de"),- ("日本語", "ja"),- ("한국어", "ko"),- ("Português", "pt"),- ("Русский", "ru"),- ("Italiano", "it"),- ("हिन्दी", "hi"),-];+/// The interface's languages, as Settings > General lists them. One, until+/// the `.slint` tree's strings are wrapped for translation.+pub const LANGUAGES: [&str; 1] = ["English"];++/// The transcriber's languages: the rows of the Auto / English / Chinese+/// control in Settings > Transcriber, and the whisper code each means.+pub const TRANSCRIBE_LANGUAGES: [&str; 3] = ["auto", "en", "zh"];/// The default Kokoro speaker: `af_heart`.const DEFAULT_VOICE: i32 = 3;@@ -394,6 +385,9 @@ pub struct Studio {pub preview: slint::Image,preview_busy: bool,preview_wanted: bool,+ /// Said once per session: a monitor that cannot decode says so, and+ /// then stops repeating itself.+ preview_failed: bool,// ── the sheets and menus ──pub export: ExportState,@@ -510,6 +504,7 @@ impl Studio {preview: slint::Image::default(),preview_busy: false,preview_wanted: false,+ preview_failed: false,export: ExportState::default(),settings: SettingsState::default(),transcribers: Vec::new(),@@ -861,11 +856,21 @@ impl Studio {},|studio, _, _, result| {studio.preview_busy = false;- if let Ok((bytes, width, height)) = result {- let buffer = slint::SharedPixelBuffer::<slint::Rgba8Pixel>::clone_from_slice(- &bytes, width, height,- );- studio.preview = slint::Image::from_rgba8(buffer);+ match result {+ Ok((bytes, width, height)) => {+ let buffer =+ slint::SharedPixelBuffer::<slint::Rgba8Pixel>::clone_from_slice(+ &bytes, width, height,+ );+ studio.preview = slint::Image::from_rgba8(buffer);+ }+ Err(error) => {+ eprintln!("concat: preview: {error}");+ if !studio.preview_failed {+ studio.preview_failed = true;+ studio.notify(&format!("Preview failed: {error}"), true);+ }+ }}if studio.preview_wanted {studio.request_preview();@@ -1888,6 +1893,7 @@ impl Studio {self.playhead = 0.0;self.scroll_left = 0.0;self.on_start = false;+ self.preview_failed = false;self.start.busy = false;self.start.error.clear();self.recents = projects::list(&self.host.dirs.config);@@ -2267,9 +2273,10 @@ impl Studio {}fn language_code(&self) -> &'static str {- LANGUAGES+ TRANSCRIBE_LANGUAGES.get(self.settings.transcribe_language.max(0) as usize)- .map_or("auto", |(_, code)| code)+ .copied()+ .unwrap_or("auto")}/// Auto captions for the selected clip: the transcription runs on adiff --git a/engine/crates/concat/ui/inspector/clip-inspector.slint b/engine/crates/concat/ui/inspector/clip-inspector.slintindex 1ed3372f..48998744 100644--- a/engine/crates/concat/ui/inspector/clip-inspector.slint+++ b/engine/crates/concat/ui/inspector/clip-inspector.slint@@ -204,6 +204,10 @@ export component PresetStack inherits VerticalLayout {}}+ // Air between the field and the strip under it: two rows butted+ // together read as one control, and they are not.+ Rectangle { height: 8px; }+Row {SegmentedControl {options: root.group-labels;@@ -211,6 +215,8 @@ export component PresetStack inherits VerticalLayout {}}+ Rectangle { height: 4px; }+VerticalLayout {padding-left: Theme.pad;padding-right: Theme.pad;diff --git a/flake.nix b/flake.nixdeleted file mode 100644index ccceefb5..00000000--- a/flake.nix+++ /dev/null@@ -1,141 +0,0 @@-{- # Nix support (#7). Packages the deprecated Tauri app in desktop/, which no- # longer builds against the engine (the engine links FFmpeg now and the- # host's Rust moved into engine/crates). To be repointed at the Slint- # window, engine/crates/concat, once that is packaged.- #- # Linux only on purpose: Tauri under Nix on macOS means- # Apple SDK juggling, and the people asking for a flake run Linux.- #- # nix build .#concat the app, with ffmpeg and whisper-cli wired in- # nix develop a shell with everything `npm run app` needs- description = "Concat - free and open source video editor";-- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";-- outputs =- { self, nixpkgs }:- let- systems = [- "x86_64-linux"- "aarch64-linux"- ];- eachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});- in- {- packages = eachSystem (pkgs: rec {- default = concat;- concat = pkgs.rustPlatform.buildRustPackage rec {- pname = "concat";- version = "0.2.0";- src = self;-- # No vendor hashes to keep in sync: cargo dependencies come straight- # from the Cargo.lock, npm dependencies straight from the integrity- # fields of package-lock.json.- cargoRoot = "desktop/src-tauri";- buildAndTestSubdir = cargoRoot;- cargoLock.lockFile = ./desktop/src-tauri/Cargo.lock;-- npmRoot = "desktop";- npmDeps = pkgs.importNpmLock { npmRoot = ./desktop; };-- # The release guard in build.rs insists on staged ffmpeg/whisper- # binaries because a Finder/desktop launch has no PATH to fall back- # on. The Nix wrapper guarantees them on PATH, so this build opts- # out of bundling explicitly.- env.CONCAT_SYSTEM_TOOLS = "1";-- nativeBuildInputs = with pkgs; [- cargo-tauri.hook- nodejs- importNpmLock.npmConfigHook- pkg-config- wrapGAppsHook3- copyDesktopItems- ];-- buildInputs = with pkgs; [- openssl- webkitgtk_4_1- gtk3- libsoup_3- # TLS for the webview and for whisper model downloads.- glib-networking- # cpal's ALSA backend, for engine audio playback.- alsa-lib- ];-- # The app looks for ffmpeg/ffprobe and whisper-cli beside itself- # first and falls back to PATH (engine `binaries.rs`, desktop- # `transcribe.rs`), so the Nix build bundles nothing and puts- # nixpkgs' copies on the wrapper's PATH instead. The library path- # is for the wgpu compositor, which loads Vulkan (or GL) at run- # time rather than linking it.- preFixup = ''- gappsWrapperArgs+=(- --prefix PATH : ${- pkgs.lib.makeBinPath [- pkgs.ffmpeg- pkgs.whisper-cpp- ]- }- --prefix LD_LIBRARY_PATH : ${- pkgs.lib.makeLibraryPath [- pkgs.vulkan-loader- pkgs.libGL- ]- }- )- '';-- desktopItems = [- (pkgs.makeDesktopItem {- name = "concat";- exec = "concat-desktop";- icon = "concat";- desktopName = "Concat";- comment = "Free and open source video editor";- categories = [- "AudioVideo"- "AudioVideoEditing"- ];- })- ];-- postInstall = ''- install -Dm644 desktop/src-tauri/icons/128x128.png \- $out/share/icons/hicolor/128x128/apps/concat.png- '';-- meta = {- description = "Free and open source video editor";- homepage = "https://github.com/jub0t/Concat";- license = pkgs.lib.licenses.agpl3Plus;- platforms = systems;- mainProgram = "concat-desktop";- };- };- });-- devShells = eachSystem (pkgs: {- default = pkgs.mkShell {- inputsFrom = [ self.packages.${pkgs.system}.concat ];- packages = with pkgs; [- cargo- rustc- rustfmt- clippy- cargo-tauri- ffmpeg- whisper-cpp- ];- # Same runtime loads as the wrapped app, for `npm run app`.- LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [- pkgs.vulkan-loader- pkgs.libGL- ];- };- });- };-}diff --git a/scripts/editor-preview-sop.md b/scripts/editor-preview-sop.mdindex 5d8495ce..01e36516 100644--- a/scripts/editor-preview-sop.md+++ b/scripts/editor-preview-sop.md@@ -8,7 +8,7 @@ preview pane.## Steps-1. **Run the app** — `cd desktop && npm run app`. Stage something presentable:+1. **Run the app** — `cd engine && cargo run --release -p concat`. Stage something presentable:a clip in the media bin, a couple of tracks on the timeline, the playheadsomewhere interesting. Avoid personal file names in the media panel.diff --git a/scripts/generate-effect-previews.mjs b/scripts/generate-effect-previews.mjsdeleted file mode 100644index ef27b3d5..00000000--- a/scripts/generate-effect-previews.mjs+++ /dev/null@@ -1,89 +0,0 @@-#!/usr/bin/env node-// SPDX-License-Identifier: AGPL-3.0-or-later-// SPDX-FileCopyrightText: 2026 Jareer and Concat contributors--// Renders one preview thumbnail per video effect by running each effect's-// real FFmpeg chain - the same `buildEffectChain` the exporter uses, at its-// default parameters - over one source image. The catalogue then shows what-// an effect actually does instead of a gradient standing in for it.-//-// node scripts/generate-effect-previews.mjs <image> [outDir]-//-// Defaults land in desktop/src/assets/effect-previews/<effect-id>.webp,-// where the media bin picks them up by id (Vite globs the directory).-// Re-run whenever the source image or the effect list changes.-//-// The image is scaled to tile size *before* the chain runs, so pixel-sized-// effects (blur radii, pixelation) read at preview scale instead of-// vanishing; WebP at quality 80 keeps the whole set a few kilobytes each.--import { createRequire } from "node:module";-import { execFileSync } from "node:child_process";-import { mkdirSync, mkdtempSync, rmSync } from "node:fs";-import { tmpdir } from "node:os";-import path from "node:path";-import { pathToFileURL, fileURLToPath } from "node:url";--const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)));-const [, , image, outDirArg] = process.argv;-if (!image) {- console.error("usage: generate-effect-previews.mjs <image> [outDir]");- process.exit(2);-}-const outDir = outDirArg ?? path.join(root, "desktop/src/assets/effect-previews");-const TILE = { width: 320, height: 180 };--// The effect catalogue is TypeScript inside the app; esbuild (already there-// as Vite's own dependency) bundles it into an importable module so this-// script reads the same source of truth the app ships.-const require = createRequire(path.join(root, "desktop/package.json"));-const esbuild = require("esbuild");-const scratch = mkdtempSync(path.join(tmpdir(), "concat-previews-"));-const bundled = path.join(scratch, "effects.mjs");-await esbuild.build({- entryPoints: [path.join(root, "desktop/src/lib/effects.ts")],- bundle: true,- format: "esm",- outfile: bundled,-});-const { EFFECTS, buildEffectChain } = await import(pathToFileURL(bundled));--// WebP when this ffmpeg can encode it, JPEG otherwise - at 320x180 the-// difference is a few kilobytes per tile, not worth failing over.-const encoders = execFileSync("ffmpeg", ["-hide_banner", "-encoders"], {- stdio: ["ignore", "pipe", "ignore"],-}).toString();-const format = encoders.includes("libwebp")- ? { args: ["-c:v", "libwebp", "-quality", "80"], extension: "webp" }- : { args: ["-c:v", "mjpeg", "-q:v", "4"], extension: "jpg" };--mkdirSync(outDir, { recursive: true });-const failed = [];-for (const effect of EFFECTS) {- // Default parameters, position 0 in the chain - a fresh apply.- const chain = buildEffectChain([{ id: effect.id, params: {} }]);- const fit =- `scale=${TILE.width}:${TILE.height}:force_original_aspect_ratio=increase,` +- `crop=${TILE.width}:${TILE.height}`;- const filter = chain ? `${fit},${chain}` : fit;- const out = path.join(outDir, `${effect.id}.${format.extension}`);- try {- execFileSync(- "ffmpeg",- ["-y", "-v", "error", "-i", image, "-vf", filter,- "-frames:v", "1", ...format.args, out],- { stdio: ["ignore", "ignore", "pipe"] },- );- console.log(` ${effect.id}.${format.extension}`);- } catch (error) {- failed.push(effect.id);- console.error(`FAILED ${effect.id}: ${error.stderr?.toString().trim() || error.message}`);- }-}-rmSync(scratch, { recursive: true, force: true });--console.log(`\n${EFFECTS.length - failed.length}/${EFFECTS.length} previews written to ${outDir}`);-if (failed.length > 0) {- console.error(`failed: ${failed.join(", ")}`);- process.exit(1);-}diff --git a/test/README.md b/test/README.mdindex 1760ed1f..4189f86c 100644--- a/test/README.md+++ b/test/README.md@@ -43,7 +43,7 @@ file (`face_detection_yunet_*.onnx` from the OpenCV zoo) beside it or via## Findings worth keeping-- The `sweet` chain graduated: `desktop/src/lib/filters.ts` and+- The `sweet` chain graduated: `concat-export`'s catalogue,`concat-export::chains` carry it verbatim.- `enhance_voice.py`'s stage *order* is the finding: surgical repairs(clicks, plosives) must run before the neural pass - networks trained on