@sdeverywhere/check-core 0.1.5 → 0.1.6

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.
package/dist/index.d.cts CHANGED
@@ -109,26 +109,6 @@ interface OutputVar {
109
109
  /** The metadata for the related visuals/graphs in which this variable is used. */
110
110
  relatedItems?: RelatedItem[];
111
111
  }
112
- /**
113
- * Holds information about a subscript used in the model.
114
- */
115
- interface Subscript {
116
- /** The subscript identifier, as used in SDE. */
117
- id: string;
118
- /** The subscript name, as used in Vensim. */
119
- name: string;
120
- }
121
- /**
122
- * Holds information about a dimension (subscript family) used in the model.
123
- */
124
- interface Dimension {
125
- /** The dimension identifier, as used in SDE. */
126
- id: string;
127
- /** The dimension name, as used in Vensim. */
128
- name: string;
129
- /** The set of subscripts in this dimension. */
130
- subscripts: Subscript[];
131
- }
132
112
  /**
133
113
  * Holds information about a variable used in the model implementation.
134
114
  */
@@ -137,12 +117,12 @@ interface ImplVar {
137
117
  varId: VarId;
138
118
  /** The variable name, as used in the modeling tool. */
139
119
  varName: string;
140
- /** The variable index, used by SDE to reference the value in the generated model. */
141
- varIndex: number;
142
- /** The set of dimensions for this variable. */
143
- dimensions: Dimension[];
144
120
  /** The variable type (e.g. 'level', 'const'). */
145
121
  varType: string;
122
+ /** The variable index, used to reference the value in the generated model. */
123
+ varIndex: number;
124
+ /** The subscript index values, used to reference the value in the generated model. */
125
+ subscriptIndices?: number[];
146
126
  }
147
127
 
148
128
  /** The human-readable name for a group of inputs. */
@@ -151,8 +131,27 @@ type InputGroupName = string;
151
131
  type InputAliasName = string;
152
132
  /** The name for a custom input setting group. */
153
133
  type InputSettingGroupId = string;
154
- /** The human-readable name for a group of dataset. */
134
+ /** The human-readable name for a group of datasets. */
155
135
  type DatasetGroupName = string;
136
+ /**
137
+ * Describes a group of implementation variables.
138
+ */
139
+ interface ImplVarGroup {
140
+ /** The group title. */
141
+ title: string;
142
+ /**
143
+ * The function name in the generated model that is associated with
144
+ * this group. This can be used when displaying the group to change
145
+ * the appearance of the items in the section.
146
+ */
147
+ fn?: string;
148
+ /**
149
+ * The keys of the variables in this group (corresponding to the
150
+ * `implVars` map keys). It is recommended to provide these in the
151
+ * order that the variables are evaluated in the generated model.
152
+ */
153
+ datasetKeys: DatasetKey[];
154
+ }
156
155
  /**
157
156
  * Includes the properties needed to display a legend item in the UI.
158
157
  */
