@metrevals/inspect-scout-viewer 0.3.1-beta.1763988111 → 0.3.2-beta.1764375871

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.
@@ -2,7 +2,7 @@ import { GridState } from 'ag-grid-community';
2
2
  import { ColumnTable } from 'arquero';
3
3
  import { StateSnapshot } from 'react-virtuoso';
4
4
  import { ScanApi } from '../api/api';
5
- import { ErrorScope, ScannerCore } from '../app/types';
5
+ import { ErrorScope, ScannerCore, SortColumn } from '../app/types';
6
6
  import { Status } from '../types';
7
7
  interface StoreState {
8
8
  singleFileMode?: boolean;
@@ -34,8 +34,10 @@ interface StoreState {
34
34
  selectedFilter?: string;
35
35
  showingRefPopover?: string;
36
36
  groupResultsBy?: "source" | "label" | "none";
37
+ sortResults?: SortColumn[];
37
38
  scansSearchText?: string;
38
39
  highlightLabeled?: boolean;
40
+ selectedResultRow?: number;
39
41
  transcriptCollapsedEvents: Record<string, Record<string, boolean>>;
40
42
  transcriptOutlineId?: string;
41
43
  setSingleFileMode: (enabled: boolean) => void;
@@ -92,8 +94,10 @@ interface StoreState {
92
94
  setShowingRefPopover: (popoverKey: string) => void;
93
95
  clearShowingRefPopover: () => void;
94
96
  setGroupResultsBy: (groupBy: "source" | "label" | "none") => void;
97
+ setSortResults: (sortColumns?: SortColumn[]) => void;
95
98
  setScansSearchText: (text: string) => void;
96
99
  setHighlightLabeled: (highlight: boolean) => void;
100
+ setSelectedResultRow: (row: number) => void;
97
101
  }
98
102
  export declare const createStore: (api: ScanApi) => import('zustand').UseBoundStore<Omit<Omit<Omit<import('zustand').StoreApi<StoreState>, "setState" | "devtools"> & {
99
103
  setState(partial: StoreState | Partial<StoreState> | ((state: StoreState) => StoreState | Partial<StoreState>), replace?: false | undefined, action?: (string | {
@@ -499,6 +499,29 @@
499
499
  .markdown-content p:last-child {
500
500
  margin-bottom: 0;
501
501
  }
502
+ ._cite_1t1bm_1 {
503
+ color: var(--bs-primary-text-emphasis);
504
+ text-decoration: underline;
505
+ text-decoration-style: dashed;
506
+ cursor: pointer;
507
+ }
508
+
509
+ ._cite_1t1bm_1:hover {
510
+ text-decoration-style: solid;
511
+ background-color: var(--bs-primary-bg-subtle);
512
+ }
513
+ ._panel_twp3v_1 {
514
+ width: 100%;
515
+ display: flex;
516
+ justify-content: center;
517
+ }
518
+
519
+ ._container_twp3v_7 {
520
+ margin-top: 3em;
521
+ display: grid;
522
+ grid-template-columns: max-content max-content;
523
+ column-gap: 0.3em;
524
+ }
502
525
  ._content_13ihw_1 {
503
526
  white-space: pre-wrap;
504
527
  }
@@ -661,24 +684,24 @@ a._citationLink_1ggvf_9:hover {
661
684
  ._textCode_1wvgr_18 {
662
685
  word-wrap: anywhere;
663
686
  }
664
- ._grid_ws7d1_1 {
687
+ ._grid_17ltx_1 {
665
688
  display: grid;
666
689
  grid-template-columns: max-content auto;
667
690
  column-gap: 0.4rem;
668
691
  row-gap: 0;
669
692
  }
670
693
 
671
- ._number_ws7d1_8 {
694
+ ._number_17ltx_8 {
672
695
  margin-top: 0.1em;
673
696
  }
674
697
 
675
- ._user_ws7d1_12 {
698
+ ._user_17ltx_12 {
676
699
  background-color: var(--bs-secondary-bg);
677
700
  border-radius: var(--bs-border-radius);
678
701
  border: solid 1px var(--bs-light-border-subtle);
679
702
  }
680
703
 
681
- ._container_ws7d1_18 {
704
+ ._container_17ltx_18 {
682
705
  padding-left: 0.7rem;
683
706
  padding-right: 0.7rem;
684
707
  padding-top: 0.5rem;
@@ -686,27 +709,47 @@ a._citationLink_1ggvf_9:hover {
686
709
  border-right: solid 1px var(--bs-light-border-subtle);
687
710
  }
688
711
 
689
- ._first_ws7d1_26 {
712
+ ._first_17ltx_26 {
690
713
  border-top-left-radius: var(--bs-border-radius);
691
714
  border-top-right-radius: var(--bs-border-radius);
692
715
  border-top: solid 1px var(--bs-light-border-subtle);
693
716
  padding-top: 0.7rem;
694
717
  }
695
718
 
696
- ._last_ws7d1_33 {
719
+ ._last_17ltx_33 {
697
720
  border-bottom-left-radius: var(--bs-border-radius);
698
721
  border-bottom-right-radius: var(--bs-border-radius);
699
722
  border-bottom: solid 1px var(--bs-light-border-subtle);
700
723
  padding-bottom: 0.7rem;
701
724
  }
702
725
 
703
- ._label_ws7d1_40 {
726
+ ._label_17ltx_40 {
704
727
  padding-top: 0.7rem;
705
728
  }
706
729
 
707
- ._highlight_ws7d1_44 {
730
+ ._highlight_17ltx_44 {
708
731
  background-color: rgba(var(--bs-info-rgb), 0.12);
709
732
  }
733
+
734
+ ._bottomMargin_17ltx_48 {
735
+ margin-bottom: 0.5rem;
736
+ }
737
+ ._sourcePanel_bat6y_1 {
738
+ width: 100%;
739
+ padding: 0.5em;
740
+ }
741
+
742
+ ._sourcePanel_bat6y_1:not(._simple_bat6y_6) {
743
+ background: var(--bs-light);
744
+ border-radius: var(--bs-border-radius);
745
+ }
746
+
747
+ ._sourcePanel_bat6y_1 ._code_bat6y_11 {
748
+ font-size: var(--inspect-font-size-small);
749
+ white-space: pre-wrap !important;
750
+ word-wrap: anywhere !important;
751
+ background: transparent !important;
752
+ }
710
753
  ._toolCallView_x6cus_1 {
711
754
  display: grid;
712
755
  row-gap: 0.5em;
@@ -3908,29 +3951,6 @@ span.ap-marker-container:hover span.ap-marker {
3908
3951
  height: 100%;
3909
3952
  overflow-y: auto;
3910
3953
  }
3911
- ._panel_twp3v_1 {
3912
- width: 100%;
3913
- display: flex;
3914
- justify-content: center;
3915
- }
3916
-
3917
- ._container_twp3v_7 {
3918
- margin-top: 3em;
3919
- display: grid;
3920
- grid-template-columns: max-content max-content;
3921
- column-gap: 0.3em;
3922
- }
3923
- ._cite_1t1bm_1 {
3924
- color: var(--bs-primary-text-emphasis);
3925
- text-decoration: underline;
3926
- text-decoration-style: dashed;
3927
- cursor: pointer;
3928
- }
3929
-
3930
- ._cite_1t1bm_1:hover {
3931
- text-decoration-style: solid;
3932
- background-color: var(--bs-primary-bg-subtle);
3933
- }
3934
3954
  ._boolean_xgip4_1 {
3935
3955
  font-family: "Consola Regular";
3936
3956
  display: inline-flex;
@@ -4293,22 +4313,27 @@ button._segment_19z32_10 {
4293
4313
  ._gridWrapper_yeano_1 .ag-cell {
4294
4314
  line-height: 1.1em;
4295
4315
  }
4296
- ._header_cpxb8_1 {
4316
+ ._header_u9u40_1 {
4297
4317
  border-bottom: solid var(--bs-light-border-subtle) 1px;
4298
4318
  padding: 0.3rem 1rem;
4319
+ user-select: none;
4299
4320
  }
4300
4321
 
4301
- ._center_cpxb8_6 {
4322
+ ._center_u9u40_7 {
4302
4323
  justify-self: center;
4303
4324
  }
4304
4325
 
4305
- ._shrinkable_cpxb8_10 {
4326
+ ._shrinkable_u9u40_11 {
4306
4327
  min-width: 0;
4307
4328
  max-width: 100%;
4308
4329
  white-space: nowrap;
4309
4330
  overflow: hidden;
4310
4331
  text-overflow: ellipsis;
4311
4332
  }
4333
+
4334
+ ._clickable_u9u40_19 {
4335
+ cursor: pointer;
4336
+ }
4312
4337
  ._row_q8zt3_1 {
4313
4338
  border-bottom: solid 1px var(--bs-border-color);
4314
4339
  padding: 0.25rem 1rem;
@@ -38,3 +38,10 @@ export declare function formatDateTime(date: Date): string;
38
38
  * Returns the formatted duration between two dates
39
39
  */
40
40
  export declare function formatDuration(start: Date, end: Date): string;
41
+ /**
42
+ * Truncates a string from the center, showing start and end with ellipsis in the middle.
43
+ * @param str - The string to truncate
44
+ * @param maxLength - Maximum length of the output string (default: 50)
45
+ * @returns The truncated string with ellipsis in the middle if needed
46
+ */
47
+ export declare function centerTruncate(str: string, maxLength?: number): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metrevals/inspect-scout-viewer",
3
- "version": "0.3.1-beta.1763988111",
3
+ "version": "0.3.2-beta.1764375871",
4
4
  "description": "Inspect Scout viewer for evaluation logs.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "watch": "vite build --watch",
26
26
  "watch:dev": "NODE_ENV=development vite build --watch --mode development",
27
27
  "dev": "vite",
28
- "prepublishOnly": "pnpm build:lib",
28
+ "prepublishOnly": "npm version from-git --no-git-tag-version --allow-same-version && pnpm build:lib",
29
29
  "preview": "vite preview",
30
30
  "lint": "eslint . --max-warnings 0",
31
31
  "lint:fix": "eslint . --fix --max-warnings 0",
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- export interface MarkdownReference {
3
- id: string;
4
- cite: string;
5
- renderCitePreview: () => React.ReactNode;
6
- url?: string;
7
- }
8
- interface MarkdownDivWithReferencesProps {
9
- markdown: string;
10
- references: MarkdownReference[];
11
- className?: string | string[];
12
- }
13
- export declare const MarkdownDivWithReferences: FC<MarkdownDivWithReferencesProps>;
14
- export {};