Migrate Rig tool flow to domain runtime

This commit is contained in:
2026-08-04 14:14:51 -05:00
parent 4c7270db8d
commit 91d8bd0381
34 changed files with 2728 additions and 374 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ fn canonical_json_value(value: &serde_json::Value) -> String {
),
serde_json::Value::Object(values) => {
let mut entries = values.iter().collect::<Vec<_>>();
entries.sort_by(|(left, _), (right, _)| left.cmp(right));
entries.sort_by_key(|(key, _)| *key);
format!(
"{{{}}}",
entries
+2 -4
View File
@@ -164,10 +164,8 @@ impl AcpRuntimeModel {
) -> BTreeMap<String, serde_json::Value> {
options
.iter()
.filter_map(|option| {
(!option.current_value.is_null())
.then(|| (option.id.clone(), option.current_value.clone()))
})
.filter(|option| !option.current_value.is_null())
.map(|option| (option.id.clone(), option.current_value.clone()))
.collect()
}