rigg-diff 1.4.3

Semantic JSON diffing with identity-key-based array matching
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
//! Diff output formatting

use crate::semantic::{Change, ChangeKind, DiffResult};
use serde_json::Value;

/// Fixed column width for the field-path column in the text table renderer.
const FIELD_COL_WIDTH: usize = 40;
/// Fixed column width for the "new side" value column in the text table renderer.
const VALUE_COL_WIDTH: usize = 20;

/// Human-readable labels for the two sides of a diff.
///
/// The diff engine itself is direction-neutral internally (`old`/`new`), but
/// callers know what those sides actually *are* — local project files, a
/// specific Azure environment, or another environment in `--compare-env`
/// mode. Renderers use these labels instead of temporal language ("was"/
/// "now") so the output never implies a push- or pull-shaped direction that
/// isn't actually happening.
#[derive(Debug, Clone)]
pub struct SideLabels {
    /// Label for the diff engine's "new" side (typically local project files,
    /// or the first-named environment in `--compare-env` mode).
    pub new_side: String,
    /// Label for the diff engine's "old" side (typically the resolved Azure
    /// environment, or the second-named environment in `--compare-env` mode).
    pub old_side: String,
}

/// Format diff result as human-readable text (a labeled two-column table).
pub fn format_text(result: &DiffResult, resource_name: &str, labels: &SideLabels) -> String {
    if result.is_equal {
        return format!("{}: no changes\n", resource_name);
    }

    let mut output = String::new();
    output.push_str(&format!(
        "{} — differs ({} field(s))\n\n",
        resource_name,
        result.changes.len()
    ));
    output.push_str(&format!(
        "  {:<fw$} {:<vw$} {}\n",
        "field",
        labels.new_side,
        labels.old_side,
        fw = FIELD_COL_WIDTH,
        vw = VALUE_COL_WIDTH
    ));

    for change in &result.changes {
        output.push_str(&format_change_row(change));
    }

    output
}

fn format_change_row(change: &Change) -> String {
    // If a higher layer set a description, print it as a full-width row.
    if let Some(desc) = &change.description {
        return format!("  {}\n", desc);
    }

    let (new_str, old_str) = match change.kind {
        ChangeKind::Added => (
            table_value(change.new_value.as_ref()),
            "(absent)".to_string(),
        ),
        ChangeKind::Removed => (
            "(absent)".to_string(),
            table_value(change.old_value.as_ref()),
        ),
        ChangeKind::Modified => (
            table_value(change.new_value.as_ref()),
            table_value(change.old_value.as_ref()),
        ),
    };

    if change.path.len() > FIELD_COL_WIDTH {
        // The path alone is wider than the field column: give it its own
        // line so it never shoves the value columns out of alignment, then
        // print the values on the next line, indented to the same column
        // where a normal row's value would start (2-space row indent + the
        // field column width + the separator space between field and value).
        let indent = " ".repeat(FIELD_COL_WIDTH + 3);
        format!(
            "  {}\n{indent}{:<vw$} {}\n",
            change.path,
            new_str,
            old_str,
            vw = VALUE_COL_WIDTH
        )
    } else {
        format!(
            "  {:<fw$} {:<vw$} {}\n",
            change.path,
            new_str,
            old_str,
            fw = FIELD_COL_WIDTH,
            vw = VALUE_COL_WIDTH
        )
    }
}

/// Table cells stay scannable: long previews are cut hard. The full value is
/// always available in the file itself or via `--output json`.
const TABLE_VALUE_MAX: usize = 80;

fn table_value(value: Option<&Value>) -> String {
    let preview = format_value_preview(value);
    if preview.chars().count() <= TABLE_VALUE_MAX {
        return preview;
    }
    let cut: String = preview.chars().take(TABLE_VALUE_MAX - 3).collect();
    format!("{cut}...")
}

