@app-studio/web 0.9.36 → 0.9.38

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.
Files changed (125) hide show
  1. package/dist/components/ChatInput/ChatInput/ChatInput.style.d.ts +31 -0
  2. package/dist/components/Drawer/Drawer/Drawer.props.d.ts +61 -0
  3. package/dist/components/Drawer/Drawer/Drawer.style.d.ts +4 -0
  4. package/dist/components/Drawer/Drawer/Drawer.view.d.ts +7 -0
  5. package/dist/components/Drawer/Drawer.d.ts +2 -0
  6. package/dist/components/index.d.ts +2 -22
  7. package/dist/pages/drawer.page.d.ts +3 -0
  8. package/dist/utils/apiConfig.d.ts +2 -2
  9. package/dist/utils/typography.d.ts +3 -4
  10. package/dist/web.cjs.development.js +2321 -12073
  11. package/dist/web.cjs.development.js.map +1 -1
  12. package/dist/web.cjs.production.min.js +1 -1
  13. package/dist/web.cjs.production.min.js.map +1 -1
  14. package/dist/web.esm.js +2114 -11857
  15. package/dist/web.esm.js.map +1 -1
  16. package/dist/web.umd.development.js +3019 -12768
  17. package/dist/web.umd.development.js.map +1 -1
  18. package/dist/web.umd.production.min.js +1 -1
  19. package/dist/web.umd.production.min.js.map +1 -1
  20. package/docs/components/Accordion.mdx +4 -4
  21. package/docs/components/Alert.mdx +1 -1
  22. package/docs/components/Background.mdx +5 -5
  23. package/docs/components/Badge.mdx +1 -1
  24. package/docs/components/Calendar.mdx +3 -0
  25. package/docs/components/Card.mdx +8 -8
  26. package/docs/components/Carousel.mdx +6 -6
  27. package/docs/components/ColorInput.mdx +1 -1
  28. package/docs/components/Drawer.mdx +164 -0
  29. package/docs/components/Gradient.mdx +6 -6
  30. package/docs/components/HoverCard.mdx +5 -5
  31. package/docs/components/KanbanBoard.mdx +132 -2
  32. package/docs/components/Link.mdx +2 -2
  33. package/docs/components/Menubar.mdx +1 -1
  34. package/docs/components/Message.mdx +4 -4
  35. package/docs/components/Modal.mdx +4 -4
  36. package/docs/components/OKR.mdx +40 -63
  37. package/docs/components/Tabs.mdx +1 -1
  38. package/docs/components/ToggleGroup.mdx +4 -4
  39. package/docs/components/Tooltip.mdx +2 -2
  40. package/docs/conventions.md +1 -1
  41. package/package.json +2 -2
  42. package/dist/components/Calendar/Calendar/Calendar.props.d.ts +0 -74
  43. package/dist/components/Calendar/Calendar/Calendar.style.d.ts +0 -107
  44. package/dist/components/Calendar/Calendar/Calendar.utils.d.ts +0 -91
  45. package/dist/components/Calendar/Calendar/Calendar.view.d.ts +0 -3
  46. package/dist/components/Calendar/Calendar.d.ts +0 -1
  47. package/dist/components/Flow/Flow/Flow.props.d.ts +0 -144
  48. package/dist/components/Flow/Flow/Flow.state.d.ts +0 -95
  49. package/dist/components/Flow/Flow/Flow.style.d.ts +0 -40
  50. package/dist/components/Flow/Flow/Flow.type.d.ts +0 -181
  51. package/dist/components/Flow/Flow/Flow.view.d.ts +0 -28
  52. package/dist/components/Flow/Flow.d.ts +0 -2
  53. package/dist/components/Flow/index.d.ts +0 -2
  54. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.props.d.ts +0 -47
  55. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.state.d.ts +0 -13
  56. package/dist/components/KanbanBoard/KanbanBoard/KanbanBoard.view.d.ts +0 -3
  57. package/dist/components/KanbanBoard/KanbanBoard.d.ts +0 -3
  58. package/dist/components/OKR/OKR/OKR.props.d.ts +0 -72
  59. package/dist/components/OKR/OKR/OKR.style.d.ts +0 -19
  60. package/dist/components/OKR/OKR/OKR.view.d.ts +0 -4
  61. package/dist/components/OKR/OKR.d.ts +0 -4
  62. package/dist/components/Text/Text/Text.props.d.ts +0 -29
  63. package/dist/components/Text/Text/Text.style.d.ts +0 -27
  64. package/dist/components/Text/Text/Text.utils.d.ts +0 -2
  65. package/dist/components/Text/Text/Text.view.d.ts +0 -19
  66. package/dist/components/Text/Text.d.ts +0 -5
  67. package/dist/components/Tree/Tree/Tree.props.d.ts +0 -106
  68. package/dist/components/Tree/Tree/Tree.state.d.ts +0 -38
  69. package/dist/components/Tree/Tree/Tree.style.d.ts +0 -41
  70. package/dist/components/Tree/Tree/Tree.type.d.ts +0 -133
  71. package/dist/components/Tree/Tree/Tree.view.d.ts +0 -36
  72. package/dist/components/Tree/Tree.d.ts +0 -2
  73. package/dist/components/adk/AgentChat/AgentChat/AgentChat.props.d.ts +0 -180
  74. package/dist/components/adk/AgentChat/AgentChat/AgentChat.state.d.ts +0 -24
  75. package/dist/components/adk/AgentChat/AgentChat/AgentChat.style.d.ts +0 -132
  76. package/dist/components/adk/AgentChat/AgentChat/AgentChat.view.d.ts +0 -12
  77. package/dist/components/adk/AgentChat/AgentChat/AgentMessage.d.ts +0 -21
  78. package/dist/components/adk/AgentChat/AgentChat/AgentRunProgress.d.ts +0 -11
  79. package/dist/components/adk/AgentChat/AgentChat/AgentTypingIndicator.d.ts +0 -7
  80. package/dist/components/adk/AgentChat/AgentChat/MessageAttachmentPreview.d.ts +0 -12
  81. package/dist/components/adk/AgentChat/AgentChat.d.ts +0 -41
  82. package/dist/components/adk/AgentEval/AgentEval/AgentEval.props.d.ts +0 -213
  83. package/dist/components/adk/AgentEval/AgentEval/AgentEval.state.d.ts +0 -27
  84. package/dist/components/adk/AgentEval/AgentEval/AgentEval.style.d.ts +0 -144
  85. package/dist/components/adk/AgentEval/AgentEval/AgentEval.view.d.ts +0 -12
  86. package/dist/components/adk/AgentEval/AgentEval/EvaluationCreator.d.ts +0 -17
  87. package/dist/components/adk/AgentEval/AgentEval/EvaluationList.d.ts +0 -23
  88. package/dist/components/adk/AgentEval/AgentEval/EvaluationMetrics.d.ts +0 -15
  89. package/dist/components/adk/AgentEval/AgentEval/EvaluationResults.d.ts +0 -19
  90. package/dist/components/adk/AgentEval/AgentEval.d.ts +0 -41
  91. package/dist/components/adk/AgentSession/AgentSession/AgentSession.props.d.ts +0 -170
  92. package/dist/components/adk/AgentSession/AgentSession/AgentSession.state.d.ts +0 -32
  93. package/dist/components/adk/AgentSession/AgentSession/AgentSession.style.d.ts +0 -105
  94. package/dist/components/adk/AgentSession/AgentSession/AgentSession.view.d.ts +0 -12
  95. package/dist/components/adk/AgentSession/AgentSession/SessionActions.d.ts +0 -20
  96. package/dist/components/adk/AgentSession/AgentSession/SessionFilters.d.ts +0 -14
  97. package/dist/components/adk/AgentSession/AgentSession/SessionListItem.d.ts +0 -26
  98. package/dist/components/adk/AgentSession/AgentSession.d.ts +0 -42
  99. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.props.d.ts +0 -194
  100. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.state.d.ts +0 -27
  101. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.style.d.ts +0 -146
  102. package/dist/components/adk/AgentTrace/AgentTrace/AgentTrace.view.d.ts +0 -12
  103. package/dist/components/adk/AgentTrace/AgentTrace/TraceEventList.d.ts +0 -20
  104. package/dist/components/adk/AgentTrace/AgentTrace/TraceFilters.d.ts +0 -13
  105. package/dist/components/adk/AgentTrace/AgentTrace/TraceMetrics.d.ts +0 -16
  106. package/dist/components/adk/AgentTrace/AgentTrace/TraceTimeline.d.ts +0 -19
  107. package/dist/components/adk/AgentTrace/AgentTrace/TraceVisualization.d.ts +0 -19
  108. package/dist/components/adk/AgentTrace/AgentTrace.d.ts +0 -44
  109. package/dist/components/adk/useAdk.d.ts +0 -42
  110. package/dist/pages/adk/CompleteAgentApp.d.ts +0 -30
  111. package/dist/pages/adk/adkComponents.page.d.ts +0 -8
  112. package/dist/pages/adk/adkIntegration.page.d.ts +0 -6
  113. package/dist/pages/adk/agentChat.page.d.ts +0 -8
  114. package/dist/pages/adk/providers/AdkProvider.d.ts +0 -83
  115. package/dist/pages/adk/providers/index.d.ts +0 -1
  116. package/dist/pages/adk/services/AgentService.d.ts +0 -167
  117. package/dist/pages/adk/services/AgentServiceProvider.d.ts +0 -83
  118. package/dist/pages/adk/services/AgentServiceUtils.d.ts +0 -176
  119. package/dist/pages/adk/services/index.d.ts +0 -50
  120. package/dist/pages/calendar.page.d.ts +0 -3
  121. package/dist/pages/flow.page.d.ts +0 -3
  122. package/dist/pages/kanbanBoard.page.d.ts +0 -3
  123. package/dist/pages/okr.page.d.ts +0 -3
  124. package/dist/pages/text.page.d.ts +0 -3
  125. package/dist/pages/tree.page.d.ts +0 -3