@@ -233,6 +232,8 @@ interface ModelSpec {
233
232
  outputVars: Map<DatasetKey, OutputVar>;
234
233
  /** The map of all variables (both internal and exported) in this version of the model. */
235
234
  implVars: Map<DatasetKey, ImplVar>;
235
+ /** The groupings of internal/implementation variables in this version of the model. */
236
+ implVarGroups?: ImplVarGroup[];
236
237
  /** The custom input variable aliases defined for this model. */
237
238
  inputAliases?: Map<InputAliasName, VarId>;
238
239
  /** The custom input variable groups defined for this model. */
@@ -289,15 +290,204 @@ interface NamedBundle {
289
290
  bundle: Bundle;
290
291
  }
291
292
  /**
292
- * Represents a bundle that has had its model initialized.
293
+ * Represents a bundle that has had its model instances initialized.
293
294
  */
294
295
  interface LoadedBundle {
295
296
  /** The name of the bundle, for example, "Current" or "Baseline". */
296
297
  name: string;
297
298
  /** The version of the bundle. */
298
299
  version: number;
299
- /** The initialized model. */
300
- model: BundleModel;
300
+ /** The spec for the bundled model. */
301
+ modelSpec: ModelSpec;
302
+ /**
303
+ * The initialized model instances for this bundle. If `concurrency` was specified
304
+ * in the config, then there will be that number of model instances in this array,
305
+ * otherwise there will be one instance.
306
+ */
307
+ models: BundleModel[];
308
+ }
309
+
310
+ /**
311
+ * A terse representation of a subscript.
312
+ */
313
+ interface EncodedSubscript {
314
+ /** The subscript name (e.g., "Sub1"). */
315
+ n: string;
316
+ /** The subscript identifier (e.g., "_sub1"). */
317
+ i: string;
318
+ }
319
+ /**
320
+ * A terse representation of a variable without subscripts.
321
+ */
322
+ interface EncodedVariable {
323
+ /** The variable name (corresponds to the base part of `ImplVar.varName` without subscripts). */
324
+ n: string;
325
+ /** The variable identifier (corresponds to the base part of `ImplVar.varId` without subscripts). */
326
+ i: string;
327
+ /** The variable index (corresponds to `ImplVar.varIndex`). */
328
+ x: number;
329
+ }
330
+ /**
331
+ * A terse representation of a variable type.
332
+ */
333
+ type EncodedVarType = string;
334
+ /**
335
+ * A terse representation of a variable instance as a flat array.
336
+ *
337
+ * Format: [t, v, si0, si1, ..., sx0, sx1, ...]
338
+ * - Element 0: The index of the associated `EncodedVarType` element in the `varTypes` array (corresponds to `ImplVar.varType`).
339
+ * - Element 1: The index of the associated `EncodedVariable` element in the `variables` array.
340
+ * - Elements 2+: If subscripts are present, first all subscript element indices, then all subscript indices:
341
+ * - Elements 2 to (2 + n - 1): The indices of the associated `EncodedSubscript` elements in the `subscripts` array.
342
+ * - Elements (2 + n) to (2 + 2n - 1): The subscript index values (corresponds to `ImplVar.subscriptIndices`).
343
+ */
344
+ type EncodedVarInstance = number[];
345
+ /**
346
+ * The encoded representation of impl variables that eliminates redundancy.
347
+ */
348
+ interface EncodedImplVars {
349
+ subscripts: EncodedSubscript[];
350
+ variables: EncodedVariable[];
351
+ varTypes: EncodedVarType[];
352
+ varInstances: {
353
+ [key: string]: EncodedVarInstance[];
354
+ };
355
+ }
356
+ /**
357
+ * Encode impl variable metadata into a more efficient format.
358
+ *
359
+ * This is used to reduce the size of a bundle by eliminating redundancy in variable/subscript
360
+ * names and identifiers. The `varInstances` object in the model listing JSON generated by the
361
+ * compiler includes verbose information for each variable instance. This function puts that
362
+ * information into a more efficient format that can be bundled as a normal JavaScript object
363
+ * in the model-check bundle file, and then decoded and expandedwhen the bundle is loaded.
364
+ *
365
+ * @param input The input structure mapping keys to ImplVar arrays.
366
+ * @returns The encoded representation.
367
+ */
368
+ declare function encodeImplVars(input: {
369
+ [key: string]: ImplVar[];
370
+ }): EncodedImplVars;
371
+ /**
372
+ * Decode impl variables from the efficient format back to the original structure.
373
+ *
374
+ * @param encoded The encoded representation.
375
+ * @returns The original structure mapping keys to `ImplVar` arrays.
376
+ */
377
+ declare function decodeImplVars(encoded: EncodedImplVars): {
378
+ [key: string]: ImplVar[];
379
+ };
380
+
381
+ interface CheckOptions {
382
+ /** The strings containing check tests in YAML format. */
383
+ tests: string[];
384
+ }
385
+ interface CheckConfig {
386
+ /** The loaded bundle being checked. */
387
+ bundle: LoadedBundle;
388
+ /** The strings containing check tests in YAML format. */
389
+ tests: string[];
390
+ }
391
+
392
+ type TaskKey = string;
393
+ type TaskExecutorKey = string;
394
+ interface BundleModels {
395
+ L?: BundleModel;
396
+ R: BundleModel;
397
+ }
398
+ /**
399
+ * Base interface for all tasks in the unified system.
400
+ */
401
+ interface Task {
402
+ /** Unique key for this task instance. */
403
+ key: TaskKey;
404
+ /** The task kind. */
405
+ kind: string;
406
+ /** Process the task using the given models. */
407
+ process(models: BundleModels): Promise<void>;
408
+ }
409
+ /**
410
+ * Executes a single task using a set of `BundleModel` instances.
411
+ */
412
+ interface TaskExecutor {
413
+ /**
414
+ * Execute the given task using the set of `BundleModel` instances
415
+ * associated with this executor.
416
+ *
417
+ * @param task The task to execute.
418
+ * @return A promise that resolves when the task is complete.
419
+ */
420
+ execute(task: Task): Promise<void>;
421
+ }
422
+ /**
423
+ * A unified task queue that can process multiple kinds of tasks concurrently
424
+ * while ensuring that BundleModel instances are never accessed concurrently.
425
+ * This replaces the need for multiple separate TaskQueue instances.
426
+ */
427
+ declare class TaskQueue {
428
+ private readonly executors;
429
+ /** The single instance. */
430
+ private static instance;
431
+ /** The queue of task keys, most recent at front. */
432
+ private readonly taskKeyQueue;
433
+ /** The map of tasks. */
434
+ private readonly taskMap;
435
+ /** The idle event listeners. */
436
+ private readonly idleListeners;
437
+ /** Whether tasks are being processed. */
438
+ private processing;
439
+ /** Whether `shutdown` has been called. */
440
+ private stopped;
441
+ /**
442
+ * @param executors The map of available task executors.
443
+ */
444
+ constructor(executors: Map<TaskExecutorKey, TaskExecutor>);
445
+ /**
446
+ * Initialize the shared `TaskQueue` instance.
447
+ *
448
+ * @param executors The map of available task executors.
449
+ */
450
+ static initialize(executors: Map<TaskExecutorKey, TaskExecutor>): void;
451
+ /**
452
+ * Get the shared `TaskQueue` instance.
453
+ */
454
+ static getInstance(): TaskQueue;
455
+ /**
456
+ * Add a task to the queue.
457
+ *
458
+ * @param task The task to add.
459
+ */
460
+ addTask(task: Task): void;
461
+ /**
462
+ * Cancel a task.
463
+ *
464
+ * @param taskKey The key of the task to cancel.
465
+ */
466
+ cancelTask(taskKey: TaskKey): void;
467
+ /**
468
+ * Add an idle listener.
469
+ *
470
+ * @param listener The listener to add.
471
+ */
472
+ onIdle(listener: (error?: Error) => void): void;
473
+ /**
474
+ * Remove an idle listener.
475
+ *
476
+ * @param listener The listener to remove.
477
+ */
478
+ removeIdleListener(listener: (error?: Error) => void): void;
479
+ /**
480
+ * Notify the idle listeners.
481
+ *
482
+ * @param error The error to notify the listeners with.
483
+ */
484
+ private notifyIdle;
485
+ /**
486
+ * Shutdown the task queue, cancelling all pending tasks.
487
+ */
488
+ shutdown(): void;
489
+ private processTasksIfNeeded;
490
+ private processNextTasks;
301
491
  }
302
492
 
303
493
  type CheckDataRequestKey = string;
@@ -306,15 +496,27 @@ type CheckDataRequestKey = string;
306
496
  * of a check/predicate.
307
497
  */
308
498
  declare class CheckDataCoordinator {
309
- readonly bundleModel: BundleModel;
310
499
  private readonly taskQueue;
311
- constructor(bundleModel: BundleModel);
500
+ constructor(taskQueue: TaskQueue);
312
501
  requestDataset(requestKey: CheckDataRequestKey, scenarioSpec: ScenarioSpec, datasetKey: DatasetKey, onResponse: (dataset: Dataset) => void): void;
313
502
  cancelRequest(key: CheckDataRequestKey): void;
314
503
  }
504
+ /**
505
+ * Create a `CheckDataCoordinator` instance using the shared task queue.
506
+ */
507
+ declare function createCheckDataCoordinator(): CheckDataCoordinator;
508
+ /**
509
+ * @hidden This is not part of the public API; it is exposed only for use in tests.
510
+ */
511
+ declare function createCheckDataCoordinatorForTests(bundleModel: BundleModel): CheckDataCoordinator;
315
512
 
316
- type CheckPredicateOp = 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'approx';
317
-
513
+ /** Spec type that allows for matching a check by group and test name. */
514
+ interface CheckNameSpec {
515
+ /** The name of a check group. */
516
+ groupName: string;
517
+ /** The name of a check test. */
518
+ testName: string;
519
+ }
318
520
  type CheckPredicateTimeSingle = number;
319
521
  type CheckPredicateTimeRange = [number, number];
320
522
  interface CheckPredicateTimeOptions {
@@ -325,20 +527,6 @@ interface CheckPredicateTimeOptions {
325
527
  }
326
528
  type CheckPredicateTimeSpec = CheckPredicateTimeSingle | CheckPredicateTimeRange | CheckPredicateTimeOptions;
327
529
 
328
- interface CheckResultErrorInfo {
329
- kind: 'unknown-dataset' | 'unknown-input' | 'unknown-input-group' | 'empty-input-group';
330
- name: string;
331
- }
332
- interface CheckResult {
333
- status: 'passed' | 'failed' | 'error';
334
- message?: string;
335
- failValue?: number;
336
- failOp?: CheckPredicateOp;
337
- failRefValue?: number;
338
- failTime?: number;
339
- errorInfo?: CheckResultErrorInfo;
340
- }
341
-
342
530
  type CheckDatasetError = 'no-matches-for-dataset' | 'no-matches-for-group' | 'no-matches-for-type';
343
531
  interface CheckDataset {
344
532
  /** The key for the matched dataset; can be undefined if no dataset matched. */
@@ -392,9 +580,25 @@ interface CheckDataRef {
392
580
  dataset: CheckDataset;
393
581
  }
394
582
 
583
+ type CheckPredicateOp = 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'approx';
584
+
585
+ interface CheckResultErrorInfo {
586
+ kind: 'unknown-dataset' | 'unknown-input' | 'unknown-input-group' | 'empty-input-group';
587
+ name: string;
588
+ }
589
+ interface CheckResult {
590
+ status: 'passed' | 'failed' | 'error' | 'skipped';
591
+ message?: string;
592
+ failValue?: number;
593
+ failOp?: CheckPredicateOp;
594
+ failRefValue?: number;
595
+ failTime?: number;
596
+ errorInfo?: CheckResultErrorInfo;
597
+ }
598
+
395
599
  type CheckKey = number;
396
600
 
397
- type CheckStatus = 'passed' | 'failed' | 'error';
601
+ type CheckStatus = 'passed' | 'failed' | 'error' | 'skipped';
398
602
  interface CheckPredicateOpConstantRef {
399
603
  kind: 'constant';
400
604
  value: number;
@@ -457,17 +661,6 @@ declare function datasetMessage(dataset: CheckDatasetReport, bold: StyleFunc): s
457
661
  */
458
662
  declare function predicateMessage(predicate: CheckPredicateReport, bold: StyleFunc): string;
459
663
 
460
- interface CheckOptions {
461
- /** The strings containing check tests in YAML format. */
462
- tests: string[];
463
- }
464
- interface CheckConfig {
465
- /** The loaded bundle being checked. */
466
- bundle: LoadedBundle;
467
- /** The strings containing check tests in YAML format. */
468
- tests: string[];
469
- }
470
-
471
664
  /**
472
665
  * A simplified/terse version of `CheckPredicateReport` that matches the
473
666
  * format of the JSON objects emitted by the CLI in terse mode.
@@ -479,15 +672,15 @@ interface CheckPredicateSummary {
479
672
  /**
480
673
  * A simplified/terse version of `CheckReport` that matches the
481
674
  * format of the JSON objects emitted by the CLI in terse mode.
482
- * This only contains predicate summaries for checks that have a status
483
- * of 'failed' or 'error'.
675
+ * This contains predicate summaries for checks that have a status
676
+ * of 'failed', 'error', or 'skipped'.
484
677
  */
485
678
  interface CheckSummary {
486
679
  predicateSummaries: CheckPredicateSummary[];
487
680
  }
488
681
  /**
489
- * Convert a full `CheckReport` to a simplified `CheckSummary` that only includes
490
- * failed/errored checks.
682
+ * Convert a full `CheckReport` to a simplified `CheckSummary` that includes
683
+ * failed, errored, and skipped checks.
491
684
  *
492
685
  * @param checkReport The full check report.
493
686
  * @return The converted check summary.
@@ -499,9 +692,10 @@ declare function checkSummaryFromReport(checkReport: CheckReport): CheckSummary;
499
692
  *
500
693
  * @param checkConfig The config used to reconstruct the check test structure.
501
694
  * @param checkSummary The simplified check summary.
695
+ * @param skipChecks The checks that were skipped when the original report was created.
502
696
  * @return The converted check report.
503
697
  */
504
- declare function checkReportFromSummary(checkConfig: CheckConfig, checkSummary: CheckSummary): CheckReport | undefined;
698
+ declare function checkReportFromSummary(checkConfig: CheckConfig, checkSummary: CheckSummary, skipChecks?: CheckNameSpec[]): CheckReport | undefined;
505
699
 
506
700
  type ComparisonDatasetName = string;
507
701
  type ComparisonDatasetSource = string;
@@ -633,6 +827,13 @@ interface ComparisonScenarioRefSpec {
633
827
  /** The optional subtitle that is used instead of the referenced scenario's subtitle. */
634
828
  subtitle?: ComparisonScenarioSubtitle;
635
829
  }
830
+ /** Spec type that allows for matching a comparison scenario by title and subtitle. */
831
+ interface ComparisonScenarioTitleSpec {
832
+ /** The title of a comparison scenario. */
833
+ title: string;
834
+ /** The subtitle of a comparison scenario. */
835
+ subtitle?: string;
836
+ }
636
837
  type ComparisonScenarioGroupId = string;
637
838
  type ComparisonScenarioGroupTitle = string;
638
839
  /**
@@ -1034,9 +1235,17 @@ declare function diffDatasets(datasetL: Dataset | undefined, datasetR: Dataset |
1034
1235
  * a `ComparisonTestSummary` only includes the `maxDiff` value.
1035
1236
  */
1036
1237
  interface ComparisonTestReport {
1238
+ /** The key of the scenario that was compared. */
1037
1239
  scenarioKey: ComparisonScenarioKey;
1240
+ /** The key of the dataset that was compared. */
1038
1241
  datasetKey: DatasetKey;
1039
- diffReport: DiffReport;
1242
+ /** The diff report for the comparison, or undefined if the test was skipped. */
1243
+ diffReport?: DiffReport;
1244
+ /**
1245
+ * The diff report for the baseline scenario (all inputs at default), or undefined if this
1246
+ * report is for the baseline scenario itself.
1247
+ */
1248
+ baselineDiffReport?: DiffReport;
1040
1249
  }
1041
1250
  /**
1042
1251
  * A simplified/terse version of `ComparisonTestReport` that is used when writing
@@ -1050,7 +1259,13 @@ interface ComparisonTestSummary {
1050
1259
  /** Short for `datasetKey`. */
1051
1260
  d: DatasetKey;
1052
1261
  /** Short for `maxDiff`. */
1053
- md: number;
1262
+ md?: number;
1263
+ /** Short for `avgDiff`. */
1264
+ ad?: number;
1265
+ /** Short for `maxDiff` relative to baseline `maxDiff`. */
1266
+ mdb?: number;
1267
+ /** Short for `avgDiff` relative to baseline `avgDiff`. */
1268
+ adb?: number;
1054
1269
  }
1055
1270
  /**
1056
1271
  * The roll-up report that contains the results of all individual comparison tests.
@@ -1100,8 +1315,8 @@ type ComparisonGroupRoot = ComparisonDataset | ComparisonScenario;
1100
1315
  interface ComparisonGroupScores {
1101
1316
  /** The total number of comparisons (sample size) for this group. */
1102
1317
  totalDiffCount: number;
1103
- /** The sum of the `maxDiff` values for each threshold bucket. */
1104
- totalMaxDiffByBucket: number[];
1318
+ /** The sum of the diff values for the active sort mode (e.g., `maxDiff`, `avgDiff`) for each threshold bucket. */
1319
+ totalDiffByBucket: number[];
1105
1320
  /** The number of comparisons that fall into each threshold bucket. */
1106
1321
  diffCountByBucket: number[];
1107
1322
  /** The percentage of comparisons that fall into each threshold bucket. */
@@ -1142,12 +1357,13 @@ interface ComparisonGroupSummariesByCategory {
1142
1357
  */
1143
1358
  onlyInRight: ComparisonGroupSummary[];
1144
1359
  /**
1145
- * Groups with one or more comparisons that have non-zero `maxDiff` scores; the groups
1146
- * will be sorted by `maxDiff`, with higher scores at the front of the array.
1360
+ * Groups with one or more comparisons that have non-zero diff scores; the groups
1361
+ * will be sorted by the diff score according to the active sort mode, with higher
1362
+ * scores at the front of the array.
1147
1363
  */
1148
1364
  withDiffs: ComparisonGroupSummary[];
1149
1365
  /**
1150
- * Groups where all comparisons have `maxDiff` scores of zero (no differences between
1366
+ * Groups where all comparisons have diff scores of zero (no differences between
1151
1367
  * "left" and "right").
1152
1368
  */
1153
1369
  withoutDiffs: ComparisonGroupSummary[];
@@ -1282,6 +1498,15 @@ interface ComparisonReportSummarySection {
1282
1498
  * it will be initially collapsed.
1283
1499
  */
1284
1500
  initialState?: 'collapsed' | 'expanded' | 'expanded-if-diffs';
1501
+ /**
1502
+ * Whether the items in the section are stable, i.e., not changing from run to run. If
1503
+ * undefined, defaults to false. This can be used to group items in the filter panel.
1504
+ * Set it to true if the group contains a stable set of rows where the order does not
1505
+ * change between runs. Set it to false (or leave it undefined) if the group contains
1506
+ * rows that have a different order between runs (for example, "Scenarios producing
1507
+ * differences").
1508
+ */
1509
+ stable?: boolean;
1285
1510
  }
1286
1511
  /**
1287
1512
  * Describes an item (box) in the comparison report detail view.
@@ -1347,10 +1572,15 @@ interface ComparisonOptions {
1347
1572
  /** The left-side ("baseline") bundle being compared. */
1348
1573
  baseline: NamedBundle;
1349
1574
  /**
1350
- * The array of thresholds used to color differences, e.g., [1, 5, 10] will use
1351
- * buckets of 0%, 0-1%, 1-5%, 5-10%, and >10%.
1575
+ * The array of thresholds used to color differences. Defaults to [1, 5, 10]
1576
+ * which will use buckets of 0%, 0-1%, 1-5%, 5-10%, and >10%.
1352
1577
  */
1353
- thresholds: number[];
1578
+ thresholds?: number[];
1579
+ /**
1580
+ * The array of ratio thresholds used to color differences when relative sorting is
1581
+ * active. Defaults to [1, 2, 3] which will use buckets of 0, 0-1, 1-2, 2-3, and >3.
1582
+ */
1583
+ ratioThresholds?: number[];
1354
1584
  /**
1355
1585
  * The requested comparison scenario and view specifications. These can be
1356
1586
  * specified in YAML or JSON files, or using `Spec` objects.
@@ -1367,10 +1597,15 @@ interface ComparisonConfig {
1367
1597
  /** The loaded right-side ("current") bundle being compared. */
1368
1598
  bundleR: LoadedBundle;
1369
1599
  /**
1370
- * The array of thresholds used to color differences, e.g., [1, 5, 10] will use
1600
+ * The array of thresholds used to color differences. For example, [1, 5, 10] will use
1371
1601
  * buckets of 0%, 0-1%, 1-5%, 5-10%, and >10%.
1372
1602
  */
1373
1603
  thresholds: number[];
1604
+ /**
1605
+ * The array of ratio thresholds used to color differences when relative sorting is
1606
+ * active. For example, [1, 2, 3] will use buckets of 0, 0-1, 1-2, 2-3, and >3.
1607
+ */
1608
+ ratioThresholds: number[];
1374
1609
  /** The set of resolved scenarios that will be compared. */
1375
1610
  scenarios: ComparisonScenarios;
1376
1611
  /** The set of resolved datasets that will be compared. */
@@ -1386,16 +1621,43 @@ type ComparisonDataRequestKey = string;
1386
1621
  * Coordinates loading of data in parallel from two models.
1387
1622
  */
1388
1623
  declare class ComparisonDataCoordinator {
1389
- readonly bundleModelL: BundleModel;
1390
- readonly bundleModelR: BundleModel;
1391
1624
  private readonly taskQueue;
1392
- constructor(bundleModelL: BundleModel, bundleModelR: BundleModel);
1393
- private processDatasetRequest;
1394
- private processGraphDataRequest;
1395
- requestDatasetMaps(requestKey: ComparisonDataRequestKey, scenarioSpecL: ScenarioSpec, scenarioSpecR: ScenarioSpec, datasetKeys: DatasetKey[], onResponse: (datasetMapL?: DatasetMap, datasetMapR?: DatasetMap) => void): void;
1396
- requestGraphData(requestKey: ComparisonDataRequestKey, scenarioSpecL: ScenarioSpec, scenarioSpecR: ScenarioSpec, graphId: BundleGraphId, onResponse: (graphDataL?: BundleGraphData, graphDataR?: BundleGraphData) => void): void;
1625
+ constructor(taskQueue: TaskQueue);
1626
+ /**
1627
+ * Request datasets from the two models.
1628
+ *
1629
+ * @param requestKey The unique key for the request.
1630
+ * @param sourceL The source of the first ("left") dataset. If "left", the datasets will
1631
+ * be fetched from the "left" bundle's model, otherwise they will be fetched from the
1632
+ * "right" bundle's model.
1633
+ * @param scenarioSpecL The scenario used for the first ("left") model of the comparison.
1634
+ * @param sourceR The source of the second ("right") dataset. If "left", the datasets
1635
+ * will be fetched from the "left" bundle's model, otherwise they will be fetched from
1636
+ * the "right" bundle's model.
1637
+ * @param scenarioSpecR The scenario used for the second ("right") model of the comparison.
1638
+ * @param graphId The keys of the datasets to be fetched.
1639
+ * @param onResponse The callback that will be called with the dataset maps.
1640
+ */
1641
+ requestDatasetMaps(requestKey: ComparisonDataRequestKey, sourceL: 'left' | 'right', scenarioSpecL: ScenarioSpec, sourceR: 'left' | 'right', scenarioSpecR: ScenarioSpec, datasetKeys: DatasetKey[], onResponse: (datasetMapL?: DatasetMap, datasetMapR?: DatasetMap) => void): void;
1642
+ /**
1643
+ * Request graph data from the two models.
1644
+ *
1645
+ * @param requestKey The unique key for the request.
1646
+ * @param sourceL The source of the first ("left") dataset. If "left", the datasets will
1647
+ * be fetched from the "left" bundle's model, otherwise they will be fetched from the
1648
+ * "right" bundle's model.
1649
+ * @param scenarioSpecL The scenario used for the first ("left") model of the comparison.
1650
+ * @param sourceR The source of the second ("right") dataset. If "left", the datasets
1651
+ * will be fetched from the "left" bundle's model, otherwise they will be fetched from
1652
+ * the "right" bundle's model.
1653
+ * @param scenarioSpecR The scenario used for the second ("right") model of the comparison.
1654
+ * @param graphId The ID of the graph for which data will be fetched.
1655
+ * @param onResponse The callback that will be called with the graph data.
1656
+ */
1657
+ requestGraphData(requestKey: ComparisonDataRequestKey, sourceL: 'left' | 'right', scenarioSpecL: ScenarioSpec, sourceR: 'left' | 'right', scenarioSpecR: ScenarioSpec, graphId: BundleGraphId, onResponse: (graphDataL?: BundleGraphData, graphDataR?: BundleGraphData) => void): void;
1397
1658
  cancelRequest(key: ComparisonDataRequestKey): void;
1398
1659
  }
1660
+ declare function createComparisonDataCoordinator(): ComparisonDataCoordinator;
1399
1661
 
1400
1662
  type GraphInclusion = 'neither' | 'left-only' | 'right-only' | 'both';
1401
1663
  interface GraphComparisonMetadataReport {
@@ -1440,6 +1702,19 @@ declare function diffGraphs(graphL: BundleGraphSpec | undefined, graphR: BundleG
1440
1702
  * @return The terse summary.
1441
1703
  */
1442
1704
  declare function comparisonSummaryFromReport(comparisonReport: ComparisonReport): ComparisonSummary;
1705
+ /**
1706
+ * Convert a full `ComparisonTestReport` to a terse `ComparisonTestSummary`. This will
1707
+ * return undefined if the test has a zero `maxDiff` value.
1708
+ *
1709
+ * @param r The full comparison test report.
1710
+ * @param baselineMaxDiff The max diff for the baseline scenario, or undefined if not available.
1711
+ * @param baselineAvgDiff The avg diff for the baseline scenario, or undefined if not available.
1712
+ * @return The terse comparison test summary.
1713
+ */
1714
+ declare function testSummaryFromReport(r: ComparisonTestReport, baselineMaxDiff: number | undefined, baselineAvgDiff: number | undefined): ComparisonTestSummary | undefined;
1715
+
1716
+ /** The available sort modes for categorizing comparison groups. */
1717
+ type ComparisonSortMode = 'max-diff' | 'avg-diff' | 'max-diff-relative' | 'avg-diff-relative';
1443
1718
 
1444
1719
  /**
1445
1720
  * Compute the overall scores for the given group of comparison test summaries.
@@ -1447,8 +1722,9 @@ declare function comparisonSummaryFromReport(comparisonReport: ComparisonReport)
1447
1722
  * @param testSummaries The comparison test summaries to consider.
1448
1723
  * @param thresholds The array of thresholds that determine the buckets into which
1449
1724
  * the scores will be summarized.
1725
+ * @param sortMode The sort mode to determine which field to use for scoring.
1450
1726
  */
1451
- declare function getScoresForTestSummaries(testSummaries: ComparisonTestSummary[], thresholds: number[]): ComparisonGroupScores;
1727
+ declare function getScoresForTestSummaries(testSummaries: ComparisonTestSummary[], thresholds: number[], sortMode: ComparisonSortMode): ComparisonGroupScores;
1452
1728
 
1453
1729
  /**
1454
1730
  * Given a set of terse test summaries (which only includes summaries for tests with non-zero `maxDiff`
@@ -1456,25 +1732,18 @@ declare function getScoresForTestSummaries(testSummaries: ComparisonTestSummary[
1456
1732
  *
1457
1733
  * @param comparisonConfig The comparison configuration.
1458
1734
  * @param terseSummaries The set of terse test summaries.
1735
+ * @param sortMode The sort mode to determine which field to use for scoring.
1459
1736
  */
1460
- declare function categorizeComparisonTestSummaries(comparisonConfig: ComparisonConfig, terseSummaries: ComparisonTestSummary[]): ComparisonCategorizedResults;
1737
+ declare function categorizeComparisonTestSummaries(comparisonConfig: ComparisonConfig, terseSummaries: ComparisonTestSummary[], sortMode: ComparisonSortMode): ComparisonCategorizedResults;
1461
1738
 
1462
1739
  /**
1463
- * Additional options that are passed to `getConfigOptions`. These can be used to customize
1464
- * the `ConfigOptions`, for example, if the `simplifyScenarios` flag is true, a reduced set
1465
- * of tests can be provided in the `ConfigOptions` so that the tests run faster in a local
1466
- * development situation.
1740
+ * Additional options that are passed to `getConfigOptions`.
1467
1741
  */
1468
1742
  interface ConfigInitOptions {
1469
1743
  /** If defined, overrides the displayed name of the baseline ("left") bundle. */
1470
1744
  bundleNameL?: string;
1471
1745
  /** If defined, overrides the displayed name of the current ("right") bundle. */
1472
1746
  bundleNameR?: string;
1473
- /**
1474
- * A hint that the user wants tests to run faster. If true, you can return a
1475
- * configuration that runs a smaller subset of tests than normal.
1476
- */
1477
- simplifyScenarios?: boolean;
1478
1747
  }
1479
1748
  /**
1480
1749
  * The user-specified options used by the library to resolve and initialize a `Config` instance.
@@ -1493,6 +1762,21 @@ interface ConfigOptions {
1493
1762
  * The model comparison options.
1494
1763
  */
1495
1764
  comparison?: ComparisonOptions;
1765
+ /**
1766
+ * The number of model instances to initialize for each bundle.
1767
+ *
1768
+ * If undefined, the default behavior will be used, which is to initialize a single
1769
+ * model instance for each bundle.
1770
+ *
1771
+ * If you set this to a value greater than 1, it will allow multiple pairs of model
1772
+ * instances to be run concurrently. For example, if the number of CPU cores is 8,
1773
+ * setting this to 4 will allow 4 pairs of model instances to be run concurrently,
1774
+ * using all available cores.
1775
+ *
1776
+ * If you set this to 0, the implementation will automatically choose a value based on
1777
+ * the number of available CPU cores (i.e., the number of cores divided by 2).
1778
+ */
1779
+ concurrency?: number;
1496
1780
  }
1497
1781
  /**
1498
1782
  * The resolved configuration for check and comparison tests.
@@ -1506,22 +1790,89 @@ interface Config {
1506
1790
 
1507
1791
  declare function createConfig(options: ConfigOptions): Promise<Config>;
1508
1792
 
1509
- declare class PerfRunner {
1510
- readonly bundleModelL: BundleModel;
1511
- readonly bundleModelR: BundleModel;
1512
- private readonly mode;
1513
- private readonly taskQueue;
1793
+ type CancelRunPerf = () => void;
1794
+ interface RunPerfCallbacks {
1514
1795
  onComplete?: (reportL: PerfReport, reportR: PerfReport) => void;
1515
1796
  onError?: (error: Error) => void;
1516
- constructor(bundleModelL: BundleModel, bundleModelR: BundleModel, mode?: 'serial' | 'parallel');
1517
- start(): void;
1518
1797
  }
1798
+ interface RunPerfOptions {
1799
+ /** The mode to run the performance tests (default is 'serial'). */
1800
+ mode?: 'serial' | 'parallel';
1801
+ /** The number of warmups for each perf run (default is 5). */
1802
+ warmupCount?: number;
1803
+ /** The number of times to run the model for each perf run (default is 100). */
1804
+ runCount?: number;
1805
+ }
1806
+ /**
1807
+ * Run performance tests on the bundle models.
1808
+ *
1809
+ * @param callbacks The callbacks that will be notified.
1810
+ * @param options The options for the performance run.
1811
+ * @return A function that will cancel the process when invoked.
1812
+ */
1813
+ declare function runPerf(callbacks: RunPerfCallbacks, options?: RunPerfOptions): CancelRunPerf;
1814
+
1815
+ /**
1816
+ * The report for a single trace comparison between two datasets.
1817
+ *
1818
+ * TODO: This is basically the same as `DiffReport`, except that it preserves the
1819
+ * diff points. Maybe we can combine them and make the points array an opt-in thing.
1820
+ */
1821
+ interface TraceDatasetReport {
1822
+ datasetKey: DatasetKey;
1823
+ validity: DiffValidity;
1824
+ points: Map<number, DiffPoint>;
1825
+ minValue: number;
1826
+ maxValue: number;
1827
+ avgDiff: number;
1828
+ minDiff: number;
1829
+ maxDiff: number;
1830
+ maxDiffPoint: DiffPoint;
1831
+ }
1832
+ /**
1833
+ * The roll-up report that contains the results of the trace comparisons
1834
+ * for all datasets.
1835
+ */
1836
+ interface TraceReport {
1837
+ datasetReports: Map<DatasetKey, TraceDatasetReport>;
1838
+ }
1839
+
1840
+ type CancelRunTrace = () => void;
1841
+ interface RunTraceCallbacks {
1842
+ onComplete?: (traceReport: TraceReport) => void;
1843
+ onError?: (error: Error) => void;
1844
+ }
1845
+ interface TraceCompareToBundleOptions {
1846
+ kind: 'compare-to-bundle';
1847
+ bundleSide0: 'left' | 'right';
1848
+ scenarioSpec0: ScenarioSpec;
1849
+ bundleSide1: 'left' | 'right';
1850
+ scenarioSpec1: ScenarioSpec;
1851
+ }
1852
+ interface TraceCompareToExtDataOptions {
1853
+ kind: 'compare-to-ext-data';
1854
+ extData: DatasetMap;
1855
+ bundleSide: 'left' | 'right';
1856
+ scenarioSpec: ScenarioSpec;
1857
+ }
1858
+ type TraceOptions = TraceCompareToBundleOptions | TraceCompareToExtDataOptions;
1859
+ /**
1860
+ * Perform a trace run, comparing all datasets from the requested models.
1861
+ *
1862
+ * @param modelSpec The model spec that provides the datasets to be compared (usually from the "right" bundle).
1863
+ * @param callbacks The callbacks that will be notified.
1864
+ * @param options Options to control how the trace is run.
1865
+ * @return A function that will cancel the process when invoked.
1866
+ */
1867
+ declare function runTrace(modelSpec: ModelSpec, callbacks: RunTraceCallbacks, options: TraceOptions): CancelRunTrace;
1519
1868
 
1520
1869
  /**
1521
1870
  * The report for a single run of the full check+comparison test suite.
1522
1871
  */
1523
1872
  interface SuiteReport {
1873
+ /** The check report. */
1524
1874
  checkReport: CheckReport;
1875
+ /** The comparison report (only defined if comparisons were enabled). */
1525
1876
  comparisonReport?: ComparisonReport;
1526
1877
  }
1527
1878
  /**
@@ -1532,7 +1883,13 @@ interface SuiteReport {
1532
1883
  * when there are many reported differences.
1533
1884
  */
1534
1885
  interface SuiteSummary {
1886
+ /** The date and time the suite was run (in ISO 8601 format, as generated by `Date.toISOString`). */
1887
+ date: string;
1888
+ /** The time in milliseconds that it took to run the suite. */
1889
+ elapsed: number;
1890
+ /** The check summary. */
1535
1891
  checkSummary: CheckSummary;
1892
+ /** The comparison summary (only defined if comparisons were enabled). */
1536
1893
  comparisonSummary?: ComparisonSummary;
1537
1894
  }
1538
1895
 
@@ -1543,8 +1900,16 @@ interface RunSuiteCallbacks {
1543
1900
  onError?: (error: Error) => void;
1544
1901
  }
1545
1902
  interface RunSuiteOptions {
1546
- /** Set to true to reduce the number of scenarios generated for a `matrix`. */
1547
- simplifyScenarios?: boolean;
1903
+ /**
1904
+ * The check tests to skip. Note that checks are matched by group and name
1905
+ * (case insensitive).
1906
+ */
1907
+ skipChecks?: CheckNameSpec[];
1908
+ /**
1909
+ * The comparison scenarios to skip. Note that scenarios are matched by
1910
+ * title and subtitle (case insensitive).
1911
+ */
1912
+ skipComparisonScenarios?: ComparisonScenarioTitleSpec[];
1548
1913
  }
1549
1914
  /**
1550
1915
  * Run the full suite of checks and comparisons defined in the given configuration.
@@ -1561,8 +1926,9 @@ declare function runSuite(config: Config, callbacks: RunSuiteCallbacks, options?
1561
1926
  * failed/errored checks or comparisons with differences.
1562
1927
  *
1563
1928
  * @param suiteReport The full suite report.
1929
+ * @param elapsedMillis The time in milliseconds that it took to run the suite.
1564
1930
  * @return The converted suite summary.
1565
1931
  */
1566
- declare function suiteSummaryFromReport(suiteReport: SuiteReport): SuiteSummary;
1932
+ declare function suiteSummaryFromReport(suiteReport: SuiteReport, elapsedMillis: number): SuiteSummary;
1567
1933
 
1568
- export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleModel, CheckDataCoordinator, type CheckDataRequestKey, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type Dimension, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfRunner, PerfStats, type PositionSetting, type RelatedItem, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type Subscript, type SuiteReport, type SuiteSummary, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createConfig, datasetMessage, diffDatasets, diffGraphs, getScoresForTestSummaries, predicateMessage, runSuite, scenarioMessage, suiteSummaryFromReport };
1934
+ export { type AllInputsSpec, type Bundle, type BundleGraphData, type BundleGraphDatasetSpec, type BundleGraphId, type BundleGraphSpec, type BundleGraphView, type BundleModel, type CancelRunPerf, type CancelRunSuite, type CancelRunTrace as CancelTrace, type CheckConfig, CheckDataCoordinator, type CheckDataRef, type CheckDataRefKey, type CheckDataRequestKey, type CheckDataset, type CheckDatasetError, type CheckDatasetReport, type CheckGroupReport, type CheckKey, type CheckNameSpec, type CheckOptions, type CheckPredicateOp, type CheckPredicateOpConstantRef, type CheckPredicateOpDataRef, type CheckPredicateOpRef, type CheckPredicateReport, type CheckPredicateSummary, type CheckPredicateTimeOptions, type CheckPredicateTimeRange, type CheckPredicateTimeSingle, type CheckPredicateTimeSpec, type CheckReport, type CheckResult, type CheckResultErrorInfo, type CheckScenario, type CheckScenarioError, type CheckScenarioInputDesc, type CheckScenarioReport, type CheckStatus, type CheckSummary, type CheckTestReport, type ComparisonCategorizedResults, type ComparisonConfig, ComparisonDataCoordinator, type ComparisonDataRequestKey, type ComparisonDataset, type ComparisonDatasetName, type ComparisonDatasetOptions, type ComparisonDatasetSource, type ComparisonDatasetSpec, type ComparisonDatasets, type ComparisonGraphGroup, type ComparisonGraphGroupId, type ComparisonGraphGroupRefSpec, type ComparisonGraphGroupSpec, type ComparisonGraphId, type ComparisonGraphsArraySpec, type ComparisonGraphsPresetSpec, type ComparisonGroup, type ComparisonGroupKey, type ComparisonGroupKind, type ComparisonGroupRoot, type ComparisonGroupScores, type ComparisonGroupSummariesByCategory, type ComparisonGroupSummary, type ComparisonOptions, type ComparisonPlot, type ComparisonReport, type ComparisonReportDetailItem, type ComparisonReportDetailRow, type ComparisonReportOptions, type ComparisonReportSummaryRow, type ComparisonReportSummarySection, type ComparisonResolverError, type ComparisonResolverInvalidValueError, type ComparisonResolverUnknownInputError, type ComparisonResolverUnknownInputSettingGroupError, type ComparisonScenario, type ComparisonScenarioAllInputsSettings, type ComparisonScenarioGroup, type ComparisonScenarioGroupId, type ComparisonScenarioGroupRefSpec, type ComparisonScenarioGroupSpec, type ComparisonScenarioGroupTitle, type ComparisonScenarioId, type ComparisonScenarioInput, type ComparisonScenarioInputAtPositionSpec, type ComparisonScenarioInputAtValueSpec, type ComparisonScenarioInputName, type ComparisonScenarioInputPosition, type ComparisonScenarioInputSettings, type ComparisonScenarioInputSpec, type ComparisonScenarioInputState, type ComparisonScenarioKey, type ComparisonScenarioPresetMatrixSpec, type ComparisonScenarioRefSpec, type ComparisonScenarioSettings, type ComparisonScenarioSpec, type ComparisonScenarioSubtitle, type ComparisonScenarioTitle, type ComparisonScenarioTitleSpec, type ComparisonScenarioWithAllInputsSpec, type ComparisonScenarioWithDistinctInputsSpec, type ComparisonScenarioWithInputsSpec, type ComparisonScenarioWithSettingGroupSpec, type ComparisonScenarios, type ComparisonSortMode, type ComparisonSpecs, type ComparisonSpecsSource, type ComparisonSummary, type ComparisonTestReport, type ComparisonTestSummary, type ComparisonUnresolvedScenarioGroupRef, type ComparisonUnresolvedScenarioRef, type ComparisonUnresolvedView, type ComparisonView, type ComparisonViewBox, type ComparisonViewBoxSpec, type ComparisonViewGraphOrder, type ComparisonViewGraphsSpec, type ComparisonViewGroup, type ComparisonViewGroupSpec, type ComparisonViewGroupTitle, type ComparisonViewGroupWithScenariosSpec, type ComparisonViewGroupWithViewsSpec, type ComparisonViewItemSubtitle, type ComparisonViewItemTitle, type ComparisonViewRow, type ComparisonViewRowSpec, type ComparisonViewRowSubtitle, type ComparisonViewRowTitle, type ComparisonViewSpec, type ComparisonViewSubtitle, type ComparisonViewTitle, type Config, type ConfigInitOptions, type ConfigOptions, type DataSource, type Dataset, type DatasetGroupName, type DatasetKey, type DatasetMap, type DatasetsResult, type DiffPoint, type DiffReport, type DiffValidity, type EncodedImplVars, type EncodedSubscript, type EncodedVarInstance, type EncodedVarType, type EncodedVariable, type GraphComparisonDatasetReport, type GraphComparisonMetadataReport, type GraphComparisonReport, type GraphInclusion, type ImplVar, type ImplVarGroup, type InputAliasName, type InputGroupName, type InputId, type InputPosition, type InputSetting, type InputSettingGroupId, type InputSettingsSpec, type InputVar, type LegendItem, type LinkItem, type LoadedBundle, type ModelSpec, type NamedBundle, type OutputVar, type PerfReport, PerfStats, type PositionSetting, type RelatedItem, type RunPerfCallbacks, type RunPerfOptions, type RunSuiteCallbacks, type RunSuiteOptions, type ScenarioSpec, type ScenarioSpecUid, type SourceName, type SuiteReport, type SuiteSummary, type RunTraceCallbacks as TraceCallbacks, type TraceCompareToBundleOptions, type TraceCompareToExtDataOptions, type TraceDatasetReport, type TraceOptions, type TraceReport, type ValueSetting, type VarId, categorizeComparisonTestSummaries, checkReportFromSummary, checkSummaryFromReport, comparisonSummaryFromReport, createCheckDataCoordinator, createCheckDataCoordinatorForTests, createComparisonDataCoordinator, createConfig, datasetMessage, decodeImplVars, diffDatasets, diffGraphs, encodeImplVars, getScoresForTestSummaries, predicateMessage, runPerf, runSuite, runTrace, scenarioMessage, suiteSummaryFromReport, testSummaryFromReport };