/// Create a human-readable preview of a JSON value.
///
/// Used by the base diff formatter. Higher-level formatters (describe.rs)
/// have their own value formatting with resource-aware context.
pub fn format_value_preview(value: Option<&Value>) -> String {
    match value {
        None => "(none)".to_string(),
        Some(Value::Null) => "null".to_string(),
        Some(Value::Bool(b)) => b.to_string(),
        Some(Value::Number(n)) => n.to_string(),
        Some(Value::String(s)) => {
            if s.chars().count() > 500 {
                let cut: String = s.chars().take(497).collect();
                format!("\"{cut}...\" ({} chars)", s.chars().count())
            } else {
                format!("\"{}\"", s)
            }
        }
        Some(Value::Array(arr)) => {
            if arr.is_empty() {
                "[]".to_string()
            } else if arr.len() <= 3 && arr.iter().all(is_simple_value) {
                // Show actual values for small arrays of simple items
                let items: Vec<String> =
                    arr.iter().map(|v| format_value_preview(Some(v))).collect();
                format!("[{}]", items.join(", "))
            } else {
                format!("[{} items]", arr.len())
            }
        }
        Some(Value::Object(obj)) => {
            if obj.len() == 1 {
                "{...} (1 key)".to_string()
            } else {
                format!("{{...}} ({} keys)", obj.len())
            }
        }
    }
}

/// Check if a value is a simple scalar (not array or object).
fn is_simple_value(value: &Value) -> bool {
    matches!(
        value,
        Value::String(_) | Value::Number(_) | Value::Bool(_) | Value::Null
    )
}

/// Format diff result as JSON
pub fn format_json(result: &DiffResult) -> String {
    serde_json::to_string_pretty(result).unwrap_or_else(|_| "{}".to_string())
}

/// Format a full diff report for multiple resources
pub fn format_report(
    diffs: &[(String, DiffResult)],
    format: OutputFormat,
    labels: &SideLabels,
) -> String {
    match format {
        OutputFormat::Text => format_report_text(diffs, labels),
        OutputFormat::Json => format_report_json(diffs),
    }
}

/// Output format options
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum OutputFormat {
    Text,
    Json,
}

fn format_report_text(diffs: &[(String, DiffResult)], labels: &SideLabels) -> String {
    let mut output = String::new();

    let (changed, unchanged): (Vec<_>, Vec<_>) = diffs.iter().partition(|(_, r)| !r.is_equal);

    if changed.is_empty() {
        output.push_str("No changes detected.\n");
        return output;
    }

    output.push_str(&format!(
        "Found {} resource(s) with changes:\n\n",
        changed.len()
    ));

    for (name, result) in &changed {
        output.push_str(&format_text(result, name, labels));
        output.push('\n');
    }

    if !unchanged.is_empty() {
        output.push_str(&format!("{} resource(s) unchanged.\n", unchanged.len()));
    }

    output
}

fn format_report_json(diffs: &[(String, DiffResult)]) -> String {
    let report: Vec<_> = diffs
        .iter()
        .map(|(name, result)| {
            serde_json::json!({
                "resource": name,
                "changed": !result.is_equal,
                "changes": result.changes
            })
        })
        .collect();

    serde_json::to_string_pretty(&report).unwrap_or_else(|_| "[]".to_string())
}

#[cfg(test)]
mod tests {
    use super::*;
    use crate::semantic::diff;
    use serde_json::json;

    fn labels() -> SideLabels {
        SideLabels {
            new_side: "local".to_string(),
            old_side: "Azure (dev)".to_string(),
        }
    }

    #[test]
    fn test_format_text_no_changes() {
        let result = DiffResult {
            is_equal: true,
            changes: vec![],
        };

        let output = format_text(&result, "test-index", &labels());
        assert!(output.contains("no changes"));
    }

    #[test]
    fn test_format_text_with_changes() {
        let old = json!({"name": "test", "value": 1});
        let new = json!({"name": "test", "value": 2});

        let result = diff(&old, &new, "name");
        let output = format_text(&result, "test-index", &labels());

        assert!(output.contains("1 field"));
        assert!(output.contains("value"));
        assert!(!output.contains(" was "));
        assert!(!output.contains(" now "));
    }

    #[test]
    fn test_format_text_uses_description_when_set() {
        let result = DiffResult {
            is_equal: false,
            changes: vec![Change {
                path: "description".to_string(),
                kind: ChangeKind::Modified,
                old_value: Some(json!("old")),
                new_value: Some(json!("new")),
                description: Some(
                    "The description differs: locally has \"old\" while on the server has \"new\""
                        .to_string(),
                ),
            }],
        };

        let output = format_text(&result, "test-index", &labels());
        assert!(output.contains("The description differs"));
        assert!(!output.contains("~")); // Should not use generic format
    }

    #[test]
    fn test_format_json() {
        let result = DiffResult {
            is_equal: false,
            changes: vec![Change {
                path: "name".to_string(),
                kind: ChangeKind::Modified,
                old_value: Some(json!("old")),
                new_value: Some(json!("new")),
                description: None,
            }],
        };

        let output = format_json(&result);
        assert!(output.contains("modified"));
        assert!(output.contains("name"));
    }

