@app-studio/web 0.9.17 → 0.9.19
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/dist/components/AuthGuard/index.d.ts +1 -1
- package/dist/utils/request.d.ts +2 -2
- package/dist/web.cjs.development.js +41 -46
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +43 -48
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +45 -45
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/README.md +52 -0
- package/docs/adk-components.md +316 -0
- package/docs/adk-quick-start.md +294 -0
- package/docs/api-integration.md +801 -0
- package/docs/api-reference/README.md +103 -0
- package/docs/api-reference/data-display/flow.md +220 -0
- package/docs/api-reference/data-display/tree.md +210 -0
- package/docs/api-reference/form/chat-input.md +210 -0
- package/docs/api-reference/utility/button.md +145 -0
- package/docs/api-reference/utility/title.md +301 -0
- package/docs/app-studio.md +302 -0
- package/docs/component-development/guide.md +546 -0
- package/docs/contributing/documentation.md +153 -0
- package/docs/conventions.md +536 -0
- package/docs/design-system/theming.md +299 -0
- package/docs/documentation-system.md +143 -0
- package/docs/getting-started/component-usage.md +211 -0
- package/docs/getting-started/introduction.md +114 -0
- package/docs/guide.md +550 -0
- package/docs/integration-guide.md +449 -0
- package/docs/tutorials/README.md +51 -0
- package/docs/tutorials/basic/creating-a-simple-form.md +566 -0
- package/package.json +3 -2
package/dist/web.esm.js
CHANGED
|
@@ -31,13 +31,8 @@ import 'core-js/modules/es.string.match.js';
|
|
|
31
31
|
import 'core-js/modules/es.string.search.js';
|
|
32
32
|
import 'core-js/modules/es.array.flat-map.js';
|
|
33
33
|
import 'core-js/modules/es.array.unscopables.flat-map.js';
|
|
34
|
-
import { Loader as Loader$1 } from 'src/components/Loader/Loader';
|
|
35
|
-
import { Avatar as Avatar$1 } from 'src/components/Avatar/Avatar';
|
|
36
|
-
import { Alert as Alert$1 } from 'src/components/Alert/Alert';
|
|
37
|
-
import { Select as Select$1, TextField as TextField$1, Checkbox as Checkbox$1, TextArea as TextArea$1 } from 'src/components/Form/Form';
|
|
38
34
|
import 'core-js/modules/es.array.sort.js';
|
|
39
|
-
import { Select as Select$
|
|
40
|
-
import { Tabs as Tabs$1 } from 'src/components/Tabs/Tabs';
|
|
35
|
+
import { Select as Select$1 } from 'src/components';
|
|
41
36
|
|
|
42
37
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
43
38
|
try {
|
|
@@ -28128,7 +28123,7 @@ var AgentMessage = _ref => {
|
|
|
28128
28123
|
return /*#__PURE__*/React.createElement(Horizontal, {
|
|
28129
28124
|
alignItems: "center",
|
|
28130
28125
|
gap: 8
|
|
28131
|
-
}, /*#__PURE__*/React.createElement(Loader
|
|
28126
|
+
}, /*#__PURE__*/React.createElement(Loader, {
|
|
28132
28127
|
size: "sm"
|
|
28133
28128
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
28134
28129
|
color: "color.gray.600"
|
|
@@ -28282,7 +28277,7 @@ var AgentMessage = _ref => {
|
|
|
28282
28277
|
alignItems: "flex-start",
|
|
28283
28278
|
justifyContent: isUser ? 'flex-end' : 'flex-start',
|
|
28284
28279
|
width: "100%"
|
|
28285
|
-
}, showAvatar && !isUser && (/*#__PURE__*/React.createElement(Avatar
|
|
28280
|
+
}, showAvatar && !isUser && (/*#__PURE__*/React.createElement(Avatar, Object.assign({
|
|
28286
28281
|
size: "sm",
|
|
28287
28282
|
backgroundColor: "color.green.500",
|
|
28288
28283
|
color: "white"
|
|
@@ -28291,7 +28286,7 @@ var AgentMessage = _ref => {
|
|
|
28291
28286
|
maxWidth: "80%"
|
|
28292
28287
|
}, /*#__PURE__*/React.createElement(View, Object.assign({}, messageStyles), renderMessageContent()), showTimestamp && !isLoading && (/*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentChatStyles.timestamp, views.timestamp, {
|
|
28293
28288
|
textAlign: isUser ? 'right' : 'left'
|
|
28294
|
-
}), formatTimestamp(message.timestamp)))), showAvatar && isUser && (/*#__PURE__*/React.createElement(Avatar
|
|
28289
|
+
}), formatTimestamp(message.timestamp)))), showAvatar && isUser && (/*#__PURE__*/React.createElement(Avatar, Object.assign({
|
|
28295
28290
|
size: "sm",
|
|
28296
28291
|
backgroundColor: "color.blue.500",
|
|
28297
28292
|
color: "white"
|
|
@@ -28307,7 +28302,7 @@ var AgentTypingIndicator = () => {
|
|
|
28307
28302
|
return /*#__PURE__*/React.createElement(Horizontal, {
|
|
28308
28303
|
gap: 12,
|
|
28309
28304
|
alignItems: "flex-start"
|
|
28310
|
-
}, /*#__PURE__*/React.createElement(Avatar
|
|
28305
|
+
}, /*#__PURE__*/React.createElement(Avatar, Object.assign({
|
|
28311
28306
|
size: "sm",
|
|
28312
28307
|
backgroundColor: "color.green.500",
|
|
28313
28308
|
color: "white"
|
|
@@ -28509,12 +28504,12 @@ var AgentChatView = _ref => {
|
|
|
28509
28504
|
}, "Session: ", sessionId == null ? void 0 : sessionId.slice(0, 8), "..."))), isLoading && (/*#__PURE__*/React.createElement(Horizontal, {
|
|
28510
28505
|
alignItems: "center",
|
|
28511
28506
|
gap: 8
|
|
28512
|
-
}, /*#__PURE__*/React.createElement(Loader
|
|
28507
|
+
}, /*#__PURE__*/React.createElement(Loader, {
|
|
28513
28508
|
size: "sm"
|
|
28514
28509
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
28515
28510
|
fontSize: "sm",
|
|
28516
28511
|
color: "color.gray.600"
|
|
28517
|
-
}, "Processing..."))))), error && (/*#__PURE__*/React.createElement(Alert
|
|
28512
|
+
}, "Processing..."))))), error && (/*#__PURE__*/React.createElement(Alert, {
|
|
28518
28513
|
variant: "error",
|
|
28519
28514
|
title: "",
|
|
28520
28515
|
description: error,
|
|
@@ -29364,7 +29359,7 @@ var SessionFilters = _ref => {
|
|
|
29364
29359
|
gap: 12
|
|
29365
29360
|
}, /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentSessionStyles.filterLabel), "Sort By"), /*#__PURE__*/React.createElement(Horizontal, {
|
|
29366
29361
|
gap: 8
|
|
29367
|
-
}, /*#__PURE__*/React.createElement(Select
|
|
29362
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
29368
29363
|
value: sortOptions.field,
|
|
29369
29364
|
onChange: handleSortFieldChange,
|
|
29370
29365
|
options: [{
|
|
@@ -29381,7 +29376,7 @@ var SessionFilters = _ref => {
|
|
|
29381
29376
|
label: 'Message Count'
|
|
29382
29377
|
}],
|
|
29383
29378
|
placeholder: "Sort field"
|
|
29384
|
-
}), /*#__PURE__*/React.createElement(Select
|
|
29379
|
+
}), /*#__PURE__*/React.createElement(Select, {
|
|
29385
29380
|
value: sortOptions.direction,
|
|
29386
29381
|
onChange: handleSortDirectionChange,
|
|
29387
29382
|
options: [{
|
|
@@ -29392,14 +29387,14 @@ var SessionFilters = _ref => {
|
|
|
29392
29387
|
label: 'Ascending'
|
|
29393
29388
|
}],
|
|
29394
29389
|
placeholder: "Sort direction"
|
|
29395
|
-
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentSessionStyles.filterLabel), "Filter by Tags"), /*#__PURE__*/React.createElement(TextField
|
|
29390
|
+
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentSessionStyles.filterLabel), "Filter by Tags"), /*#__PURE__*/React.createElement(TextField, {
|
|
29396
29391
|
placeholder: "Enter tags separated by commas",
|
|
29397
29392
|
value: ((_filters$tags = filters.tags) == null ? void 0 : _filters$tags.join(', ')) || '',
|
|
29398
29393
|
onChange: handleTagsChange
|
|
29399
29394
|
})), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentSessionStyles.filterLabel), "Message Count Range"), /*#__PURE__*/React.createElement(Horizontal, {
|
|
29400
29395
|
gap: 8,
|
|
29401
29396
|
alignItems: "center"
|
|
29402
|
-
}, /*#__PURE__*/React.createElement(TextField
|
|
29397
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
29403
29398
|
placeholder: "Min",
|
|
29404
29399
|
type: "number",
|
|
29405
29400
|
value: ((_filters$messageCount3 = filters.messageCountRange) == null || (_filters$messageCount3 = _filters$messageCount3.min) == null ? void 0 : _filters$messageCount3.toString()) || '',
|
|
@@ -29410,7 +29405,7 @@ var SessionFilters = _ref => {
|
|
|
29410
29405
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
29411
29406
|
fontSize: "sm",
|
|
29412
29407
|
color: "color.gray.600"
|
|
29413
|
-
}, "to"), /*#__PURE__*/React.createElement(TextField
|
|
29408
|
+
}, "to"), /*#__PURE__*/React.createElement(TextField, {
|
|
29414
29409
|
placeholder: "Max",
|
|
29415
29410
|
type: "number",
|
|
29416
29411
|
value: ((_filters$messageCount4 = filters.messageCountRange) == null || (_filters$messageCount4 = _filters$messageCount4.max) == null ? void 0 : _filters$messageCount4.toString()) || '',
|
|
@@ -29609,9 +29604,9 @@ var AgentSessionView = _ref => {
|
|
|
29609
29604
|
onClick: handleCreateSession,
|
|
29610
29605
|
disabled: isCreating,
|
|
29611
29606
|
"aria-label": "Create new session"
|
|
29612
|
-
}, isCreating ? /*#__PURE__*/React.createElement(Loader
|
|
29607
|
+
}, isCreating ? /*#__PURE__*/React.createElement(Loader, {
|
|
29613
29608
|
size: "xs"
|
|
29614
|
-
}) : '+ New Session'))))), error && (/*#__PURE__*/React.createElement(Alert
|
|
29609
|
+
}) : '+ New Session'))))), error && (/*#__PURE__*/React.createElement(Alert, {
|
|
29615
29610
|
variant: "error",
|
|
29616
29611
|
onClose: () => setError(null)
|
|
29617
29612
|
}, error)), enableSessionSearch && (/*#__PURE__*/React.createElement(View, {
|
|
@@ -29620,7 +29615,7 @@ var AgentSessionView = _ref => {
|
|
|
29620
29615
|
borderBottomColor: "color.gray.200"
|
|
29621
29616
|
}, /*#__PURE__*/React.createElement(Vertical, {
|
|
29622
29617
|
gap: 12
|
|
29623
|
-
}, /*#__PURE__*/React.createElement(TextField
|
|
29618
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
29624
29619
|
placeholder: "Search sessions...",
|
|
29625
29620
|
value: searchQuery,
|
|
29626
29621
|
onChange: setSearchQuery,
|
|
@@ -29643,7 +29638,7 @@ var AgentSessionView = _ref => {
|
|
|
29643
29638
|
importButton: views == null ? void 0 : views.importButton,
|
|
29644
29639
|
exportButton: views == null ? void 0 : views.exportButton
|
|
29645
29640
|
}
|
|
29646
|
-
})), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.sessionList, views == null ? void 0 : views.sessionList), isLoading && sessions.length === 0 ? (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader
|
|
29641
|
+
})), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.sessionList, views == null ? void 0 : views.sessionList), isLoading && sessions.length === 0 ? (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentSessionStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader, {
|
|
29647
29642
|
size: "md"
|
|
29648
29643
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
29649
29644
|
color: "color.gray.600"
|
|
@@ -30963,7 +30958,7 @@ var TraceFilters = _ref => {
|
|
|
30963
30958
|
flexWrap: "wrap"
|
|
30964
30959
|
}, eventTypes.map(type => {
|
|
30965
30960
|
var _filter$eventTypes;
|
|
30966
|
-
return /*#__PURE__*/React.createElement(Checkbox
|
|
30961
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
30967
30962
|
key: type,
|
|
30968
30963
|
checked: ((_filter$eventTypes = filter.eventTypes) == null ? void 0 : _filter$eventTypes.includes(type)) || false,
|
|
30969
30964
|
onChange: checked => {
|
|
@@ -30977,7 +30972,7 @@ var TraceFilters = _ref => {
|
|
|
30977
30972
|
gap: 8
|
|
30978
30973
|
}, ['info', 'warning', 'error', 'debug'].map(level => {
|
|
30979
30974
|
var _filter$level;
|
|
30980
|
-
return /*#__PURE__*/React.createElement(Checkbox
|
|
30975
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
30981
30976
|
key: level,
|
|
30982
30977
|
checked: ((_filter$level = filter.level) == null ? void 0 : _filter$level.includes(level)) || false,
|
|
30983
30978
|
onChange: checked => {
|
|
@@ -30990,7 +30985,7 @@ var TraceFilters = _ref => {
|
|
|
30990
30985
|
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentTraceStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentTraceStyles.filterLabel), "Duration Range (ms)"), /*#__PURE__*/React.createElement(Horizontal, {
|
|
30991
30986
|
gap: 8,
|
|
30992
30987
|
alignItems: "center"
|
|
30993
|
-
}, /*#__PURE__*/React.createElement(TextField
|
|
30988
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
30994
30989
|
placeholder: "Min",
|
|
30995
30990
|
type: "number",
|
|
30996
30991
|
value: ((_filter$minDuration = filter.minDuration) == null ? void 0 : _filter$minDuration.toString()) || '',
|
|
@@ -31001,7 +30996,7 @@ var TraceFilters = _ref => {
|
|
|
31001
30996
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
31002
30997
|
fontSize: "sm",
|
|
31003
30998
|
color: "color.gray.600"
|
|
31004
|
-
}, "to"), /*#__PURE__*/React.createElement(TextField
|
|
30999
|
+
}, "to"), /*#__PURE__*/React.createElement(TextField, {
|
|
31005
31000
|
placeholder: "Max",
|
|
31006
31001
|
type: "number",
|
|
31007
31002
|
value: ((_filter$maxDuration = filter.maxDuration) == null ? void 0 : _filter$maxDuration.toString()) || '',
|
|
@@ -31009,7 +31004,7 @@ var TraceFilters = _ref => {
|
|
|
31009
31004
|
style: {
|
|
31010
31005
|
width: '100px'
|
|
31011
31006
|
}
|
|
31012
|
-
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentTraceStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentTraceStyles.filterLabel), "Filter by Tags"), /*#__PURE__*/React.createElement(TextField
|
|
31007
|
+
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentTraceStyles.filterGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentTraceStyles.filterLabel), "Filter by Tags"), /*#__PURE__*/React.createElement(TextField, {
|
|
31013
31008
|
placeholder: "Enter tags separated by commas",
|
|
31014
31009
|
value: ((_filter$tags = filter.tags) == null ? void 0 : _filter$tags.join(', ')) || '',
|
|
31015
31010
|
onChange: handleTagsChange
|
|
@@ -31301,7 +31296,7 @@ var TraceVisualization = _ref => {
|
|
|
31301
31296
|
fontSize: "sm",
|
|
31302
31297
|
fontWeight: "600",
|
|
31303
31298
|
color: "color.gray.700"
|
|
31304
|
-
}, "Visualization Type"), /*#__PURE__*/React.createElement(Select$
|
|
31299
|
+
}, "Visualization Type"), /*#__PURE__*/React.createElement(Select$1, {
|
|
31305
31300
|
value: visualizationType,
|
|
31306
31301
|
onChange: onVisualizationChange,
|
|
31307
31302
|
options: [{
|
|
@@ -31415,14 +31410,14 @@ var AgentTraceView = _ref => {
|
|
|
31415
31410
|
onClick: handleRefresh,
|
|
31416
31411
|
disabled: isLoading,
|
|
31417
31412
|
"aria-label": "Refresh trace data"
|
|
31418
|
-
}, isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
31413
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Loader, {
|
|
31419
31414
|
size: "xs"
|
|
31420
31415
|
}) : '🔄'), enableExport && (/*#__PURE__*/React.createElement(Button$1, {
|
|
31421
31416
|
variant: "outline",
|
|
31422
31417
|
size: "sm",
|
|
31423
31418
|
onClick: () => handleExport('json'),
|
|
31424
31419
|
"aria-label": "Export trace data"
|
|
31425
|
-
}, "\uD83D\uDCE4 Export"))))), error && (/*#__PURE__*/React.createElement(Alert
|
|
31420
|
+
}, "\uD83D\uDCE4 Export"))))), error && (/*#__PURE__*/React.createElement(Alert, {
|
|
31426
31421
|
variant: "error",
|
|
31427
31422
|
onClose: () => setError(null)
|
|
31428
31423
|
}, error)), enableSearch && (/*#__PURE__*/React.createElement(View, {
|
|
@@ -31431,7 +31426,7 @@ var AgentTraceView = _ref => {
|
|
|
31431
31426
|
borderBottomColor: "color.gray.200"
|
|
31432
31427
|
}, /*#__PURE__*/React.createElement(Vertical, {
|
|
31433
31428
|
gap: 12
|
|
31434
|
-
}, /*#__PURE__*/React.createElement(TextField
|
|
31429
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
31435
31430
|
placeholder: "Search events...",
|
|
31436
31431
|
value: searchQuery,
|
|
31437
31432
|
onChange: setSearchQuery,
|
|
@@ -31470,15 +31465,15 @@ var AgentTraceView = _ref => {
|
|
|
31470
31465
|
})) : (
|
|
31471
31466
|
/*#__PURE__*/
|
|
31472
31467
|
// Full mode - tabbed interface
|
|
31473
|
-
React.createElement(Tabs
|
|
31468
|
+
React.createElement(Tabs, {
|
|
31474
31469
|
defaultValue: "timeline"
|
|
31475
|
-
}, /*#__PURE__*/React.createElement(Tabs
|
|
31470
|
+
}, /*#__PURE__*/React.createElement(Tabs.List, null, showTimeline && (/*#__PURE__*/React.createElement(Tabs.Trigger, {
|
|
31476
31471
|
value: "timeline"
|
|
31477
|
-
}, "Timeline")), /*#__PURE__*/React.createElement(Tabs
|
|
31472
|
+
}, "Timeline")), /*#__PURE__*/React.createElement(Tabs.Trigger, {
|
|
31478
31473
|
value: "events"
|
|
31479
|
-
}, "Events"), showVisualization && (/*#__PURE__*/React.createElement(Tabs
|
|
31474
|
+
}, "Events"), showVisualization && (/*#__PURE__*/React.createElement(Tabs.Trigger, {
|
|
31480
31475
|
value: "visualization"
|
|
31481
|
-
}, "Visualization"))), showTimeline && (/*#__PURE__*/React.createElement(Tabs
|
|
31476
|
+
}, "Visualization"))), showTimeline && (/*#__PURE__*/React.createElement(Tabs.Content, {
|
|
31482
31477
|
value: "timeline"
|
|
31483
31478
|
}, /*#__PURE__*/React.createElement(TraceTimeline, {
|
|
31484
31479
|
events: events,
|
|
@@ -31490,7 +31485,7 @@ var AgentTraceView = _ref => {
|
|
|
31490
31485
|
views: {
|
|
31491
31486
|
container: views == null ? void 0 : views.timeline
|
|
31492
31487
|
}
|
|
31493
|
-
}))), /*#__PURE__*/React.createElement(Tabs
|
|
31488
|
+
}))), /*#__PURE__*/React.createElement(Tabs.Content, {
|
|
31494
31489
|
value: "events"
|
|
31495
31490
|
}, /*#__PURE__*/React.createElement(TraceEventList, {
|
|
31496
31491
|
events: events,
|
|
@@ -31503,7 +31498,7 @@ var AgentTraceView = _ref => {
|
|
|
31503
31498
|
eventItem: views == null ? void 0 : views.eventItem,
|
|
31504
31499
|
selectedEventItem: views == null ? void 0 : views.selectedEventItem
|
|
31505
31500
|
}
|
|
31506
|
-
})), showVisualization && (/*#__PURE__*/React.createElement(Tabs
|
|
31501
|
+
})), showVisualization && (/*#__PURE__*/React.createElement(Tabs.Content, {
|
|
31507
31502
|
value: "visualization"
|
|
31508
31503
|
}, /*#__PURE__*/React.createElement(TraceVisualization, {
|
|
31509
31504
|
events: events,
|
|
@@ -31515,7 +31510,7 @@ var AgentTraceView = _ref => {
|
|
|
31515
31510
|
views: {
|
|
31516
31511
|
container: views == null ? void 0 : views.visualization
|
|
31517
31512
|
}
|
|
31518
|
-
})))))), isLoading && events.length === 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentTraceStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader
|
|
31513
|
+
})))))), isLoading && events.length === 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentTraceStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader, {
|
|
31519
31514
|
size: "md"
|
|
31520
31515
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
31521
31516
|
color: "color.gray.600"
|
|
@@ -32425,7 +32420,7 @@ var EvaluationList = _ref => {
|
|
|
32425
32420
|
}, "Avg Score: ", evaluation.summary.averageScore.toFixed(1)), /*#__PURE__*/React.createElement(Text$1, {
|
|
32426
32421
|
fontSize: "sm",
|
|
32427
32422
|
color: "color.gray.600"
|
|
32428
|
-
}, "Pass Rate:
|
|
32423
|
+
}, "Pass Rate:", ' ', (evaluation.summary.passRate * 100).toFixed(1), "%"))), evaluation.error && (/*#__PURE__*/React.createElement(View, {
|
|
32429
32424
|
padding: 8,
|
|
32430
32425
|
backgroundColor: "color.red.50",
|
|
32431
32426
|
borderRadius: "4px",
|
|
@@ -32566,7 +32561,7 @@ var EvaluationCreator = _ref => {
|
|
|
32566
32561
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
32567
32562
|
fontSize: "sm",
|
|
32568
32563
|
color: "color.yellow.800"
|
|
32569
|
-
}, "\u26A0\uFE0F Maximum concurrent evaluations reached. Please wait for running evaluations to complete."))), templates.length > 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Use Template (Optional)"), /*#__PURE__*/React.createElement(Select
|
|
32564
|
+
}, "\u26A0\uFE0F Maximum concurrent evaluations reached. Please wait for running evaluations to complete."))), templates.length > 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Use Template (Optional)"), /*#__PURE__*/React.createElement(Select, {
|
|
32570
32565
|
value: selectedTemplate,
|
|
32571
32566
|
onChange: handleTemplateSelect,
|
|
32572
32567
|
options: [{
|
|
@@ -32577,7 +32572,7 @@ var EvaluationCreator = _ref => {
|
|
|
32577
32572
|
label: t.name
|
|
32578
32573
|
}))],
|
|
32579
32574
|
placeholder: "Select a template"
|
|
32580
|
-
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Evaluation Name *"), /*#__PURE__*/React.createElement(TextField
|
|
32575
|
+
}))), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Evaluation Name *"), /*#__PURE__*/React.createElement(TextField, {
|
|
32581
32576
|
value: name,
|
|
32582
32577
|
onChange: setName,
|
|
32583
32578
|
placeholder: "Enter evaluation name",
|
|
@@ -32591,7 +32586,7 @@ var EvaluationCreator = _ref => {
|
|
|
32591
32586
|
size: "sm",
|
|
32592
32587
|
onClick: loadSampleData,
|
|
32593
32588
|
disabled: isCreating
|
|
32594
|
-
}, "Load Sample")), /*#__PURE__*/React.createElement(TextArea
|
|
32589
|
+
}, "Load Sample")), /*#__PURE__*/React.createElement(TextArea, {
|
|
32595
32590
|
value: testCasesText,
|
|
32596
32591
|
onChange: e => setTestCasesText(e.target.value),
|
|
32597
32592
|
placeholder: "Enter test cases as JSON array",
|
|
@@ -32609,7 +32604,7 @@ var EvaluationCreator = _ref => {
|
|
|
32609
32604
|
fontSize: "xs",
|
|
32610
32605
|
color: "color.gray.600",
|
|
32611
32606
|
marginTop: 4
|
|
32612
|
-
}, "Each test case should have: id, name, input, expectedOutput (optional)")), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Metrics (JSON)"), /*#__PURE__*/React.createElement(TextArea
|
|
32607
|
+
}, "Each test case should have: id, name, input, expectedOutput (optional)")), /*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.formGroup), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, DefaultAgentEvalStyles.formLabel), "Metrics (JSON)"), /*#__PURE__*/React.createElement(TextArea, {
|
|
32613
32608
|
value: metricsText,
|
|
32614
32609
|
onChange: e => setMetricsText(e.target.value),
|
|
32615
32610
|
placeholder: "Enter metrics as JSON array",
|
|
@@ -33031,13 +33026,13 @@ var EvaluationMetrics = _ref => {
|
|
|
33031
33026
|
}, "\uD83D\uDCCA Key Insights"), overallMetrics.avgPassRate > 0.9 && (/*#__PURE__*/React.createElement(Text$1, {
|
|
33032
33027
|
fontSize: "sm",
|
|
33033
33028
|
color: "color.green.700"
|
|
33034
|
-
}, "\u2705 Excellent performance with
|
|
33029
|
+
}, "\u2705 Excellent performance with", ' ', (overallMetrics.avgPassRate * 100).toFixed(1), "% average pass rate")), overallMetrics.avgPassRate < 0.7 && (/*#__PURE__*/React.createElement(Text$1, {
|
|
33035
33030
|
fontSize: "sm",
|
|
33036
33031
|
color: "color.red.700"
|
|
33037
33032
|
}, "\u26A0\uFE0F Consider reviewing test cases or agent configuration (pass rate: ", (overallMetrics.avgPassRate * 100).toFixed(1), "%)")), overallMetrics.totalEvaluations >= 10 && (/*#__PURE__*/React.createElement(Text$1, {
|
|
33038
33033
|
fontSize: "sm",
|
|
33039
33034
|
color: "color.blue.700"
|
|
33040
|
-
}, "\uD83D\uDCC8 Good evaluation coverage with
|
|
33035
|
+
}, "\uD83D\uDCC8 Good evaluation coverage with", ' ', overallMetrics.totalEvaluations, " completed evaluations")), overallMetrics.totalEvaluations < 5 && (/*#__PURE__*/React.createElement(Text$1, {
|
|
33041
33036
|
fontSize: "sm",
|
|
33042
33037
|
color: "color.yellow.700"
|
|
33043
33038
|
}, "\uD83D\uDCA1 Consider running more evaluations for better performance insights")))))), !overallMetrics && (/*#__PURE__*/React.createElement(View, {
|
|
@@ -33175,7 +33170,7 @@ var AgentEvalView = _ref => {
|
|
|
33175
33170
|
onClick: handleRefresh,
|
|
33176
33171
|
disabled: isLoading,
|
|
33177
33172
|
"aria-label": "Refresh evaluations"
|
|
33178
|
-
}, isLoading ? /*#__PURE__*/React.createElement(Loader
|
|
33173
|
+
}, isLoading ? /*#__PURE__*/React.createElement(Loader, {
|
|
33179
33174
|
size: "xs"
|
|
33180
33175
|
}) : '🔄'), enableResultExport && (/*#__PURE__*/React.createElement(Button$1, {
|
|
33181
33176
|
variant: "outline",
|
|
@@ -33190,7 +33185,7 @@ var AgentEvalView = _ref => {
|
|
|
33190
33185
|
padding: 16,
|
|
33191
33186
|
borderBottom: "1px solid",
|
|
33192
33187
|
borderBottomColor: "color.gray.200"
|
|
33193
|
-
}, /*#__PURE__*/React.createElement(TextField
|
|
33188
|
+
}, /*#__PURE__*/React.createElement(TextField, {
|
|
33194
33189
|
placeholder: "Search evaluations...",
|
|
33195
33190
|
value: searchQuery,
|
|
33196
33191
|
onChange: setSearchQuery,
|
|
@@ -33294,7 +33289,7 @@ var AgentEvalView = _ref => {
|
|
|
33294
33289
|
views: {
|
|
33295
33290
|
container: views == null ? void 0 : views.metricsPanel
|
|
33296
33291
|
}
|
|
33297
|
-
})))))), isLoading && evaluations.length === 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader
|
|
33292
|
+
})))))), isLoading && evaluations.length === 0 && (/*#__PURE__*/React.createElement(View, Object.assign({}, DefaultAgentEvalStyles.loadingState, views == null ? void 0 : views.loadingState), /*#__PURE__*/React.createElement(Loader, {
|
|
33298
33293
|
size: "md"
|
|
33299
33294
|
}), /*#__PURE__*/React.createElement(Text$1, {
|
|
33300
33295
|
color: "color.gray.600"
|