refactor: simplify pipeline code per review (dedup, single-parse, constant)

- ParseAssetsOutput::new() collapses the 6-line annotation copy-paste
  across the 4 asset-parser crates to one call site.
- asset_dispatch: parse the cascade trigger object once and pass it to
  the depth/partition readers instead of deserializing it twice; add a
  TRIGGER_ARG constant for the previously stringly-typed key (3 sites).
- scripts deploy: drop a redundant debounce_default clone.
No behavior change; 29 parser + 6 dispatch integration tests green.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-05-17 09:02:21 +00:00
co-authored by Claude Opus 4.7
parent 3d0558f937
commit ba9068b2c0
7 changed files with 66 additions and 61 deletions
+1 -1
View File
@@ -1244,7 +1244,7 @@ async fn create_script_internal<'c>(
let pipeline_join_all = !pipeline_annotations.join_mode.is_any();
// Script-level `// debounce <dur>` default; a per-`// on debounce=`
// overrides it (precedence resolved per edge below).
let pipeline_debounce_default = pipeline_annotations.debounce_default.clone();
let pipeline_debounce_default = pipeline_annotations.debounce_default;
let pipeline_triggers = pipeline_annotations.triggers;
let auto_kind = if in_pipeline {
Some("pipeline".to_string())