@meridianlabs/inspect-scout-viewer 0.4.41 → 0.4.42

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.
@@ -1,6 +1,6 @@
1
1
  import { FC, RefObject } from 'react';
2
2
  import { Event } from '@tsmono/inspect-common/types';
3
- import { MarkerConfig } from '@tsmono/inspect-components/transcript';
3
+ import { MarkerConfig, TranscriptLayoutRightRailProps } from '@tsmono/inspect-components/transcript';
4
4
  import { ServerTimeline } from '../../../types/api-types';
5
5
  import { TimelineOptions } from '../hooks/useTimeline';
6
6
  interface TimelineEventsViewProps {
@@ -44,6 +44,8 @@ interface TimelineEventsViewProps {
44
44
  messageLabels?: Record<string, string>;
45
45
  /** Per-event labels rendered beside transcript event rows. */
46
46
  eventLabels?: Record<string, string>;
47
+ /** Optional right-side activity rail + resizable panel. */
48
+ rightRail?: TranscriptLayoutRightRailProps;
47
49
  className?: string;
48
50
  }
49
51
  export declare const TimelineEventsView: FC<TimelineEventsViewProps>;
@@ -1,9 +1,10 @@
1
- import { TranscriptSearchScope } from './searchRequest';
1
+ import { FC } from 'react';
2
+ import { SearchScope } from '@tsmono/inspect-components/transcript-search';
2
3
  type SearchPanelProps = {
3
- scope: TranscriptSearchScope;
4
+ scope: SearchScope;
4
5
  transcriptDir: string;
5
6
  transcriptId: string;
6
7
  onClose: () => void;
7
8
  };
8
- export declare const SearchPanel: (props: SearchPanelProps) => import("react").JSX.Element;
9
+ export declare const SearchPanel: FC<SearchPanelProps>;
9
10
  export {};
@@ -1,12 +1,8 @@
1
- import { TranscriptSearchScope } from '../searchRequest';
1
+ import { SearchReferenceLabels, SearchScope } from '@tsmono/inspect-components/transcript-search';
2
+ export type { SearchReferenceLabels };
2
3
  type UseSearchReferenceLabelsOptions = {
3
- scope: TranscriptSearchScope;
4
+ scope: SearchScope;
4
5
  transcriptDir: string | null | undefined;
5
6
  transcriptId: string;
6
7
  };
7
- export type SearchReferenceLabels = {
8
- messageLabels?: Record<string, string>;
9
- eventLabels?: Record<string, string>;
10
- };
11
8
  export declare const useSearchReferenceLabels: ({ scope, transcriptDir, transcriptId, }: UseSearchReferenceLabelsOptions) => SearchReferenceLabels | undefined;
12
- export {};
@@ -0,0 +1,12 @@
1
+ import { ModelHistoryController, SearchPanelApi, SearchPanelNavigation, SearchPanelStateController, SearchScope } from '@tsmono/inspect-components/transcript-search';
2
+ export declare const getSearchPanelStateKey: ({ scope, transcriptDir, }: {
3
+ scope: SearchScope;
4
+ transcriptDir: string;
5
+ }) => string;
6
+ export declare const useScoutSearchApi: (transcriptDir: string, transcriptId: string) => SearchPanelApi;
7
+ export declare const useScoutSearchPanelState: ({ scope, transcriptDir, }: {
8
+ scope: SearchScope;
9
+ transcriptDir: string;
10
+ }) => SearchPanelStateController;
11
+ export declare const useScoutSearchModelHistory: () => ModelHistoryController;
12
+ export declare const useScoutSearchNavigation: () => SearchPanelNavigation;
@@ -4,20 +4,13 @@ interface ValidationCaseEditorProps {
4
4
  taskId?: string | null;
5
5
  taskRepeat?: number | null;
6
6
  className?: string | string[];
7
+ onClose?: () => void;
7
8
  }
8
9
  export declare const ValidationCaseEditor: FC<ValidationCaseEditorProps>;
9
10
  interface SidebarPanelProps {
10
11
  children: React.ReactNode;
11
12
  }
12
13
  export declare const SidebarPanel: FC<SidebarPanelProps>;
13
- interface SidebarHeaderProps {
14
- icon?: string;
15
- title?: string;
16
- secondary?: string;
17
- actions?: React.ReactNode;
18
- onClose?: () => void;
19
- }
20
- export declare const SidebarHeader: FC<SidebarHeaderProps>;
21
14
  export declare const SecondaryDisplayValue: FC<{
22
15
  label: string;
23
16
  value: string;
@@ -1,14 +1,12 @@
1
1
  export declare const ApplicationIcons: {
2
2
  fork: string;
3
3
  pendingTask: string;
4
- add: string;
5
4
  check: string;
6
5
  compaction: string;
7
6
  move: string;
8
7
  download: string;
9
8
  "folder-fill": string;
10
9
  highlight: string;
11
- history: string;
12
10
  pendingTaskSubtle: string;
13
11
  "play-circle": string;
14
12
  refuse: string;
@@ -22,6 +20,7 @@ export declare const ApplicationIcons: {
22
20
  wrap: string;
23
21
  x: string;
24
22
  xLarge: string;
23
+ add: string;
25
24
  agent: string;
26
25
  approve: string;
27
26
  approvals: {
@@ -77,6 +76,7 @@ export declare const ApplicationIcons: {
77
76
  file: string;
78
77
  filter: string;
79
78
  folder: string;
79
+ history: string;
80
80
  home: string;
81
81
  info: string;
82
82
  input: string;
@@ -11,7 +11,7 @@ export declare const kTranscriptDetailRouteUrlPattern: RegExp;
11
11
  export declare const kScanIdPattern: RegExp;
12
12
  export declare const kScannerQueryParam = "scanner";
13
13
  export declare const kValidationQueryParam = "validation";
14
- export declare const kSearchQueryParam = "search";
14
+ export declare const kRailQueryParam = "rail";
15
15
  export declare const kValidationSetQueryParam = "validationSet";
16
16
  export declare const kDataframeColumnsQueryParam = "cols";
17
17
  export declare const scanRoute: (scansDir: string, relativePath: string, searchParams?: URLSearchParams) => string;
@@ -65,8 +65,10 @@ export declare const updateScannerParam: (searchParams: URLSearchParams, scanner
65
65
  export declare const getScannerParam: (searchParams: URLSearchParams) => string | undefined;
66
66
  export declare const updateValidationParam: (searchParams: URLSearchParams, isOpen: boolean) => URLSearchParams;
67
67
  export declare const getValidationParam: (searchParams: URLSearchParams) => boolean;
68
- export declare const updateSearchParam: (searchParams: URLSearchParams, isOpen: boolean) => URLSearchParams;
69
- export declare const getSearchParam: (searchParams: URLSearchParams) => boolean;
68
+ export type RailPanelId = "search" | "validation";
69
+ export declare const getRailParam: (searchParams: URLSearchParams) => RailPanelId | undefined;
70
+ export declare const updateRailParam: (searchParams: URLSearchParams, id: RailPanelId | undefined) => URLSearchParams;
71
+ export declare const nextRailValue: (current: RailPanelId | undefined, clicked: RailPanelId) => RailPanelId | undefined;
70
72
  export declare const getValidationSetParam: (searchParams: URLSearchParams) => string | undefined;
71
73
  export declare const updateValidationSetParam: (searchParams: URLSearchParams, uri: string | undefined) => URLSearchParams;
72
74
  export declare const getColumnsParam: (searchParams: URLSearchParams) => string[] | undefined;
@@ -699,7 +699,7 @@ export interface components {
699
699
  max: number;
700
700
  /**
701
701
  * Min
702
- * @default 4
702
+ * @default 10
703
703
  */
704
704
  min: number;
705
705
  /**
@@ -1115,6 +1115,10 @@ export interface components {
1115
1115
  * @enum {string}
1116
1116
  */
1117
1117
  trigger: "time" | "turn" | "manual" | "token" | "cost" | "budget" | "agent_complete";
1118
+ /** Trigger Metadata */
1119
+ trigger_metadata?: {
1120
+ [key: string]: components["schemas"]["JsonValue"];
1121
+ } | null;
1118
1122
  /** Turn */
1119
1123
  turn: number;
1120
1124
  /** Uuid */
@@ -2745,7 +2749,7 @@ export interface components {
2745
2749
  * Type
2746
2750
  * @enum {string}
2747
2751
  */
2748
- type: "message" | "time" | "working" | "token" | "cost" | "operator" | "custom";
2752
+ type: "message" | "time" | "working" | "token" | "turn" | "cost" | "operator" | "custom";
2749
2753
  /** Uuid */
2750
2754
  uuid?: string | null;
2751
2755
  /** Working Start */