    #[test]
    fn test_format_value_preview_long_string() {
        let long = "a".repeat(600);
        let preview = format_value_preview(Some(&json!(long)));
        assert!(preview.contains("..."));
        assert!(preview.contains("600 chars"));
    }

    #[test]
    fn test_format_value_preview_medium_string_not_truncated() {
        let medium = "a".repeat(400);
        let preview = format_value_preview(Some(&json!(medium)));
        assert!(!preview.contains("..."));
        assert_eq!(preview, format!("\"{}\"", medium));
    }

    #[test]
    fn test_format_value_preview_small_array() {
        let preview = format_value_preview(Some(&json!([1, 2, 3])));
        assert_eq!(preview, "[1, 2, 3]");
    }

    #[test]
    fn test_format_value_preview_small_string_array() {
        let preview = format_value_preview(Some(&json!(["a", "b"])));
        assert_eq!(preview, "[\"a\", \"b\"]");
    }

    #[test]
    fn test_format_value_preview_large_array() {
        let preview = format_value_preview(Some(&json!([1, 2, 3, 4])));
        assert_eq!(preview, "[4 items]");
    }

    #[test]
    fn test_format_value_preview_empty_array() {
        let preview = format_value_preview(Some(&json!([])));
        assert_eq!(preview, "[]");
    }

    #[test]
    fn test_format_value_preview_complex_array_items() {
        let preview = format_value_preview(Some(&json!([{"a": 1}])));
        assert_eq!(preview, "[1 items]");
    }

    #[test]
    fn test_format_value_preview_object_singular_key() {
        let preview = format_value_preview(Some(&json!({"a": 1})));
        assert_eq!(preview, "{...} (1 key)");
    }

    #[test]
    fn test_format_value_preview_object_plural_keys() {
        let preview = format_value_preview(Some(&json!({"a": 1, "b": 2})));
        assert_eq!(preview, "{...} (2 keys)");
    }

    #[test]
    fn test_modified_row_has_no_temporal_words() {
        let change = Change {
            path: "description".to_string(),
            kind: ChangeKind::Modified,
            old_value: Some(json!("old text")),
            new_value: Some(json!("new text")),
            description: None,
        };
        let output = format_change_row(&change);
        assert!(!output.contains(" was "));
        assert!(!output.contains(" now "));
        assert!(!output.contains("->"));
        assert!(output.contains("old text"));
        assert!(output.contains("new text"));
    }

    #[test]
    fn table_renders_both_sides_with_labels_no_temporal_words() {
        let result = diff(
            &json!({"name": "a", "model": "gpt-5.6-luna"}), // old = Azure
            &json!({"name": "a", "model": "gpt-5.2-chat"}), // new = local
            "name",
        );
        let labels = SideLabels {
            new_side: "local".to_string(),
            old_side: "Azure (dev)".to_string(),
        };
        let out = format_text(&result, "regulus/agents/Regulus", &labels);
        assert!(out.contains("local"), "{out}");
        assert!(out.contains("Azure (dev)"), "{out}");
        assert!(
            out.contains("gpt-5.2-chat") && out.contains("gpt-5.6-luna"),
            "{out}"
        );
        // local column before Azure column on the model row
        let row = out.lines().find(|l| l.contains("model")).unwrap();
        let li = row.find("gpt-5.2-chat").unwrap();
        let ri = row.find("gpt-5.6-luna").unwrap();
        assert!(li < ri, "local value first: {row}");
        assert!(!out.contains(" was "), "{out}");
        assert!(!out.contains(" now "), "{out}");
    }

    #[test]
    fn table_renders_absent_for_one_sided_values() {
        let result = diff(
            &json!({"name": "a", "reasoning": {"effort": "high"}}), // old/Azure has it
            &json!({"name": "a"}),                                  // new/local lacks it
            "name",
        );
        let labels = SideLabels {
            new_side: "local".into(),
            old_side: "Azure (dev)".into(),
        };
        let out = format_text(&result, "r", &labels);
        assert!(out.contains("(absent)"), "{out}");
        assert!(
            out.contains("1 key)") && !out.contains("1 keys"),
            "pluralization: {out}"
        );
    }

