@meridianlabs/inspect-scout-viewer 0.4.7 → 0.4.9

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 (30) hide show
  1. package/lib/app/components/ScoreValue.d.ts +9 -0
  2. package/lib/app/scan/scanners/dataframe/DataframeGridApiContext.d.ts +7 -0
  3. package/lib/app/scan/scanners/dataframe/ScannerDataframeCSVButtons.d.ts +9 -0
  4. package/lib/app/transcript/TranscriptBody.d.ts +4 -0
  5. package/lib/app/transcript/TranscriptFilterPopover.d.ts +7 -0
  6. package/lib/app/transcript/hooks/useTranscriptColumnFilter.d.ts +11 -0
  7. package/lib/app/transcript/hooks/useTranscriptNavigation.d.ts +12 -0
  8. package/lib/app/transcripts/columnFilter/ColumnFilterEditor.d.ts +13 -0
  9. package/lib/app/transcripts/columnFilter/DurationInput.d.ts +9 -0
  10. package/lib/app/transcripts/columnFilter/useAddFilterPopover.d.ts +34 -0
  11. package/lib/app/transcripts/columnFilter/useColumnFilter.d.ts +9 -1
  12. package/lib/app/transcripts/columnFilter/useColumnFilterPopover.d.ts +3 -0
  13. package/lib/app/transcripts/columns.d.ts +7 -0
  14. package/lib/app/types.d.ts +1 -0
  15. package/lib/components/AutocompleteInput.d.ts +2 -0
  16. package/lib/components/FindBand.d.ts +6 -0
  17. package/lib/components/ToolButton.d.ts +1 -0
  18. package/lib/components/content/DisplayModeContext.d.ts +9 -0
  19. package/lib/components/icons.d.ts +1 -0
  20. package/lib/components/transcript/ScoreEventView.d.ts +0 -1
  21. package/lib/components/transcript/outline/OutlineRow.d.ts +1 -0
  22. package/lib/components/transcript/types.d.ts +2 -0
  23. package/lib/index.js +3533 -1917
  24. package/lib/index.js.map +1 -1
  25. package/lib/query/transcriptColumns.d.ts +1 -0
  26. package/lib/router/url.d.ts +1 -0
  27. package/lib/state/store.d.ts +11 -1
  28. package/lib/styles/index.css +375 -212
  29. package/lib/types/generated.d.ts +294 -0
  30. package/package.json +1 -1
@@ -244,6 +244,82 @@ export interface paths {
244
244
  patch?: never;
245
245
  trace?: never;
246
246
  };
247
+ "/validations": {
248
+ parameters: {
249
+ query?: never;
250
+ header?: never;
251
+ path?: never;
252
+ cookie?: never;
253
+ };
254
+ /**
255
+ * List validation files
256
+ * @description Scans the project directory for validation files (.csv, .yaml, .json, .jsonl) and returns their URIs.
257
+ */
258
+ get: operations["list_validations_validations_get"];
259
+ put?: never;
260
+ /**
261
+ * Create a validation file
262
+ * @description Creates a new validation file at the specified path with optional initial cases. Returns the URI of the created file.
263
+ */
264
+ post: operations["create_validation_validations_post"];
265
+ delete?: never;
266
+ options?: never;
267
+ head?: never;
268
+ patch?: never;
269
+ trace?: never;
270
+ };
271
+ "/validations/{uri}": {
272
+ parameters: {
273
+ query?: never;
274
+ header?: never;
275
+ path?: never;
276
+ cookie?: never;
277
+ };
278
+ /**
279
+ * Get validation cases
280
+ * @description Returns all cases from a validation file.
281
+ */
282
+ get: operations["get_validation_cases_validations__uri__get"];
283
+ put?: never;
284
+ post?: never;
285
+ /**
286
+ * Delete a validation file
287
+ * @description Deletes a validation file from the project.
288
+ */
289
+ delete: operations["delete_validation_validations__uri__delete"];
290
+ options?: never;
291
+ head?: never;
292
+ patch?: never;
293
+ trace?: never;
294
+ };
295
+ "/validations/{uri}/{case_id}": {
296
+ parameters: {
297
+ query?: never;
298
+ header?: never;
299
+ path?: never;
300
+ cookie?: never;
301
+ };
302
+ /**
303
+ * Get a specific case
304
+ * @description Returns a specific case from a validation file by ID.
305
+ */
306
+ get: operations["get_validation_case_validations__uri___case_id__get"];
307
+ put?: never;
308
+ /**
309
+ * Create or update a case
310
+ * @description Creates or updates a case in a validation file. If the case ID exists, it will be updated; otherwise, a new case will be created.
311
+ */
312
+ post: operations["upsert_validation_case_validations__uri___case_id__post"];
313
+ /**
314
+ * Delete a case
315
+ * @description Deletes a case from a validation file.
316
+ */
317
+ delete: operations["delete_validation_case_validations__uri___case_id__delete"];
318
+ options?: never;
319
+ head?: never;
320
+ patch?: never;
321
+ trace?: never;
322
+ };
247
323
  }
