@meridianlabs/inspect-scout-viewer 0.2.3-beta.1763488933
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/README.md +97 -0
- package/lib/App.d.ts +2 -0
- package/lib/AppErrorBoundary.d.ts +15 -0
- package/lib/AppRouter.d.ts +1 -0
- package/lib/_commonjsHelpers-DWwsNxpa.js +9 -0
- package/lib/_commonjsHelpers-DWwsNxpa.js.map +1 -0
- package/lib/api/api-scout-server.d.ts +7 -0
- package/lib/api/api-vscode.d.ts +3 -0
- package/lib/api/api.d.ts +10 -0
- package/lib/api/jsonrpc.d.ts +43 -0
- package/lib/api/request.d.ts +25 -0
- package/lib/app/appearance/fonts.d.ts +26 -0
- package/lib/app/appearance/icons.d.ts +129 -0
- package/lib/app/appearance/styles.d.ts +38 -0
- package/lib/app/components/Footer.d.ts +20 -0
- package/lib/app/components/MarkdownDivWithReferences.d.ts +14 -0
- package/lib/app/components/Pager.d.ts +9 -0
- package/lib/app/hooks.d.ts +18 -0
- package/lib/app/navbar/Navbar.d.ts +7 -0
- package/lib/app/navbar/useBreadcrumbTruncation.d.ts +12 -0
- package/lib/app/result/ScanResultHeader.d.ts +7 -0
- package/lib/app/result/ScanResultNav.d.ts +2 -0
- package/lib/app/result/ScanResultPanel.d.ts +2 -0
- package/lib/app/result/info/InfoPanel.d.ts +8 -0
- package/lib/app/result/input/InputPanel.d.ts +6 -0
- package/lib/app/result/result/ResultPanel.d.ts +7 -0
- package/lib/app/result/transcript/TranscriptPanel.d.ts +10 -0
- package/lib/app/scanJobs/ScanJobGrid.d.ts +2 -0
- package/lib/app/scanJobs/ScanJobsPanel.d.ts +2 -0
- package/lib/app/scanner/ScannerPanel.d.ts +2 -0
- package/lib/app/scanner/ScannerPanelBody.d.ts +3 -0
- package/lib/app/scanner/ScannerPanelTitle.d.ts +2 -0
- package/lib/app/scanner/info/ScanInfo.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsBody.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsFilter.d.ts +4 -0
- package/lib/app/scanner/results/ScanResultsGroup.d.ts +6 -0
- package/lib/app/scanner/results/ScanResultsOutline.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsPanel.d.ts +2 -0
- package/lib/app/scanner/results/ScanResultsSearch.d.ts +2 -0
- package/lib/app/scanner/results/list/ScanHeader.d.ts +7 -0
- package/lib/app/scanner/results/list/ScanResultsGroup.d.ts +6 -0
- package/lib/app/scanner/results/list/ScanResultsList.d.ts +12 -0
- package/lib/app/scanner/results/list/ScanResultsRow.d.ts +9 -0
- package/lib/app/types.d.ts +116 -0
- package/lib/app/utils/arrow.d.ts +2 -0
- package/lib/app/utils/refs.d.ts +4 -0
- package/lib/app/utils/results.d.ts +9 -0
- package/lib/app/values/Explanation.d.ts +7 -0
- package/lib/app/values/Identifier.d.ts +7 -0
- package/lib/app/values/Value.d.ts +8 -0
- package/lib/chat/ChatMessage.d.ts +13 -0
- package/lib/chat/ChatMessageRenderer.d.ts +15 -0
- package/lib/chat/ChatMessageRow.d.ts +18 -0
- package/lib/chat/ChatView.d.ts +20 -0
- package/lib/chat/ChatViewVirtualList.d.ts +29 -0
- package/lib/chat/JsonMessageContent.d.ts +7 -0
- package/lib/chat/MessageCitations.d.ts +6 -0
- package/lib/chat/MessageContent.d.ts +18 -0
- package/lib/chat/MessageContents.d.ts +18 -0
- package/lib/chat/content-data/ContentDataView.d.ts +19 -0
- package/lib/chat/content-data/WebSearch.d.ts +4 -0
- package/lib/chat/content-data/WebSearchResults.d.ts +9 -0
- package/lib/chat/documents/ContentDocumentView.d.ts +8 -0
- package/lib/chat/messages.d.ts +8 -0
- package/lib/chat/server-tools/ServerToolCall.d.ts +12 -0
- package/lib/chat/tools/ToolCallView.d.ts +19 -0
- package/lib/chat/tools/ToolInput.d.ts +11 -0
- package/lib/chat/tools/ToolOutput.d.ts +11 -0
- package/lib/chat/tools/ToolTitle.d.ts +10 -0
- package/lib/chat/tools/tool-input/TodoWriteInput.d.ts +5 -0
- package/lib/chat/tools/tool.d.ts +12 -0
- package/lib/chat/types.d.ts +3 -0
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js +9 -0
- package/lib/chunk-DfAF0w94-Oj7OW_Zs.js.map +1 -0
- package/lib/components/ActivityBar.d.ts +6 -0
- package/lib/components/AnsiDisplay.d.ts +8 -0
- package/lib/components/AsciinemaPlayer.d.ts +19 -0
- package/lib/components/Card.d.ts +32 -0
- package/lib/components/CopyButton.d.ts +11 -0
- package/lib/components/DataframeView.d.ts +7 -0
- package/lib/components/EmptyPanel.d.ts +6 -0
- package/lib/components/ErrorPanel.d.ts +12 -0
- package/lib/components/ExpandablePanel.d.ts +12 -0
- package/lib/components/ExtendedFindContext.d.ts +7 -0
- package/lib/components/ExtendedFindProvider.d.ts +6 -0
- package/lib/components/HumanBaselineView.d.ts +21 -0
- package/lib/components/JsonPanel.d.ts +11 -0
- package/lib/components/LabeledValue.d.ts +11 -0
- package/lib/components/LightboxCarousel.d.ts +14 -0
- package/lib/components/LiveVirtualList.d.ts +22 -0
- package/lib/components/MarkdownDiv.d.ts +10 -0
- package/lib/components/NavPills.d.ts +11 -0
- package/lib/components/NoContentsPanel.d.ts +6 -0
- package/lib/components/PopOver.d.ts +22 -0
- package/lib/components/Preformatted.d.ts +7 -0
- package/lib/components/ProgressBar.d.ts +9 -0
- package/lib/components/PulsingDots.d.ts +10 -0
- package/lib/components/SegmentedControl.d.ts +14 -0
- package/lib/components/StickyScroll.d.ts +12 -0
- package/lib/components/TabSet.d.ts +27 -0
- package/lib/components/TextInput.d.ts +10 -0
- package/lib/components/prism.d.ts +2 -0
- package/lib/content/MetaDataGrid.d.ts +14 -0
- package/lib/content/RecordTree.d.ts +24 -0
- package/lib/content/RenderedContent.d.ts +16 -0
- package/lib/content/RenderedText.d.ts +10 -0
- package/lib/content/record_processors/store.d.ts +2 -0
- package/lib/content/record_processors/types.d.ts +1 -0
- package/lib/content/types.d.ts +16 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +108229 -0
- package/lib/index.js.map +1 -0
- package/lib/lib-CBtriEt5-CU1RYBHb.js +1070 -0
- package/lib/lib-CBtriEt5-CU1RYBHb.js.map +1 -0
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js +644 -0
- package/lib/liteDOM-Cp0aN3bP-DXyQNx3e.js.map +1 -0
- package/lib/main.d.ts +0 -0
- package/lib/router/url.d.ts +34 -0
- package/lib/state/hooks.d.ts +7 -0
- package/lib/state/scrolling.d.ts +22 -0
- package/lib/state/store.d.ts +203 -0
- package/lib/styles/index.css +5902 -0
- package/lib/tex-svg-full-BI3fonbT-B0YPyt9p.js +28011 -0
- package/lib/tex-svg-full-BI3fonbT-B0YPyt9p.js.map +1 -0
- package/lib/transcript/ApprovalEventView.d.ts +12 -0
- package/lib/transcript/ErrorEventView.d.ts +12 -0
- package/lib/transcript/InfoEventView.d.ts +12 -0
- package/lib/transcript/InputEventView.d.ts +12 -0
- package/lib/transcript/LoggerEventView.d.ts +12 -0
- package/lib/transcript/ModelEventView.d.ts +25 -0
- package/lib/transcript/SampleInitEventView.d.ts +12 -0
- package/lib/transcript/SampleLimitEventView.d.ts +12 -0
- package/lib/transcript/SandboxEventView.d.ts +12 -0
- package/lib/transcript/ScoreEditEventView.d.ts +12 -0
- package/lib/transcript/ScoreEventView.d.ts +13 -0
- package/lib/transcript/SpanEventView.d.ts +13 -0
- package/lib/transcript/StepEventView.d.ts +13 -0
- package/lib/transcript/SubtaskEventView.d.ts +13 -0
- package/lib/transcript/ToolEventView.d.ts +13 -0
- package/lib/transcript/TranscriptView.d.ts +12 -0
- package/lib/transcript/TranscriptVirtualList.d.ts +31 -0
- package/lib/transcript/TranscriptVirtualListComponent.d.ts +18 -0
- package/lib/transcript/event/EventNav.d.ts +12 -0
- package/lib/transcript/event/EventNavs.d.ts +15 -0
- package/lib/transcript/event/EventPanel.d.ts +19 -0
- package/lib/transcript/event/EventProgressPanel.d.ts +6 -0
- package/lib/transcript/event/EventRow.d.ts +12 -0
- package/lib/transcript/event/EventSection.d.ts +12 -0
- package/lib/transcript/event/EventTimingPanel.d.ts +12 -0
- package/lib/transcript/event/utils.d.ts +2 -0
- package/lib/transcript/hooks.d.ts +1 -0
- package/lib/transcript/outline/OutlineRow.d.ts +10 -0
- package/lib/transcript/outline/TranscriptOutline.d.ts +12 -0
- package/lib/transcript/outline/tree-visitors.d.ts +13 -0
- package/lib/transcript/state/StateDiffView.d.ts +11 -0
- package/lib/transcript/state/StateEventRenderers.d.ts +48 -0
- package/lib/transcript/state/StateEventView.d.ts +13 -0
- package/lib/transcript/transform/fixups.d.ts +6 -0
- package/lib/transcript/transform/flatten.d.ts +15 -0
- package/lib/transcript/transform/hooks.d.ts +6 -0
- package/lib/transcript/transform/transform.d.ts +2 -0
- package/lib/transcript/transform/treeify.d.ts +3 -0
- package/lib/transcript/transform/utils.d.ts +18 -0
- package/lib/transcript/types.d.ts +23 -0
- package/lib/types/index.d.ts +102 -0
- package/lib/usage/ModelTokenTable.d.ts +8 -0
- package/lib/usage/ModelUsagePanel.d.ts +11 -0
- package/lib/usage/TokenTable.d.ts +14 -0
- package/lib/usage/UsageCard.d.ts +10 -0
- package/lib/utils/array.d.ts +1 -0
- package/lib/utils/arrow.d.ts +2 -0
- package/lib/utils/base64.d.ts +4 -0
- package/lib/utils/chatMessage.d.ts +3 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/embeddedState.d.ts +10 -0
- package/lib/utils/format.d.ts +40 -0
- package/lib/utils/html.d.ts +5 -0
- package/lib/utils/json-worker.d.ts +2 -0
- package/lib/utils/json.d.ts +4 -0
- package/lib/utils/logger.d.ts +7 -0
- package/lib/utils/mime.d.ts +1 -0
- package/lib/utils/object.d.ts +1 -0
- package/lib/utils/path.d.ts +25 -0
- package/lib/utils/python.d.ts +11 -0
- package/lib/utils/react.d.ts +1 -0
- package/lib/utils/sync.d.ts +21 -0
- package/lib/utils/type.d.ts +11 -0
- package/lib/utils/uri.d.ts +19 -0
- package/lib/utils/vscode.d.ts +20 -0
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js +1081 -0
- package/lib/wgxpath.install-node-Csk64Aj9-Ckau6iLd.js.map +1 -0
- package/lib/xypic-DrMJn58R-DRoJoooA.js +9542 -0
- package/lib/xypic-DrMJn58R-DRoJoooA.js.map +1 -0
- package/package.json +105 -0
package/README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Inspect Scout Viewer
|
|
2
|
+
|
|
3
|
+
A React-based web viewer for Inspect AI evaluation logs.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
This project uses [pnpm](https://pnpm.io/) as its package manager, managed through [corepack](https://nodejs.org/api/corepack.html).
|
|
8
|
+
|
|
9
|
+
### Setup
|
|
10
|
+
|
|
11
|
+
**Enable corepack** (required once):
|
|
12
|
+
```bash
|
|
13
|
+
corepack enable
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
That's it! Corepack is built into Node.js 16.9+ and will automatically install the correct pnpm version (specified in `package.json`) when you run pnpm commands.
|
|
17
|
+
|
|
18
|
+
**Alternative:** If you prefer to install pnpm manually, see the [official pnpm installation guide](https://pnpm.io/installation).
|
|
19
|
+
|
|
20
|
+
### Install Dependencies
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm install
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Development
|
|
27
|
+
|
|
28
|
+
Start the development server:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
pnpm dev
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Build for production:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pnpm build
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Watch mode for development:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pnpm watch
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Preview production build:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pnpm preview
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Code Quality
|
|
53
|
+
|
|
54
|
+
Run linting:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm lint
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Auto-fix linting issues:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm lint:fix
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Format code:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm format
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Check formatting:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pnpm format:check
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Type check:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
pnpm typecheck
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Run all checks (lint, format, typecheck):
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pnpm check
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Tech Stack
|
|
91
|
+
|
|
92
|
+
- React 19
|
|
93
|
+
- TypeScript
|
|
94
|
+
- Vite
|
|
95
|
+
- Bootstrap 5
|
|
96
|
+
- AG Grid
|
|
97
|
+
- React Router
|
package/lib/App.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface State {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error?: Error;
|
|
8
|
+
}
|
|
9
|
+
export declare class AppErrorBoundary extends Component<Props, State> {
|
|
10
|
+
constructor(props: Props);
|
|
11
|
+
static getDerivedStateFromError(error: Error): State;
|
|
12
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
13
|
+
render(): ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AppRouter: import('react-router-dom').DataRouter;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
commonjsGlobal as c,
|
|
7
|
+
getDefaultExportFromCjs as g
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=_commonjsHelpers-DWwsNxpa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers-DWwsNxpa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/lib/api/api.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StateStorage } from 'zustand/middleware';
|
|
2
|
+
import { Scans, Status } from '../types';
|
|
3
|
+
export type ClientStorage = StateStorage;
|
|
4
|
+
export interface ScanApi {
|
|
5
|
+
getScans(): Promise<Scans>;
|
|
6
|
+
getScan(scanLocation: string): Promise<Status>;
|
|
7
|
+
getScannerDataframe(scanLocation: string, scanner: string): Promise<ArrayBuffer | Uint8Array>;
|
|
8
|
+
storage: ClientStorage;
|
|
9
|
+
}
|
|
10
|
+
export declare const NoPersistence: ClientStorage;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { VSCodeApi } from '../utils/vscode';
|
|
2
|
+
interface JsonRpcError {
|
|
3
|
+
code: number;
|
|
4
|
+
message: string;
|
|
5
|
+
data?: {
|
|
6
|
+
description?: string;
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
interface PostMessageTarget {
|
|
11
|
+
postMessage: (data: unknown) => void;
|
|
12
|
+
onMessage: (handler: (data: unknown) => void) => () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const kMethodEvalLogDir = "eval_log_dir";
|
|
15
|
+
export declare const kMethodEvalLogs = "eval_logs";
|
|
16
|
+
export declare const kMethodEvalLogFiles = "eval_log_files";
|
|
17
|
+
export declare const kMethodEvalLog = "eval_log";
|
|
18
|
+
export declare const kMethodEvalLogSize = "eval_log_size";
|
|
19
|
+
export declare const kMethodEvalLogBytes = "eval_log_bytes";
|
|
20
|
+
export declare const kMethodEvalLogHeaders = "eval_log_headers";
|
|
21
|
+
export declare const kMethodPendingSamples = "eval_log_pending_samples";
|
|
22
|
+
export declare const kMethodSampleData = "eval_log_sample_data";
|
|
23
|
+
export declare const kMethodLogMessage = "log_message";
|
|
24
|
+
export declare const kMethodGetScan = "get_scan";
|
|
25
|
+
export declare const kMethodGetScans = "get_scans";
|
|
26
|
+
export declare const kMethodGetScannerDataframe = "get_scanner_dataframe";
|
|
27
|
+
export declare const kJsonRpcParseError = -32700;
|
|
28
|
+
export declare const kJsonRpcInvalidRequest = -32600;
|
|
29
|
+
export declare const kJsonRpcMethodNotFound = -32601;
|
|
30
|
+
export declare const kJsonRpcInvalidParams = -32602;
|
|
31
|
+
export declare const kJsonRpcInternalError = -32603;
|
|
32
|
+
export declare const kJsonRpcVersion = "2.0";
|
|
33
|
+
export declare function webViewJsonRpcClient(vscode: VSCodeApi): (method: string, params?: unknown) => Promise<unknown>;
|
|
34
|
+
export declare function jsonRpcError(message: string, data?: unknown, code?: number): JsonRpcError;
|
|
35
|
+
export declare function asJsonRpcError(error: unknown): JsonRpcError;
|
|
36
|
+
export declare function jsonRpcPostMessageRequestTransport(target: PostMessageTarget): {
|
|
37
|
+
request: (method: string, params?: unknown) => Promise<unknown>;
|
|
38
|
+
disconnect: () => void;
|
|
39
|
+
};
|
|
40
|
+
export declare function jsonRpcPostMessageServer(target: PostMessageTarget, methods: {
|
|
41
|
+
[key: string]: (params: unknown) => Promise<unknown>;
|
|
42
|
+
} | ((name: string) => ((params: unknown) => Promise<unknown>) | undefined)): () => void;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE";
|
|
2
|
+
export declare class ApiError extends Error {
|
|
3
|
+
status: number;
|
|
4
|
+
constructor(status: number, message: string);
|
|
5
|
+
}
|
|
6
|
+
export interface Request<T> {
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
body?: string;
|
|
9
|
+
parse?: (text: string) => Promise<T>;
|
|
10
|
+
handleError?: (status: number) => T | undefined;
|
|
11
|
+
}
|
|
12
|
+
export type HeaderProvider = () => Promise<Record<string, string>>;
|
|
13
|
+
export interface ServerRequestApi {
|
|
14
|
+
fetchString: (method: HttpMethod, path: string, headers?: Record<string, string>, body?: string) => Promise<{
|
|
15
|
+
parsed: any;
|
|
16
|
+
raw: string;
|
|
17
|
+
}>;
|
|
18
|
+
fetchBytes: (method: HttpMethod, path: string) => Promise<ArrayBuffer>;
|
|
19
|
+
fetchType: <T>(method: HttpMethod, path: string, request?: Request<T>) => Promise<{
|
|
20
|
+
raw: string;
|
|
21
|
+
parsed: T;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export declare function serverRequestApi(baseUrl?: string, getHeaders?: HeaderProvider): ServerRequestApi;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An object representing font sizes for different text elements.
|
|
3
|
+
*/
|
|
4
|
+
export declare const FontSize: {
|
|
5
|
+
title: string;
|
|
6
|
+
"title-secondary": string;
|
|
7
|
+
larger: string;
|
|
8
|
+
large: string;
|
|
9
|
+
base: string;
|
|
10
|
+
small: string;
|
|
11
|
+
smaller: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* An object representing text styles for different elements.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TextStyle: {
|
|
17
|
+
label: {
|
|
18
|
+
textTransform: string;
|
|
19
|
+
};
|
|
20
|
+
secondary: {
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
tertiary: {
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare const iconForMimeType: (mimeType: string) => string;
|
|
2
|
+
export declare const ApplicationIcons: {
|
|
3
|
+
agent: string;
|
|
4
|
+
approve: string;
|
|
5
|
+
approvals: {
|
|
6
|
+
approve: string;
|
|
7
|
+
reject: string;
|
|
8
|
+
terminate: string;
|
|
9
|
+
escalate: string;
|
|
10
|
+
modify: string;
|
|
11
|
+
};
|
|
12
|
+
arrows: {
|
|
13
|
+
right: string;
|
|
14
|
+
down: string;
|
|
15
|
+
up: string;
|
|
16
|
+
};
|
|
17
|
+
cancelled: string;
|
|
18
|
+
caret: {
|
|
19
|
+
right: string;
|
|
20
|
+
down: string;
|
|
21
|
+
};
|
|
22
|
+
changes: {
|
|
23
|
+
add: string;
|
|
24
|
+
remove: string;
|
|
25
|
+
replace: string;
|
|
26
|
+
};
|
|
27
|
+
checkbox: {
|
|
28
|
+
checked: string;
|
|
29
|
+
unchecked: string;
|
|
30
|
+
};
|
|
31
|
+
chevron: {
|
|
32
|
+
right: string;
|
|
33
|
+
down: string;
|
|
34
|
+
};
|
|
35
|
+
"clear-text": string;
|
|
36
|
+
close: string;
|
|
37
|
+
collapse: {
|
|
38
|
+
all: string;
|
|
39
|
+
up: string;
|
|
40
|
+
};
|
|
41
|
+
config: string;
|
|
42
|
+
confirm: string;
|
|
43
|
+
copy: string;
|
|
44
|
+
display: string;
|
|
45
|
+
epoch: (epoch: string) => string;
|
|
46
|
+
edit: string;
|
|
47
|
+
error: string;
|
|
48
|
+
eval: string;
|
|
49
|
+
"eval-set": string;
|
|
50
|
+
expand: {
|
|
51
|
+
all: string;
|
|
52
|
+
down: string;
|
|
53
|
+
};
|
|
54
|
+
file: string;
|
|
55
|
+
filter: string;
|
|
56
|
+
folder: string;
|
|
57
|
+
fork: string;
|
|
58
|
+
home: string;
|
|
59
|
+
info: string;
|
|
60
|
+
input: string;
|
|
61
|
+
inspect: string;
|
|
62
|
+
inspectFile: string;
|
|
63
|
+
json: string;
|
|
64
|
+
limits: {
|
|
65
|
+
messages: string;
|
|
66
|
+
custom: string;
|
|
67
|
+
operator: string;
|
|
68
|
+
tokens: string;
|
|
69
|
+
time: string;
|
|
70
|
+
execution: string;
|
|
71
|
+
};
|
|
72
|
+
link: string;
|
|
73
|
+
logging: Record<string, string>;
|
|
74
|
+
menu: string;
|
|
75
|
+
messages: string;
|
|
76
|
+
metadata: string;
|
|
77
|
+
metrics: string;
|
|
78
|
+
model: string;
|
|
79
|
+
"toggle-right": string;
|
|
80
|
+
more: string;
|
|
81
|
+
"multiple-choice": string;
|
|
82
|
+
navbar: {
|
|
83
|
+
home: string;
|
|
84
|
+
back: string;
|
|
85
|
+
forward: string;
|
|
86
|
+
inspectLogo: string;
|
|
87
|
+
tasks: string;
|
|
88
|
+
};
|
|
89
|
+
next: string;
|
|
90
|
+
noSamples: string;
|
|
91
|
+
options: string;
|
|
92
|
+
pendingTask: string;
|
|
93
|
+
play: string;
|
|
94
|
+
previous: string;
|
|
95
|
+
refresh: string;
|
|
96
|
+
retry: string;
|
|
97
|
+
role: {
|
|
98
|
+
user: string;
|
|
99
|
+
system: string;
|
|
100
|
+
assistant: string;
|
|
101
|
+
tool: string;
|
|
102
|
+
unknown: string;
|
|
103
|
+
};
|
|
104
|
+
running: string;
|
|
105
|
+
sample: string;
|
|
106
|
+
samples: string;
|
|
107
|
+
sandbox: string;
|
|
108
|
+
scorer: string;
|
|
109
|
+
search: string;
|
|
110
|
+
sidebar: string;
|
|
111
|
+
solvers: {
|
|
112
|
+
default: string;
|
|
113
|
+
generate: string;
|
|
114
|
+
chain_of_thought: string;
|
|
115
|
+
self_critique: string;
|
|
116
|
+
system_message: string;
|
|
117
|
+
use_tools: string;
|
|
118
|
+
};
|
|
119
|
+
step: string;
|
|
120
|
+
subtask: string;
|
|
121
|
+
success: string;
|
|
122
|
+
transcript: string;
|
|
123
|
+
tree: {
|
|
124
|
+
open: string;
|
|
125
|
+
closed: string;
|
|
126
|
+
};
|
|
127
|
+
turns: string;
|
|
128
|
+
usage: string;
|
|
129
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const ApplicationStyles: {
|
|
3
|
+
moreButton: {
|
|
4
|
+
color: string;
|
|
5
|
+
maxHeight: string;
|
|
6
|
+
fontSize: string;
|
|
7
|
+
padding: string;
|
|
8
|
+
};
|
|
9
|
+
threeLineClamp: {
|
|
10
|
+
display: string;
|
|
11
|
+
WebkitLineClamp: string;
|
|
12
|
+
WebkitBoxOrient: string;
|
|
13
|
+
overflow: string;
|
|
14
|
+
};
|
|
15
|
+
lineClamp: (len: number) => CSSProperties;
|
|
16
|
+
wrapText: () => {
|
|
17
|
+
whiteSpace: string;
|
|
18
|
+
textOverflow: string;
|
|
19
|
+
overflow: string;
|
|
20
|
+
};
|
|
21
|
+
scoreFills: {
|
|
22
|
+
green: {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
borderColor: string;
|
|
25
|
+
color: string;
|
|
26
|
+
};
|
|
27
|
+
red: {
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
color: string;
|
|
31
|
+
};
|
|
32
|
+
orange: {
|
|
33
|
+
backgroundColor: string;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface FooterProps {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string | string[];
|
|
5
|
+
itemCount: number;
|
|
6
|
+
filteredCount?: number;
|
|
7
|
+
progressText?: string;
|
|
8
|
+
progressBar?: ReactNode;
|
|
9
|
+
paginated: boolean;
|
|
10
|
+
pagesize?: number;
|
|
11
|
+
page?: number;
|
|
12
|
+
itemsPerPage?: number;
|
|
13
|
+
setPage?: (page: number) => void;
|
|
14
|
+
labels?: {
|
|
15
|
+
singular: string;
|
|
16
|
+
plural: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const Footer: FC<FooterProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ColumnTable } from 'arquero';
|
|
2
|
+
import { ScannerData, ScannerCore } from './types';
|
|
3
|
+
export declare const useSelectedScanner: () => string | undefined;
|
|
4
|
+
export declare const useServerScans: () => void;
|
|
5
|
+
export declare const useServerScannerDataframe: () => void;
|
|
6
|
+
export declare const useServerScanner: () => void;
|
|
7
|
+
export declare const useScannerData: (columnTable?: ColumnTable, scanResultUuid?: string) => {
|
|
8
|
+
data: ScannerData | undefined;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const useSelectedResultsRow: (scanResultUuid?: string) => {
|
|
12
|
+
data: ScannerData | undefined;
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const useScannerPreviews: (columnTable?: ColumnTable) => {
|
|
16
|
+
data: ScannerCore[];
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface BreadcrumbSegment {
|
|
3
|
+
text: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
}
|
|
6
|
+
interface TruncatedBreadcrumbs {
|
|
7
|
+
visibleSegments: BreadcrumbSegment[];
|
|
8
|
+
hiddenCount: number;
|
|
9
|
+
showEllipsis: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const useBreadcrumbTruncation: (segments: BreadcrumbSegment[], containerRef: RefObject<HTMLElement | null>) => TruncatedBreadcrumbs;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { EventNode, EventType } from '../../../transcript/types';
|
|
3
|
+
import { ScannerData } from '../../types';
|
|
4
|
+
interface TranscriptPanelProps {
|
|
5
|
+
id: string;
|
|
6
|
+
result?: ScannerData;
|
|
7
|
+
nodeFilter?: (node: EventNode<EventType>[]) => EventNode<EventType>[];
|
|
8
|
+
}
|
|
9
|
+
export declare const TranscriptPanel: FC<TranscriptPanelProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnTable } from 'arquero';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export interface GridDescriptor {
|
|
4
|
+
gridStyle: Record<string, string>;
|
|
5
|
+
columns: string[];
|
|
6
|
+
}
|
|
7
|
+
interface ScanResultsListProps {
|
|
8
|
+
id: string;
|
|
9
|
+
columnTable?: ColumnTable;
|
|
10
|
+
}
|
|
11
|
+
export declare const ScanResultsList: FC<ScanResultsListProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScannerCore } from '../../../types';
|
|
2
|
+
import { GridDescriptor } from './ScanResultsList';
|
|
3
|
+
interface ScanResultsRowProps {
|
|
4
|
+
index: number;
|
|
5
|
+
entry: ScannerCore;
|
|
6
|
+
gridDescriptor: GridDescriptor;
|
|
7
|
+
}
|
|
8
|
+
export declare const ScanResultsRow: import('react').NamedExoticComponent<ScanResultsRowProps>;
|
|
9
|
+
export {};
|