@@ -1,132 +0,0 @@
1
- import { ViewProps } from 'app-studio';
2
- /**
3
- * Default styles for AgentChat component
4
- * Following the app-studio design system with 4px grid, Inter/Geist fonts, and neutral palette
5
- */
6
- export declare const DefaultAgentChatStyles: {
7
- container: ViewProps;
8
- header: ViewProps;
9
- messageList: ViewProps;
10
- emptyState: ViewProps;
11
- inputArea: ViewProps;
12
- attachmentArea: ViewProps;
13
- message: ViewProps;
14
- userMessage: ViewProps;
15
- botMessage: ViewProps;
16
- thoughtMessage: ViewProps;
17
- loadingMessage: ViewProps;
18
- messageHeader: ViewProps;
19
- messageContent: ViewProps;
20
- messageFooter: ViewProps;
21
- timestamp: ViewProps;
22
- avatar: ViewProps;
23
- userAvatar: ViewProps;
24
- botAvatar: ViewProps;
25
- attachmentPreview: ViewProps;
26
- attachmentRemove: ViewProps;
27
- typingIndicator: ViewProps;
28
- typingDot: ViewProps;
29
- functionCall: ViewProps;
30
- functionResponse: ViewProps;
31
- codeBlock: ViewProps;
32
- inlineData: ViewProps;
33
- errorMessage: ViewProps;
34
- loadingOverlay: ViewProps;
35
- runProgress: ViewProps;
36
- };
37
- /**
38
- * Animation styles for typing indicator
39
- */
40
- export declare const TypingAnimationStyles: {
41
- dot1: {
42
- animationDelay: string;
43
- };
44
- dot2: {
45
- animationDelay: string;
46
- };
47
- dot3: {
48
- animationDelay: string;
49
- };
50
- };
51
- /**
52
- * Responsive breakpoints for AgentChat
53
- */
54
- export declare const AgentChatBreakpoints: {
55
- mobile: string;
56
- tablet: string;
57
- desktop: string;
58
- };
59
- /**
60
- * Size variants for AgentChat
61
- */
62
- export declare const AgentChatSizes: {
63
- sm: {
64
- container: {
65
- height: string;
66
- };
67
- messageList: {
68
- minHeight: string;
69
- maxHeight: string;
70
- };
71
- };
72
- md: {
73
- container: {
74
- height: string;
75
- };
76
- messageList: {
77
- minHeight: string;
78
- maxHeight: string;
79
- };
80
- };
81
- lg: {
82
- container: {
83
- height: string;
84
- };
85
- messageList: {
86
- minHeight: string;
87
- maxHeight: string;
88
- };
89
- };
90
- xl: {
91
- container: {
92
- height: string;
93
- };
94
- messageList: {
95
- minHeight: string;
96
- maxHeight: string;
97
- };
98
- };
99
- };
100
- /**
101
- * Theme variants for AgentChat
102
- */
103
- export declare const AgentChatThemes: {
104
- light: {
105
- container: {
106
- backgroundColor: string;
107
- };
108
- header: {
109
- backgroundColor: string;
110
- };
111
- messageList: {
112
- backgroundColor: string;
113
- };
114
- inputArea: {
115
- backgroundColor: string;
116
- };
117
- };
118
- dark: {
119
- container: {
120
- backgroundColor: string;
121
- };
122
- header: {
123
- backgroundColor: string;
124
- };
125
- messageList: {
126
- backgroundColor: string;
127
- };
128
- inputArea: {
129
- backgroundColor: string;
130
- };
131
- };
132
- };
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { AgentChatProps } from './AgentChat.props';
3
- import { useAgentChat } from './AgentChat.state';
4
- export interface AgentChatViewProps extends Omit<AgentChatProps, 'sessionId'>, ReturnType<typeof useAgentChat> {
5
- }
6
- /**
7
- * AgentChat View Component
8
- *
9
- * Renders the complete chat interface with message list, input area, and controls
10
- */
11
- declare const AgentChatView: React.FC<AgentChatViewProps>;
12
- export default AgentChatView;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { AgentMessage as AgentMessageType } from './AgentChat.props';
3
- export interface AgentMessageProps {
4
- message: AgentMessageType;
5
- showTimestamp?: boolean;
6
- showAvatar?: boolean;
7
- isLast?: boolean;
8
- views?: {
9
- container?: any;
10
- content?: any;
11
- timestamp?: any;
12
- avatar?: any;
13
- };
14
- }
15
- /**
16
- * AgentMessage Component
17
- *
18
- * Renders individual messages in the chat with support for different message types,
19
- * attachments, function calls, code execution, and more.
20
- */
21
- export declare const AgentMessage: React.FC<AgentMessageProps>;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { AgentMessage } from './AgentChat.props';
3
- interface AgentRunProgressProps {
4
- messages: AgentMessage[];
5
- isTyping: boolean;
6
- }
7
- /**
8
- * Displays a step-by-step view of the agent's reasoning and execution
9
- */
10
- export declare const AgentRunProgress: React.FC<AgentRunProgressProps>;
11
- export default AgentRunProgress;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- /**
3
- * AgentTypingIndicator Component
4
- *
5
- * Shows an animated typing indicator when the agent is processing a response
6
- */
7
- export declare const AgentTypingIndicator: React.FC;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { MessageAttachment } from './AgentChat.props';
3
- export interface MessageAttachmentPreviewProps {
4
- attachment: MessageAttachment;
5
- onRemove?: () => void;
6
- }
7
- /**
8
- * MessageAttachmentPreview Component
9
- *
10
- * Shows a preview of attached files with the ability to remove them
11
- */
12
- export declare const MessageAttachmentPreview: React.FC<MessageAttachmentPreviewProps>;
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { AgentChatProps } from './AgentChat/AgentChat.props';
3
- /**
4
- * AgentChat Component
5
- *
6
- * A comprehensive chat interface for interacting with ADK agents.
7
- * Supports real-time messaging, file uploads, agent responses, and session management.
8
- *
9
- * @example
10
- * ```tsx
11
- * <AgentChat
12
- * appName="my-agent"
13
- * userId="user123"
14
- * onSessionCreate={(session) => console.log('Session created:', session)}
15
- * onMessageSent={(message) => console.log('Message sent:', message)}
16
- * />
17
- * ```
18
- *
19
- * @example
20
- * ```tsx
21
- * // With custom styling and configuration
22
- * <AgentChat
23
- * appName="my-agent"
24
- * userId="user123"
25
- * enableFileUpload={true}
26
- * enableAudioRecording={true}
27
- * enableVideoRecording={true}
28
- * maxFileSize={10 * 1024 * 1024} // 10MB
29
- * apiBaseUrl="http://localhost:3000/adk"
30
- * views={{
31
- * container: { backgroundColor: 'color.gray.50' },
32
- * messageList: { maxHeight: '400px' },
33
- * inputArea: { borderRadius: '12px' }
34
- * }}
35
- * />
36
- * ```
37
- */
38
- declare const AgentChat: React.FC<AgentChatProps>;
39
- export default AgentChat;
40
- export { AgentChat };
41
- export type { AgentChatProps };
@@ -1,213 +0,0 @@
1
- import { ViewProps } from 'app-studio';
2
- /**
3
- * Core ADK Evaluation Types
4
- */
5
- export interface EvaluationMetric {
6
- id: string;
7
- name: string;
8
- description: string;
9
- type: 'accuracy' | 'latency' | 'cost' | 'quality' | 'safety' | 'custom';
10
- threshold?: number;
11
- weight?: number;
12
- config?: Record<string, any>;
13
- }
14
- export interface EvaluationTestCase {
15
- id: string;
16
- name: string;
17
- description?: string;
18
- input: any;
19
- expectedOutput?: any;
20
- metadata?: Record<string, any>;
21
- tags?: string[];
22
- }
23
- export interface EvaluationRun {
24
- id: string;
25
- name: string;
26
- appName: string;
27
- userId: string;
28
- status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
29
- progress: number;
30
- startTime: number;
31
- endTime?: number;
32
- duration?: number;
33
- testCases: EvaluationTestCase[];
34
- metrics: EvaluationMetric[];
35
- results?: EvaluationResult[];
36
- summary?: EvaluationSummary;
37
- config?: EvaluationConfig;
38
- error?: string;
39
- }
40
- export interface EvaluationResult {
41
- id: string;
42
- evaluationId: string;
43
- testCaseId: string;
44
- status: 'pass' | 'fail' | 'error' | 'skip';
45
- score?: number;
46
- actualOutput?: any;
47
- metrics: Record<string, number>;
48
- duration: number;
49
- error?: string;
50
- details?: Record<string, any>;
51
- timestamp: number;
52
- }
53
- export interface EvaluationSummary {
54
- totalTests: number;
55
- passedTests: number;
56
- failedTests: number;
57
- errorTests: number;
58
- skippedTests: number;
59
- averageScore: number;
60
- totalDuration: number;
61
- metricsAverages: Record<string, number>;
62
- passRate: number;
63
- }
64
- export interface EvaluationConfig {
65
- maxConcurrency?: number;
66
- timeout?: number;
67
- retryCount?: number;
68
- stopOnFailure?: boolean;
69
- randomizeOrder?: boolean;
70
- enableDetailedLogging?: boolean;
71
- }
72
- /**
73
- * Component View Customization
74
- */
75
- export interface AgentEvalViews {
76
- container?: ViewProps;
77
- header?: ViewProps;
78
- toolbar?: ViewProps;
79
- evaluationList?: ViewProps;
80
- createPanel?: ViewProps;
81
- resultsPanel?: ViewProps;
82
- metricsPanel?: ViewProps;
83
- configPanel?: ViewProps;
84
- evaluationItem?: ViewProps;
85
- activeEvaluationItem?: ViewProps;
86
- evaluationTitle?: ViewProps;
87
- evaluationDescription?: ViewProps;
88
- evaluationStatus?: ViewProps;
89
- evaluationProgress?: ViewProps;
90
- evaluationMetrics?: ViewProps;
91
- evaluationTimestamp?: ViewProps;
92
- testCaseList?: ViewProps;
93
- testCaseItem?: ViewProps;
94
- testCaseInput?: ViewProps;
95
- testCaseOutput?: ViewProps;
96
- testCaseExpected?: ViewProps;
97
- testCaseResult?: ViewProps;
98
- testCaseMetrics?: ViewProps;
99
- progressBar?: ViewProps;
100
- statusIndicator?: ViewProps;
101
- statusBadge?: ViewProps;
102
- scoreDisplay?: ViewProps;
103
- durationDisplay?: ViewProps;
104
- actionButtons?: ViewProps;
105
- runButton?: ViewProps;
106
- stopButton?: ViewProps;
107
- exportButton?: ViewProps;
108
- refreshButton?: ViewProps;
109
- deleteButton?: ViewProps;
110
- duplicateButton?: ViewProps;
111
- searchInput?: ViewProps;
112
- filterDropdown?: ViewProps;
113
- sortDropdown?: ViewProps;
114
- statusFilter?: ViewProps;
115
- emptyState?: ViewProps;
116
- loadingState?: ViewProps;
117
- errorState?: ViewProps;
118
- chartContainer?: ViewProps;
119
- metricsChart?: ViewProps;
120
- resultsTable?: ViewProps;
121
- summaryCard?: ViewProps;
122
- }
123
- /**
124
- * Event Handlers
125
- */
126
- export interface AgentEvalEventHandlers {
127
- onEvaluationCreate?: (evaluation: EvaluationRun) => void;
128
- onEvaluationStart?: (evaluationId: string) => void;
129
- onEvaluationComplete?: (result: EvaluationRun) => void;
130
- onEvaluationCancel?: (evaluationId: string) => void;
131
- onEvaluationDelete?: (evaluationId: string) => void;
132
- onTestCaseSelect?: (testCase: EvaluationTestCase) => void;
133
- onResultSelect?: (result: EvaluationResult) => void;
134
- onExport?: (format: 'json' | 'csv' | 'pdf') => void;
135
- onError?: (error: Error) => void;
136
- onRefresh?: () => void;
137
- }
138
- /**
139
- * Evaluation Templates
140
- */
141
- export interface EvaluationTemplate {
142
- id: string;
143
- name: string;
144
- description: string;
145
- testCases: EvaluationTestCase[];
146
- metrics: EvaluationMetric[];
147
- config: EvaluationConfig;
148
- tags?: string[];
149
- }
150
- /**
151
- * Comparison Options
152
- */
153
- export interface EvaluationComparison {
154
- baselineId: string;
155
- comparisonIds: string[];
156
- metrics: string[];
157
- showDifferences?: boolean;
158
- showTrends?: boolean;
159
- }
160
- /**
161
- * Main AgentEval Props Interface
162
- */
163
- export interface AgentEvalProps extends ViewProps, AgentEvalEventHandlers {
164
- appName: string;
165
- userId: string;
166
- apiBaseUrl?: string;
167
- enableBatchEvaluation?: boolean;
168
- enableMetricsComparison?: boolean;
169
- enableResultExport?: boolean;
170
- enableTemplates?: boolean;
171
- enableAutoRefresh?: boolean;
172
- maxConcurrentEvals?: number;
173
- maxTestCases?: number;
174
- refreshInterval?: number;
175
- showEvaluationHistory?: boolean;
176
- showMetricsPanel?: boolean;
177
- showTestCaseDetails?: boolean;
178
- showProgressIndicators?: boolean;
179
- compactMode?: boolean;
180
- views?: AgentEvalViews;
181
- containerProps?: ViewProps;
182
- initialEvaluations?: EvaluationRun[];
183
- selectedEvaluationId?: string;
184
- availableTemplates?: EvaluationTemplate[];
185
- enableRealTimeUpdates?: boolean;
186
- enableResultCaching?: boolean;
187
- enableCustomMetrics?: boolean;
188
- colorScheme?: 'blue' | 'purple' | 'green' | 'orange' | 'red' | 'gray';
189
- layout?: 'list' | 'grid' | 'dashboard';
190
- showCharts?: boolean;
191
- ariaLabel?: string;
192
- ariaDescribedBy?: string;
193
- }
194
- /**
195
- * Export Options
196
- */
197
- export interface EvaluationExportOptions {
198
- format: 'json' | 'csv' | 'pdf';
199
- includeTestCases?: boolean;
200
- includeResults?: boolean;
201
- includeMetrics?: boolean;
202
- includeSummary?: boolean;
203
- evaluationIds?: string[];
204
- }
205
- /**
206
- * Real-time Update Types
207
- */
208
- export interface EvaluationUpdate {
209
- type: 'progress' | 'result' | 'status' | 'complete' | 'error';
210
- evaluationId: string;
211
- data: any;
212
- timestamp: number;
213
- }
@@ -1,27 +0,0 @@
1
- /// <reference types="react" />
2
- import { AgentEvalProps, EvaluationRun, EvaluationResult, EvaluationTestCase, EvaluationMetric, EvaluationTemplate, EvaluationExportOptions } from './AgentEval.props';
3
- /**
4
- * Custom hook for managing AgentEval state and operations
5
- */
6
- export declare const useAgentEval: (props: AgentEvalProps) => {
7
- evaluations: EvaluationRun[];
8
- selectedEvaluation: EvaluationRun | null;
9
- selectedResult: EvaluationResult | null;
10
- isLoading: boolean;
11
- isCreating: boolean;
12
- error: string | null;
13
- searchQuery: string;
14
- templates: EvaluationTemplate[];
15
- fetchEvaluations: () => Promise<void>;
16
- createEvaluation: (name: string, testCases: EvaluationTestCase[], metrics: EvaluationMetric[], config?: any) => Promise<EvaluationRun>;
17
- startEvaluation: (evaluationId: string) => Promise<void>;
18
- cancelEvaluation: (evaluationId: string) => Promise<void>;
19
- deleteEvaluation: (evaluationId: string) => Promise<void>;
20
- selectEvaluation: (evaluationId: string) => void;
21
- selectResult: (result: EvaluationResult) => void;
22
- exportEvaluations: (options: EvaluationExportOptions) => Promise<void>;
23
- setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
24
- setError: import("react").Dispatch<import("react").SetStateAction<string | null>>;
25
- runningEvaluationsCount: number;
26
- canStartNewEvaluation: boolean;
27
- };
@@ -1,144 +0,0 @@
1
- import { ViewProps } from 'app-studio';
2
- /**
3
- * Default styles for AgentEval component
4
- * Following the app-studio design system with 4px grid, Inter/Geist fonts, and neutral palette
5
- */
6
- export declare const DefaultAgentEvalStyles: {
7
- container: ViewProps;
8
- header: ViewProps;
9
- evaluationList: ViewProps;
10
- evaluationItem: ViewProps;
11
- activeEvaluationItem: ViewProps;
12
- evaluationHeader: ViewProps;
13
- evaluationTitle: ViewProps;
14
- evaluationMeta: ViewProps;
15
- statusBadge: ViewProps;
16
- statusPending: ViewProps;
17
- statusRunning: ViewProps;
18
- statusCompleted: ViewProps;
19
- statusFailed: ViewProps;
20
- statusCancelled: ViewProps;
21
- progressBar: ViewProps;
22
- progressFill: ViewProps;
23
- evaluationActions: ViewProps;
24
- actionButton: ViewProps;
25
- startButton: ViewProps;
26
- cancelButton: ViewProps;
27
- deleteButton: ViewProps;
28
- createPanel: ViewProps;
29
- formGroup: ViewProps;
30
- formLabel: ViewProps;
31
- formInput: ViewProps;
32
- formTextarea: ViewProps;
33
- resultsPanel: ViewProps;
34
- resultsSummary: ViewProps;
35
- summaryGrid: ViewProps;
36
- summaryCard: ViewProps;
37
- summaryValue: ViewProps;
38
- summaryLabel: ViewProps;
39
- testCaseList: ViewProps;
40
- testCaseItem: ViewProps;
41
- testCaseHeader: ViewProps;
42
- testCaseName: ViewProps;
43
- testCaseStatus: ViewProps;
44
- testCasePass: ViewProps;
45
- testCaseFail: ViewProps;
46
- testCaseError: ViewProps;
47
- testCaseSkip: ViewProps;
48
- metricsPanel: ViewProps;
49
- metricsGrid: ViewProps;
50
- metricCard: ViewProps;
51
- metricTitle: ViewProps;
52
- metricValue: ViewProps;
53
- metricChange: ViewProps;
54
- metricIncrease: ViewProps;
55
- metricDecrease: ViewProps;
56
- emptyState: ViewProps;
57
- loadingState: ViewProps;
58
- errorState: ViewProps;
59
- searchInput: ViewProps;
60
- exportButton: ViewProps;
61
- refreshButton: ViewProps;
62
- };
63
- /**
64
- * Size variants for AgentEval
65
- */
66
- export declare const AgentEvalSizes: {
67
- sm: {
68
- container: {
69
- height: string;
70
- };
71
- evaluationList: {
72
- minHeight: string;
73
- };
74
- };
75
- md: {
76
- container: {
77
- height: string;
78
- };
79
- evaluationList: {
80
- minHeight: string;
81
- };
82
- };
83
- lg: {
84
- container: {
85
- height: string;
86
- };
87
- evaluationList: {
88
- minHeight: string;
89
- };
90
- };
91
- xl: {
92
- container: {
93
- height: string;
94
- };
95
- evaluationList: {
96
- minHeight: string;
97
- };
98
- };
99
- };
100
- /**
101
- * Theme variants for AgentEval
102
- */
103
- export declare const AgentEvalThemes: {
104
- light: {
105
- container: {
106
- backgroundColor: string;
107
- };
108
- header: {
109
- backgroundColor: string;
110
- };
111
- evaluationList: {
112
- backgroundColor: string;
113
- };
114
- createPanel: {
115
- backgroundColor: string;
116
- };
117
- resultsPanel: {
118
- backgroundColor: string;
119
- };
120
- metricsPanel: {
121
- backgroundColor: string;
122
- };
123
- };
124
- dark: {
125
- container: {
126
- backgroundColor: string;
127
- };
128
- header: {
129
- backgroundColor: string;
130
- };
131
- evaluationList: {
132
- backgroundColor: string;
133
- };
134
- createPanel: {
135
- backgroundColor: string;
136
- };
137
- resultsPanel: {
138
- backgroundColor: string;
139
- };
140
- metricsPanel: {
141
- backgroundColor: string;
142
- };
143
- };
144
- };
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { AgentEvalProps } from './AgentEval.props';
3
- import { useAgentEval } from './AgentEval.state';
4
- export interface AgentEvalViewProps extends AgentEvalProps, ReturnType<typeof useAgentEval> {
5
- }
6
- /**
7
- * AgentEval View Component
8
- *
9
- * Renders the complete evaluation interface with creation, monitoring, and results analysis
10
- */
11
- declare const AgentEvalView: React.FC<AgentEvalViewProps>;
12
- export default AgentEvalView;
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { EvaluationTemplate, EvaluationTestCase, EvaluationMetric } from './AgentEval.props';
3
- export interface EvaluationCreatorProps {
4
- templates: EvaluationTemplate[];
5
- isCreating: boolean;
6
- canCreate: boolean;
7
- onCreateEvaluation: (name: string, testCases: EvaluationTestCase[], metrics: EvaluationMetric[]) => void;
8
- views?: {
9
- container?: any;
10
- };
11
- }
12
- /**
13
- * EvaluationCreator Component
14
- *
15
- * Form for creating new evaluations with test cases and metrics
16
- */
17
- export declare const EvaluationCreator: React.FC<EvaluationCreatorProps>;
@@ -1,23 +0,0 @@
1
- import React from 'react';
2
- import { EvaluationRun } from './AgentEval.props';
3
- export interface EvaluationListProps {
4
- evaluations: EvaluationRun[];
5
- selectedEvaluation?: EvaluationRun | null;
6
- onEvaluationSelect: (evaluationId: string) => void;
7
- onEvaluationStart: (evaluationId: string) => void;
8
- onEvaluationCancel: (evaluationId: string) => void;
9
- onEvaluationDelete: (evaluationId: string) => void;
10
- showProgressIndicators?: boolean;
11
- compactMode?: boolean;
12
- views?: {
13
- container?: any;
14
- evaluationItem?: any;
15
- activeEvaluationItem?: any;
16
- };
17
- }
18
- /**
19
- * EvaluationList Component
20
- *
21
- * Renders a list of evaluations with status, progress, and actions
22
- */
23
- export declare const EvaluationList: React.FC<EvaluationListProps>;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { EvaluationRun } from './AgentEval.props';
3
- export interface EvaluationMetricsProps {
4
- evaluations: EvaluationRun[];
5
- enableComparison?: boolean;
6
- views?: {
7
- container?: any;
8
- };
9
- }
10
- /**
11
- * EvaluationMetrics Component
12
- *
13
- * Displays aggregated metrics and comparisons across evaluations
14
- */
15
- export declare const EvaluationMetrics: React.FC<EvaluationMetricsProps>;