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
fix(effects): a package stands in only for one that is gone
Jareerab1c482c4d45
diff --git a/src/crates/concat-effects/src/catalogue.rs b/src/crates/concat-effects/src/catalogue.rsindex 5222e72d..66912484 100644--- a/src/crates/concat-effects/src/catalogue.rs+++ b/src/crates/concat-effects/src/catalogue.rs@@ -12,7 +12,7 @@ use std::collections::{BTreeMap, HashMap};use std::path::{Path, PathBuf};use std::sync::{Arc, RwLock};-use concat_project::model::AppliedFilter;+use concat_project::model::{AppliedFilter, ParamKey};use serde::Deserialize;use crate::Error;@@ -490,6 +490,18 @@ impl Package {self.pass(&BTreeMap::new(), None)}+ /// The passes an install trial runs: the shader at its defaults, then+ /// with every knob at its least and at its most. A loop counted by a+ /// knob costs nothing at a default of one and hangs the device at the+ /// slider's end, so the defaults alone prove little (audit 2026-10-04,+ /// #6). Empty for a package with no shader.+ pub fn trial_passes(&self) -> Vec<ShaderPass> {+ [At::Default, At::Min, At::Max]+ .into_iter()+ .filter_map(|at| self.pass(&self.params_at(at), None))+ .collect()+ }+/// The pass this package's shader makes with the parameters in `set`,/// or None for a package with no shader. Keys the manifest does not/// declare are dropped, but for a filter's intensity, which mixes the@@ -551,9 +563,11 @@ impl Package {/// `link`, a link to a retired package this one stands in for (its/// `[[replaces]]`), made a link to this one: its knobs worked out from- /// the old ones and held to this package's ranges, its keys dropped - a- /// chain's knobs could not carry them. `None` when this package does- /// not replace the link's.+ /// the old ones and held to this package's ranges. A new knob whose+ /// expression reads one keyed old knob rides too, each of the old keys+ /// carried through the expression; one that reads two keyed knobs+ /// holds, since their keys need not fall at the same moments. `None`+ /// when this package does not replace the link's.pub fn replacing(&self, link: &AppliedFilter) -> Option<AppliedFilter> {let replaced = self.manifest@@ -568,27 +582,59 @@ impl Package {(knob.clone(), Value::Float(value))}).collect();- let params = replaced- .knobs- .iter()- .filter_map(|(knob, source)| {- let value = match Expr::parse(source).and_then(|expr| expr.eval(&old)).ok()? {- Value::Int(value) => value as f64,- Value::Float(value) => value,- Value::Text(_) => return None,- };- let held = match self.manifest.params.iter().find(|param| ¶m.key == knob) {- Some(param) => value.clamp(param.min, param.max),- None => value,- };- Some((knob.clone(), held))+ let held = |knob: &str, value: Value| -> Option<f64> {+ let value = match value {+ Value::Int(value) => value as f64,+ Value::Float(value) => value,+ Value::Text(_) => return None,+ };+ Some(match self.manifest.params.iter().find(|param| param.key == knob) {+ Some(param) => value.clamp(param.min, param.max),+ None => value,})- .collect();+ };+ let mut params = BTreeMap::new();+ let mut keys = BTreeMap::new();+ for (knob, source) in &replaced.knobs {+ let Ok(expr) = Expr::parse(source) else {+ continue;+ };+ let Some(value) = expr.eval(&old).ok().and_then(|value| held(knob, value)) else {+ continue;+ };+ params.insert(knob.clone(), value);+ let mut read = Vec::new();+ expr.names(&mut read);+ read.sort();+ read.dedup();+ let keyed: Vec<&String> = read+ .iter()+ .filter(|name| link.keys.get(*name).is_some_and(|run| !run.is_empty()))+ .collect();+ if let [name] = keyed.as_slice() {+ let run: Vec<ParamKey> = link.keys[*name]+ .iter()+ .filter_map(|key| {+ let mut at = old.clone();+ at.insert((*name).clone(), Value::Float(key.value));+ let value = expr.eval(&at).ok().and_then(|value| held(knob, value))?;+ Some(ParamKey {+ at: key.at,+ value,+ ease: key.ease,+ })+ })+ .collect();+ if !run.is_empty() {+ keys.insert(knob.clone(), run);+ }+ }+ }Some(AppliedFilter {id: self.id().to_owned(),params,enabled: link.enabled,- keys: BTreeMap::new(),+ keys,})}@@ -982,16 +1028,52 @@ impl Catalogue {catalogue}- /// Adds a package. Its id and aliases must be new to the catalogue.+ /// Adds a package. Its id and aliases must be new to the catalogue,+ /// and so must every package its `[[replaces]]` names: a package+ /// stands in only for one that is gone. Without that, a shared package+ /// declaring it replaces a built-in would rewrite every link to the+ /// built-in as each project opened (audit 2026-10-04, #2). Nor may a+ /// package take a name another package has retired, or retire one+ /// another package already stands in for.pub fn add(&mut self, package: Package) -> Result<(), Error> {+ let refuse = |message: String| Error::Invalid {+ id: package.id().to_owned(),+ message,+ };let mut names = vec![package.id().to_owned()];names.extend(package.manifest.effect.aliases.iter().cloned());for name in &names {if self.by_id.contains_key(name) {- return Err(Error::Invalid {- id: package.id().to_owned(),- message: format!("`{name}` is already taken by another package"),- });+ return Err(refuse(format!("`{name}` is already taken by another package")));+ }+ if let Some(other) = self.packages.iter().find(|other| {+ other.manifest.replaces.iter().any(|replaced| replaced.names(name))+ }) {+ return Err(refuse(format!(+ "`{name}` is a retired package `{}` stands in for",+ other.id()+ )));+ }+ }+ for replaced in &package.manifest.replaces {+ let bare = replaced.id.strip_prefix("concat.").unwrap_or(&replaced.id);+ if let Some(&index) = self.by_id.get(&replaced.id).or_else(|| self.by_id.get(bare)) {+ return Err(refuse(format!(+ "it replaces `{}`, which is installed as `{}`",+ replaced.id,+ self.packages[index].id()+ )));+ }+ if let Some(other) = self.packages.iter().find(|other| {+ other.manifest.replaces.iter().any(|theirs| {+ theirs.names(&replaced.id) || replaced.names(&theirs.id)+ })+ }) {+ return Err(refuse(format!(+ "`{}` already stands in for `{}`",+ other.id(),+ replaced.id+ )));}}let index = self.packages.len();@@ -1048,6 +1130,11 @@ impl Catalogue {/// `link` read as a link to the package that stands in for its retired/// one, if any does (see `Package::replacing`). Returns whether it was.pub fn upgrade(&self, link: &mut AppliedFilter) -> bool {+ // A link to a package that is here is never rewritten, whatever+ // claims to replace it.+ if self.get(&link.id).is_some() {+ return false;+ }match self.packages().find_map(|package| package.replacing(link)) {Some(replaced) => {*link = replaced;@@ -1179,6 +1266,7 @@ impl Catalogue {#[cfg(test)]mod tests {use super::*;+ use concat_project::model::KeyEase;/// A link to a retired key or blur opens as its stand-in, its knobs/// carried over as the `[[replaces]]` table says - the screen's colour,@@ -1215,6 +1303,76 @@ mod tests {assert_eq!(kept.id, "concat.sepia");}+ /// A package built from sources standing in for `replaces`: a lift+ /// whose stops come from the old link's `level`.+ fn stand_in(id: &str, replaces: &str) -> Result<Package, Error> {+ let manifest = format!(+ "format = 2\n[effect]\nid = \"{id}\"\nname = \"Lift\"\nkind = \"effect\"\n\+ [[param]]\nkey = \"stops\"\nlabel = \"Stops\"\nmin = -2\nmax = 2\n\+ [wgsl]\nentry = \"effect.wgsl\"\n\+ [[replaces]]\nid = \"{replaces}\"\ndefaults = {{ level = 0 }}\nknobs = {{ stops = \"level / 50\" }}\n"+ );+ let probe = "[[probe]]\nname = \"up\"\nparams = { stops = 1 }\ninput = [0.25, 0.25, 0.25, 1]\nexpect = [0.5, 0.5, 0.5, 1]\n";+ let shader = "struct Params { stops: f32 }\nfn effect(uv: vec2<f32>) -> vec4<f32> { let c = sample(uv); return vec4<f32>(exposure(c.rgb, params.stops), c.a); }";+ Package::from_sources(&manifest, Some(probe), Some(shader))+ }++ /// A package may stand in only for one that is gone: one naming a+ /// built-in, under either spelling, or a retired id another package+ /// already stands in for, is refused at install; and a link to a+ /// package that is here is never rewritten (audit 2026-10-04, #2).+ #[test]+ fn a_package_cannot_take_over_one_that_is_installed() {+ let mut catalogue = Catalogue::compiled_in();+ for (id, replaces) in [+ ("evil.glow", "concat.glow"),+ ("evil.glow-bare", "glow"),+ ("evil.green", "concat.green-screen"),+ ] {+ let error = catalogue+ .add(stand_in(id, replaces).expect("loads"))+ .expect_err(replaces)+ .to_string();+ assert!(error.contains(replaces) || error.contains("stands in"), "{error}");+ }+ let error = catalogue+ .add(stand_in("concat.box-blur", "nothing.at-all").expect("loads"))+ .expect_err("a retired name")+ .to_string();+ assert!(error.contains("retired"), "{error}");+ catalogue+ .add(stand_in("a.lift", "a.old-lift").expect("loads"))+ .expect("one that is gone may be stood in for");++ let mut glow = AppliedFilter::new("concat.glow");+ assert!(!catalogue.upgrade(&mut glow));+ assert_eq!(glow.id, "concat.glow");+ let mut old = AppliedFilter::new("a.old-lift");+ assert!(catalogue.upgrade(&mut old));+ assert_eq!(old.id, "a.lift");+ }++ /// A new knob that reads one keyed old knob rides with it, each key+ /// carried through the expression at its own moment and ease.+ #[test]+ fn a_stand_in_carries_the_keys_of_the_knob_it_reads() {+ let package = stand_in("a.lift", "a.old-lift").expect("loads");+ let mut link = AppliedFilter::new("a.old-lift");+ link.params.insert("level".into(), 25.0);+ link.keys.insert(+ "level".into(),+ vec![+ ParamKey { at: 0.0, value: 0.0, ease: KeyEase::LINEAR },+ ParamKey { at: 0.5, value: 50.0, ease: KeyEase::LINEAR },+ ParamKey { at: 1.0, value: 500.0, ease: KeyEase::LINEAR },+ ],+ );+ let upgraded = package.replacing(&link).expect("replaces it");+ assert_eq!(upgraded.params["stops"], 0.5);+ let run: Vec<(f64, f64)> = upgraded.keys["stops"].iter().map(|k| (k.at, k.value)).collect();+ assert_eq!(run, vec![(0.0, 0.0), (0.5, 1.0), (1.0, 2.0)], "held to the new most");+ }+/// A chain reads the frame and its own table and no other file.#[test]fn a_chain_that_names_a_file_is_refused() {diff --git a/src/crates/concat-host/src/preview.rs b/src/crates/concat-host/src/preview.rsindex 74f95fff..50837be8 100644--- a/src/crates/concat-host/src/preview.rs+++ b/src/crates/concat-host/src/preview.rs@@ -109,22 +109,6 @@ impl Monitor {}}- /// Runs `pass` once on the window's device over a picture `side`- /// pixels square, against `timeout`: what a custom package's shader- /// survives before the package is offered. None without a GPU, where- /// there is nothing to run it on.- #[cfg(feature = "gpu")]- pub fn trial(- &self,- pass: &concat_core::shader::ShaderPass,- side: u32,- timeout: std::time::Duration,- ) -> Option<Result<(), String>> {- let gpu = self.gpu.as_ref()?;- let mut gpu = gpu.lock().unwrap_or_else(|poisoned| poisoned.into_inner());- Some(gpu.trial_at(pass, side, timeout))- }-/// A compositor of its own on the window's device, for work off the/// monitor's thread - the effect cards. None without a GPU here.#[cfg(feature = "gpu")]diff --git a/src/crates/concat-host/src/session.rs b/src/crates/concat-host/src/session.rsindex 545b50cf..eeb9c552 100644--- a/src/crates/concat-host/src/session.rs+++ b/src/crates/concat-host/src/session.rs@@ -23,6 +23,9 @@ pub struct Session {path: String,settings: DocumentSettings,editor: Editor,+ /// The links to retired effects the open rewrote, old id and new, each+ /// pair once: what the window names as the project opens.+ upgraded: Vec<(String, String)>,}/// What every mutating call returns: the authoritative state plus history@@ -102,11 +105,21 @@ impl Session {// in for it, its knobs carried over (`[[replaces]]`).let mut editor = editor;let catalogue = concat_effects::Catalogue::builtin();- editor.upgrade_links(|link| catalogue.upgrade(link));+ let mut upgraded: Vec<(String, String)> = Vec::new();+ editor.upgrade_links(|link| {+ let old = link.id.clone();+ let changed = catalogue.upgrade(link);+ let pair = (old, link.id.clone());+ if changed && !upgraded.contains(&pair) {+ upgraded.push(pair);+ }+ changed+ });Ok(Session {path: path.to_owned(),settings,editor,+ upgraded,})}@@ -124,6 +137,13 @@ impl Session {)}+ /// The links to retired effects this open read as links to the+ /// effects that stand in for them, old id and new. Empty when the+ /// document named none; the change is the document's once it is saved.+ pub fn upgraded(&self) -> &[(String, String)] {+ &self.upgraded+ }+/// The project folder.pub fn path(&self) -> &str {&self.pathdiff --git a/src/crates/concat-host/src/templates.rs b/src/crates/concat-host/src/templates.rsindex f9014c90..fd1cc1a0 100644--- a/src/crates/concat-host/src/templates.rs+++ b/src/crates/concat-host/src/templates.rs@@ -322,6 +322,10 @@ pub fn instantiate(let mut editor = Editor::from_document(&document).ok_or("this template holds a document this build cannot read")?;+ // A template saved before an effect was retired opens the way a+ // project does: its links read as links to the stand-ins.+ let catalogue = concat_effects::Catalogue::builtin();+ editor.upgrade_links(|link| catalogue.upgrade(link));if !fills.is_empty() {editor.apply(Command::Batch {diff --git a/src/crates/concat/locales/de.json b/src/crates/concat/locales/de.jsonindex ece84bfc..5ff5b3dd 100644--- a/src/crates/concat/locales/de.json+++ b/src/crates/concat/locales/de.json@@ -909,6 +909,7 @@"studio.redo": "Wiederholen","studio.removeBackground": "Hintergrund entfernen: {0}","studio.retiredEffects": "Dieses Projekt nutzt Effekte, die diese Version nicht mehr hat: {0}. Sie bleiben in den Clips, als nicht installiert markiert.",+ "studio.upgradedEffects": "Einige Effekte in diesem Projekt öffnen sich als ihre Nachfolger: {0}. Speichere, um die Änderung zu behalten.","studio.reverse": "Rückwärts: {0}","studio.reverseAlreadyWorkOne": "Rückwärts läuft bereits; ein Clip nach dem anderen","studio.reversedClipNowShows": "Umgekehrt; der Clip zeigt jetzt die Kopie",diff --git a/src/crates/concat/locales/en.json b/src/crates/concat/locales/en.jsonindex 2b775501..9d909269 100644--- a/src/crates/concat/locales/en.json+++ b/src/crates/concat/locales/en.json@@ -909,6 +909,7 @@"studio.redo": "Redo","studio.removeBackground": "Remove background: {0}","studio.retiredEffects": "This project uses effects this version no longer has: {0}. They stay in its clips, marked not installed.",+ "studio.upgradedEffects": "Some effects in this project open as the ones that replace them: {0}. Save to keep the change.","studio.reverse": "Reverse: {0}","studio.reverseAlreadyWorkOne": "Reverse is already at work; one clip at a time","studio.reversedClipNowShows": "Reversed; the clip now shows the copy",diff --git a/src/crates/concat/locales/es.json b/src/crates/concat/locales/es.jsonindex 9e17d5fc..202d2e9f 100644--- a/src/crates/concat/locales/es.json+++ b/src/crates/concat/locales/es.json@@ -909,6 +909,7 @@"studio.redo": "Rehacer","studio.removeBackground": "Quitar fondo: {0}","studio.retiredEffects": "Este proyecto usa efectos que esta versión ya no tiene: {0}. Siguen en sus clips, marcados como no instalados.",+ "studio.upgradedEffects": "Algunos efectos de este proyecto se abren como los que los sustituyen: {0}. Guarda para conservar el cambio.","studio.reverse": "Invertir: {0}","studio.reverseAlreadyWorkOne": "Invertir ya está en marcha; un clip a la vez","studio.reversedClipNowShows": "Invertido; el clip ahora muestra la copia",diff --git a/src/crates/concat/locales/fa.json b/src/crates/concat/locales/fa.jsonindex 67a6e38c..cb2f8f61 100644--- a/src/crates/concat/locales/fa.json+++ b/src/crates/concat/locales/fa.json@@ -909,6 +909,7 @@"studio.redo": "انجام مجدد","studio.removeBackground": "حذف پسزمینه: {0}","studio.retiredEffects": "این پروژه از افکتهایی استفاده میکند که این نسخه دیگر ندارد: {0}. آنها در کلیپها میمانند و «نصبنشده» علامت میخورند.",+ "studio.upgradedEffects": "برخی افکتهای این پروژه بهصورت افکتهای جایگزینشان باز میشوند: {0}. برای نگهداشتن این تغییر ذخیره کنید.","studio.reverse": "معکوس: {0}","studio.reverseAlreadyWorkOne": "معکوسکردن در حال انجام است؛ هر بار یک کلیپ","studio.reversedClipNowShows": "معکوس شد؛ کلیپ اکنون نسخهٔ کپی را نشان میدهد",diff --git a/src/crates/concat/locales/fr.json b/src/crates/concat/locales/fr.jsonindex 2041c5fd..585e63f0 100644--- a/src/crates/concat/locales/fr.json+++ b/src/crates/concat/locales/fr.json@@ -909,6 +909,7 @@"studio.redo": "Rétablir","studio.removeBackground": "Retirer l'arrière-plan : {0}","studio.retiredEffects": "Ce projet utilise des effets que cette version n'a plus : {0}. Ils restent dans ses clips, marqués comme non installés.",+ "studio.upgradedEffects": "Certains effets de ce projet s'ouvrent sous la forme de ceux qui les remplacent : {0}. Enregistrez pour conserver le changement.","studio.reverse": "Inversion : {0}","studio.reverseAlreadyWorkOne": "Une inversion est déjà en cours ; un clip à la fois","studio.reversedClipNowShows": "Inversé ; le clip affiche désormais la copie",diff --git a/src/crates/concat/locales/hr.json b/src/crates/concat/locales/hr.jsonindex 02d0f742..baa7b78f 100644--- a/src/crates/concat/locales/hr.json+++ b/src/crates/concat/locales/hr.json@@ -909,6 +909,7 @@"studio.redo": "Ponovi","studio.removeBackground": "Ukloni pozadinu: {0}","studio.retiredEffects": "Ovaj projekt koristi efekte koje ova verzija više nema: {0}. Ostaju u isječcima, označeni kao neinstalirani.",+ "studio.upgradedEffects": "Neki efekti u ovom projektu otvaraju se kao efekti koji ih zamjenjuju: {0}. Spremi da zadržiš promjenu.","studio.reverse": "Obrtanje: {0}","studio.reverseAlreadyWorkOne": "Obrtanje je već u tijeku; jedan po jedan klip","studio.reversedClipNowShows": "Obrnuto; klip sada prikazuje kopiju",diff --git a/src/crates/concat/locales/it.json b/src/crates/concat/locales/it.jsonindex f9fc3d2e..0d5847df 100644--- a/src/crates/concat/locales/it.json+++ b/src/crates/concat/locales/it.json@@ -909,6 +909,7 @@"studio.redo": "Ripeti","studio.removeBackground": "Rimuovi sfondo: {0}","studio.retiredEffects": "Questo progetto usa effetti che questa versione non ha più: {0}. Restano nelle sue clip, segnati come non installati.",+ "studio.upgradedEffects": "Alcuni effetti di questo progetto si aprono come quelli che li sostituiscono: {0}. Salva per mantenere la modifica.","studio.reverse": "Inversione: {0}","studio.reverseAlreadyWorkOne": "Un'inversione è già in corso; una clip alla volta","studio.reversedClipNowShows": "Invertita; la clip ora mostra la copia",diff --git a/src/crates/concat/locales/ja.json b/src/crates/concat/locales/ja.jsonindex 0d981237..1f841133 100644--- a/src/crates/concat/locales/ja.json+++ b/src/crates/concat/locales/ja.json@@ -909,6 +909,7 @@"studio.redo": "やり直す","studio.removeBackground": "背景を削除:{0}","studio.retiredEffects": "このプロジェクトは、このバージョンにはもうないエフェクトを使っています: {0}。クリップには残り、未インストールと表示されます。",+ "studio.upgradedEffects": "このプロジェクトの一部のエフェクトは、後継のエフェクトとして開かれます: {0}。変更を残すには保存してください。","studio.reverse": "逆再生: {0}","studio.reverseAlreadyWorkOne": "逆再生の処理中です。一度に1クリップまで","studio.reversedClipNowShows": "逆再生になりました。クリップはコピーを表示しています",diff --git a/src/crates/concat/locales/ko.json b/src/crates/concat/locales/ko.jsonindex 5330949d..72f35ae6 100644--- a/src/crates/concat/locales/ko.json+++ b/src/crates/concat/locales/ko.json@@ -909,6 +909,7 @@"studio.redo": "다시 실행","studio.removeBackground": "배경 제거: {0}","studio.retiredEffects": "이 프로젝트는 이 버전에 더 이상 없는 효과를 사용합니다: {0}. 클립에는 남아 있으며 설치되지 않음으로 표시됩니다.",+ "studio.upgradedEffects": "이 프로젝트의 일부 효과는 이를 대체하는 효과로 열립니다: {0}. 변경 사항을 유지하려면 저장하세요.","studio.reverse": "역재생: {0}","studio.reverseAlreadyWorkOne": "역재생 처리가 이미 진행 중입니다. 한 번에 한 클립만","studio.reversedClipNowShows": "역재생 완료. 클립이 이제 복사본을 표시합니다",diff --git a/src/crates/concat/locales/pt-BR.json b/src/crates/concat/locales/pt-BR.jsonindex 2b88dc60..62aa18a9 100644--- a/src/crates/concat/locales/pt-BR.json+++ b/src/crates/concat/locales/pt-BR.json@@ -909,6 +909,7 @@"studio.redo": "Refazer","studio.removeBackground": "Remover fundo: {0}","studio.retiredEffects": "Este projeto usa efeitos que esta versão não tem mais: {0}. Eles continuam nos clipes, marcados como não instalados.",+ "studio.upgradedEffects": "Alguns efeitos deste projeto abrem como os que os substituem: {0}. Salve para manter a mudança.","studio.reverse": "Reverter: {0}","studio.reverseAlreadyWorkOne": "Reverter já está em andamento; um clipe por vez","studio.reversedClipNowShows": "Revertido; o clipe agora mostra a cópia",diff --git a/src/crates/concat/locales/ru.json b/src/crates/concat/locales/ru.jsonindex a1e4afdc..dddde29c 100644--- a/src/crates/concat/locales/ru.json+++ b/src/crates/concat/locales/ru.json@@ -909,6 +909,7 @@"studio.redo": "Повторить","studio.removeBackground": "Удалить фон: {0}","studio.retiredEffects": "Проект использует эффекты, которых в этой версии больше нет: {0}. Они остаются в клипах с пометкой «не установлен».",+ "studio.upgradedEffects": "Некоторые эффекты проекта открываются как заменившие их: {0}. Сохраните проект, чтобы оставить изменение.","studio.reverse": "Реверс: {0}","studio.reverseAlreadyWorkOne": "Реверс уже выполняется; по одному клипу за раз","studio.reversedClipNowShows": "Реверс готов; клип теперь показывает копию",diff --git a/src/crates/concat/locales/tr.json b/src/crates/concat/locales/tr.jsonindex 9b37391b..3239600f 100644--- a/src/crates/concat/locales/tr.json+++ b/src/crates/concat/locales/tr.json@@ -909,6 +909,7 @@"studio.redo": "Yinele","studio.removeBackground": "Arka planı kaldır: {0}","studio.retiredEffects": "Bu proje, bu sürümde artık bulunmayan efektler kullanıyor: {0}. Kliplerde kalırlar ve yüklü değil olarak işaretlenirler.",+ "studio.upgradedEffects": "Bu projedeki bazı efektler, yerlerini alan efektler olarak açılıyor: {0}. Değişikliği korumak için kaydedin.","studio.reverse": "Ters çevirme: {0}","studio.reverseAlreadyWorkOne": "Ters çevirme zaten sürüyor; her seferinde bir klip","studio.reversedClipNowShows": "Ters çevrildi; klip artık kopyayı gösteriyor",diff --git a/src/crates/concat/locales/zh-Hans.json b/src/crates/concat/locales/zh-Hans.jsonindex acf13914..e7ab2a0b 100644--- a/src/crates/concat/locales/zh-Hans.json+++ b/src/crates/concat/locales/zh-Hans.json@@ -909,6 +909,7 @@"studio.redo": "重做","studio.removeBackground": "移除背景:{0}","studio.retiredEffects": "此项目使用了本版本已不再提供的效果:{0}。它们仍保留在片段中,标记为未安装。",+ "studio.upgradedEffects": "此项目中的部分效果会以取代它们的效果打开:{0}。保存即可保留此更改。","studio.reverse": "倒放:{0}","studio.reverseAlreadyWorkOne": "倒放处理已在进行;一次一个片段","studio.reversedClipNowShows": "已倒放;片段现在显示副本",diff --git a/src/crates/concat/locales/zh-TW.json b/src/crates/concat/locales/zh-TW.jsonindex 59718ca4..5ab2e864 100644--- a/src/crates/concat/locales/zh-TW.json+++ b/src/crates/concat/locales/zh-TW.json@@ -909,6 +909,7 @@"studio.redo": "重做","studio.removeBackground": "移除背景:{0}","studio.retiredEffects": "此專案使用了本版本已不再提供的效果:{0}。它們仍保留在片段中,標示為未安裝。",+ "studio.upgradedEffects": "此專案中的部分效果會以取代它們的效果開啟:{0}。儲存即可保留這項變更。","studio.reverse": "倒轉:{0}","studio.reverseAlreadyWorkOne": "倒轉處理已在進行;一次一個片段","studio.reversedClipNowShows": "已倒轉;片段現在顯示副本",diff --git a/src/crates/concat/src/studio.rs b/src/crates/concat/src/studio.rsindex 901b7493..05e98c68 100644--- a/src/crates/concat/src/studio.rs+++ b/src/crates/concat/src/studio.rs@@ -1840,6 +1840,23 @@ fn retired_effects(project: &Project) -> Vec<String> {names}+/// Each rewritten link as "Old → New", the new one by its package's name.+fn upgraded_effects(pairs: &[(String, String)]) -> Vec<String> {+ let catalogue = Catalogue::builtin();+ pairs+ .iter()+ .map(|(old, new)| {+ let new = catalogue+ .get(new)+ .map(|package| {+ i18n::package_text(package.id(), "name", &package.manifest.effect.name)+ })+ .unwrap_or_else(|| label_of(new));+ format!("{} → {new}", label_of(old))+ })+ .collect()+}+fn label_of(id: &str) -> String {// The name after the namespace: `concat.camera-shake` is Camera Shake.let id = id.rsplit('.').next().unwrap_or(id);@@ -6661,6 +6678,16 @@ impl Studio {if !retired.is_empty() {self.notify(&tf("studio.retiredEffects", &[&retired.join(", ")]), false);}+ // Effects that open as the ones standing in for them: the+ // document changes when it is next saved, so say so.+ let upgraded = self+ .session+ .as_ref()+ .map(|session| upgraded_effects(session.upgraded()))+ .unwrap_or_default();+ if !upgraded.is_empty() {+ self.notify(&tf("studio.upgradedEffects", &[&upgraded.join(", ")]), false);+ }// Log missing media to file for debuggingif let Some(session) = &self.session {@@ -6942,15 +6969,29 @@ impl Studio {for id in concat_effects::looks::upgrade(&dir) {log::info!("{id}: the imported look now reads its table in light");}+ // The trials run on a compositor of their own on the window's+ // device, never the monitor's: one that times out is dead from+ // then on, and a refused package must not take the preview with+ // it (audit 2026-10-04, #6). A dead one is replaced for the next.let monitor = &self.host.monitor;+ let mut trialist = None;let errors = Catalogue::install_with(&dir, &mut |package| {- let Some(pass) = package.trial_pass() else {- return Ok(());- };- match monitor.trial(&pass, TRIAL_SIDE, TRIAL_TIMEOUT) {- Some(Err(why)) => Err(format!("its shader failed its trial: {why}")),- _ => Ok(()),+ for pass in package.trial_passes() {+ if trialist.is_none() {+ trialist = monitor.sibling();+ }+ let Some(gpu) = trialist.as_mut() else {+ return Ok(());+ };+ let tried = gpu.trial_at(&pass, TRIAL_SIDE, TRIAL_TIMEOUT);+ if gpu.is_dead() {+ trialist = None;+ }+ if let Err(why) = tried {+ return Err(format!("its shader failed its trial: {why}"));+ }}+ Ok(())});for error in &errors {log::warn!("package: {error}");