dart-decimate 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ const REPORT_SCOPE_KEYS: &[&str] = &[
16
16
  "workspace",
17
17
  "changed_workspaces",
18
18
  "changed_since",
19
+ "compare",
19
20
  "production",
20
21
  ];
21
22
  const LIST_SCOPE_KEYS: &[&str] = &[
@@ -163,7 +164,7 @@ fn extend_analyze_allowed(allowed: &mut Vec<&'static str>) {
163
164
  }
164
165
 
165
166
  fn extend_check_changed_allowed(allowed: &mut Vec<&'static str>) {
166
- allowed.extend(["since", "changed_since"]);
167
+ allowed.extend(["since", "changed_since", "compare"]);
167
168
  allowed.extend(BASELINE_KEYS);
168
169
  allowed.extend(["dart_platform", "production"]);
169
170
  }
@@ -295,6 +296,7 @@ fn analyze_args(cli: &mut Vec<String>, args: &Map<String, Value>) -> Result<(),
295
296
  fn check_changed_args(cli: &mut Vec<String>, args: &Map<String, Value>) -> Result<(), String> {
296
297
  let since = string_arg(args, "since")?
297
298
  .or(string_arg(args, "changed_since")?)
299
+ .or(string_arg(args, "compare")?)
298
300
  .ok_or_else(|| "check_changed requires since".to_owned())?;
299
301
  cli.extend(["--changed-since".to_owned(), since]);
300
302
  push_baseline_args(cli, args)?;
@@ -603,6 +605,7 @@ fn push_report_scope_args(cli: &mut Vec<String>, args: &Map<String, Value>) -> R
603
605
  push_string_flags(cli, args, "workspace", "--workspace")?;
604
606
  push_string_flag(cli, args, "changed_workspaces", "--changed-workspaces")?;
605
607
  push_string_flag(cli, args, "changed_since", "--changed-since")?;
608
+ push_string_flag(cli, args, "compare", "--compare")?;
606
609
  push_bool_mode(cli, args, "production", "--production", "--no-production")?;
607
610
  Ok(())
608
611
  }
package/src/mcp/tools.rs CHANGED
@@ -52,6 +52,7 @@ fn analyze_tool() -> Value {
52
52
  ("workspace", "array"),
53
53
  ("changed_workspaces", "string"),
54
54
  ("changed_since", "string"),
55
+ ("compare", "string"),
55
56
  ("baseline", "string"),
56
57
  ("regression_baseline", "string"),
57
58
  ("fail_on_regression", "boolean"),
@@ -105,6 +106,7 @@ fn check_changed_tool() -> Value {
105
106
  ("config", "string"),
106
107
  ("since", "string"),
107
108
  ("changed_since", "string"),
109
+ ("compare", "string"),
108
110
  ("baseline", "string"),
109
111
  ("regression_baseline", "string"),
110
112
  ("fail_on_regression", "boolean"),
@@ -294,6 +296,7 @@ fn dupes_tool() -> Value {
294
296
  ("workspace", "array"),
295
297
  ("changed_workspaces", "string"),
296
298
  ("changed_since", "string"),
299
+ ("compare", "string"),
297
300
  ("baseline", "string"),
298
301
  ("regression_baseline", "string"),
299
302
  ("fail_on_regression", "boolean"),
@@ -332,6 +335,7 @@ fn health_tool() -> Value {
332
335
  ("workspace", "array"),
333
336
  ("changed_workspaces", "string"),
334
337
  ("changed_since", "string"),
338
+ ("compare", "string"),
335
339
  ("baseline", "string"),
336
340
  ("regression_baseline", "string"),
337
341
  ("fail_on_regression", "boolean"),
@@ -390,6 +394,7 @@ fn security_tool() -> Value {
390
394
  ("workspace", "array"),
391
395
  ("changed_workspaces", "string"),
392
396
  ("changed_since", "string"),
397
+ ("compare", "string"),
393
398
  ("baseline", "string"),
394
399
  ("regression_baseline", "string"),
395
400
  ("fail_on_regression", "boolean"),
@@ -439,6 +444,7 @@ fn feature_flags_tool() -> Value {
439
444
  ("changed_workspaces", "string"),
440
445
  ("top", "integer"),
441
446
  ("changed_since", "string"),
447
+ ("compare", "string"),
442
448
  ("baseline", "string"),
443
449
  ("regression_baseline", "string"),
444
450
  ("fail_on_regression", "boolean"),
@@ -475,6 +481,7 @@ fn fix_preview_tool() -> Value {
475
481
  ("workspace", "array"),
476
482
  ("changed_workspaces", "string"),
477
483
  ("changed_since", "string"),
484
+ ("compare", "string"),
478
485
  ("production", "boolean"),
479
486
  ("action", "array"),
480
487
  ("no_create_config", "boolean"),
@@ -498,6 +505,7 @@ fn fix_apply_tool() -> Value {
498
505
  ("workspace", "array"),
499
506
  ("changed_workspaces", "string"),
500
507
  ("changed_since", "string"),
508
+ ("compare", "string"),
501
509
  ("production", "boolean"),
502
510
  ("action", "array"),
503
511
  ("no_create_config", "boolean"),
@@ -526,6 +534,7 @@ fn audit_tool() -> Value {
526
534
  ("workspace", "array"),
527
535
  ("changed_workspaces", "string"),
528
536
  ("changed_since", "string"),
537
+ ("compare", "string"),
529
538
  ("include_entry_exports", "boolean"),
530
539
  ("private_type_leaks", "boolean"),
531
540
  ("boundary", "array"),