@meridianlabs/inspect-scout-viewer 0.4.41 → 0.4.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridianlabs/inspect-scout-viewer",
3
- "version": "0.4.41",
3
+ "version": "0.4.43",
4
4
  "description": "Inspect Scout viewer for evaluation logs.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -54,8 +54,8 @@
54
54
  "devDependencies": {
55
55
  "@msw/playwright": "^0.6.7",
56
56
  "@playwright/test": "^1.60.0",
57
- "@tanstack/react-query": "^5.100.14",
58
- "@tanstack/react-query-devtools": "^5.100.14",
57
+ "@tanstack/react-query": "^5.101.0",
58
+ "@tanstack/react-query-devtools": "^5.101.0",
59
59
  "@testing-library/react": "^16.3.1",
60
60
  "@tsmono/eslint-config": "workspace:*",
61
61
  "@tsmono/inspect-common": "workspace:*",
@@ -73,7 +73,7 @@
73
73
  "@types/lz4js": "^0.2.2",
74
74
  "@types/markdown-it": "^14.1.2",
75
75
  "@types/prismjs": "^1.26.5",
76
- "@types/react": "^19.2.16",
76
+ "@types/react": "^19.2.17",
77
77
  "@types/react-dom": "^19.2.3",
78
78
  "@vitejs/plugin-react": "^6.0.2",
79
79
  "eslint": "^9.39.4",
@@ -88,7 +88,7 @@
88
88
  "react-dom": "^19.2.7",
89
89
  "typed-css-modules": "^0.9.1",
90
90
  "typescript": "^6.0.3",
91
- "typescript-eslint": "^8.60.1",
91
+ "typescript-eslint": "^8.61.0",
92
92
  "typescript-plugin-css-modules": "^5.2.0",
93
93
  "vite": "^8.0.16",
94
94
  "vite-plugin-dts": "^5.0.2",
@@ -118,7 +118,7 @@
118
118
  "markdown-it": "^14.2.0",
119
119
  "prismjs": "^1.30.0",
120
120
  "react-popper": "^2.3.0",
121
- "react-router-dom": "^7.16.0",
121
+ "react-router-dom": "^7.17.0",
122
122
  "zustand": "^5.0.14"
123
123
  }
124
124
  }
@@ -1,43 +0,0 @@
1
- import { AsyncData } from '@tsmono/util';
2
- import { SearchResultScope } from '../../api/api';
3
- import { SearchInputListResponse, SearchRequest } from '../../types/api-types';
4
- type SearchParams = {
5
- transcriptDir: string;
6
- transcriptId: string;
7
- };
8
- type SearchInputParams = {
9
- searchType: SearchRequest["type"];
10
- count?: number;
11
- };
12
- type CachedSearchResultParams = SearchParams & {
13
- scope: SearchResultScope;
14
- searchId: string | null;
15
- };
16
- export declare const DEFAULT_RECENT_SEARCH_COUNT = 20;
17
- export declare const searchQueryKeys: {
18
- searches: ({ searchType, count, }: SearchInputParams) => readonly ["searches", SearchRequest["type"], number];
19
- cachedResult: ({ transcriptDir, transcriptId, scope, searchId, }: {
20
- transcriptDir: string;
21
- transcriptId: string;
22
- scope: SearchResultScope;
23
- searchId: string;
24
- }) => readonly ["search-result", string, string, SearchResultScope, string];
25
- };
26
- export declare const useSearches: (params: SearchInputParams) => AsyncData<SearchInputListResponse>;
27
- export declare const useCreateSearch: (params: SearchParams) => import('@tanstack/react-query').UseMutationResult<{
28
- id: string;
29
- result: import('../../types/generated').components["schemas"]["Result"];
30
- }, Error, SearchRequest, unknown>;
31
- export declare const useCachedSearchResult: (params: CachedSearchResultParams) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
32
- answer?: string | null;
33
- explanation?: string | null;
34
- label?: string | null;
35
- metadata?: {
36
- [key: string]: unknown;
37
- } | null;
38
- references: import('../../types/generated').components["schemas"]["Reference"][];
39
- type?: string | null;
40
- uuid?: string | null;
41
- value: import('../../types/generated').components["schemas"]["JsonValue"];
42
- } | null>, Error>;
43
- export {};
@@ -1,35 +0,0 @@
1
- import { GrepOptions, SearchType, TranscriptSearchScope } from './searchRequest';
2
- export type GrepSearchPanelState = {
3
- query: string;
4
- grepOptions: GrepOptions;
5
- searchId: string | null;
6
- };
7
- export type LlmSearchPanelState = {
8
- query: string;
9
- model: string;
10
- searchId: string | null;
11
- };
12
- export type SearchPanelState = {
13
- searchType: SearchType;
14
- searches: {
15
- grep: GrepSearchPanelState;
16
- llm: LlmSearchPanelState;
17
- };
18
- };
19
- type StoredGrepSearchPanelState = Partial<Omit<GrepSearchPanelState, "grepOptions">> & {
20
- grepOptions?: Partial<GrepOptions>;
21
- };
22
- export type StoredSearchPanelState = {
23
- searchType?: SearchType;
24
- searches?: {
25
- grep?: StoredGrepSearchPanelState;
26
- llm?: Partial<LlmSearchPanelState>;
27
- };
28
- };
29
- export declare const createInitialSearchPanelState: () => SearchPanelState;
30
- export declare const normalizeSearchPanelState: (state?: StoredSearchPanelState) => SearchPanelState;
31
- export declare const getSearchPanelStateKey: ({ scope, transcriptDir, }: {
32
- scope: TranscriptSearchScope;
33
- transcriptDir: string;
34
- }) => string;
35
- export {};
@@ -1,22 +0,0 @@
1
- import { SearchRequest } from '../../types/api-types';
2
- export type SearchType = "grep" | "llm";
3
- export type TranscriptSearchScope = "events" | "messages";
4
- export type GrepOptions = {
5
- ignoreCase: boolean;
6
- regex: boolean;
7
- wordBoundary: boolean;
8
- };
9
- type BuildSearchRequestOptions = {
10
- grepOptions: GrepOptions;
11
- model: string;
12
- query: string;
13
- scope: TranscriptSearchScope;
14
- searchType: SearchType;
15
- };
16
- export type SearchScopeFields = {
17
- events?: "all";
18
- messages?: "all";
19
- };
20
- export declare const buildSearchScope: (scope: TranscriptSearchScope) => SearchScopeFields;
21
- export declare const buildSearchRequest: ({ grepOptions, model, query, scope, searchType, }: BuildSearchRequestOptions) => SearchRequest;
22
- export {};
@@ -1,5 +0,0 @@
1
- export type AutosizeTextareaConfig = {
2
- minRows: number;
3
- maxRows: number;
4
- };
5
- export declare function autosizeTextarea(el: HTMLElement, config: AutosizeTextareaConfig): void;