@sanity/ailf-studio 1.12.1 → 1.14.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +15 -2
  2. package/dist/index.js +1434 -444
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -325,8 +325,15 @@ interface ComparisonData {
325
325
  docLift: number;
326
326
  overall: number;
327
327
  actualDelta?: number;
328
- /** Per-area score deltas — e.g. `{ "GROQ": 5.2, "Functions": -2.1 }` */
329
- perArea?: Record<string, number>;
328
+ /** Per-area score deltas — e.g. `[{ area: "GROQ", delta: 5.2 }, …]`
329
+ *
330
+ * Reshaped from a keyed map to an array in W0137 / D0041 to stop minting
331
+ * a new Sanity attribute path for every feature area. Use
332
+ * `perArea.find((p) => p.area === name)?.delta` to look up a value. */
333
+ perArea?: {
334
+ area: string;
335
+ delta: number;
336
+ }[];
330
337
  retrievalGapDelta?: number;
331
338
  infrastructureEfficiencyDelta?: number;
332
339
  };
@@ -770,9 +777,14 @@ interface SummaryData {
770
777
  interface TimelineDataPoint {
771
778
  _id: string;
772
779
  actualScore?: number | null;
780
+ areas?: null | string[];
773
781
  completedAt: string;
782
+ durationMs?: null | number;
774
783
  mode: string;
784
+ models?: null | string[];
775
785
  overall: number;
786
+ ownerTeam?: null | string;
787
+ reportId: null | string;
776
788
  scores: {
777
789
  feature: string;
778
790
  totalScore: number;
@@ -781,6 +793,7 @@ interface TimelineDataPoint {
781
793
  source: string;
782
794
  tag: null | string;
783
795
  title: null | string;
796
+ trigger?: null | string;
784
797
  }
785
798
  /**
786
799
  * A single help topic extracted from markdown docs at build time.