248
324
  export type webhooks = Record<string, never>;
249
325
  export interface components {
@@ -814,6 +890,13 @@ export interface components {
814
890
  /** Video */
815
891
  video: string;
816
892
  };
893
+ /** CreateValidationSetRequest */
894
+ CreateValidationSetRequest: {
895
+ /** Cases */
896
+ cases: components["schemas"]["ValidationCaseRequest"][];
897
+ /** Path */
898
+ path: string;
899
+ };
817
900
  /** DistinctRequest */
818
901
  DistinctRequest: {
819
902
  /** Column */
@@ -3341,6 +3424,8 @@ export interface components {
3341
3424
  events: (components["schemas"]["SampleInitEvent"] | components["schemas"]["SampleLimitEvent"] | components["schemas"]["SandboxEvent"] | components["schemas"]["StateEvent"] | components["schemas"]["StoreEvent"] | components["schemas"]["ModelEvent"] | components["schemas"]["ToolEvent"] | components["schemas"]["ApprovalEvent"] | components["schemas"]["InputEvent"] | components["schemas"]["ScoreEvent"] | components["schemas"]["ScoreEditEvent"] | components["schemas"]["ErrorEvent"] | components["schemas"]["LoggerEvent"] | components["schemas"]["InfoEvent"] | components["schemas"]["SpanBeginEvent"] | components["schemas"]["SpanEndEvent"] | components["schemas"]["StepEvent"] | components["schemas"]["SubtaskEvent"])[];
3342
3425
  /** Limit */
3343
3426
  limit?: string | null;
3427
+ /** Message Count */
3428
+ message_count?: number | null;
3344
3429
  /** Messages */
3345
3430
  messages: (components["schemas"]["ChatMessageSystem"] | components["schemas"]["ChatMessageUser"] | components["schemas"]["ChatMessageAssistant"] | components["schemas"]["ChatMessageTool"])[];
3346
3431
  /** Metadata */
@@ -3404,6 +3489,8 @@ export interface components {
3404
3489
  error?: string | null;
3405
3490
  /** Limit */
3406
3491
  limit?: string | null;
3492
+ /** Message Count */
3493
+ message_count?: number | null;
3407
3494
  /** Metadata */
3408
3495
  metadata: {
3409
3496
  [key: string]: unknown;
@@ -3503,9 +3590,33 @@ export interface components {
3503
3590
  labels: {
3504
3591
  [key: string]: components["schemas"]["JsonValue"];
3505
3592
  } | null;
3593
+ /**
3594
+ * Predicate
3595
+ * @default null
3596
+ */
3597
+ predicate: ("gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "startswith" | "endswith" | "icontains" | "iequals") | null;
3598
+ /**
3599
+ * Split
3600
+ * @default null
3601
+ */
3602
+ split: string | null;
3506
3603
  /** @default null */
3507
3604
  target: components["schemas"]["JsonValue"] | null;
3508
3605
  };
3606
+ /** ValidationCaseRequest */
3607
+ ValidationCaseRequest: {
3608
+ /** Id */
3609
+ id?: string | string[] | null;
3610
+ /** Labels */
3611
+ labels?: {
3612
+ [key: string]: components["schemas"]["JsonValue"];
3613
+ } | null;
3614
+ /** Predicate */
3615
+ predicate?: string | null;
3616
+ /** Split */
3617
+ split?: string | null;
3618
+ target?: components["schemas"]["JsonValue"] | null;
3619
+ };
3509
3620
  /** ValidationError */
3510
3621
  ValidationError: {
3511
3622
  /** Location */
@@ -3527,6 +3638,8 @@ export interface components {
3527
3638
  * @default eq
3528
3639
  */
3529
3640
  predicate: ("gt" | "gte" | "lt" | "lte" | "eq" | "ne" | "contains" | "startswith" | "endswith" | "icontains" | "iequals") | null;
3641
+ /** Split */
3642
+ split?: string | string[] | null;
3530
3643
  };
3531
3644
  /**
3532
3645
  * ValidationSet
@@ -3537,6 +3650,8 @@ export interface components {
3537
3650
  cases: components["schemas"]["ValidationCase"][];
3538
3651
  /** Predicate */
3539
3652
  predicate: string | null;
3653
+ /** Split */
3654
+ split?: string | string[] | null;
3540
3655
  };
3541
3656
  /**
3542
3657
  * Worklist
@@ -3872,4 +3987,183 @@ export interface operations {
3872
3987
  };
3873
3988
  };
3874
3989
  };
3990
+ list_validations_validations_get: {
3991
+ parameters: {
3992
+ query?: never;
3993
+ header?: never;
3994
+ path?: never;
3995
+ cookie?: never;
3996
+ };
3997
+ requestBody?: never;
3998
+ responses: {
3999
+ /** @description Successful Response */
4000
+ 200: {
4001
+ headers: {
4002
+ [name: string]: unknown;
4003
+ };
4004
+ content: {
4005
+ "application/json": string[];
4006
+ };
4007
+ };
4008
+ };
4009
+ };
4010
+ create_validation_validations_post: {
4011
+ parameters: {
4012
+ query?: never;
4013
+ header?: never;
4014
+ path?: never;
4015
+ cookie?: never;
4016
+ };
4017
+ requestBody: {
4018
+ content: {
4019
+ "application/json": components["schemas"]["CreateValidationSetRequest"];
4020
+ };
4021
+ };
4022
+ responses: {
4023
+ /** @description Successful Response */
4024
+ 200: {
4025
+ headers: {
4026
+ [name: string]: unknown;
4027
+ };
4028
+ content: {
4029
+ "application/json": string;
4030
+ };
4031
+ };
4032
+ };
4033
+ };
4034
+ get_validation_cases_validations__uri__get: {
4035
+ parameters: {
4036
+ query?: never;
4037
+ header?: never;
4038
+ path: {
4039
+ /** @description Validation file URI (base64url-encoded) */
4040
+ uri: string;
4041
+ };
4042
+ cookie?: never;
4043
+ };
4044
+ requestBody?: never;
4045
+ responses: {
4046
+ /** @description Successful Response */
4047
+ 200: {
4048
+ headers: {
4049
+ [name: string]: unknown;
4050
+ };
4051
+ content: {
4052
+ "application/json": {
4053
+ [key: string]: unknown;
4054
+ }[];
4055
+ };
4056
+ };
4057
+ };
4058
+ };
4059
+ delete_validation_validations__uri__delete: {
4060
+ parameters: {
4061
+ query?: never;
4062
+ header?: never;
4063
+ path: {
4064
+ /** @description Validation file URI (base64url-encoded) */
4065
+ uri: string;
4066
+ };
4067
+ cookie?: never;
4068
+ };
4069
+ requestBody?: never;
4070
+ responses: {
4071
+ /** @description Successful Response */
4072
+ 200: {
4073
+ headers: {
4074
+ [name: string]: unknown;
4075
+ };
4076
+ content: {
4077
+ "application/json": {
4078
+ [key: string]: boolean;
4079
+ };
4080
+ };
4081
+ };
4082
+ };
4083
+ };
4084
+ get_validation_case_validations__uri___case_id__get: {
4085
+ parameters: {
4086
+ query?: never;
4087
+ header?: never;
4088
+ path: {
4089
+ /** @description Validation file URI (base64url-encoded) */
4090
+ uri: string;
4091
+ /** @description Case ID (base64url-encoded) */
4092
+ case_id: string;
4093
+ };
4094
+ cookie?: never;
4095
+ };
4096
+ requestBody?: never;
4097
+ responses: {
4098
+ /** @description Successful Response */
4099
+ 200: {
4100
+ headers: {
4101
+ [name: string]: unknown;
4102
+ };
4103
+ content: {
4104
+ "application/json": {
4105
+ [key: string]: unknown;
4106
+ };
4107
+ };
4108
+ };
4109
+ };
4110
+ };
4111
+ upsert_validation_case_validations__uri___case_id__post: {
4112
+ parameters: {
4113
+ query?: never;
4114
+ header?: never;
4115
+ path: {
4116
+ /** @description Validation file URI (base64url-encoded) */
4117
+ uri: string;
4118
+ /** @description Case ID (base64url-encoded) */
4119
+ case_id: string;
4120
+ };
4121
+ cookie?: never;
4122
+ };
4123
+ requestBody: {
4124
+ content: {
4125
+ "application/json": components["schemas"]["ValidationCaseRequest"];
4126
+ };
4127
+ };
4128
+ responses: {
4129
+ /** @description Successful Response */
4130
+ 200: {
4131
+ headers: {
4132
+ [name: string]: unknown;
4133
+ };
4134
+ content: {
4135
+ "application/json": {
4136
+ [key: string]: unknown;
4137
+ };
4138
+ };
4139
+ };
4140
+ };
4141
+ };
4142
+ delete_validation_case_validations__uri___case_id__delete: {
4143
+ parameters: {
4144
+ query?: never;
4145
+ header?: never;
4146
+ path: {
4147
+ /** @description Validation file URI (base64url-encoded) */
4148
+ uri: string;
4149
+ /** @description Case ID (base64url-encoded) */
4150
+ case_id: string;
4151
+ };
4152
+ cookie?: never;
4153
+ };
4154
+ requestBody?: never;
4155
+ responses: {
4156
+ /** @description Successful Response */
4157
+ 200: {
4158
+ headers: {
4159
+ [name: string]: unknown;
4160
+ };
4161
+ content: {
4162
+ "application/json": {
4163
+ [key: string]: boolean;
4164
+ };
4165
+ };
4166
+ };
4167
+ };
4168
+ };
3875
4169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridianlabs/inspect-scout-viewer",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "Inspect Scout viewer for evaluation logs.",
5
5
  "license": "MIT",
6
6
  "type": "module",