    #[test]
    fn table_has_no_change_kind_markers() {
        let result = DiffResult {
            is_equal: false,
            changes: vec![
                Change {
                    path: "added_field".to_string(),
                    kind: ChangeKind::Added,
                    old_value: None,
                    new_value: Some(json!("x")),
                    description: None,
                },
                Change {
                    path: "removed_field".to_string(),
                    kind: ChangeKind::Removed,
                    old_value: Some(json!("y")),
                    new_value: None,
                    description: None,
                },
                Change {
                    path: "modified_field".to_string(),
                    kind: ChangeKind::Modified,
                    old_value: Some(json!("a")),
                    new_value: Some(json!("b")),
                    description: None,
                },
            ],
        };
        let out = format_text(&result, "r", &labels());
        for line in out.lines() {
            assert!(!line.starts_with("  - "), "removed marker in: {line}");
            assert!(!line.starts_with("  + "), "added marker in: {line}");
            assert!(!line.starts_with("  ~ "), "modified marker in: {line}");
        }
        assert!(out.contains("(absent)"), "{out}");
    }

    #[test]
    fn long_field_paths_get_their_own_line() {
        let long_path = "metadata.microsoft.voice-live.configuration";
        assert!(long_path.len() > FIELD_COL_WIDTH, "fixture must be long");

        let result = DiffResult {
            is_equal: false,
            changes: vec![Change {
                path: long_path.to_string(),
                kind: ChangeKind::Modified,
                old_value: Some(json!("OLDVAL")),
                new_value: Some(json!("NEWVAL")),
                description: None,
            }],
        };
        let out = format_text(&result, "r", &labels());
        let lines: Vec<&str> = out.lines().collect();
        let path_idx = lines
            .iter()
            .position(|l| l.contains(long_path))
            .expect("path line present");
        let path_line = lines[path_idx];
        assert!(
            !path_line.contains("NEWVAL") && !path_line.contains("OLDVAL"),
            "path line must not carry values: {path_line}"
        );
        let value_line = lines[path_idx + 1];
        assert!(
            value_line.contains("NEWVAL") && value_line.contains("OLDVAL"),
            "next line must carry both values: {value_line}"
        );

        // The new-side value must land in the same column as a normal (short-path) row.
        let normal_row = format_change_row(&Change {
            path: "short".to_string(),
            kind: ChangeKind::Modified,
            old_value: Some(json!("o")),
            new_value: Some(json!("NEWVAL")),
            description: None,
        });
        let expected_col = normal_row.find("NEWVAL").expect("value in normal row");
        let actual_col = value_line.find("NEWVAL").expect("value in wrapped row");
        assert_eq!(
            actual_col, expected_col,
            "wrapped value column should match normal row's value column\nnormal: {normal_row:?}\nwrapped: {value_line:?}"
        );
    }

    #[test]
    fn long_values_truncated_in_table() {
        // 200 chars / 400 bytes: stays under format_value_preview's 500-byte cap
        // (so its own truncation path isn't exercised), but its `"..."`-wrapped
        // preview is well over TABLE_VALUE_MAX chars, so table_value must cut it.
        let long_value = "å".repeat(200);
        let result = DiffResult {
            is_equal: false,
            changes: vec![Change {
                path: "field".to_string(),
                kind: ChangeKind::Modified,
                old_value: Some(json!(long_value)),
                new_value: Some(json!("short")),
                description: None,
            }],
        };
        let out = format_text(&result, "r", &labels());
        assert!(out.contains("..."), "{out}");
        assert!(
            !out.contains(&long_value),
            "full 300-char value must not appear verbatim: {out}"
        );
    }

    #[test]
    fn markdown_cells_truncated_and_unmarked() {
        // 200 chars / 400 bytes: stays under format_value_preview's 500-byte cap
        // (so its own truncation path isn't exercised), but its `"..."`-wrapped
        // preview is well over TABLE_VALUE_MAX chars, so table_value must cut it.
        let long_value = "å".repeat(200);
        let result = DiffResult {
            is_equal: false,
            changes: vec![Change {
                path: "field".to_string(),
                kind: ChangeKind::Modified,
                old_value: Some(json!(long_value)),
                new_value: Some(json!("short")),
                description: None,
            }],
        };
        let md = format_markdown(&[("r".to_string(), result)], &labels());
        assert!(md.contains("..."), "{md}");
        assert!(
            !md.contains(&long_value),
            "full 300-char value must not appear verbatim: {md}"
        );
        for line in md.lines().filter(|l| l.starts_with('|')) {
            assert!(!line.contains("| - "), "removed marker in: {line}");
            assert!(!line.contains("| + "), "added marker in: {line}");
            assert!(!line.contains("| ~ "), "modified marker in: {line}");
        }
    }
}

