@metrevals/inspect-scout-viewer 0.3.1-beta.1763988111 → 0.3.2-beta.1764376495
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/lib/app/types.d.ts +4 -0
- package/lib/app/utils/refs.d.ts +1 -1
- package/lib/chat/ChatMessageRow.d.ts +2 -1
- package/lib/chat/ChatView.d.ts +3 -3
- package/lib/chat/ChatViewVirtualList.d.ts +2 -2
- package/lib/chat/tools/ToolCallView.d.ts +2 -2
- package/lib/chat/tools/customToolRendering.d.ts +2 -0
- package/lib/chat/tools/tool.d.ts +1 -0
- package/lib/components/DataframeView.d.ts +6 -0
- package/lib/components/MarkdownDiv.d.ts +1 -1
- package/lib/components/MarkdownDivWithReferences.d.ts +15 -0
- package/lib/components/SourceCodePanel.d.ts +11 -0
- package/lib/content/MetaDataGrid.d.ts +2 -0
- package/lib/content/RenderedContent.d.ts +2 -0
- package/lib/content/RenderedText.d.ts +2 -0
- package/lib/content/types.d.ts +2 -1
- package/lib/index.js +15599 -15150
- package/lib/index.js.map +1 -1
- package/lib/state/store.d.ts +5 -1
- package/lib/styles/index.css +59 -34
- package/lib/utils/format.d.ts +7 -0
- package/package.json +2 -2
- package/lib/app/components/MarkdownDivWithReferences.d.ts +0 -14
package/lib/app/types.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { EventType } from '../transcript/types';
|
|
2
2
|
import { ModelUsage, Transcript } from '../types';
|
|
3
3
|
import { JsonValue, ChatMessageSystem, ChatMessageUser, ChatMessageAssistant, ChatMessageTool, Events } from '../types/log';
|
|
4
|
+
export interface SortColumn {
|
|
5
|
+
column: string;
|
|
6
|
+
direction: "asc" | "desc";
|
|
7
|
+
}
|
|
4
8
|
export type ErrorScope = "scanjobs" | "scanner" | "dataframe";
|
|
5
9
|
export type ScannerCore = ScannerCoreTranscript | ScannerCoreMessage | ScannerCoreMessages | ScannerCoreEvent | ScannerCoreEvents;
|
|
6
10
|
export type ValueType = "boolean" | "number" | "string" | "array" | "object" | "null";
|
package/lib/app/utils/refs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarkdownReference } from '
|
|
1
|
+
import { MarkdownReference } from '../../components/MarkdownDivWithReferences';
|
|
2
2
|
import { ScannerCore } from '../types';
|
|
3
3
|
export type MakeReferenceUrl = (ref: string, type: "message" | "event") => string | undefined;
|
|
4
4
|
export declare const toMarkdownRefs: (core: ScannerCore, makeReferenceUrl: MakeReferenceUrl) => MarkdownReference[];
|
|
@@ -4,8 +4,8 @@ import { ChatViewToolCallStyle } from './types';
|
|
|
4
4
|
interface ChatMessageRowProps {
|
|
5
5
|
index: number;
|
|
6
6
|
parentName: string;
|
|
7
|
-
labeled?: boolean;
|
|
8
7
|
labels?: Record<string, string>;
|
|
8
|
+
showLabels?: boolean;
|
|
9
9
|
highlightLabeled?: boolean;
|
|
10
10
|
resolvedMessage: ResolvedMessage;
|
|
11
11
|
toolCallStyle: ChatViewToolCallStyle;
|
|
@@ -13,6 +13,7 @@ interface ChatMessageRowProps {
|
|
|
13
13
|
padded?: boolean;
|
|
14
14
|
highlightUserMessage?: boolean;
|
|
15
15
|
allowLinking?: boolean;
|
|
16
|
+
className?: string | string[];
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Renders the ChatMessage component.
|
package/lib/chat/ChatView.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ interface ChatViewProps {
|
|
|
8
8
|
resolveToolCallsIntoPreviousMessage?: boolean;
|
|
9
9
|
title?: string;
|
|
10
10
|
indented?: boolean;
|
|
11
|
-
labeled?: boolean;
|
|
12
|
-
highlightLabeled?: boolean;
|
|
13
11
|
className?: string | string[];
|
|
14
12
|
allowLinking?: boolean;
|
|
15
|
-
|
|
13
|
+
labels?: Record<string, string>;
|
|
14
|
+
showLabels?: boolean;
|
|
15
|
+
highlightLabeled?: boolean;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Renders the ChatView component.
|
|
@@ -15,9 +15,9 @@ interface ChatViewVirtualListProps {
|
|
|
15
15
|
running?: boolean;
|
|
16
16
|
getMessageUrl?: (id: string) => string | undefined;
|
|
17
17
|
allowLinking?: boolean;
|
|
18
|
-
|
|
18
|
+
labels?: Record<string, string>;
|
|
19
|
+
showLabels?: boolean;
|
|
19
20
|
highlightLabeled?: boolean;
|
|
20
|
-
messageLabels?: Record<string, string>;
|
|
21
21
|
}
|
|
22
22
|
interface ChatViewVirtualListComponentProps extends ChatViewVirtualListProps {
|
|
23
23
|
listHandle: RefObject<VirtuosoHandle | null>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ContentTool } from '../../types';
|
|
3
3
|
import { ContentAudio, ContentData, ContentImage, ContentReasoning, ContentText, ContentVideo, ToolCallContent } from '../../types/log';
|
|
4
|
-
interface ToolCallViewProps {
|
|
4
|
+
export interface ToolCallViewProps {
|
|
5
5
|
id: string;
|
|
6
|
+
tool: string;
|
|
6
7
|
functionCall: string;
|
|
7
8
|
input?: unknown;
|
|
8
9
|
description?: string;
|
|
@@ -16,4 +17,3 @@ interface ToolCallViewProps {
|
|
|
16
17
|
* Renders the ToolCallView component.
|
|
17
18
|
*/
|
|
18
19
|
export declare const ToolCallView: FC<ToolCallViewProps>;
|
|
19
|
-
export {};
|
package/lib/chat/tools/tool.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { ColumnTable } from 'arquero';
|
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
interface DataframeViewProps {
|
|
4
4
|
columnTable?: ColumnTable;
|
|
5
|
+
sortedColumns?: string[];
|
|
6
|
+
onRowDoubleClicked?: (rowData: object) => void;
|
|
7
|
+
options?: {
|
|
8
|
+
maxStrLen?: number;
|
|
9
|
+
};
|
|
10
|
+
enableKeyboardNavigation?: boolean;
|
|
5
11
|
}
|
|
6
12
|
export declare const DataframeView: FC<DataframeViewProps>;
|
|
7
13
|
export {};
|
|
@@ -6,5 +6,5 @@ interface MarkdownDivProps {
|
|
|
6
6
|
className?: string | string[];
|
|
7
7
|
postProcess?: (html: string) => string;
|
|
8
8
|
}
|
|
9
|
-
export declare const MarkdownDiv: import('react').
|
|
9
|
+
export declare const MarkdownDiv: import('react').NamedExoticComponent<MarkdownDivProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface MarkdownReference {
|
|
2
|
+
id: string;
|
|
3
|
+
cite: string;
|
|
4
|
+
citePreview?: () => React.ReactNode;
|
|
5
|
+
citeUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
interface MarkdownDivWithReferencesProps {
|
|
8
|
+
markdown: string;
|
|
9
|
+
references?: MarkdownReference[];
|
|
10
|
+
className?: string | string[];
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
omitMedia?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const MarkdownDivWithReferences: import('react').ForwardRefExoticComponent<MarkdownDivWithReferencesProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
interface SourceCodePanelProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
code: string;
|
|
5
|
+
language: string;
|
|
6
|
+
simple?: boolean;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
className?: string | string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const SourceCodePanel: FC<SourceCodePanelProps>;
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import { MarkdownReference } from '../components/MarkdownDivWithReferences';
|
|
2
3
|
interface MetadataGridProps {
|
|
3
4
|
id?: string;
|
|
4
5
|
className?: string | string[];
|
|
6
|
+
references?: MarkdownReference[];
|
|
5
7
|
style?: CSSProperties;
|
|
6
8
|
size?: "mini" | "small";
|
|
7
9
|
entries: Record<string, unknown>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { MarkdownReference } from '../components/MarkdownDivWithReferences';
|
|
2
3
|
import { RenderOptions } from './types';
|
|
3
4
|
interface RenderedContentProps {
|
|
4
5
|
id: string;
|
|
@@ -6,6 +7,7 @@ interface RenderedContentProps {
|
|
|
6
7
|
name: string;
|
|
7
8
|
value: unknown;
|
|
8
9
|
};
|
|
10
|
+
references?: MarkdownReference[];
|
|
9
11
|
renderOptions?: RenderOptions;
|
|
10
12
|
renderObject?(entry: any): ReactNode;
|
|
11
13
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
import { MarkdownReference } from '../components/MarkdownDivWithReferences';
|
|
2
3
|
interface RenderedTextProps {
|
|
3
4
|
markdown: string;
|
|
5
|
+
references?: MarkdownReference[];
|
|
4
6
|
style?: CSSProperties;
|
|
5
7
|
className?: string | string[];
|
|
6
8
|
forceRender?: boolean;
|
package/lib/content/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { MarkdownReference } from '../components/MarkdownDivWithReferences';
|
|
2
3
|
export declare const Buckets: {
|
|
3
4
|
first: number;
|
|
4
5
|
intermediate: number;
|
|
@@ -10,7 +11,7 @@ export interface RenderOptions {
|
|
|
10
11
|
export interface ContentRenderer {
|
|
11
12
|
bucket: number;
|
|
12
13
|
canRender: (content: any) => boolean;
|
|
13
|
-
render: (id: string, content: any, options: RenderOptions) => {
|
|
14
|
+
render: (id: string, content: any, options: RenderOptions, references?: MarkdownReference[]) => {
|
|
14
15
|
rendered: string | number | bigint | boolean | object | ReactNode | null;
|
|
15
16
|
};
|
|
16
17
|
}
|