/// Format a full diff report as Markdown (for PR comments).
///
/// Layout: `### {resource}` per changed resource with a Markdown table whose
/// columns are `field | {new_side} | {old_side}`.
pub fn format_markdown(diffs: &[(String, DiffResult)], labels: &SideLabels) -> String {
    let changed: Vec<_> = diffs.iter().filter(|(_, d)| !d.is_equal).collect();
    if changed.is_empty() {
        return "✅ No differences.\n".to_string();
    }
    let mut out = String::new();
    out.push_str(&format!(
        "## rigg diff — {} resource(s) differ\n\n",
        changed.len()
    ));
    for (name, result) in changed {
        out.push_str(&format!(
            "### `{}` — {} change(s)\n\n",
            name,
            result.changes.len()
        ));
        out.push_str(&format!(
            "| field | {} | {} |\n",
            escape_md(&labels.new_side),
            escape_md(&labels.old_side)
        ));
        out.push_str("| --- | --- | --- |\n");
        for change in &result.changes {
            out.push_str(&format_change_markdown_row(change));
        }
        out.push('\n');
    }
    out
}

fn format_change_markdown_row(change: &Change) -> String {
    if let Some(desc) = &change.description {
        return format!("| {} | | |\n", escape_md(desc));
    }

    let (new_str, old_str) = match change.kind {
        ChangeKind::Added => (
            table_value(change.new_value.as_ref()),
            "(absent)".to_string(),
        ),
        ChangeKind::Removed => (
            "(absent)".to_string(),
            table_value(change.old_value.as_ref()),
        ),
        ChangeKind::Modified => (
            table_value(change.new_value.as_ref()),
            table_value(change.old_value.as_ref()),
        ),
    };

    format!(
        "| {} | {} | {} |\n",
        escape_md(&change.path),
        escape_md(&new_str),
        escape_md(&old_str)
    )
}

/// Escape pipe characters so a value can't break a Markdown table row.
fn escape_md(s: &str) -> String {
    s.replace('|', "\\|")
}

#[cfg(test)]
mod markdown_tests {
    use super::*;
    use serde_json::json;

    fn labels() -> SideLabels {
        SideLabels {
            new_side: "local".to_string(),
            old_side: "Azure (dev)".to_string(),
        }
    }

    #[test]
    fn markdown_report_renders_table() {
        let d = crate::semantic::diff(
            &json!({"name": "i", "a": 1}),
            &json!({"name": "i", "a": 2, "b": true}),
            "name",
        );
        let md = format_markdown(&[("indexes/i".to_string(), d)], &labels());
        assert!(md.contains("### `indexes/i`"));
        assert!(md.contains("| field | local | Azure (dev) |"));
        assert!(md.contains("| b | true | (absent) |"));
        assert!(md.contains("| a | 2 | 1 |"));
        assert!(!md.contains(" was "));
    }

    #[test]
    fn markdown_report_clean() {
        let d = crate::semantic::diff(&json!({"a": 1}), &json!({"a": 1}), "name");
        assert_eq!(
            format_markdown(&[("x".into(), d)], &labels()),
            "✅ No differences.\n"
        );
    }

    #[test]
    fn markdown_is_a_table_with_side_columns() {
        let result = crate::semantic::diff(
            &json!({"name": "a", "model": "x"}),
            &json!({"name": "a", "model": "y"}),
            "name",
        );
        let labels = SideLabels {
            new_side: "local".into(),
            old_side: "Azure (dev)".into(),
        };
        let out = format_markdown(&[("p/agents/a".to_string(), result)], &labels);
        assert!(
            out.contains("| field |") || out.contains("| Field |"),
            "{out}"
        );
        assert!(
            out.contains("| local |") || out.contains("local |"),
            "{out}"
        );
        assert!(!out.contains(" was "), "{out}");
    }

    #[test]
    fn long_multibyte_string_preview_does_not_panic() {
        // Regression: byte-slicing at 497 panicked when it split a multi-byte
        // char (e.g. Swedish text in long descriptions).
        let long = "å".repeat(600);
        let out = format_value_preview(Some(&Value::String(long)));
        assert!(out.ends_with("(600 chars)"), "{out}");
        assert!(out.contains("..."));
    }
}