inspect-ai 0.3.91__py3-none-any.whl → 0.3.93__py3-none-any.whl
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.
- inspect_ai/_cli/eval.py +31 -0
- inspect_ai/_eval/eval.py +19 -2
- inspect_ai/_eval/evalset.py +4 -1
- inspect_ai/_eval/run.py +41 -0
- inspect_ai/_eval/task/generate.py +38 -44
- inspect_ai/_eval/task/log.py +26 -28
- inspect_ai/_eval/task/run.py +13 -20
- inspect_ai/_util/local_server.py +368 -0
- inspect_ai/_util/working.py +10 -4
- inspect_ai/_view/www/dist/assets/index.css +159 -146
- inspect_ai/_view/www/dist/assets/index.js +1020 -1061
- inspect_ai/_view/www/log-schema.json +4 -3
- inspect_ai/_view/www/package.json +1 -1
- inspect_ai/_view/www/src/@types/log.d.ts +3 -2
- inspect_ai/_view/www/src/app/content/MetaDataGrid.tsx +2 -2
- inspect_ai/_view/www/src/app/content/MetaDataView.module.css +1 -1
- inspect_ai/_view/www/src/app/content/MetadataGrid.module.css +1 -1
- inspect_ai/_view/www/src/app/content/RenderedContent.tsx +1 -1
- inspect_ai/_view/www/src/app/log-view/LogView.tsx +11 -0
- inspect_ai/_view/www/src/app/log-view/tabs/InfoTab.tsx +2 -9
- inspect_ai/_view/www/src/app/log-view/tabs/ModelsTab.tsx +51 -0
- inspect_ai/_view/www/src/app/log-view/tabs/TaskTab.module.css +6 -0
- inspect_ai/_view/www/src/app/log-view/tabs/TaskTab.tsx +143 -0
- inspect_ai/_view/www/src/app/plan/ModelCard.tsx +1 -2
- inspect_ai/_view/www/src/app/plan/PlanCard.tsx +29 -7
- inspect_ai/_view/www/src/app/plan/PlanDetailView.module.css +1 -1
- inspect_ai/_view/www/src/app/plan/PlanDetailView.tsx +1 -198
- inspect_ai/_view/www/src/app/samples/descriptor/score/NumericScoreDescriptor.tsx +2 -1
- inspect_ai/_view/www/src/app/usage/ModelUsagePanel.tsx +3 -2
- inspect_ai/_view/www/src/app/usage/TokenTable.module.css +4 -1
- inspect_ai/_view/www/src/app/usage/TokenTable.tsx +2 -2
- inspect_ai/_view/www/src/app/usage/UsageCard.module.css +8 -3
- inspect_ai/_view/www/src/app/usage/UsageCard.tsx +1 -35
- inspect_ai/_view/www/src/components/Card.css +0 -1
- inspect_ai/_view/www/src/constants.ts +2 -0
- inspect_ai/_view/www/src/utils/numeric.ts +17 -0
- inspect_ai/agent/_agent.py +3 -3
- inspect_ai/agent/_as_solver.py +20 -12
- inspect_ai/agent/_as_tool.py +15 -3
- inspect_ai/agent/_handoff.py +8 -1
- inspect_ai/agent/_run.py +11 -3
- inspect_ai/log/__init__.py +4 -0
- inspect_ai/log/_file.py +56 -0
- inspect_ai/log/_log.py +99 -0
- inspect_ai/log/_recorders/__init__.py +2 -0
- inspect_ai/log/_recorders/buffer/database.py +12 -11
- inspect_ai/log/_recorders/buffer/filestore.py +2 -2
- inspect_ai/log/_recorders/buffer/types.py +2 -2
- inspect_ai/log/_recorders/eval.py +20 -65
- inspect_ai/log/_recorders/file.py +28 -6
- inspect_ai/log/_recorders/recorder.py +7 -0
- inspect_ai/log/_recorders/types.py +1 -23
- inspect_ai/log/_samples.py +0 -8
- inspect_ai/log/_transcript.py +7 -1
- inspect_ai/log/_util.py +52 -0
- inspect_ai/model/__init__.py +5 -1
- inspect_ai/model/_call_tools.py +32 -12
- inspect_ai/model/_generate_config.py +14 -8
- inspect_ai/model/_model.py +21 -48
- inspect_ai/model/_model_output.py +25 -0
- inspect_ai/model/_openai.py +2 -0
- inspect_ai/model/_openai_responses.py +13 -1
- inspect_ai/model/_providers/anthropic.py +13 -23
- inspect_ai/model/_providers/openai_o1.py +8 -2
- inspect_ai/model/_providers/providers.py +18 -4
- inspect_ai/model/_providers/sglang.py +241 -0
- inspect_ai/model/_providers/vllm.py +207 -400
- inspect_ai/solver/__init__.py +7 -2
- inspect_ai/solver/_basic_agent.py +3 -10
- inspect_ai/solver/_task_state.py +26 -88
- inspect_ai/tool/_json_rpc_helpers.py +45 -17
- inspect_ai/tool/_mcp/_mcp.py +2 -0
- inspect_ai/tool/_mcp/_sandbox.py +8 -2
- inspect_ai/tool/_mcp/server.py +3 -1
- inspect_ai/tool/_tool_call.py +4 -1
- inspect_ai/tool/_tool_support_helpers.py +51 -12
- inspect_ai/tool/_tools/_bash_session.py +190 -68
- inspect_ai/tool/_tools/_computer/_computer.py +25 -1
- inspect_ai/tool/_tools/_text_editor.py +4 -3
- inspect_ai/tool/_tools/_web_browser/_web_browser.py +10 -3
- inspect_ai/util/__init__.py +12 -0
- inspect_ai/util/_limit.py +393 -0
- inspect_ai/util/_limited_conversation.py +57 -0
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/METADATA +1 -1
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/RECORD +90 -109
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/WHEEL +1 -1
- inspect_ai/solver/_limit.py +0 -39
- inspect_ai/tool/_tools/_computer/_resources/Dockerfile +0 -102
- inspect_ai/tool/_tools/_computer/_resources/README.md +0 -30
- inspect_ai/tool/_tools/_computer/_resources/entrypoint/entrypoint.sh +0 -18
- inspect_ai/tool/_tools/_computer/_resources/entrypoint/novnc_startup.sh +0 -20
- inspect_ai/tool/_tools/_computer/_resources/entrypoint/x11vnc_startup.sh +0 -48
- inspect_ai/tool/_tools/_computer/_resources/entrypoint/xfce_startup.sh +0 -13
- inspect_ai/tool/_tools/_computer/_resources/entrypoint/xvfb_startup.sh +0 -48
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/Code/User/globalStorage/state.vscdb +0 -0
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/Code/User/settings.json +0 -9
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +0 -61
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml +0 -10
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml +0 -91
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Firefox Web Browser.desktop +0 -10
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Terminal.desktop +0 -10
- inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Visual Studio Code.desktop +0 -10
- inspect_ai/tool/_tools/_computer/_resources/tool/.pylintrc +0 -8
- inspect_ai/tool/_tools/_computer/_resources/tool/.vscode/settings.json +0 -12
- inspect_ai/tool/_tools/_computer/_resources/tool/_args.py +0 -78
- inspect_ai/tool/_tools/_computer/_resources/tool/_constants.py +0 -22
- inspect_ai/tool/_tools/_computer/_resources/tool/_logger.py +0 -22
- inspect_ai/tool/_tools/_computer/_resources/tool/_run.py +0 -42
- inspect_ai/tool/_tools/_computer/_resources/tool/_tool_result.py +0 -33
- inspect_ai/tool/_tools/_computer/_resources/tool/_x11_client.py +0 -341
- inspect_ai/tool/_tools/_computer/_resources/tool/computer_tool.py +0 -141
- inspect_ai/tool/_tools/_computer/_resources/tool/pyproject.toml +0 -65
- inspect_ai/tool/_tools/_computer/_resources/tool/requirements.txt +0 -0
- inspect_ai/tool/_tools/_computer/test_args.py +0 -151
- /inspect_ai/{tool/_tools/_computer/_resources/tool/__init__.py → _view/www/src/app/log-view/tabs/ModelsTab.module.css} +0 -0
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/entry_points.txt +0 -0
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/licenses/LICENSE +0 -0
- {inspect_ai-0.3.91.dist-info → inspect_ai-0.3.93.dist-info}/top_level.txt +0 -0
@@ -22653,6 +22653,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
22653
22653
|
const kLogViewSamplesTabId = "samples";
|
22654
22654
|
const kLogViewJsonTabId = "json";
|
22655
22655
|
const kLogViewInfoTabId = "info";
|
22656
|
+
const kLogViewModelsTabId = "models";
|
22657
|
+
const kLogViewTaskTabId = "task";
|
22656
22658
|
const kSampleMessagesTabId = `messages`;
|
22657
22659
|
const kSampleTranscriptTabId = `transcript`;
|
22658
22660
|
const kSampleScoringTabId = `scoring`;
|
@@ -23945,7 +23947,6 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
23945
23947
|
up: "bi bi-chevron-up"
|
23946
23948
|
},
|
23947
23949
|
close: "bi bi-x",
|
23948
|
-
config: "bi bi-gear",
|
23949
23950
|
confirm: "bi bi-check",
|
23950
23951
|
copy: "bi bi-copy",
|
23951
23952
|
error: "bi bi-exclamation-circle",
|
@@ -23983,8 +23984,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
23983
23984
|
search: "bi bi-search",
|
23984
23985
|
solvers: {
|
23985
23986
|
use_tools: "bi bi-tools"
|
23986
|
-
}
|
23987
|
-
usage: "bi bi-stopwatch"
|
23987
|
+
}
|
23988
23988
|
};
|
23989
23989
|
const ErrorPanel = ({ title: title2, error: error2 }) => {
|
23990
23990
|
const message2 = error2.message;
|
@@ -24167,7 +24167,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24167
24167
|
const circle$1 = "_circle_qymy9_1";
|
24168
24168
|
const green$1 = "_green_qymy9_12";
|
24169
24169
|
const red$1 = "_red_qymy9_18";
|
24170
|
-
const styles$
|
24170
|
+
const styles$1m = {
|
24171
24171
|
circle: circle$1,
|
24172
24172
|
green: green$1,
|
24173
24173
|
red: red$1
|
@@ -24183,9 +24183,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24183
24183
|
"span",
|
24184
24184
|
{
|
24185
24185
|
className: clsx(
|
24186
|
-
styles$
|
24186
|
+
styles$1m.circle,
|
24187
24187
|
"text-size-small",
|
24188
|
-
score2 ? styles$
|
24188
|
+
score2 ? styles$1m.green : styles$1m.red
|
24189
24189
|
),
|
24190
24190
|
children: String(score2)
|
24191
24191
|
}
|
@@ -24205,6 +24205,20 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24205
24205
|
}
|
24206
24206
|
};
|
24207
24207
|
};
|
24208
|
+
function compareWithNan(a, b) {
|
24209
|
+
const aIsNaN = Number.isNaN(a);
|
24210
|
+
const bIsNaN = Number.isNaN(b);
|
24211
|
+
if (aIsNaN && bIsNaN) {
|
24212
|
+
return 0;
|
24213
|
+
}
|
24214
|
+
if (aIsNaN) {
|
24215
|
+
return 1;
|
24216
|
+
}
|
24217
|
+
if (bIsNaN) {
|
24218
|
+
return -1;
|
24219
|
+
}
|
24220
|
+
return a - b;
|
24221
|
+
}
|
24208
24222
|
const numericScoreDescriptor = (values) => {
|
24209
24223
|
const onlyNumeric = values.filter((val) => {
|
24210
24224
|
return typeof val === "number";
|
@@ -24215,7 +24229,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24215
24229
|
max: Math.max(...onlyNumeric),
|
24216
24230
|
compare: (a, b) => {
|
24217
24231
|
if (typeof a.value === "number" && typeof b.value === "number") {
|
24218
|
-
return a.value
|
24232
|
+
return compareWithNan(a.value, b.value);
|
24219
24233
|
} else {
|
24220
24234
|
console.warn("Comparing non-numerics using a numeric score descriptor");
|
24221
24235
|
return 0;
|
@@ -24239,7 +24253,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24239
24253
|
const container$k = "_container_1ramc_1";
|
24240
24254
|
const key = "_key_1ramc_12";
|
24241
24255
|
const value$3 = "_value_1ramc_16";
|
24242
|
-
const styles$
|
24256
|
+
const styles$1l = {
|
24243
24257
|
container: container$k,
|
24244
24258
|
key,
|
24245
24259
|
value: value$3
|
@@ -24282,12 +24296,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24282
24296
|
) : String(value2);
|
24283
24297
|
scores2.push(
|
24284
24298
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
24285
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
24286
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
24299
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1l.key, "text-size-smaller"), children: key2 }),
|
24300
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1l.value, "text-size-base"), children: formattedValue })
|
24287
24301
|
] })
|
24288
24302
|
);
|
24289
24303
|
});
|
24290
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
24304
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1l.container), children: scores2 }, `score-value`);
|
24291
24305
|
}
|
24292
24306
|
};
|
24293
24307
|
};
|
@@ -24295,7 +24309,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24295
24309
|
const hidden$2 = "_hidden_tm52u_5";
|
24296
24310
|
const pills = "_pills_tm52u_9";
|
24297
24311
|
const pill = "_pill_tm52u_9";
|
24298
|
-
const styles$
|
24312
|
+
const styles$1k = {
|
24299
24313
|
visible,
|
24300
24314
|
hidden: hidden$2,
|
24301
24315
|
pills,
|
@@ -24327,7 +24341,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24327
24341
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
24328
24342
|
"div",
|
24329
24343
|
{
|
24330
|
-
className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$
|
24344
|
+
className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$1k.visible : styles$1k.hidden,
|
24331
24345
|
children: child
|
24332
24346
|
},
|
24333
24347
|
`nav-pill-container-${idx}`
|
@@ -24337,7 +24351,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24337
24351
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
24338
24352
|
"ul",
|
24339
24353
|
{
|
24340
|
-
className: clsx("nav", "nav-pills", styles$
|
24354
|
+
className: clsx("nav", "nav-pills", styles$1k.pills),
|
24341
24355
|
role: "tablist",
|
24342
24356
|
"aria-orientation": "horizontal",
|
24343
24357
|
children: navPills
|
@@ -24373,7 +24387,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24373
24387
|
"nav-link",
|
24374
24388
|
"text-style-label",
|
24375
24389
|
active2 ? "active " : "",
|
24376
|
-
styles$
|
24390
|
+
styles$1k.pill
|
24377
24391
|
),
|
24378
24392
|
"data-target": title2,
|
24379
24393
|
onClick: handleClick,
|
@@ -24414,7 +24428,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24414
24428
|
const bordered = "_bordered_1wpxz_24";
|
24415
24429
|
const moreToggleContainer = "_moreToggleContainer_1wpxz_28";
|
24416
24430
|
const moreToggleButton = "_moreToggleButton_1wpxz_39";
|
24417
|
-
const styles$
|
24431
|
+
const styles$1j = {
|
24418
24432
|
expandableBordered,
|
24419
24433
|
expandableCollapsed,
|
24420
24434
|
moreToggle,
|
@@ -24454,9 +24468,9 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24454
24468
|
style: baseStyles,
|
24455
24469
|
ref: contentRef,
|
24456
24470
|
className: clsx(
|
24457
|
-
styles$
|
24458
|
-
collapsed ? styles$
|
24459
|
-
border ? styles$
|
24471
|
+
styles$1j.expandablePanel,
|
24472
|
+
collapsed ? styles$1j.expandableCollapsed : void 0,
|
24473
|
+
border ? styles$1j.expandableBordered : void 0
|
24460
24474
|
),
|
24461
24475
|
children: children2
|
24462
24476
|
}
|
@@ -24486,15 +24500,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24486
24500
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
24487
24501
|
"div",
|
24488
24502
|
{
|
24489
|
-
className: clsx(styles$
|
24503
|
+
className: clsx(styles$1j.moreToggle, border ? styles$1j.bordered : void 0),
|
24490
24504
|
style: style2,
|
24491
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
24505
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1j.moreToggleContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
24492
24506
|
"button",
|
24493
24507
|
{
|
24494
|
-
className: clsx("btn", styles$
|
24508
|
+
className: clsx("btn", styles$1j.moreToggleButton, "text-size-smallest"),
|
24495
24509
|
onClick: handleClick,
|
24496
24510
|
children: [
|
24497
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$
|
24511
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$1j.icon) }),
|
24498
24512
|
text2
|
24499
24513
|
]
|
24500
24514
|
}
|
@@ -24508,7 +24522,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
24508
24522
|
const messageGrid = "_messageGrid_1nz1x_16";
|
24509
24523
|
const messageContents = "_messageContents_1nz1x_24";
|
24510
24524
|
const indented = "_indented_1nz1x_29";
|
24511
|
-
const styles$
|
24525
|
+
const styles$1i = {
|
24512
24526
|
message: message$1,
|
24513
24527
|
padded: padded$2,
|
24514
24528
|
systemRole,
|
@@ -29715,19 +29729,19 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
29715
29729
|
this.sizeMultiplier = multiplier;
|
29716
29730
|
}
|
29717
29731
|
Style$4.prototype.sup = function() {
|
29718
|
-
return styles$
|
29732
|
+
return styles$1h[sup[this.id]];
|
29719
29733
|
};
|
29720
29734
|
Style$4.prototype.sub = function() {
|
29721
|
-
return styles$
|
29735
|
+
return styles$1h[sub[this.id]];
|
29722
29736
|
};
|
29723
29737
|
Style$4.prototype.fracNum = function() {
|
29724
|
-
return styles$
|
29738
|
+
return styles$1h[fracNum[this.id]];
|
29725
29739
|
};
|
29726
29740
|
Style$4.prototype.fracDen = function() {
|
29727
|
-
return styles$
|
29741
|
+
return styles$1h[fracDen[this.id]];
|
29728
29742
|
};
|
29729
29743
|
Style$4.prototype.cramp = function() {
|
29730
|
-
return styles$
|
29744
|
+
return styles$1h[cramp[this.id]];
|
29731
29745
|
};
|
29732
29746
|
Style$4.prototype.cls = function() {
|
29733
29747
|
return sizeNames[this.size] + (this.cramped ? " cramped" : " uncramped");
|
@@ -29755,7 +29769,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
29755
29769
|
"reset-scriptstyle",
|
29756
29770
|
"reset-scriptscriptstyle"
|
29757
29771
|
];
|
29758
|
-
var styles$
|
29772
|
+
var styles$1h = [
|
29759
29773
|
new Style$4(D, 0, 1, false),
|
29760
29774
|
new Style$4(Dc, 0, 1, true),
|
29761
29775
|
new Style$4(T, 1, 1, false),
|
@@ -29771,10 +29785,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
29771
29785
|
var fracDen = [Tc, Tc, Sc, Sc, SSc, SSc, SSc, SSc];
|
29772
29786
|
var cramp = [Dc, Dc, Tc, Tc, Sc, Sc, SSc, SSc];
|
29773
29787
|
var Style_1 = {
|
29774
|
-
DISPLAY: styles$
|
29775
|
-
TEXT: styles$
|
29776
|
-
SCRIPT: styles$
|
29777
|
-
SCRIPTSCRIPT: styles$
|
29788
|
+
DISPLAY: styles$1h[D],
|
29789
|
+
TEXT: styles$1h[T],
|
29790
|
+
SCRIPT: styles$1h[S],
|
29791
|
+
SCRIPTSCRIPT: styles$1h[SS]
|
29778
29792
|
};
|
29779
29793
|
var nativeIndexOf = Array.prototype.indexOf;
|
29780
29794
|
var indexOf = function(list2, elem) {
|
@@ -36551,7 +36565,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36551
36565
|
}
|
36552
36566
|
const contentImage = "_contentImage_61gdd_1";
|
36553
36567
|
const reasoning = "_reasoning_61gdd_6";
|
36554
|
-
const styles$
|
36568
|
+
const styles$1g = {
|
36555
36569
|
contentImage,
|
36556
36570
|
reasoning
|
36557
36571
|
};
|
@@ -36559,7 +36573,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36559
36573
|
const output$1 = "_output_18gxl_6";
|
36560
36574
|
const textOutput = "_textOutput_18gxl_10";
|
36561
36575
|
const textCode = "_textCode_18gxl_18";
|
36562
|
-
const styles$
|
36576
|
+
const styles$1f = {
|
36563
36577
|
toolImage,
|
36564
36578
|
output: output$1,
|
36565
36579
|
textOutput,
|
@@ -36581,7 +36595,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36581
36595
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
36582
36596
|
"img",
|
36583
36597
|
{
|
36584
|
-
className: clsx(styles$
|
36598
|
+
className: clsx(styles$1f.toolImage),
|
36585
36599
|
src: out.image
|
36586
36600
|
},
|
36587
36601
|
key2
|
@@ -36597,10 +36611,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36597
36611
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(output2) }, "tool-output-single")
|
36598
36612
|
);
|
36599
36613
|
}
|
36600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
36614
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1f.output), children: outputs });
|
36601
36615
|
};
|
36602
36616
|
const ToolTextOutput = ({ text: text2 }) => {
|
36603
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
36617
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$1f.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$1f.textCode), children: text2.trim() }) });
|
36604
36618
|
};
|
36605
36619
|
const MessageContent = ({ contents: contents2 }) => {
|
36606
36620
|
if (Array.isArray(contents2)) {
|
@@ -36663,7 +36677,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36663
36677
|
if (!r2.reasoning && !r2.redacted) {
|
36664
36678
|
return void 0;
|
36665
36679
|
}
|
36666
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
36680
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1g.reasoning, "text-size-small"), children: [
|
36667
36681
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
36668
36682
|
"div",
|
36669
36683
|
{
|
@@ -36688,7 +36702,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36688
36702
|
render: (key2, content2) => {
|
36689
36703
|
const c2 = content2;
|
36690
36704
|
if (c2.image.startsWith("data:")) {
|
36691
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$
|
36705
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$1g.contentImage }, key2);
|
36692
36706
|
} else {
|
36693
36707
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: c2.image }, key2);
|
36694
36708
|
}
|
@@ -36786,14 +36800,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36786
36800
|
};
|
36787
36801
|
const output = "_output_1tv9l_1";
|
36788
36802
|
const toolCallView = "_toolCallView_1tv9l_4";
|
36789
|
-
const styles$
|
36803
|
+
const styles$1e = {
|
36790
36804
|
output,
|
36791
36805
|
toolCallView
|
36792
36806
|
};
|
36793
36807
|
const outputPre = "_outputPre_s62go_1";
|
36794
36808
|
const toolView = "_toolView_s62go_7";
|
36795
36809
|
const outputCode = "_outputCode_s62go_15";
|
36796
|
-
const styles$
|
36810
|
+
const styles$1d = {
|
36797
36811
|
outputPre,
|
36798
36812
|
toolView,
|
36799
36813
|
outputCode
|
@@ -36808,7 +36822,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36808
36822
|
{
|
36809
36823
|
markdown: toolCallView2.content,
|
36810
36824
|
ref: prismParentRef,
|
36811
|
-
className: clsx("tool-output", styles$
|
36825
|
+
className: clsx("tool-output", styles$1d.toolView)
|
36812
36826
|
}
|
36813
36827
|
);
|
36814
36828
|
}
|
@@ -36816,7 +36830,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36816
36830
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36817
36831
|
"pre",
|
36818
36832
|
{
|
36819
|
-
className: clsx("tool-output", styles$
|
36833
|
+
className: clsx("tool-output", styles$1d.outputPre, styles$1d.bottomMargin),
|
36820
36834
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
36821
36835
|
"code",
|
36822
36836
|
{
|
@@ -36824,7 +36838,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36824
36838
|
"source-code",
|
36825
36839
|
"sourceCode",
|
36826
36840
|
highlightLanguage ? `language-${highlightLanguage}` : void 0,
|
36827
|
-
styles$
|
36841
|
+
styles$1d.outputCode
|
36828
36842
|
),
|
36829
36843
|
children: formattedContent
|
36830
36844
|
}
|
@@ -36834,14 +36848,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36834
36848
|
};
|
36835
36849
|
const image = "_image_a8byr_1";
|
36836
36850
|
const toolTitle = "_toolTitle_a8byr_6";
|
36837
|
-
const styles$
|
36851
|
+
const styles$1c = {
|
36838
36852
|
image,
|
36839
36853
|
toolTitle
|
36840
36854
|
};
|
36841
36855
|
const ToolTitle = ({ title: title2 }) => {
|
36842
36856
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
36843
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$
|
36844
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$
|
36857
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$1c.image) }),
|
36858
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$1c.toolTitle), children: title2 })
|
36845
36859
|
] });
|
36846
36860
|
};
|
36847
36861
|
const ToolCallView = ({
|
@@ -36884,7 +36898,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36884
36898
|
}
|
36885
36899
|
});
|
36886
36900
|
const contents2 = mode !== "compact" ? input2 : input2 || functionCall;
|
36887
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
36901
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1e.toolCallView), children: [
|
36888
36902
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
36889
36903
|
mode !== "compact" && (!view || view.title) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ToolTitle, { title: (view == null ? void 0 : view.title) || functionCall }) : "",
|
36890
36904
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -36903,7 +36917,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36903
36917
|
collapse,
|
36904
36918
|
border: true,
|
36905
36919
|
lines: 15,
|
36906
|
-
className: styles$
|
36920
|
+
className: styles$1e.output,
|
36907
36921
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: normalizedContent })
|
36908
36922
|
}
|
36909
36923
|
) : void 0
|
@@ -36929,7 +36943,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36929
36943
|
};
|
36930
36944
|
const content$2 = "_content_1b2jp_1";
|
36931
36945
|
const codeCompact = "_codeCompact_1b2jp_5";
|
36932
|
-
const styles$
|
36946
|
+
const styles$1b = {
|
36933
36947
|
content: content$2,
|
36934
36948
|
codeCompact
|
36935
36949
|
};
|
@@ -36955,7 +36969,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36955
36969
|
}
|
36956
36970
|
const resolvedToolOutput = resolveToolMessage(toolMessage);
|
36957
36971
|
if (toolCallStyle === "compact") {
|
36958
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { className: clsx(styles$
|
36972
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { className: clsx(styles$1b.codeCompact), children: [
|
36959
36973
|
"tool: ",
|
36960
36974
|
functionCall
|
36961
36975
|
] }) }, `tool-call-${idx}`);
|
@@ -36976,7 +36990,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
36976
36990
|
}
|
36977
36991
|
});
|
36978
36992
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
36979
|
-
message2.content && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
36993
|
+
message2.content && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1b.content, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) }),
|
36980
36994
|
toolCalls
|
36981
36995
|
] });
|
36982
36996
|
} else {
|
@@ -37127,12 +37141,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
37127
37141
|
className: clsx(
|
37128
37142
|
message2.role,
|
37129
37143
|
"text-size-base",
|
37130
|
-
styles$
|
37131
|
-
padded2 ? styles$
|
37132
|
-
message2.role === "system" ? styles$
|
37144
|
+
styles$1i.message,
|
37145
|
+
padded2 ? styles$1i.padded : void 0,
|
37146
|
+
message2.role === "system" ? styles$1i.systemRole : void 0
|
37133
37147
|
),
|
37134
37148
|
children: [
|
37135
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
37149
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1i.messageGrid, "text-style-label"), children: [
|
37136
37150
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: iconForMsg(message2) }),
|
37137
37151
|
message2.role
|
37138
37152
|
] }),
|
@@ -37140,8 +37154,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
37140
37154
|
"div",
|
37141
37155
|
{
|
37142
37156
|
className: clsx(
|
37143
|
-
styles$
|
37144
|
-
indented2 ? styles$
|
37157
|
+
styles$1i.messageContents,
|
37158
|
+
indented2 ? styles$1i.indented : void 0
|
37145
37159
|
),
|
37146
37160
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
37147
37161
|
ExpandablePanel,
|
@@ -37167,10 +37181,10 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
37167
37181
|
}
|
37168
37182
|
);
|
37169
37183
|
};
|
37170
|
-
const grid$
|
37184
|
+
const grid$7 = "_grid_140x5_1";
|
37171
37185
|
const number$1 = "_number_140x5_7";
|
37172
|
-
const styles$
|
37173
|
-
grid: grid$
|
37186
|
+
const styles$1a = {
|
37187
|
+
grid: grid$7,
|
37174
37188
|
number: number$1
|
37175
37189
|
};
|
37176
37190
|
const ChatMessageRow = ({
|
@@ -37182,14 +37196,14 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
37182
37196
|
padded: padded2
|
37183
37197
|
}) => {
|
37184
37198
|
if (number2) {
|
37185
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
37199
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1a.grid, children: [
|
37186
37200
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
37187
37201
|
"div",
|
37188
37202
|
{
|
37189
37203
|
className: clsx(
|
37190
37204
|
"text-size-smaller",
|
37191
37205
|
"text-style-secondary",
|
37192
|
-
styles$
|
37206
|
+
styles$1a.number
|
37193
37207
|
),
|
37194
37208
|
children: number2
|
37195
37209
|
}
|
@@ -38665,12 +38679,12 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38665
38679
|
}
|
38666
38680
|
}
|
38667
38681
|
};
|
38668
|
-
const table$2 = "
|
38669
|
-
const cell$3 = "
|
38670
|
-
const compact = "
|
38671
|
-
const cellKey = "
|
38672
|
-
const cellValue = "
|
38673
|
-
const styles$
|
38682
|
+
const table$2 = "_table_1t3ts_1";
|
38683
|
+
const cell$3 = "_cell_1t3ts_11";
|
38684
|
+
const compact = "_compact_1t3ts_15";
|
38685
|
+
const cellKey = "_cellKey_1t3ts_19";
|
38686
|
+
const cellValue = "_cellValue_1t3ts_31";
|
38687
|
+
const styles$19 = {
|
38674
38688
|
table: table$2,
|
38675
38689
|
cell: cell$3,
|
38676
38690
|
compact,
|
@@ -38698,15 +38712,15 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38698
38712
|
"td",
|
38699
38713
|
{
|
38700
38714
|
className: clsx(
|
38701
|
-
styles$
|
38702
|
-
styles$
|
38715
|
+
styles$19.cell,
|
38716
|
+
styles$19.cellKey,
|
38703
38717
|
"text-size-small",
|
38704
38718
|
"text-style-label"
|
38705
38719
|
),
|
38706
38720
|
children: entry2.name
|
38707
38721
|
}
|
38708
38722
|
),
|
38709
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$
|
38723
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$19.cell, styles$19.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
|
38710
38724
|
] }, id2);
|
38711
38725
|
});
|
38712
38726
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -38716,8 +38730,8 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38716
38730
|
className: clsx(
|
38717
38731
|
"table",
|
38718
38732
|
tblClz,
|
38719
|
-
styles$
|
38720
|
-
compact2 ? styles$
|
38733
|
+
styles$19.table,
|
38734
|
+
compact2 ? styles$19.compact : void 0,
|
38721
38735
|
className2
|
38722
38736
|
),
|
38723
38737
|
style: style2,
|
@@ -38812,7 +38826,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38812
38826
|
const query = "_query_9u9bt_1";
|
38813
38827
|
const summary$3 = "_summary_9u9bt_6";
|
38814
38828
|
const preWrap = "_preWrap_9u9bt_10";
|
38815
|
-
const styles$
|
38829
|
+
const styles$18 = {
|
38816
38830
|
query,
|
38817
38831
|
summary: summary$3,
|
38818
38832
|
preWrap
|
@@ -38842,7 +38856,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38842
38856
|
if (typeof entry2.value === "object") {
|
38843
38857
|
return JSON.stringify(entry2.value);
|
38844
38858
|
}
|
38845
|
-
return String(entry2.value);
|
38859
|
+
return String(entry2.value).trim();
|
38846
38860
|
} catch (e) {
|
38847
38861
|
return "[Unable to display value]";
|
38848
38862
|
}
|
@@ -38967,7 +38981,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38967
38981
|
render: (_id, entry2) => {
|
38968
38982
|
const results = [];
|
38969
38983
|
results.push(
|
38970
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
38984
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$18.query, children: [
|
38971
38985
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.search }),
|
38972
38986
|
" ",
|
38973
38987
|
entry2.value.query
|
@@ -38979,7 +38993,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38979
38993
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: result2.url, children: result2.url }) })
|
38980
38994
|
);
|
38981
38995
|
results.push(
|
38982
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$
|
38996
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$18.summary), children: result2.summary })
|
38983
38997
|
);
|
38984
38998
|
}
|
38985
38999
|
);
|
@@ -38996,7 +39010,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
38996
39010
|
},
|
38997
39011
|
render: (_id, entry2) => {
|
38998
39012
|
return {
|
38999
|
-
rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$
|
39013
|
+
rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$18.preWrap, children: entry2.value })
|
39000
39014
|
};
|
39001
39015
|
}
|
39002
39016
|
},
|
@@ -39064,7 +39078,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
39064
39078
|
const green = "_green_1iagp_12";
|
39065
39079
|
const red = "_red_1iagp_18";
|
39066
39080
|
const orange = "_orange_1iagp_24";
|
39067
|
-
const styles$
|
39081
|
+
const styles$17 = {
|
39068
39082
|
circle,
|
39069
39083
|
green,
|
39070
39084
|
red,
|
@@ -39105,22 +39119,22 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
39105
39119
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
39106
39120
|
"span",
|
39107
39121
|
{
|
39108
|
-
className: clsx("text-size-small", styles$
|
39122
|
+
className: clsx("text-size-small", styles$17.circle, styles$17.green),
|
39109
39123
|
children: "C"
|
39110
39124
|
}
|
39111
39125
|
);
|
39112
39126
|
} else if (score2 === "I") {
|
39113
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$
|
39127
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$17.circle, styles$17.red), children: "I" });
|
39114
39128
|
} else if (score2 === "P") {
|
39115
39129
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
39116
39130
|
"span",
|
39117
39131
|
{
|
39118
|
-
className: clsx("text-size-small", styles$
|
39132
|
+
className: clsx("text-size-small", styles$17.circle, styles$17.orange),
|
39119
39133
|
children: "P"
|
39120
39134
|
}
|
39121
39135
|
);
|
39122
39136
|
} else if (score2 === "N") {
|
39123
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$
|
39137
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$17.circle, styles$17.red), children: "N" });
|
39124
39138
|
} else {
|
39125
39139
|
return String(score2);
|
39126
39140
|
}
|
@@ -42094,7 +42108,7 @@ categories: ${categories.join(" ")}`;
|
|
42094
42108
|
};
|
42095
42109
|
const flex$1 = "_flex_1kye9_1";
|
42096
42110
|
const label$7 = "_label_1kye9_5";
|
42097
|
-
const styles$
|
42111
|
+
const styles$16 = {
|
42098
42112
|
flex: flex$1,
|
42099
42113
|
label: label$7
|
42100
42114
|
};
|
@@ -42128,7 +42142,7 @@ categories: ${categories.join(" ")}`;
|
|
42128
42142
|
},
|
42129
42143
|
[setSort]
|
42130
42144
|
);
|
42131
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
42145
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$16.flex, children: [
|
42132
42146
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
42133
42147
|
"span",
|
42134
42148
|
{
|
@@ -42137,7 +42151,7 @@ categories: ${categories.join(" ")}`;
|
|
42137
42151
|
"text-size-smaller",
|
42138
42152
|
"text-style-label",
|
42139
42153
|
"text-style-secondary",
|
42140
|
-
styles$
|
42154
|
+
styles$16.label
|
42141
42155
|
),
|
42142
42156
|
children: "Sort:"
|
42143
42157
|
}
|
@@ -42732,22 +42746,22 @@ categories: ${categories.join(" ")}`;
|
|
42732
42746
|
const wrapper$4 = "_wrapper_1tajk_1";
|
42733
42747
|
const container$j = "_container_1tajk_12";
|
42734
42748
|
const animate = "_animate_1tajk_21";
|
42735
|
-
const styles$
|
42749
|
+
const styles$15 = {
|
42736
42750
|
wrapper: wrapper$4,
|
42737
42751
|
container: container$j,
|
42738
42752
|
animate
|
42739
42753
|
};
|
42740
42754
|
const ProgressBar = ({ animating }) => {
|
42741
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
42755
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$15.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
42742
42756
|
"div",
|
42743
42757
|
{
|
42744
|
-
className: clsx(styles$
|
42758
|
+
className: clsx(styles$15.container),
|
42745
42759
|
role: "progressbar",
|
42746
42760
|
"aria-label": "Basic example",
|
42747
42761
|
"aria-valuenow": 25,
|
42748
42762
|
"aria-valuemin": 0,
|
42749
42763
|
"aria-valuemax": 100,
|
42750
|
-
children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
42764
|
+
children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$15.animate })
|
42751
42765
|
}
|
42752
42766
|
) });
|
42753
42767
|
};
|
@@ -42885,7 +42899,7 @@ categories: ${categories.join(" ")}`;
|
|
42885
42899
|
}
|
42886
42900
|
const dirname$1 = "_dirname_1qban_1";
|
42887
42901
|
const directoryLink = "_directoryLink_1qban_7";
|
42888
|
-
const styles$
|
42902
|
+
const styles$14 = {
|
42889
42903
|
dirname: dirname$1,
|
42890
42904
|
directoryLink
|
42891
42905
|
};
|
@@ -42901,7 +42915,7 @@ categories: ${categories.join(" ")}`;
|
|
42901
42915
|
}, [offCanvas, setOffCanvas]);
|
42902
42916
|
if (log_dir) {
|
42903
42917
|
const displayDir = prettyDir(log_dir);
|
42904
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/logs", className: styles$
|
42918
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/logs", className: styles$14.directoryLink, onClick: handleClick, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
42905
42919
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
42906
42920
|
"span",
|
42907
42921
|
{
|
@@ -42917,13 +42931,13 @@ categories: ${categories.join(" ")}`;
|
|
42917
42931
|
"span",
|
42918
42932
|
{
|
42919
42933
|
title: displayDir,
|
42920
|
-
className: clsx("text-size-base", styles$
|
42934
|
+
className: clsx("text-size-base", styles$14.dirname),
|
42921
42935
|
children: offCanvas ? displayDir : ""
|
42922
42936
|
}
|
42923
42937
|
)
|
42924
42938
|
] }) });
|
42925
42939
|
} else {
|
42926
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/logs", className: styles$
|
42940
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: "/logs", className: styles$14.directoryLink, onClick: handleClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-title"), children: offCanvas ? "Log History" : "" }) });
|
42927
42941
|
}
|
42928
42942
|
};
|
42929
42943
|
const prettyDir = (path) => {
|
@@ -42949,7 +42963,7 @@ categories: ${categories.join(" ")}`;
|
|
42949
42963
|
const active = "_active_1essr_63";
|
42950
42964
|
const item$1 = "_item_1essr_67";
|
42951
42965
|
const logLink = "_logLink_1essr_72";
|
42952
|
-
const styles$
|
42966
|
+
const styles$13 = {
|
42953
42967
|
sidebar,
|
42954
42968
|
sidebarClosed,
|
42955
42969
|
sidebarOpen,
|
@@ -42965,7 +42979,7 @@ categories: ${categories.join(" ")}`;
|
|
42965
42979
|
const error$1 = "_error_srruf_1";
|
42966
42980
|
const running = "_running_srruf_6";
|
42967
42981
|
const cancelled = "_cancelled_srruf_13";
|
42968
|
-
const styles$
|
42982
|
+
const styles$12 = {
|
42969
42983
|
error: error$1,
|
42970
42984
|
running,
|
42971
42985
|
cancelled
|
@@ -42996,7 +43010,7 @@ categories: ${categories.join(" ")}`;
|
|
42996
43010
|
const metric = "_metric_1frsg_8";
|
42997
43011
|
const metricName$1 = "_metricName_1frsg_17";
|
42998
43012
|
const metricReducer$1 = "_metricReducer_1frsg_21";
|
42999
|
-
const styles$
|
43013
|
+
const styles$11 = {
|
43000
43014
|
container: container$i,
|
43001
43015
|
metric,
|
43002
43016
|
metricName: metricName$1,
|
@@ -43004,8 +43018,8 @@ categories: ${categories.join(" ")}`;
|
|
43004
43018
|
};
|
43005
43019
|
const SidebarScoreView = ({ scorer: scorer2 }) => {
|
43006
43020
|
const showReducer = !!scorer2.reducer;
|
43007
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
43008
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
43021
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.container, children: Object.keys(scorer2.metrics).map((metric2) => {
|
43022
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$11.metric, children: [
|
43009
43023
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43010
43024
|
"div",
|
43011
43025
|
{
|
@@ -43013,12 +43027,12 @@ categories: ${categories.join(" ")}`;
|
|
43013
43027
|
"text-style-secondary",
|
43014
43028
|
"text-style-label",
|
43015
43029
|
"text-size-small",
|
43016
|
-
styles$
|
43030
|
+
styles$11.metricName
|
43017
43031
|
),
|
43018
43032
|
children: metricDisplayName(scorer2.metrics[metric2])
|
43019
43033
|
}
|
43020
43034
|
),
|
43021
|
-
showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$
|
43035
|
+
showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$11.metricReducer), children: scorer2.reducer || "default" }) : "",
|
43022
43036
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-title-secondary", children: formatPrettyDecimal(scorer2.metrics[metric2].value) })
|
43023
43037
|
] }, metric2);
|
43024
43038
|
}) });
|
@@ -43029,7 +43043,7 @@ categories: ${categories.join(" ")}`;
|
|
43029
43043
|
const metricReducer = "_metricReducer_5kpg1_22";
|
43030
43044
|
const metricValues = "_metricValues_5kpg1_27";
|
43031
43045
|
const metricValue = "_metricValue_5kpg1_27";
|
43032
|
-
const styles
|
43046
|
+
const styles$10 = {
|
43033
43047
|
container: container$h,
|
43034
43048
|
scoreWrapper,
|
43035
43049
|
metricName,
|
@@ -43039,10 +43053,10 @@ categories: ${categories.join(" ")}`;
|
|
43039
43053
|
};
|
43040
43054
|
const SidebarScoresView = ({ scores: scores2 }) => {
|
43041
43055
|
const showReducer = scores2.findIndex((score2) => !!score2.reducer) !== -1;
|
43042
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles
|
43056
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$10.container, children: scores2.map((score2, idx) => {
|
43043
43057
|
const name2 = score2.name;
|
43044
43058
|
const reducer = score2.reducer;
|
43045
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles
|
43059
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$10.scoreWrapper, children: [
|
43046
43060
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43047
43061
|
"div",
|
43048
43062
|
{
|
@@ -43050,7 +43064,7 @@ categories: ${categories.join(" ")}`;
|
|
43050
43064
|
"text-style-secondary",
|
43051
43065
|
"text-style-label",
|
43052
43066
|
"text-size-small",
|
43053
|
-
styles
|
43067
|
+
styles$10.metricName
|
43054
43068
|
),
|
43055
43069
|
children: name2
|
43056
43070
|
}
|
@@ -43062,16 +43076,16 @@ categories: ${categories.join(" ")}`;
|
|
43062
43076
|
"text-size-small",
|
43063
43077
|
"text-style-label",
|
43064
43078
|
"text-style-secondary",
|
43065
|
-
styles
|
43079
|
+
styles$10.metricReducer
|
43066
43080
|
),
|
43067
43081
|
children: reducer || "default"
|
43068
43082
|
}
|
43069
43083
|
) : "",
|
43070
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles
|
43084
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$10.metricValues), children: Object.keys(score2.metrics).map((key2) => {
|
43071
43085
|
const metric2 = score2.metrics[key2];
|
43072
43086
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
43073
43087
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: metricDisplayName(metric2) }),
|
43074
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles
|
43088
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$10.metricValue, children: formatPrettyDecimal(metric2.value) })
|
43075
43089
|
] }, key2);
|
43076
43090
|
}) })
|
43077
43091
|
] }, `scorer-${name2}-${idx}`);
|
@@ -43106,7 +43120,7 @@ categories: ${categories.join(" ")}`;
|
|
43106
43120
|
"text-style-secondary",
|
43107
43121
|
"text-style-label",
|
43108
43122
|
"text-size-small",
|
43109
|
-
styles$
|
43123
|
+
styles$12.cancelled
|
43110
43124
|
),
|
43111
43125
|
children: message2
|
43112
43126
|
}
|
@@ -43120,21 +43134,21 @@ categories: ${categories.join(" ")}`;
|
|
43120
43134
|
"text-style-secondary",
|
43121
43135
|
"text-style-label",
|
43122
43136
|
"text-size-small",
|
43123
|
-
styles$
|
43137
|
+
styles$12.running
|
43124
43138
|
),
|
43125
43139
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: message2 })
|
43126
43140
|
}
|
43127
43141
|
);
|
43128
43142
|
};
|
43129
43143
|
const StatusError = ({ message: message2 }) => {
|
43130
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
43144
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$12.error, "text-size-small"), children: message2 });
|
43131
43145
|
};
|
43132
43146
|
const entry = "_entry_12m5n_1";
|
43133
43147
|
const title$3 = "_title_12m5n_7";
|
43134
43148
|
const task = "_task_12m5n_12";
|
43135
43149
|
const params = "_params_12m5n_18";
|
43136
43150
|
const scores$1 = "_scores_12m5n_22";
|
43137
|
-
const styles
|
43151
|
+
const styles$$ = {
|
43138
43152
|
entry,
|
43139
43153
|
title: title$3,
|
43140
43154
|
task,
|
@@ -43166,15 +43180,15 @@ categories: ${categories.join(" ")}`;
|
|
43166
43180
|
minute: "2-digit"
|
43167
43181
|
})}` : "";
|
43168
43182
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
43169
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles
|
43170
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles
|
43171
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles
|
43183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$$.entry, children: [
|
43184
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$$.title, children: [
|
43185
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.task, "text-size-title-secondary"), children: ((_i = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _i.task) || task2 }),
|
43172
43186
|
/* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: timeStr }),
|
43173
43187
|
model2 && model2 !== kModelNone ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: model2 }) }) : ""
|
43174
43188
|
] }),
|
43175
43189
|
/* @__PURE__ */ jsxRuntimeExports.jsx(EvalStatus, { logHeader })
|
43176
43190
|
] }),
|
43177
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles
|
43191
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: hyperparameters ? Object.keys(hyperparameters).map((key2) => {
|
43178
43192
|
const val = hyperparameters[key2];
|
43179
43193
|
if (Array.isArray(val) || typeof val === "object") {
|
43180
43194
|
return `${key2}: ${JSON.stringify(val)}`;
|
@@ -43185,13 +43199,13 @@ categories: ${categories.join(" ")}`;
|
|
43185
43199
|
(((_j = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _j.dataset) || ((_k = logHeader == null ? void 0 : logHeader.results) == null ? void 0 : _k.scores)) && (logHeader == null ? void 0 : logHeader.status) === "success" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
43186
43200
|
"div",
|
43187
43201
|
{
|
43188
|
-
className: clsx("text-truncate", "text-size-small", styles
|
43202
|
+
className: clsx("text-truncate", "text-size-small", styles$$.scores),
|
43189
43203
|
children: [
|
43190
43204
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
43191
43205
|
"dataset: ",
|
43192
43206
|
datasetName || "(samples)"
|
43193
43207
|
] }),
|
43194
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles
|
43208
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles$$.scoreInfo), children: [
|
43195
43209
|
scorerLabel,
|
43196
43210
|
": ",
|
43197
43211
|
scorerNames || "(none)"
|
@@ -43226,34 +43240,34 @@ categories: ${categories.join(" ")}`;
|
|
43226
43240
|
}
|
43227
43241
|
}, [selectedIndex]);
|
43228
43242
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
43229
|
-
offCanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
43243
|
+
offCanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$13.backdrop, onClick: handleToggle }),
|
43230
43244
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
43231
43245
|
"div",
|
43232
43246
|
{
|
43233
43247
|
className: clsx(
|
43234
|
-
styles$
|
43235
|
-
offCanvas ? styles$
|
43248
|
+
styles$13.sidebar,
|
43249
|
+
offCanvas ? styles$13.sidebarOpen : styles$13.sidebarClosed
|
43236
43250
|
),
|
43237
43251
|
children: [
|
43238
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
43252
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$13.header, children: [
|
43239
43253
|
/* @__PURE__ */ jsxRuntimeExports.jsx(LogDirectoryTitleView, { log_dir: logs.log_dir }),
|
43240
43254
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43241
43255
|
"button",
|
43242
43256
|
{
|
43243
43257
|
onClick: handleToggle,
|
43244
|
-
className: clsx("btn", styles$
|
43258
|
+
className: clsx("btn", styles$13.toggle),
|
43245
43259
|
type: "button",
|
43246
43260
|
"aria-label": "Close sidebar",
|
43247
43261
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
|
43248
43262
|
}
|
43249
43263
|
)
|
43250
43264
|
] }),
|
43251
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
43265
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$13.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
|
43252
43266
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43253
43267
|
"ul",
|
43254
43268
|
{
|
43255
43269
|
ref: sidebarContentsRef,
|
43256
|
-
className: clsx("list-group", styles$
|
43270
|
+
className: clsx("list-group", styles$13.list),
|
43257
43271
|
children: logs.files.map((file, index2) => {
|
43258
43272
|
const logHeader = logHeaders[file.name];
|
43259
43273
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -43265,15 +43279,15 @@ categories: ${categories.join(" ")}`;
|
|
43265
43279
|
className: clsx(
|
43266
43280
|
"list-group-item",
|
43267
43281
|
"list-group-item-action",
|
43268
|
-
styles$
|
43269
|
-
selectedIndex === index2 ? styles$
|
43282
|
+
styles$13.item,
|
43283
|
+
selectedIndex === index2 ? styles$13.active : void 0
|
43270
43284
|
),
|
43271
43285
|
"data-index": index2,
|
43272
43286
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
43273
43287
|
Link,
|
43274
43288
|
{
|
43275
43289
|
to: logUrl(file.name, logs.log_dir),
|
43276
|
-
className: styles$
|
43290
|
+
className: styles$13.logLink,
|
43277
43291
|
onClick: () => {
|
43278
43292
|
onSelectedIndexChanged(index2);
|
43279
43293
|
},
|
@@ -43428,11 +43442,11 @@ categories: ${categories.join(" ")}`;
|
|
43428
43442
|
});
|
43429
43443
|
};
|
43430
43444
|
const navbarWrapper = "_navbarWrapper_838qu_48";
|
43431
|
-
const styles$
|
43445
|
+
const styles$_ = {
|
43432
43446
|
navbarWrapper
|
43433
43447
|
};
|
43434
43448
|
const copyButton = "_copyButton_1goi8_1";
|
43435
|
-
const styles$
|
43449
|
+
const styles$Z = {
|
43436
43450
|
copyButton
|
43437
43451
|
};
|
43438
43452
|
const CopyButton = ({
|
@@ -43461,7 +43475,7 @@ categories: ${categories.join(" ")}`;
|
|
43461
43475
|
"button",
|
43462
43476
|
{
|
43463
43477
|
type: "button",
|
43464
|
-
className: clsx(styles$
|
43478
|
+
className: clsx(styles$Z.copyButton, className2),
|
43465
43479
|
onClick: handleClick,
|
43466
43480
|
"aria-label": ariaLabel,
|
43467
43481
|
disabled: isCopied,
|
@@ -43508,7 +43522,7 @@ categories: ${categories.join(" ")}`;
|
|
43508
43522
|
const taskModel = "_taskModel_291sb_36";
|
43509
43523
|
const taskStatus = "_taskStatus_291sb_40";
|
43510
43524
|
const secondaryContainer = "_secondaryContainer_291sb_47";
|
43511
|
-
const styles$
|
43525
|
+
const styles$Y = {
|
43512
43526
|
container: container$g,
|
43513
43527
|
wrapper: wrapper$3,
|
43514
43528
|
toggle,
|
@@ -43521,7 +43535,7 @@ categories: ${categories.join(" ")}`;
|
|
43521
43535
|
};
|
43522
43536
|
const button = "_button_12472_1";
|
43523
43537
|
const label$6 = "_label_12472_14";
|
43524
|
-
const styles$
|
43538
|
+
const styles$X = {
|
43525
43539
|
button,
|
43526
43540
|
label: label$6
|
43527
43541
|
};
|
@@ -43537,10 +43551,10 @@ categories: ${categories.join(" ")}`;
|
|
43537
43551
|
{
|
43538
43552
|
id,
|
43539
43553
|
onClick,
|
43540
|
-
className: clsx(className2, styles$
|
43554
|
+
className: clsx(className2, styles$X.button, "text-size-smaller"),
|
43541
43555
|
children: [
|
43542
43556
|
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2) }) : void 0,
|
43543
|
-
text2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
43557
|
+
text2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$X.label), children: text2 }) : void 0
|
43544
43558
|
]
|
43545
43559
|
}
|
43546
43560
|
);
|
@@ -43550,7 +43564,7 @@ categories: ${categories.join(" ")}`;
|
|
43550
43564
|
const modalTitle = "_modalTitle_1tvha_18";
|
43551
43565
|
const btnClose = "_btnClose_1tvha_22";
|
43552
43566
|
const backdrop = "_backdrop_1tvha_28";
|
43553
|
-
const styles$
|
43567
|
+
const styles$W = {
|
43554
43568
|
modal: modal$1,
|
43555
43569
|
header: header$2,
|
43556
43570
|
modalTitle,
|
@@ -43566,7 +43580,7 @@ categories: ${categories.join(" ")}`;
|
|
43566
43580
|
className: className2
|
43567
43581
|
}) => {
|
43568
43582
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
43569
|
-
showing && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
43583
|
+
showing && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$W.backdrop, onClick: () => setShowing(false) }),
|
43570
43584
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43571
43585
|
"div",
|
43572
43586
|
{
|
@@ -43574,15 +43588,15 @@ categories: ${categories.join(" ")}`;
|
|
43574
43588
|
className: clsx("modal", "fade", showing ? "show" : "", className2),
|
43575
43589
|
tabIndex: -1,
|
43576
43590
|
style: { display: showing ? "block" : "none" },
|
43577
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("modal-dialog", styles$
|
43578
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$
|
43591
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("modal-dialog", styles$W.modal), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-content", children: [
|
43592
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$W.header), children: [
|
43579
43593
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43580
43594
|
"div",
|
43581
43595
|
{
|
43582
43596
|
className: clsx(
|
43583
43597
|
"modal-title",
|
43584
43598
|
"text-size-base",
|
43585
|
-
styles$
|
43599
|
+
styles$W.modalTitle
|
43586
43600
|
),
|
43587
43601
|
children: title2
|
43588
43602
|
}
|
@@ -43594,7 +43608,7 @@ categories: ${categories.join(" ")}`;
|
|
43594
43608
|
className: clsx(
|
43595
43609
|
"btn-close",
|
43596
43610
|
"text-size-smaller",
|
43597
|
-
styles$
|
43611
|
+
styles$W.btnClose
|
43598
43612
|
),
|
43599
43613
|
"data-bs-dismiss": "modal",
|
43600
43614
|
"aria-label": "Close",
|
@@ -43629,7 +43643,7 @@ categories: ${categories.join(" ")}`;
|
|
43629
43643
|
const moreButton = "_moreButton_yha6g_91";
|
43630
43644
|
const metricsSummary = "_metricsSummary_yha6g_97";
|
43631
43645
|
const modalScores = "_modalScores_yha6g_103";
|
43632
|
-
const styles$
|
43646
|
+
const styles$V = {
|
43633
43647
|
simpleMetricsRows,
|
43634
43648
|
verticalMetricReducer,
|
43635
43649
|
verticalMetricName,
|
@@ -43644,7 +43658,7 @@ categories: ${categories.join(" ")}`;
|
|
43644
43658
|
const label$5 = "_label_1hgt6_11";
|
43645
43659
|
const groupSeparator = "_groupSeparator_1hgt6_28";
|
43646
43660
|
const tableBody = "_tableBody_1hgt6_33";
|
43647
|
-
const styles$
|
43661
|
+
const styles$U = {
|
43648
43662
|
table: table$1,
|
43649
43663
|
scorer,
|
43650
43664
|
value: value$2,
|
@@ -43676,7 +43690,7 @@ categories: ${categories.join(" ")}`;
|
|
43676
43690
|
"text-style-label",
|
43677
43691
|
"text-style-secondary",
|
43678
43692
|
"text-size-small",
|
43679
|
-
styles$
|
43693
|
+
styles$U.label
|
43680
43694
|
),
|
43681
43695
|
children: metrics2[i2].name
|
43682
43696
|
}
|
@@ -43686,7 +43700,7 @@ categories: ${categories.join(" ")}`;
|
|
43686
43700
|
cells.push(/* @__PURE__ */ jsxRuntimeExports.jsx("td", {}));
|
43687
43701
|
}
|
43688
43702
|
}
|
43689
|
-
const headerRow = /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { className: clsx(styles$
|
43703
|
+
const headerRow = /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { className: clsx(styles$U.headerRow), children: [
|
43690
43704
|
/* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
43691
43705
|
cells
|
43692
43706
|
] });
|
@@ -43696,15 +43710,15 @@ categories: ${categories.join(" ")}`;
|
|
43696
43710
|
for (let i2 = 0; i2 < columnCount; i2++) {
|
43697
43711
|
if (metrics2.length > i2) {
|
43698
43712
|
cells2.push(
|
43699
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$
|
43713
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$U.value, "text-size-small"), children: formatPrettyDecimal(g.metrics[i2].value) })
|
43700
43714
|
);
|
43701
43715
|
} else {
|
43702
|
-
cells2.push(/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$
|
43716
|
+
cells2.push(/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$U.value) }));
|
43703
43717
|
}
|
43704
43718
|
}
|
43705
43719
|
rows.push(
|
43706
43720
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
43707
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("th", { className: clsx(styles$
|
43721
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("th", { className: clsx(styles$U.scorer, "text-size-small"), children: [
|
43708
43722
|
g.scorer,
|
43709
43723
|
" ",
|
43710
43724
|
showReducer && g.reducer ? `(${g.reducer})` : void 0
|
@@ -43719,11 +43733,11 @@ categories: ${categories.join(" ")}`;
|
|
43719
43733
|
"td",
|
43720
43734
|
{
|
43721
43735
|
colSpan: columnCount + 1,
|
43722
|
-
className: clsx(styles$
|
43736
|
+
className: clsx(styles$U.groupSeparator)
|
43723
43737
|
}
|
43724
43738
|
) }) : void 0,
|
43725
43739
|
headerRow,
|
43726
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: clsx("table-group-divider", styles$
|
43740
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { className: clsx("table-group-divider", styles$U.tableBody), children: rows })
|
43727
43741
|
] })
|
43728
43742
|
);
|
43729
43743
|
index2++;
|
@@ -43735,7 +43749,7 @@ categories: ${categories.join(" ")}`;
|
|
43735
43749
|
className2,
|
43736
43750
|
"table",
|
43737
43751
|
striped ? "table-striped" : void 0,
|
43738
|
-
styles$
|
43752
|
+
styles$U.table,
|
43739
43753
|
"table-bordered"
|
43740
43754
|
),
|
43741
43755
|
children: subTables
|
@@ -43807,7 +43821,7 @@ categories: ${categories.join(" ")}`;
|
|
43807
43821
|
if (scorers.length === 1) {
|
43808
43822
|
const showReducer = !!scorers[0].reducer;
|
43809
43823
|
const metrics2 = scorers[0].metrics;
|
43810
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
43824
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$V.simpleMetricsRows, children: metrics2.map((metric2, i2) => {
|
43811
43825
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
43812
43826
|
VerticalMetric,
|
43813
43827
|
{
|
@@ -43831,7 +43845,7 @@ categories: ${categories.join(" ")}`;
|
|
43831
43845
|
primaryResults = shorterResults;
|
43832
43846
|
}
|
43833
43847
|
}
|
43834
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
43848
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$V.metricsSummary), children: [
|
43835
43849
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ScoreGrid, { scoreGroups: [primaryResults], showReducer }),
|
43836
43850
|
grouped.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
43837
43851
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -43846,7 +43860,7 @@ categories: ${categories.join(" ")}`;
|
|
43846
43860
|
{
|
43847
43861
|
scoreGroups: grouped,
|
43848
43862
|
showReducer,
|
43849
|
-
className: styles$
|
43863
|
+
className: styles$V.modalScores,
|
43850
43864
|
striped: false
|
43851
43865
|
}
|
43852
43866
|
)
|
@@ -43855,7 +43869,7 @@ categories: ${categories.join(" ")}`;
|
|
43855
43869
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
43856
43870
|
LinkButton,
|
43857
43871
|
{
|
43858
|
-
className: styles$
|
43872
|
+
className: styles$V.moreButton,
|
43859
43873
|
text: "All scoring...",
|
43860
43874
|
onClick: () => {
|
43861
43875
|
setShowing(true);
|
@@ -43895,7 +43909,7 @@ categories: ${categories.join(" ")}`;
|
|
43895
43909
|
"vertical-metric-label",
|
43896
43910
|
"text-style-label",
|
43897
43911
|
"text-style-secondary",
|
43898
|
-
styles$
|
43912
|
+
styles$V.verticalMetricName
|
43899
43913
|
),
|
43900
43914
|
children: metricDisplayName(metric2)
|
43901
43915
|
}
|
@@ -43906,7 +43920,7 @@ categories: ${categories.join(" ")}`;
|
|
43906
43920
|
className: clsx(
|
43907
43921
|
"text-style-label",
|
43908
43922
|
"text-style-secondary",
|
43909
|
-
styles$
|
43923
|
+
styles$V.verticalMetricReducer
|
43910
43924
|
),
|
43911
43925
|
children: reducer || "default"
|
43912
43926
|
}
|
@@ -43917,7 +43931,7 @@ categories: ${categories.join(" ")}`;
|
|
43917
43931
|
className: clsx(
|
43918
43932
|
"vertical-metric-value",
|
43919
43933
|
"text-size-largest",
|
43920
|
-
styles$
|
43934
|
+
styles$V.verticalMetricValue
|
43921
43935
|
),
|
43922
43936
|
children: metric2.value !== void 0 && metric2.value !== null ? formatPrettyDecimal(metric2.value) : "n/a"
|
43923
43937
|
}
|
@@ -43928,20 +43942,20 @@ categories: ${categories.join(" ")}`;
|
|
43928
43942
|
const status = "_status_1sckj_1";
|
43929
43943
|
const statusText = "_statusText_1sckj_11";
|
43930
43944
|
const icon$1 = "_icon_1sckj_24";
|
43931
|
-
const styles$
|
43945
|
+
const styles$T = {
|
43932
43946
|
statusContainer,
|
43933
43947
|
status,
|
43934
43948
|
statusText,
|
43935
43949
|
icon: icon$1
|
43936
43950
|
};
|
43937
43951
|
const RunningStatusPanel = ({ sampleCount }) => {
|
43938
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
43939
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.running, styles$
|
43952
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$T.statusContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$T.status), children: [
|
43953
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.running, styles$T.icon) }),
|
43940
43954
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
43941
43955
|
"div",
|
43942
43956
|
{
|
43943
43957
|
className: clsx(
|
43944
|
-
styles$
|
43958
|
+
styles$T.statusText,
|
43945
43959
|
"text-style-label",
|
43946
43960
|
"text-size-smaller"
|
43947
43961
|
),
|
@@ -43956,7 +43970,7 @@ categories: ${categories.join(" ")}`;
|
|
43956
43970
|
};
|
43957
43971
|
const statusPanel = "_statusPanel_66f9o_1";
|
43958
43972
|
const statusIcon = "_statusIcon_66f9o_11";
|
43959
|
-
const styles$
|
43973
|
+
const styles$S = {
|
43960
43974
|
statusPanel,
|
43961
43975
|
statusIcon
|
43962
43976
|
};
|
@@ -43985,8 +43999,8 @@ categories: ${categories.join(" ")}`;
|
|
43985
43999
|
status: status2,
|
43986
44000
|
sampleCount
|
43987
44001
|
}) => {
|
43988
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
43989
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$
|
44002
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$S.statusPanel, children: [
|
44003
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$S.statusIcon), style: {} }),
|
43990
44004
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
43991
44005
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: status2 }),
|
43992
44006
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
@@ -44000,10 +44014,10 @@ categories: ${categories.join(" ")}`;
|
|
44000
44014
|
] });
|
44001
44015
|
};
|
44002
44016
|
const container$f = "_container_q17yq_1";
|
44003
|
-
const grid$
|
44004
|
-
const styles$
|
44017
|
+
const grid$6 = "_grid_q17yq_10";
|
44018
|
+
const styles$R = {
|
44005
44019
|
container: container$f,
|
44006
|
-
grid: grid$
|
44020
|
+
grid: grid$6
|
44007
44021
|
};
|
44008
44022
|
const ModelRolesView = ({ roles }) => {
|
44009
44023
|
roles = roles || {};
|
@@ -44016,7 +44030,7 @@ categories: ${categories.join(" ")}`;
|
|
44016
44030
|
"div",
|
44017
44031
|
{
|
44018
44032
|
className: clsx(
|
44019
|
-
singleLine ? styles$
|
44033
|
+
singleLine ? styles$R.grid : void 0,
|
44020
44034
|
"text-style-secondary",
|
44021
44035
|
"text-size-smallest"
|
44022
44036
|
),
|
@@ -44031,7 +44045,7 @@ categories: ${categories.join(" ")}`;
|
|
44031
44045
|
key2
|
44032
44046
|
);
|
44033
44047
|
});
|
44034
|
-
return modelEls.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
44048
|
+
return modelEls.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$R.container, children: modelEls }) : void 0;
|
44035
44049
|
};
|
44036
44050
|
const PrimaryBar = ({
|
44037
44051
|
showToggle,
|
@@ -44052,7 +44066,7 @@ categories: ${categories.join(" ")}`;
|
|
44052
44066
|
setOffCanvas(!offCanvas);
|
44053
44067
|
}, [offCanvas, setOffCanvas]);
|
44054
44068
|
const hasRunningMetrics = runningMetrics && runningMetrics.length > 0;
|
44055
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
44069
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Y.wrapper), children: [
|
44056
44070
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
44057
44071
|
"div",
|
44058
44072
|
{
|
@@ -44060,7 +44074,7 @@ categories: ${categories.join(" ")}`;
|
|
44060
44074
|
"navbar-brand",
|
44061
44075
|
"navbar-text",
|
44062
44076
|
"mb-0",
|
44063
|
-
styles$
|
44077
|
+
styles$Y.container
|
44064
44078
|
),
|
44065
44079
|
children: [
|
44066
44080
|
showToggle ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -44071,19 +44085,19 @@ categories: ${categories.join(" ")}`;
|
|
44071
44085
|
className: clsx(
|
44072
44086
|
"btn",
|
44073
44087
|
offCanvas ? "d-md-none" : void 0,
|
44074
|
-
styles$
|
44088
|
+
styles$Y.toggle
|
44075
44089
|
),
|
44076
44090
|
type: "button",
|
44077
44091
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.menu })
|
44078
44092
|
}
|
44079
44093
|
) : "",
|
44080
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
44081
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
44094
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$Y.body, children: [
|
44095
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$Y.bodyContainer, children: [
|
44082
44096
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44083
44097
|
"div",
|
44084
44098
|
{
|
44085
44099
|
id: "task-title",
|
44086
|
-
className: clsx("task-title", "text-truncate", styles$
|
44100
|
+
className: clsx("task-title", "text-truncate", styles$Y.taskTitle),
|
44087
44101
|
title: evalSpec == null ? void 0 : evalSpec.task,
|
44088
44102
|
children: evalSpec == null ? void 0 : evalSpec.task
|
44089
44103
|
}
|
@@ -44095,7 +44109,7 @@ categories: ${categories.join(" ")}`;
|
|
44095
44109
|
className: clsx(
|
44096
44110
|
"task-model",
|
44097
44111
|
"text-truncate",
|
44098
|
-
styles$
|
44112
|
+
styles$Y.taskModel,
|
44099
44113
|
"text-size-base"
|
44100
44114
|
),
|
44101
44115
|
title: evalSpec == null ? void 0 : evalSpec.model,
|
@@ -44104,7 +44118,7 @@ categories: ${categories.join(" ")}`;
|
|
44104
44118
|
) : ""
|
44105
44119
|
] }),
|
44106
44120
|
(evalSpec == null ? void 0 : evalSpec.model_roles) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelRolesView, { roles: evalSpec.model_roles }) : void 0,
|
44107
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$
|
44121
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$Y.secondaryContainer), children: [
|
44108
44122
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("navbar-secondary-text", "text-truncate"), children: logFileName }),
|
44109
44123
|
selectedLogFile ? /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, { value: selectedLogFile }) : ""
|
44110
44124
|
] })
|
@@ -44112,7 +44126,7 @@ categories: ${categories.join(" ")}`;
|
|
44112
44126
|
]
|
44113
44127
|
}
|
44114
44128
|
),
|
44115
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
44129
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Y.taskStatus, "navbar-text"), children: [
|
44116
44130
|
status2 === "success" || status2 === "started" && streamSamples && hasRunningMetrics ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44117
44131
|
ResultsPanel,
|
44118
44132
|
{
|
@@ -44164,7 +44178,7 @@ categories: ${categories.join(" ")}`;
|
|
44164
44178
|
const justifyRight = "_justifyRight_xzzhl_13";
|
44165
44179
|
const valueGrid = "_valueGrid_xzzhl_17";
|
44166
44180
|
const container$e = "_container_xzzhl_25";
|
44167
|
-
const styles$
|
44181
|
+
const styles$Q = {
|
44168
44182
|
staticCol,
|
44169
44183
|
justifyLeft,
|
44170
44184
|
justifyCenter,
|
@@ -44197,7 +44211,7 @@ categories: ${categories.join(" ")}`;
|
|
44197
44211
|
LabeledValue,
|
44198
44212
|
{
|
44199
44213
|
label: "Dataset",
|
44200
|
-
className: clsx(styles$
|
44214
|
+
className: clsx(styles$Q.staticCol, "text-size-small"),
|
44201
44215
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44202
44216
|
DatasetSummary,
|
44203
44217
|
{
|
@@ -44218,8 +44232,8 @@ categories: ${categories.join(" ")}`;
|
|
44218
44232
|
{
|
44219
44233
|
label: label2,
|
44220
44234
|
className: clsx(
|
44221
|
-
styles$
|
44222
|
-
hasConfig ? styles$
|
44235
|
+
styles$Q.staticCol,
|
44236
|
+
hasConfig ? styles$Q.justifyLeft : styles$Q.justifyCenter,
|
44223
44237
|
"text-size-small"
|
44224
44238
|
),
|
44225
44239
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ScorerSummary, { evalDescriptor })
|
@@ -44234,7 +44248,7 @@ categories: ${categories.join(" ")}`;
|
|
44234
44248
|
LabeledValue,
|
44235
44249
|
{
|
44236
44250
|
label: "Config",
|
44237
|
-
className: clsx(styles$
|
44251
|
+
className: clsx(styles$Q.justifyRight, "text-size-small"),
|
44238
44252
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ParamSummary, { params: hyperparameters })
|
44239
44253
|
},
|
44240
44254
|
"sb-params"
|
@@ -44252,7 +44266,7 @@ categories: ${categories.join(" ")}`;
|
|
44252
44266
|
LabeledValue,
|
44253
44267
|
{
|
44254
44268
|
label: "Duration",
|
44255
|
-
className: clsx(styles$
|
44269
|
+
className: clsx(styles$Q.justifyRight, "text-size-small"),
|
44256
44270
|
children: totalDuration
|
44257
44271
|
},
|
44258
44272
|
"sb-duration"
|
@@ -44263,13 +44277,13 @@ categories: ${categories.join(" ")}`;
|
|
44263
44277
|
ExpandablePanel,
|
44264
44278
|
{
|
44265
44279
|
id: "secondary-nav-bar",
|
44266
|
-
className: clsx(styles$
|
44280
|
+
className: clsx(styles$Q.container, "text-size-small"),
|
44267
44281
|
collapse: true,
|
44268
44282
|
lines: 5,
|
44269
44283
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44270
44284
|
"div",
|
44271
44285
|
{
|
44272
|
-
className: styles$
|
44286
|
+
className: styles$Q.valueGrid,
|
44273
44287
|
style: {
|
44274
44288
|
gridTemplateColumns: `${values.map((val) => {
|
44275
44289
|
return val.size;
|
@@ -44331,7 +44345,7 @@ categories: ${categories.join(" ")}`;
|
|
44331
44345
|
runningMetrics
|
44332
44346
|
}) => {
|
44333
44347
|
const totalSampleCount = useTotalSampleCount();
|
44334
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: clsx("navbar", "sticky-top", styles$
|
44348
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: clsx("navbar", "sticky-top", styles$_.navbarWrapper), children: [
|
44335
44349
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44336
44350
|
PrimaryBar,
|
44337
44351
|
{
|
@@ -44483,313 +44497,13 @@ categories: ${categories.join(" ")}`;
|
|
44483
44497
|
const tabSet = "_tabSet_1r3mu_14";
|
44484
44498
|
const tabs = "_tabs_1r3mu_21";
|
44485
44499
|
const tabPanels = "_tabPanels_1r3mu_29";
|
44486
|
-
const styles$
|
44500
|
+
const styles$P = {
|
44487
44501
|
workspace,
|
44488
44502
|
tabContainer,
|
44489
44503
|
tabSet,
|
44490
44504
|
tabs,
|
44491
44505
|
tabPanels
|
44492
44506
|
};
|
44493
|
-
const kBaseFontSize = 0.9;
|
44494
|
-
const ScaleBaseFont = (scale) => {
|
44495
|
-
return `${kBaseFontSize + scale}rem`;
|
44496
|
-
};
|
44497
|
-
const FontSize = {
|
44498
|
-
smaller: ScaleBaseFont(-0.1)
|
44499
|
-
};
|
44500
|
-
const TextStyle = {
|
44501
|
-
secondary: {
|
44502
|
-
color: "var(--bs-secondary)"
|
44503
|
-
}
|
44504
|
-
};
|
44505
|
-
const CardHeader = ({
|
44506
|
-
id,
|
44507
|
-
icon: icon2,
|
44508
|
-
label: label2,
|
44509
|
-
className: className2,
|
44510
|
-
children: children2
|
44511
|
-
}) => {
|
44512
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
44513
|
-
"div",
|
44514
|
-
{
|
44515
|
-
className: clsx("card-header-container", "text-style-label", className2),
|
44516
|
-
id: id || "",
|
44517
|
-
children: [
|
44518
|
-
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("card-header-icon", icon2) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "card-header-icon" }),
|
44519
|
-
label2 ? label2 : "",
|
44520
|
-
" ",
|
44521
|
-
children2
|
44522
|
-
]
|
44523
|
-
}
|
44524
|
-
);
|
44525
|
-
};
|
44526
|
-
const CardBody = ({ id, children: children2, className: className2 }) => {
|
44527
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card-body", className2), id: id || "", children: children2 });
|
44528
|
-
};
|
44529
|
-
const Card = ({ id, children: children2, className: className2 }) => {
|
44530
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", className2), id, children: children2 });
|
44531
|
-
};
|
44532
|
-
const wrapper$2 = "_wrapper_sq96g_1";
|
44533
|
-
const col2$2 = "_col2_sq96g_8";
|
44534
|
-
const col1_3$1 = "_col1_3_sq96g_12";
|
44535
|
-
const col3$1 = "_col3_sq96g_16";
|
44536
|
-
const separator$4 = "_separator_sq96g_20";
|
44537
|
-
const padded$1 = "_padded_sq96g_26";
|
44538
|
-
const styles$N = {
|
44539
|
-
wrapper: wrapper$2,
|
44540
|
-
col2: col2$2,
|
44541
|
-
col1_3: col1_3$1,
|
44542
|
-
col3: col3$1,
|
44543
|
-
separator: separator$4,
|
44544
|
-
padded: padded$1
|
44545
|
-
};
|
44546
|
-
const ModelUsagePanel = ({ usage }) => {
|
44547
|
-
if (!usage) {
|
44548
|
-
return null;
|
44549
|
-
}
|
44550
|
-
const rows = [];
|
44551
|
-
if (usage.reasoning_tokens) {
|
44552
|
-
rows.push({
|
44553
|
-
label: "Reasoning",
|
44554
|
-
value: usage.reasoning_tokens,
|
44555
|
-
secondary: false,
|
44556
|
-
bordered: true
|
44557
|
-
});
|
44558
|
-
rows.push({
|
44559
|
-
label: "---",
|
44560
|
-
value: void 0,
|
44561
|
-
secondary: false,
|
44562
|
-
padded: true
|
44563
|
-
});
|
44564
|
-
}
|
44565
|
-
rows.push({
|
44566
|
-
label: "input",
|
44567
|
-
value: usage.input_tokens,
|
44568
|
-
secondary: false
|
44569
|
-
});
|
44570
|
-
if (usage.input_tokens_cache_read) {
|
44571
|
-
rows.push({
|
44572
|
-
label: "cache_read",
|
44573
|
-
value: usage.input_tokens_cache_read,
|
44574
|
-
secondary: true
|
44575
|
-
});
|
44576
|
-
}
|
44577
|
-
if (usage.input_tokens_cache_write) {
|
44578
|
-
rows.push({
|
44579
|
-
label: "cache_write",
|
44580
|
-
value: usage.input_tokens_cache_write,
|
44581
|
-
secondary: true
|
44582
|
-
});
|
44583
|
-
}
|
44584
|
-
rows.push({
|
44585
|
-
label: "Output",
|
44586
|
-
value: usage.output_tokens,
|
44587
|
-
secondary: false,
|
44588
|
-
bordered: true
|
44589
|
-
});
|
44590
|
-
rows.push({
|
44591
|
-
label: "---",
|
44592
|
-
value: void 0,
|
44593
|
-
secondary: false
|
44594
|
-
});
|
44595
|
-
rows.push({
|
44596
|
-
label: "Total",
|
44597
|
-
value: usage.total_tokens,
|
44598
|
-
secondary: false
|
44599
|
-
});
|
44600
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$N.wrapper), children: rows.map((row2, idx) => {
|
44601
|
-
if (row2.label === "---") {
|
44602
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44603
|
-
"div",
|
44604
|
-
{
|
44605
|
-
className: clsx(
|
44606
|
-
styles$N.separator,
|
44607
|
-
row2.padded ? styles$N.padded : void 0
|
44608
|
-
)
|
44609
|
-
},
|
44610
|
-
`$usage-sep-${idx}`
|
44611
|
-
);
|
44612
|
-
} else {
|
44613
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
44614
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44615
|
-
"div",
|
44616
|
-
{
|
44617
|
-
className: clsx(
|
44618
|
-
"text-style-label",
|
44619
|
-
"text-style-secondary",
|
44620
|
-
row2.secondary ? styles$N.col2 : styles$N.col1_3
|
44621
|
-
),
|
44622
|
-
children: row2.label
|
44623
|
-
}
|
44624
|
-
),
|
44625
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$N.col3, children: row2.value ? formatNumber(row2.value) : "" })
|
44626
|
-
] }, `$usage-row-${idx}`);
|
44627
|
-
}
|
44628
|
-
}) });
|
44629
|
-
};
|
44630
|
-
const table = "_table_dbhwb_1";
|
44631
|
-
const tableTokens = "_tableTokens_dbhwb_6";
|
44632
|
-
const tableH = "_tableH_dbhwb_10";
|
44633
|
-
const model = "_model_dbhwb_15";
|
44634
|
-
const styles$M = {
|
44635
|
-
table,
|
44636
|
-
tableTokens,
|
44637
|
-
tableH,
|
44638
|
-
model
|
44639
|
-
};
|
44640
|
-
const TokenTable$1 = ({ className: className2, children: children2 }) => {
|
44641
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44642
|
-
"table",
|
44643
|
-
{
|
44644
|
-
className: clsx(
|
44645
|
-
"table",
|
44646
|
-
"table-sm",
|
44647
|
-
"text-size-smaller",
|
44648
|
-
styles$M.table,
|
44649
|
-
className2
|
44650
|
-
),
|
44651
|
-
children: children2
|
44652
|
-
}
|
44653
|
-
);
|
44654
|
-
};
|
44655
|
-
const TokenHeader = () => {
|
44656
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("thead", { children: [
|
44657
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
44658
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
44659
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44660
|
-
"td",
|
44661
|
-
{
|
44662
|
-
colSpan: 3,
|
44663
|
-
className: clsx(
|
44664
|
-
"card-subheading",
|
44665
|
-
styles$M.tableTokens,
|
44666
|
-
"text-size-small",
|
44667
|
-
"text-style-label",
|
44668
|
-
"text-style-secondary"
|
44669
|
-
),
|
44670
|
-
align: "center",
|
44671
|
-
children: "Tokens"
|
44672
|
-
}
|
44673
|
-
)
|
44674
|
-
] }),
|
44675
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
44676
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44677
|
-
"th",
|
44678
|
-
{
|
44679
|
-
className: clsx(
|
44680
|
-
styles$M.tableH,
|
44681
|
-
"text-sixe-small",
|
44682
|
-
"text-style-label",
|
44683
|
-
"text-style-secondary"
|
44684
|
-
),
|
44685
|
-
children: "Model"
|
44686
|
-
}
|
44687
|
-
),
|
44688
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44689
|
-
"th",
|
44690
|
-
{
|
44691
|
-
className: clsx(
|
44692
|
-
styles$M.tableH,
|
44693
|
-
"text-sixe-small",
|
44694
|
-
"text-style-label",
|
44695
|
-
"text-style-secondary"
|
44696
|
-
),
|
44697
|
-
children: "Usage"
|
44698
|
-
}
|
44699
|
-
)
|
44700
|
-
] })
|
44701
|
-
] });
|
44702
|
-
};
|
44703
|
-
const TokenRow = ({ model: model2, usage }) => {
|
44704
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
44705
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$M.model, children: model2 }) }),
|
44706
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage }) })
|
44707
|
-
] });
|
44708
|
-
};
|
44709
|
-
const ModelTokenTable = ({
|
44710
|
-
model_usage,
|
44711
|
-
className: className2
|
44712
|
-
}) => {
|
44713
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TokenTable$1, { className: className2, children: [
|
44714
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TokenHeader, {}),
|
44715
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.keys(model_usage).map((key2) => {
|
44716
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(TokenRow, { model: key2, usage: model_usage[key2] }, key2);
|
44717
|
-
}) })
|
44718
|
-
] });
|
44719
|
-
};
|
44720
|
-
const wrapper$1 = "_wrapper_11ije_1";
|
44721
|
-
const col1 = "_col1_11ije_8";
|
44722
|
-
const col2$1 = "_col2_11ije_13";
|
44723
|
-
const styles$L = {
|
44724
|
-
wrapper: wrapper$1,
|
44725
|
-
col1,
|
44726
|
-
col2: col2$1
|
44727
|
-
};
|
44728
|
-
const kUsageCardBodyId = "usage-card-body";
|
44729
|
-
const UsageCard = ({ stats }) => {
|
44730
|
-
if (!stats) {
|
44731
|
-
return null;
|
44732
|
-
}
|
44733
|
-
const totalDuration = formatDuration(
|
44734
|
-
new Date(stats.started_at),
|
44735
|
-
new Date(stats.completed_at)
|
44736
|
-
);
|
44737
|
-
const usageMetadataStyle = {
|
44738
|
-
fontSize: FontSize.smaller
|
44739
|
-
};
|
44740
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
44741
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { icon: ApplicationIcons.usage, label: "Usage" }),
|
44742
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: kUsageCardBodyId, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$L.wrapper, children: [
|
44743
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$L.col1, children: [
|
44744
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44745
|
-
"div",
|
44746
|
-
{
|
44747
|
-
className: clsx(
|
44748
|
-
"text-size-smaller",
|
44749
|
-
"text-style-label",
|
44750
|
-
"text-style-secondary"
|
44751
|
-
),
|
44752
|
-
children: "Duration"
|
44753
|
-
}
|
44754
|
-
),
|
44755
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44756
|
-
MetaDataView,
|
44757
|
-
{
|
44758
|
-
entries: {
|
44759
|
-
["Start"]: new Date(stats.started_at).toLocaleString(),
|
44760
|
-
["End"]: new Date(stats.completed_at).toLocaleString(),
|
44761
|
-
["Duration"]: totalDuration
|
44762
|
-
},
|
44763
|
-
tableOptions: "borderless,sm",
|
44764
|
-
style: usageMetadataStyle
|
44765
|
-
}
|
44766
|
-
)
|
44767
|
-
] }),
|
44768
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$L.col2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelTokenTable, { model_usage: stats.model_usage }) })
|
44769
|
-
] }) })
|
44770
|
-
] });
|
44771
|
-
};
|
44772
|
-
const styles$K = {
|
44773
|
-
"task-error-display": "_task-error-display_1624b_1"
|
44774
|
-
};
|
44775
|
-
const TaskErrorCard = ({ error: error2 }) => {
|
44776
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
44777
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44778
|
-
CardHeader,
|
44779
|
-
{
|
44780
|
-
icon: ApplicationIcons.error,
|
44781
|
-
label: "Task Failed: ${error.message}"
|
44782
|
-
}
|
44783
|
-
),
|
44784
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44785
|
-
ANSIDisplay,
|
44786
|
-
{
|
44787
|
-
output: error2.traceback_ansi,
|
44788
|
-
className: styles$K["task-error-display"]
|
44789
|
-
}
|
44790
|
-
) })
|
44791
|
-
] });
|
44792
|
-
};
|
44793
44507
|
const MessageBand = ({
|
44794
44508
|
id,
|
44795
44509
|
message: message2,
|
@@ -44818,11 +44532,62 @@ categories: ${categories.join(" ")}`;
|
|
44818
44532
|
)
|
44819
44533
|
] });
|
44820
44534
|
};
|
44821
|
-
const
|
44822
|
-
|
44823
|
-
|
44824
|
-
|
44825
|
-
|
44535
|
+
const CardHeader = ({
|
44536
|
+
id,
|
44537
|
+
icon: icon2,
|
44538
|
+
label: label2,
|
44539
|
+
className: className2,
|
44540
|
+
children: children2
|
44541
|
+
}) => {
|
44542
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
44543
|
+
"div",
|
44544
|
+
{
|
44545
|
+
className: clsx("card-header-container", "text-style-label", className2),
|
44546
|
+
id: id || "",
|
44547
|
+
children: [
|
44548
|
+
icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("card-header-icon", icon2) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "card-header-icon" }),
|
44549
|
+
label2 ? label2 : "",
|
44550
|
+
" ",
|
44551
|
+
children2
|
44552
|
+
]
|
44553
|
+
}
|
44554
|
+
);
|
44555
|
+
};
|
44556
|
+
const CardBody = ({ id, children: children2, className: className2 }) => {
|
44557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card-body", className2), id: id || "", children: children2 });
|
44558
|
+
};
|
44559
|
+
const Card = ({ id, children: children2, className: className2 }) => {
|
44560
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", className2), id, children: children2 });
|
44561
|
+
};
|
44562
|
+
const item = "_item_1uzhd_1";
|
44563
|
+
const styles$O = {
|
44564
|
+
item
|
44565
|
+
};
|
44566
|
+
const DatasetDetailView = ({
|
44567
|
+
dataset,
|
44568
|
+
style: style2
|
44569
|
+
}) => {
|
44570
|
+
const filtered = Object.fromEntries(
|
44571
|
+
Object.entries(dataset).filter(([key2]) => key2 !== "sample_ids")
|
44572
|
+
);
|
44573
|
+
if (!dataset || Object.keys(filtered).length === 0) {
|
44574
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-base", styles$O.item), style: style2, children: "No dataset information available" });
|
44575
|
+
}
|
44576
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44577
|
+
MetaDataView,
|
44578
|
+
{
|
44579
|
+
className: clsx("text-size-base", styles$O.item),
|
44580
|
+
entries: filtered,
|
44581
|
+
tableOptions: "borderless,sm",
|
44582
|
+
style: style2
|
44583
|
+
}
|
44584
|
+
);
|
44585
|
+
};
|
44586
|
+
const grid$5 = "_grid_ax2xo_1";
|
44587
|
+
const cell$2 = "_cell_ax2xo_8";
|
44588
|
+
const value$1 = "_value_ax2xo_13";
|
44589
|
+
const styles$N = {
|
44590
|
+
grid: grid$5,
|
44826
44591
|
cell: cell$2,
|
44827
44592
|
value: value$1
|
44828
44593
|
};
|
@@ -44851,10 +44616,10 @@ categories: ${categories.join(" ")}`;
|
|
44851
44616
|
{
|
44852
44617
|
className: clsx(
|
44853
44618
|
`${baseId}-key`,
|
44854
|
-
styles$
|
44619
|
+
styles$N.cell,
|
44855
44620
|
"text-style-label",
|
44856
44621
|
"text-style-secondary",
|
44857
|
-
"text-size-
|
44622
|
+
"text-size-smaller"
|
44858
44623
|
),
|
44859
44624
|
children: entry2.name
|
44860
44625
|
}
|
@@ -44862,13 +44627,13 @@ categories: ${categories.join(" ")}`;
|
|
44862
44627
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44863
44628
|
"div",
|
44864
44629
|
{
|
44865
|
-
className: clsx(styles$
|
44630
|
+
className: clsx(styles$N.value, `${baseId}-value`, "text-size-smaller"),
|
44866
44631
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 })
|
44867
44632
|
}
|
44868
44633
|
)
|
44869
44634
|
] }, `${baseId}-record-${index2}`);
|
44870
44635
|
});
|
44871
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$
|
44636
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$N.grid), style: style2, children: entryEls });
|
44872
44637
|
};
|
44873
44638
|
const entryRecords = (entries) => {
|
44874
44639
|
if (!entries) {
|
@@ -44882,107 +44647,12 @@ categories: ${categories.join(" ")}`;
|
|
44882
44647
|
return entries;
|
44883
44648
|
}
|
44884
44649
|
};
|
44885
|
-
const container$d = "_container_304w9_1";
|
44886
|
-
const modelInfo = "_modelInfo_304w9_8";
|
44887
|
-
const role = "_role_304w9_14";
|
44888
|
-
const styles$I = {
|
44889
|
-
container: container$d,
|
44890
|
-
modelInfo,
|
44891
|
-
role
|
44892
|
-
};
|
44893
|
-
const ModelCard = ({ evalSpec }) => {
|
44894
|
-
if (!evalSpec) {
|
44895
|
-
return void 0;
|
44896
|
-
}
|
44897
|
-
const modelsInfo = {
|
44898
|
-
eval: {
|
44899
|
-
model: evalSpec.model,
|
44900
|
-
base_url: evalSpec.model_base_url,
|
44901
|
-
config: evalSpec.model_generate_config,
|
44902
|
-
args: evalSpec.model_args
|
44903
|
-
},
|
44904
|
-
...evalSpec.model_roles
|
44905
|
-
};
|
44906
|
-
const noneEl = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-style-secondary", children: "None" });
|
44907
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
44908
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { icon: ApplicationIcons.model, label: "Models" }),
|
44909
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-model-card-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.container, children: Object.keys(modelsInfo || {}).map((modelKey) => {
|
44910
|
-
const modelInfo2 = modelsInfo[modelKey];
|
44911
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
44912
|
-
"div",
|
44913
|
-
{
|
44914
|
-
className: clsx(styles$I.modelInfo, "text-size-small"),
|
44915
|
-
children: [
|
44916
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44917
|
-
"div",
|
44918
|
-
{
|
44919
|
-
className: clsx(
|
44920
|
-
styles$I.role,
|
44921
|
-
"text-style-label",
|
44922
|
-
"text-style-secondary"
|
44923
|
-
),
|
44924
|
-
children: modelKey
|
44925
|
-
}
|
44926
|
-
),
|
44927
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Model" }),
|
44928
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modelInfo2.model }),
|
44929
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Base Url" }),
|
44930
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.base_url || noneEl }),
|
44931
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Configuration" }),
|
44932
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.config && Object.keys(modelInfo2.config).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44933
|
-
MetaDataGrid,
|
44934
|
-
{
|
44935
|
-
entries: modelInfo2.config
|
44936
|
-
}
|
44937
|
-
) : noneEl }),
|
44938
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Args" }),
|
44939
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: Object.keys(modelInfo2.args).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44940
|
-
MetaDataGrid,
|
44941
|
-
{
|
44942
|
-
entries: modelInfo2.args
|
44943
|
-
}
|
44944
|
-
) : noneEl })
|
44945
|
-
]
|
44946
|
-
},
|
44947
|
-
modelKey
|
44948
|
-
);
|
44949
|
-
}) }) })
|
44950
|
-
] });
|
44951
|
-
};
|
44952
|
-
const ghCommitUrl = (origin, commit) => {
|
44953
|
-
const baseUrl2 = origin.replace(/\.git$/, "");
|
44954
|
-
return `${baseUrl2}/commit/${commit}`;
|
44955
|
-
};
|
44956
|
-
const item = "_item_1uzhd_1";
|
44957
|
-
const styles$H = {
|
44958
|
-
item
|
44959
|
-
};
|
44960
|
-
const DatasetDetailView = ({
|
44961
|
-
dataset,
|
44962
|
-
style: style2
|
44963
|
-
}) => {
|
44964
|
-
const filtered = Object.fromEntries(
|
44965
|
-
Object.entries(dataset).filter(([key2]) => key2 !== "sample_ids")
|
44966
|
-
);
|
44967
|
-
if (!dataset || Object.keys(filtered).length === 0) {
|
44968
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-base", styles$H.item), style: style2, children: "No dataset information available" });
|
44969
|
-
}
|
44970
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44971
|
-
MetaDataView,
|
44972
|
-
{
|
44973
|
-
className: clsx("text-size-base", styles$H.item),
|
44974
|
-
entries: filtered,
|
44975
|
-
tableOptions: "borderless,sm",
|
44976
|
-
style: style2
|
44977
|
-
}
|
44978
|
-
);
|
44979
|
-
};
|
44980
44650
|
const icon = "_icon_59zaz_1";
|
44981
|
-
const container$
|
44651
|
+
const container$d = "_container_59zaz_5";
|
44982
44652
|
const metadata$2 = "_metadata_59zaz_11";
|
44983
|
-
const styles$
|
44653
|
+
const styles$M = {
|
44984
44654
|
icon,
|
44985
|
-
container: container$
|
44655
|
+
container: container$d,
|
44986
44656
|
metadata: metadata$2
|
44987
44657
|
};
|
44988
44658
|
const DetailStep = ({
|
@@ -44991,16 +44661,16 @@ categories: ${categories.join(" ")}`;
|
|
44991
44661
|
params: params2,
|
44992
44662
|
className: className2
|
44993
44663
|
}) => {
|
44994
|
-
const iconHtml = icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$
|
44664
|
+
const iconHtml = icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$M.icon) }) : "";
|
44995
44665
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2), children: [
|
44996
44666
|
iconHtml,
|
44997
44667
|
" ",
|
44998
44668
|
name2,
|
44999
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
44669
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$M.container, children: params2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45000
44670
|
MetaDataGrid,
|
45001
44671
|
{
|
45002
44672
|
entries: params2,
|
45003
|
-
className: clsx("text-size-small", styles$
|
44673
|
+
className: clsx("text-size-small", styles$M.metadata)
|
45004
44674
|
}
|
45005
44675
|
) : "" })
|
45006
44676
|
] });
|
@@ -45019,49 +44689,43 @@ categories: ${categories.join(" ")}`;
|
|
45019
44689
|
icon: ApplicationIcons.scorer,
|
45020
44690
|
name: name2,
|
45021
44691
|
params: params2,
|
45022
|
-
className: clsx(styles$
|
44692
|
+
className: clsx(styles$O.item, "text-size-base")
|
45023
44693
|
}
|
45024
44694
|
);
|
45025
44695
|
};
|
45026
|
-
const container$
|
45027
|
-
const separator$
|
45028
|
-
const styles$
|
45029
|
-
container: container$
|
45030
|
-
separator: separator$
|
44696
|
+
const container$c = "_container_12j2k_1";
|
44697
|
+
const separator$4 = "_separator_12j2k_11";
|
44698
|
+
const styles$L = {
|
44699
|
+
container: container$c,
|
44700
|
+
separator: separator$4
|
45031
44701
|
};
|
45032
44702
|
const SolversDetailView = ({ steps }) => {
|
45033
|
-
const separator2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
44703
|
+
const separator2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$L.items, "text-size-small", styles$L.separator), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) });
|
45034
44704
|
const details = steps == null ? void 0 : steps.map((step, index2) => {
|
45035
44705
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
45036
44706
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
45037
44707
|
DetailStep,
|
45038
44708
|
{
|
45039
44709
|
name: step.solver,
|
45040
|
-
className: clsx(styles$
|
44710
|
+
className: clsx(styles$L.items, "text-size-small")
|
45041
44711
|
}
|
45042
44712
|
),
|
45043
44713
|
index2 < steps.length - 1 ? separator2 : ""
|
45044
44714
|
] }, `solver-step-${index2}`);
|
45045
44715
|
});
|
45046
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
45047
|
-
};
|
45048
|
-
const floatingCol = "
|
45049
|
-
const wideCol = "
|
45050
|
-
const
|
45051
|
-
const
|
45052
|
-
const
|
45053
|
-
const
|
45054
|
-
const grid$3 = "_grid_q6xma_34";
|
45055
|
-
const row$1 = "_row_q6xma_42";
|
45056
|
-
const styles$E = {
|
44716
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$L.container, children: details });
|
44717
|
+
};
|
44718
|
+
const floatingCol = "_floatingCol_1y1hk_1";
|
44719
|
+
const wideCol = "_wideCol_1y1hk_9";
|
44720
|
+
const planCol = "_planCol_1y1hk_24";
|
44721
|
+
const container$b = "_container_1y1hk_28";
|
44722
|
+
const grid$4 = "_grid_1y1hk_34";
|
44723
|
+
const styles$K = {
|
45057
44724
|
floatingCol,
|
45058
44725
|
wideCol,
|
45059
|
-
oneCol,
|
45060
|
-
twoCol,
|
45061
44726
|
planCol,
|
45062
|
-
container: container$
|
45063
|
-
grid: grid$
|
45064
|
-
row: row$1
|
44727
|
+
container: container$b,
|
44728
|
+
grid: grid$4
|
45065
44729
|
};
|
45066
44730
|
const PlanDetailView = ({
|
45067
44731
|
evaluation,
|
@@ -45071,68 +44735,17 @@ categories: ${categories.join(" ")}`;
|
|
45071
44735
|
if (!evaluation) {
|
45072
44736
|
return null;
|
45073
44737
|
}
|
45074
|
-
const config2 = {};
|
45075
|
-
Object.entries((evaluation == null ? void 0 : evaluation.config) || {}).forEach((entry2) => {
|
45076
|
-
const key2 = entry2[0];
|
45077
|
-
const value2 = entry2[1];
|
45078
|
-
config2[key2] = value2;
|
45079
|
-
});
|
45080
44738
|
const steps = plan == null ? void 0 : plan.steps;
|
45081
|
-
const metadata2 = evaluation == null ? void 0 : evaluation.metadata;
|
45082
|
-
const revision = evaluation == null ? void 0 : evaluation.revision;
|
45083
|
-
const packages = evaluation == null ? void 0 : evaluation.packages;
|
45084
|
-
const model_args = evaluation == null ? void 0 : evaluation.model_args;
|
45085
|
-
const task_args = evaluation == null ? void 0 : evaluation.task_args;
|
45086
|
-
const generate_config = plan == null ? void 0 : plan.config;
|
45087
|
-
const taskInformation = {
|
45088
|
-
["Task ID"]: evaluation == null ? void 0 : evaluation.task_id,
|
45089
|
-
["Run ID"]: evaluation == null ? void 0 : evaluation.run_id
|
45090
|
-
};
|
45091
|
-
if (revision) {
|
45092
|
-
taskInformation[`${revision.type ? `${toTitleCase(revision.type)} ` : ""}Revision`] = {
|
45093
|
-
_html: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: ghCommitUrl(revision.origin, revision.commit), children: revision.commit })
|
45094
|
-
};
|
45095
|
-
}
|
45096
|
-
if (packages) {
|
45097
|
-
const names = Object.keys(packages).map((key2) => {
|
45098
|
-
return `${key2} ${packages[key2]}`;
|
45099
|
-
});
|
45100
|
-
if (names.length === 1) {
|
45101
|
-
taskInformation["Inspect"] = names[0];
|
45102
|
-
} else {
|
45103
|
-
taskInformation["Inspect"] = names;
|
45104
|
-
}
|
45105
|
-
}
|
45106
|
-
if (evaluation.tags) {
|
45107
|
-
taskInformation["Tags"] = evaluation.tags.join(", ");
|
45108
|
-
}
|
45109
|
-
if ((evaluation == null ? void 0 : evaluation.model) && evaluation.model !== kModelNone) {
|
45110
|
-
config2["model"] = evaluation.model;
|
45111
|
-
}
|
45112
|
-
if (evaluation == null ? void 0 : evaluation.model_base_url) {
|
45113
|
-
config2["model_base_url"] = evaluation.model_base_url;
|
45114
|
-
}
|
45115
|
-
if (evaluation == null ? void 0 : evaluation.sandbox) {
|
45116
|
-
if (Array.isArray(evaluation == null ? void 0 : evaluation.sandbox)) {
|
45117
|
-
config2["sandbox"] = evaluation.sandbox[0];
|
45118
|
-
if (evaluation.sandbox[1]) {
|
45119
|
-
config2["sandbox_config"] = evaluation.sandbox[1];
|
45120
|
-
}
|
45121
|
-
} else {
|
45122
|
-
config2["sandbox"] = evaluation == null ? void 0 : evaluation.sandbox.type;
|
45123
|
-
config2["sandbox_config"] = evaluation == null ? void 0 : evaluation.sandbox.config;
|
45124
|
-
}
|
45125
|
-
}
|
45126
44739
|
const taskColumns = [];
|
45127
44740
|
taskColumns.push({
|
45128
44741
|
title: "Dataset",
|
45129
|
-
className: styles$
|
44742
|
+
className: styles$K.floatingCol,
|
45130
44743
|
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(DatasetDetailView, { dataset: evaluation.dataset })
|
45131
44744
|
});
|
45132
44745
|
if (steps) {
|
45133
44746
|
taskColumns.push({
|
45134
44747
|
title: "Solvers",
|
45135
|
-
className: styles$
|
44748
|
+
className: styles$K.wideCol,
|
45136
44749
|
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(SolversDetailView, { steps })
|
45137
44750
|
});
|
45138
44751
|
}
|
@@ -45166,152 +44779,31 @@ categories: ${categories.join(" ")}`;
|
|
45166
44779
|
});
|
45167
44780
|
taskColumns.push({
|
45168
44781
|
title: label2,
|
45169
|
-
className: styles$
|
44782
|
+
className: styles$K.floatingCol,
|
45170
44783
|
contents: scorerPanels
|
45171
44784
|
});
|
45172
44785
|
}
|
45173
44786
|
}
|
45174
|
-
|
45175
|
-
|
45176
|
-
|
45177
|
-
|
45178
|
-
|
45179
|
-
|
45180
|
-
metadata2
|
45181
|
-
);
|
45182
|
-
metadataColumns.push({
|
45183
|
-
title: "Task Information",
|
45184
|
-
className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
|
45185
|
-
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45186
|
-
MetaDataView,
|
45187
|
-
{
|
45188
|
-
className: "text-size-small",
|
45189
|
-
entries: taskInformation,
|
45190
|
-
tableOptions: "sm"
|
44787
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$K.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44788
|
+
"div",
|
44789
|
+
{
|
44790
|
+
className: styles$K.grid,
|
44791
|
+
style: {
|
44792
|
+
gridTemplateColumns: `repeat(${taskColumns.length}, fit-content(50%))`
|
45191
44793
|
},
|
45192
|
-
|
45193
|
-
|
45194
|
-
|
45195
|
-
|
45196
|
-
|
45197
|
-
|
45198
|
-
|
45199
|
-
|
45200
|
-
|
45201
|
-
|
45202
|
-
|
45203
|
-
entries: task_args,
|
45204
|
-
tableOptions: "sm"
|
45205
|
-
},
|
45206
|
-
`plan-md-task-args`
|
45207
|
-
)
|
45208
|
-
});
|
45209
|
-
}
|
45210
|
-
if (model_args && Object.keys(model_args).length > 0) {
|
45211
|
-
metadataColumns.push({
|
45212
|
-
title: "Model Args",
|
45213
|
-
className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
|
45214
|
-
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45215
|
-
MetaDataView,
|
45216
|
-
{
|
45217
|
-
className: "text-size-small",
|
45218
|
-
entries: model_args,
|
45219
|
-
tableOptions: "sm"
|
45220
|
-
},
|
45221
|
-
`plan-md-model-args`
|
45222
|
-
)
|
45223
|
-
});
|
45224
|
-
}
|
45225
|
-
if (config2 && Object.keys(config2).length > 0) {
|
45226
|
-
metadataColumns.push({
|
45227
|
-
title: "Configuration",
|
45228
|
-
className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
|
45229
|
-
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45230
|
-
MetaDataView,
|
45231
|
-
{
|
45232
|
-
className: "text-size-small",
|
45233
|
-
entries: config2,
|
45234
|
-
tableOptions: "sm"
|
45235
|
-
},
|
45236
|
-
`plan-md-config`
|
45237
|
-
)
|
45238
|
-
});
|
45239
|
-
}
|
45240
|
-
if (generate_config && Object.keys(generate_config).length > 0) {
|
45241
|
-
const generate_record = Object.fromEntries(
|
45242
|
-
Object.entries(generate_config)
|
45243
|
-
);
|
45244
|
-
metadataColumns.push({
|
45245
|
-
title: "Generate Config",
|
45246
|
-
className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
|
45247
|
-
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45248
|
-
MetaDataView,
|
45249
|
-
{
|
45250
|
-
className: "text-size-small",
|
45251
|
-
entries: generate_record,
|
45252
|
-
tableOptions: "sm"
|
45253
|
-
},
|
45254
|
-
`plan-md-generate-config`
|
45255
|
-
)
|
45256
|
-
});
|
45257
|
-
}
|
45258
|
-
if (metadata2 && Object.keys(metadata2).length > 0) {
|
45259
|
-
metadataColumns.push({
|
45260
|
-
title: "Metadata",
|
45261
|
-
className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
|
45262
|
-
contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45263
|
-
MetaDataView,
|
45264
|
-
{
|
45265
|
-
className: "text-size-small",
|
45266
|
-
entries: metadata2,
|
45267
|
-
tableOptions: "sm"
|
45268
|
-
},
|
45269
|
-
`plan-md-metadata`
|
45270
|
-
)
|
45271
|
-
});
|
45272
|
-
}
|
45273
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$E.container, children: [
|
45274
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
45275
|
-
"div",
|
45276
|
-
{
|
45277
|
-
className: styles$E.grid,
|
45278
|
-
style: {
|
45279
|
-
gridTemplateColumns: `repeat(${taskColumns.length}, auto)`
|
45280
|
-
},
|
45281
|
-
children: taskColumns.map((col) => {
|
45282
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45283
|
-
PlanColumn,
|
45284
|
-
{
|
45285
|
-
title: col.title,
|
45286
|
-
className: col.className,
|
45287
|
-
children: col.contents
|
45288
|
-
},
|
45289
|
-
`plan-col-${col.title}`
|
45290
|
-
);
|
45291
|
-
})
|
45292
|
-
}
|
45293
|
-
),
|
45294
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$E.row), children: metadataColumns.map((col) => {
|
45295
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
45296
|
-
PlanColumn,
|
45297
|
-
{
|
45298
|
-
title: col.title,
|
45299
|
-
className: col.className,
|
45300
|
-
children: col.contents
|
45301
|
-
},
|
45302
|
-
`plan-col-${col.title}`
|
45303
|
-
);
|
45304
|
-
}) })
|
45305
|
-
] });
|
45306
|
-
};
|
45307
|
-
const colCount = (...other) => {
|
45308
|
-
let count = 0;
|
45309
|
-
for (const o in other) {
|
45310
|
-
if (o && Object.keys(o).length > 0) {
|
45311
|
-
count++;
|
44794
|
+
children: taskColumns.map((col) => {
|
44795
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44796
|
+
PlanColumn,
|
44797
|
+
{
|
44798
|
+
title: col.title,
|
44799
|
+
className: col.className,
|
44800
|
+
children: col.contents
|
44801
|
+
},
|
44802
|
+
`plan-col-${col.title}`
|
44803
|
+
);
|
44804
|
+
})
|
45312
44805
|
}
|
45313
|
-
}
|
45314
|
-
return count;
|
44806
|
+
) });
|
45315
44807
|
};
|
45316
44808
|
const PlanColumn = ({ title: title2, className: className2, children: children2 }) => {
|
45317
44809
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2), children: [
|
@@ -45323,7 +44815,7 @@ categories: ${categories.join(" ")}`;
|
|
45323
44815
|
"text-size-small",
|
45324
44816
|
"text-style-label",
|
45325
44817
|
"text-style-secondary",
|
45326
|
-
styles$
|
44818
|
+
styles$K.planCol
|
45327
44819
|
),
|
45328
44820
|
children: title2
|
45329
44821
|
}
|
@@ -45332,12 +44824,55 @@ categories: ${categories.join(" ")}`;
|
|
45332
44824
|
] });
|
45333
44825
|
};
|
45334
44826
|
const PlanCard = ({ evalSpec, evalPlan, scores: scores2 }) => {
|
44827
|
+
const metadata2 = (evalSpec == null ? void 0 : evalSpec.metadata) || {};
|
44828
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
44829
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
44830
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Summary" }),
|
44831
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-plan-card-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44832
|
+
PlanDetailView,
|
44833
|
+
{
|
44834
|
+
evaluation: evalSpec,
|
44835
|
+
plan: evalPlan,
|
44836
|
+
scores: scores2
|
44837
|
+
}
|
44838
|
+
) })
|
44839
|
+
] }),
|
44840
|
+
Object.keys(metadata2).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
44841
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Metadata" }),
|
44842
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-metadata`", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44843
|
+
MetaDataView,
|
44844
|
+
{
|
44845
|
+
className: "text-size-small",
|
44846
|
+
entries: metadata2,
|
44847
|
+
tableOptions: "sm"
|
44848
|
+
},
|
44849
|
+
`plan-md-metadata`
|
44850
|
+
) })
|
44851
|
+
] })
|
44852
|
+
] });
|
44853
|
+
};
|
44854
|
+
const styles$J = {
|
44855
|
+
"task-error-display": "_task-error-display_1624b_1"
|
44856
|
+
};
|
44857
|
+
const TaskErrorCard = ({ error: error2 }) => {
|
45335
44858
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
45336
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
45337
|
-
|
44859
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
44860
|
+
CardHeader,
|
44861
|
+
{
|
44862
|
+
icon: ApplicationIcons.error,
|
44863
|
+
label: "Task Failed: ${error.message}"
|
44864
|
+
}
|
44865
|
+
),
|
44866
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
44867
|
+
ANSIDisplay,
|
44868
|
+
{
|
44869
|
+
output: error2.traceback_ansi,
|
44870
|
+
className: styles$J["task-error-display"]
|
44871
|
+
}
|
44872
|
+
) })
|
45338
44873
|
] });
|
45339
44874
|
};
|
45340
|
-
const useInfoTabConfig = (evalSpec, evalPlan, evalError, evalResults
|
44875
|
+
const useInfoTabConfig = (evalSpec, evalPlan, evalError, evalResults) => {
|
45341
44876
|
const totalSampleCount = useTotalSampleCount();
|
45342
44877
|
return reactExports.useMemo(() => {
|
45343
44878
|
return {
|
@@ -45350,17 +44885,15 @@ categories: ${categories.join(" ")}`;
|
|
45350
44885
|
evalPlan,
|
45351
44886
|
evalError,
|
45352
44887
|
evalResults,
|
45353
|
-
evalStats,
|
45354
44888
|
sampleCount: totalSampleCount
|
45355
44889
|
}
|
45356
44890
|
};
|
45357
|
-
}, [evalSpec, evalPlan, evalError, evalResults,
|
44891
|
+
}, [evalSpec, evalPlan, evalError, evalResults, totalSampleCount]);
|
45358
44892
|
};
|
45359
44893
|
const InfoTab = ({
|
45360
44894
|
evalSpec,
|
45361
44895
|
evalPlan,
|
45362
44896
|
evalResults,
|
45363
|
-
evalStats,
|
45364
44897
|
evalStatus,
|
45365
44898
|
evalError,
|
45366
44899
|
sampleCount
|
@@ -45384,8 +44917,6 @@ categories: ${categories.join(" ")}`;
|
|
45384
44917
|
scores: evalResults == null ? void 0 : evalResults.scores
|
45385
44918
|
}
|
45386
44919
|
),
|
45387
|
-
evalSpec ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelCard, { evalSpec }) : void 0,
|
45388
|
-
evalStatus !== "started" ? /* @__PURE__ */ jsxRuntimeExports.jsx(UsageCard, { stats: evalStats }) : void 0,
|
45389
44920
|
evalStatus === "error" && evalError ? /* @__PURE__ */ jsxRuntimeExports.jsx(TaskErrorCard, { error: evalError }) : void 0
|
45390
44921
|
] })
|
45391
44922
|
] });
|
@@ -47363,7 +46894,7 @@ self.onmessage = function (e) {
|
|
47363
46894
|
);
|
47364
46895
|
ToolButton.displayName = "ToolButton";
|
47365
46896
|
const jsonTab = "_jsonTab_6pq03_1";
|
47366
|
-
const styles$
|
46897
|
+
const styles$I = {
|
47367
46898
|
jsonTab
|
47368
46899
|
};
|
47369
46900
|
const kJsonMaxSize = 1e7;
|
@@ -47442,7 +46973,7 @@ self.onmessage = function (e) {
|
|
47442
46973
|
const downloadFiles = useStore((state) => state.capabilities.downloadFiles);
|
47443
46974
|
if (logFile && json.length > kJsonMaxSize && downloadFiles) {
|
47444
46975
|
const file = `${filename(logFile)}.json`;
|
47445
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
46976
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
47446
46977
|
DownloadPanel,
|
47447
46978
|
{
|
47448
46979
|
message: "The JSON for this log file is too large to render.",
|
@@ -47452,20 +46983,318 @@ self.onmessage = function (e) {
|
|
47452
46983
|
}
|
47453
46984
|
) });
|
47454
46985
|
} else {
|
47455
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
46986
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
|
46987
|
+
}
|
46988
|
+
};
|
46989
|
+
const container$a = "_container_304w9_1";
|
46990
|
+
const modelInfo = "_modelInfo_304w9_8";
|
46991
|
+
const role = "_role_304w9_14";
|
46992
|
+
const styles$H = {
|
46993
|
+
container: container$a,
|
46994
|
+
modelInfo,
|
46995
|
+
role
|
46996
|
+
};
|
46997
|
+
const ModelCard = ({ evalSpec }) => {
|
46998
|
+
if (!evalSpec) {
|
46999
|
+
return void 0;
|
47456
47000
|
}
|
47001
|
+
const modelsInfo = {
|
47002
|
+
eval: {
|
47003
|
+
model: evalSpec.model,
|
47004
|
+
base_url: evalSpec.model_base_url,
|
47005
|
+
config: evalSpec.model_generate_config,
|
47006
|
+
args: evalSpec.model_args
|
47007
|
+
},
|
47008
|
+
...evalSpec.model_roles
|
47009
|
+
};
|
47010
|
+
const noneEl = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-style-secondary", children: "None" });
|
47011
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
47012
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Models" }),
|
47013
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-model-card-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$H.container, children: Object.keys(modelsInfo || {}).map((modelKey) => {
|
47014
|
+
const modelInfo2 = modelsInfo[modelKey];
|
47015
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
47016
|
+
"div",
|
47017
|
+
{
|
47018
|
+
className: clsx(styles$H.modelInfo, "text-size-small"),
|
47019
|
+
children: [
|
47020
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
47021
|
+
"div",
|
47022
|
+
{
|
47023
|
+
className: clsx(
|
47024
|
+
styles$H.role,
|
47025
|
+
"text-style-label",
|
47026
|
+
"text-style-secondary"
|
47027
|
+
),
|
47028
|
+
children: modelKey
|
47029
|
+
}
|
47030
|
+
),
|
47031
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Model" }),
|
47032
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modelInfo2.model }),
|
47033
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Base Url" }),
|
47034
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.base_url || noneEl }),
|
47035
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Configuration" }),
|
47036
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.config && Object.keys(modelInfo2.config).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
47037
|
+
MetaDataGrid,
|
47038
|
+
{
|
47039
|
+
entries: modelInfo2.config
|
47040
|
+
}
|
47041
|
+
) : noneEl }),
|
47042
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Args" }),
|
47043
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: Object.keys(modelInfo2.args).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
47044
|
+
MetaDataGrid,
|
47045
|
+
{
|
47046
|
+
entries: modelInfo2.args
|
47047
|
+
}
|
47048
|
+
) : noneEl })
|
47049
|
+
]
|
47050
|
+
},
|
47051
|
+
modelKey
|
47052
|
+
);
|
47053
|
+
}) }) })
|
47054
|
+
] });
|
47055
|
+
};
|
47056
|
+
const wrapper$2 = "_wrapper_sq96g_1";
|
47057
|
+
const col2$2 = "_col2_sq96g_8";
|
47058
|
+
const col1_3$1 = "_col1_3_sq96g_12";
|
47059
|
+
const col3$1 = "_col3_sq96g_16";
|
47060
|
+
const separator$3 = "_separator_sq96g_20";
|
47061
|
+
const padded$1 = "_padded_sq96g_26";
|
47062
|
+
const styles$G = {
|
47063
|
+
wrapper: wrapper$2,
|
47064
|
+
col2: col2$2,
|
47065
|
+
col1_3: col1_3$1,
|
47066
|
+
col3: col3$1,
|
47067
|
+
separator: separator$3,
|
47068
|
+
padded: padded$1
|
47069
|
+
};
|
47070
|
+
const ModelUsagePanel = ({ usage, className: className2 }) => {
|
47071
|
+
if (!usage) {
|
47072
|
+
return null;
|
47073
|
+
}
|
47074
|
+
const rows = [];
|
47075
|
+
if (usage.reasoning_tokens) {
|
47076
|
+
rows.push({
|
47077
|
+
label: "Reasoning",
|
47078
|
+
value: usage.reasoning_tokens,
|
47079
|
+
secondary: false,
|
47080
|
+
bordered: true
|
47081
|
+
});
|
47082
|
+
rows.push({
|
47083
|
+
label: "---",
|
47084
|
+
value: void 0,
|
47085
|
+
secondary: false,
|
47086
|
+
padded: true
|
47087
|
+
});
|
47088
|
+
}
|
47089
|
+
rows.push({
|
47090
|
+
label: "input",
|
47091
|
+
value: usage.input_tokens,
|
47092
|
+
secondary: false
|
47093
|
+
});
|
47094
|
+
if (usage.input_tokens_cache_read) {
|
47095
|
+
rows.push({
|
47096
|
+
label: "cache_read",
|
47097
|
+
value: usage.input_tokens_cache_read,
|
47098
|
+
secondary: true
|
47099
|
+
});
|
47100
|
+
}
|
47101
|
+
if (usage.input_tokens_cache_write) {
|
47102
|
+
rows.push({
|
47103
|
+
label: "cache_write",
|
47104
|
+
value: usage.input_tokens_cache_write,
|
47105
|
+
secondary: true
|
47106
|
+
});
|
47107
|
+
}
|
47108
|
+
rows.push({
|
47109
|
+
label: "Output",
|
47110
|
+
value: usage.output_tokens,
|
47111
|
+
secondary: false,
|
47112
|
+
bordered: true
|
47113
|
+
});
|
47114
|
+
rows.push({
|
47115
|
+
label: "---",
|
47116
|
+
value: void 0,
|
47117
|
+
secondary: false
|
47118
|
+
});
|
47119
|
+
rows.push({
|
47120
|
+
label: "Total",
|
47121
|
+
value: usage.total_tokens,
|
47122
|
+
secondary: false
|
47123
|
+
});
|
47124
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$G.wrapper, className2), children: rows.map((row2, idx) => {
|
47125
|
+
if (row2.label === "---") {
|
47126
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
47127
|
+
"div",
|
47128
|
+
{
|
47129
|
+
className: clsx(
|
47130
|
+
styles$G.separator,
|
47131
|
+
row2.padded ? styles$G.padded : void 0
|
47132
|
+
)
|
47133
|
+
},
|
47134
|
+
`$usage-sep-${idx}`
|
47135
|
+
);
|
47136
|
+
} else {
|
47137
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
47138
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
47139
|
+
"div",
|
47140
|
+
{
|
47141
|
+
className: clsx(
|
47142
|
+
"text-style-label",
|
47143
|
+
"text-style-secondary",
|
47144
|
+
row2.secondary ? styles$G.col2 : styles$G.col1_3
|
47145
|
+
),
|
47146
|
+
children: row2.label
|
47147
|
+
}
|
47148
|
+
),
|
47149
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$G.col3, children: row2.value ? formatNumber(row2.value) : "" })
|
47150
|
+
] }, `$usage-row-${idx}`);
|
47151
|
+
}
|
47152
|
+
}) });
|
47153
|
+
};
|
47154
|
+
const table = "_table_z217i_1";
|
47155
|
+
const tableTokens = "_tableTokens_z217i_5";
|
47156
|
+
const tableH = "_tableH_z217i_9";
|
47157
|
+
const model = "_model_z217i_14";
|
47158
|
+
const cellContents = "_cellContents_z217i_18";
|
47159
|
+
const styles$F = {
|
47160
|
+
table,
|
47161
|
+
tableTokens,
|
47162
|
+
tableH,
|
47163
|
+
model,
|
47164
|
+
cellContents
|
47165
|
+
};
|
47166
|
+
const TokenTable$1 = ({ className: className2, children: children2 }) => {
|
47167
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
47168
|
+
"table",
|
47169
|
+
{
|
47170
|
+
className: clsx(
|
47171
|
+
"table",
|
47172
|
+
"table-sm",
|
47173
|
+
"text-size-smaller",
|
47174
|
+
styles$F.table,
|
47175
|
+
className2
|
47176
|
+
),
|
47177
|
+
children: children2
|
47178
|
+
}
|
47179
|
+
);
|
47180
|
+
};
|
47181
|
+
const TokenHeader = () => {
|
47182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("thead", { children: [
|
47183
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
47184
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", {}),
|
47185
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
47186
|
+
"td",
|
47187
|
+
{
|
47188
|
+
colSpan: 3,
|
47189
|
+
className: clsx(
|
47190
|
+
"card-subheading",
|
47191
|
+
styles$F.tableTokens,
|
47192
|
+
"text-size-small",
|
47193
|
+
"text-style-label",
|
47194
|
+
"text-style-secondary"
|
47195
|
+
),
|
47196
|
+
align: "center",
|
47197
|
+
children: "Tokens"
|
47198
|
+
}
|
47199
|
+
)
|
47200
|
+
] }),
|
47201
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
47202
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
47203
|
+
"th",
|
47204
|
+
{
|
47205
|
+
className: clsx(
|
47206
|
+
styles$F.tableH,
|
47207
|
+
"text-sixe-small",
|
47208
|
+
"text-style-label",
|
47209
|
+
"text-style-secondary"
|
47210
|
+
),
|
47211
|
+
children: "Model"
|
47212
|
+
}
|
47213
|
+
),
|
47214
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
47215
|
+
"th",
|
47216
|
+
{
|
47217
|
+
className: clsx(
|
47218
|
+
styles$F.tableH,
|
47219
|
+
"text-sixe-small",
|
47220
|
+
"text-style-label",
|
47221
|
+
"text-style-secondary"
|
47222
|
+
),
|
47223
|
+
children: "Usage"
|
47224
|
+
}
|
47225
|
+
)
|
47226
|
+
] })
|
47227
|
+
] });
|
47228
|
+
};
|
47229
|
+
const TokenRow = ({ model: model2, usage }) => {
|
47230
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
|
47231
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$F.model, styles$F.cellContents), children: model2 }) }),
|
47232
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage, className: clsx(styles$F.cellContents) }) })
|
47233
|
+
] });
|
47234
|
+
};
|
47235
|
+
const ModelTokenTable = ({
|
47236
|
+
model_usage,
|
47237
|
+
className: className2
|
47238
|
+
}) => {
|
47239
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TokenTable$1, { className: className2, children: [
|
47240
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TokenHeader, {}),
|
47241
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.keys(model_usage).map((key2) => {
|
47242
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TokenRow, { model: key2, usage: model_usage[key2] }, key2);
|
47243
|
+
}) })
|
47244
|
+
] });
|
47245
|
+
};
|
47246
|
+
const wrapper$1 = "_wrapper_14r3b_1";
|
47247
|
+
const col2$1 = "_col2_14r3b_16";
|
47248
|
+
const styles$E = {
|
47249
|
+
wrapper: wrapper$1,
|
47250
|
+
col2: col2$1
|
47251
|
+
};
|
47252
|
+
const kUsageCardBodyId = "usage-card-body";
|
47253
|
+
const UsageCard = ({ stats }) => {
|
47254
|
+
if (!stats) {
|
47255
|
+
return null;
|
47256
|
+
}
|
47257
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
47258
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Usage" }),
|
47259
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: kUsageCardBodyId, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.wrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.col2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelTokenTable, { model_usage: stats.model_usage }) }) }) })
|
47260
|
+
] });
|
47261
|
+
};
|
47262
|
+
const useModelsTab = (evalSpec, evalStats, evalStatus) => {
|
47263
|
+
return reactExports.useMemo(() => {
|
47264
|
+
return {
|
47265
|
+
id: kLogViewModelsTabId,
|
47266
|
+
label: "Models",
|
47267
|
+
scrollable: true,
|
47268
|
+
component: ModelTab,
|
47269
|
+
componentProps: {
|
47270
|
+
evalSpec,
|
47271
|
+
evalStats,
|
47272
|
+
evalStatus
|
47273
|
+
}
|
47274
|
+
};
|
47275
|
+
}, [evalSpec, evalStats]);
|
47276
|
+
};
|
47277
|
+
const ModelTab = ({
|
47278
|
+
evalSpec,
|
47279
|
+
evalStats,
|
47280
|
+
evalStatus
|
47281
|
+
}) => {
|
47282
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { padding: "0.5em 1em 0 1em", width: "100%" }, children: [
|
47283
|
+
evalSpec ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelCard, { evalSpec }) : void 0,
|
47284
|
+
evalStatus !== "started" && (evalStats == null ? void 0 : evalStats.model_usage) && Object.keys(evalStats.model_usage).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(UsageCard, { stats: evalStats })
|
47285
|
+
] }) });
|
47457
47286
|
};
|
47458
47287
|
function escapeSelector(id) {
|
47459
47288
|
return id.replace(/([ #.;,?!+*~'":^$[\]()=>|/\\])/g, "\\$1");
|
47460
47289
|
}
|
47461
47290
|
const panel$2 = "_panel_twp3v_1";
|
47462
47291
|
const container$9 = "_container_twp3v_7";
|
47463
|
-
const styles$
|
47292
|
+
const styles$D = {
|
47464
47293
|
panel: panel$2,
|
47465
47294
|
container: container$9
|
47466
47295
|
};
|
47467
47296
|
const NoContentsPanel = ({ text: text2 }) => {
|
47468
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
47297
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$D.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$D.container, "text-size-smaller"), children: [
|
47469
47298
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.noSamples }),
|
47470
47299
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: text2 })
|
47471
47300
|
] }) });
|
@@ -50589,7 +50418,7 @@ self.onmessage = function (e) {
|
|
50589
50418
|
const subtle = "_subtle_1rer0_36";
|
50590
50419
|
const primary = "_primary_1rer0_40";
|
50591
50420
|
const visuallyHidden = "_visuallyHidden_1rer0_59";
|
50592
|
-
const styles$
|
50421
|
+
const styles$C = {
|
50593
50422
|
container: container$8,
|
50594
50423
|
dotsContainer,
|
50595
50424
|
small,
|
@@ -50610,29 +50439,29 @@ self.onmessage = function (e) {
|
|
50610
50439
|
"div",
|
50611
50440
|
{
|
50612
50441
|
className: clsx(
|
50613
|
-
styles$
|
50614
|
-
size === "small" ? styles$
|
50442
|
+
styles$C.container,
|
50443
|
+
size === "small" ? styles$C.small : size === "medium" ? styles$C.medium : styles$C.large
|
50615
50444
|
),
|
50616
50445
|
role: "status",
|
50617
50446
|
children: [
|
50618
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
50447
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$C.dotsContainer, children: [...Array(dotsCount)].map((_, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
50619
50448
|
"div",
|
50620
50449
|
{
|
50621
50450
|
className: clsx(
|
50622
|
-
styles$
|
50623
|
-
subtle2 ? styles$
|
50451
|
+
styles$C.dot,
|
50452
|
+
subtle2 ? styles$C.subtle : styles$C.primary
|
50624
50453
|
),
|
50625
50454
|
style: { animationDelay: `${index2 * 0.15}s` }
|
50626
50455
|
},
|
50627
50456
|
index2
|
50628
50457
|
)) }),
|
50629
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$
|
50458
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$C.visuallyHidden, children: text2 })
|
50630
50459
|
]
|
50631
50460
|
}
|
50632
50461
|
);
|
50633
50462
|
};
|
50634
50463
|
const progressContainer = "_progressContainer_1cjjr_1";
|
50635
|
-
const styles$
|
50464
|
+
const styles$B = {
|
50636
50465
|
progressContainer
|
50637
50466
|
};
|
50638
50467
|
const LiveVirtualList = ({
|
@@ -50710,7 +50539,7 @@ self.onmessage = function (e) {
|
|
50710
50539
|
const [, forceRender] = reactExports.useState({});
|
50711
50540
|
const forceUpdate = reactExports.useCallback(() => forceRender({}), []);
|
50712
50541
|
const Footer = () => {
|
50713
|
-
return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
50542
|
+
return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
|
50714
50543
|
};
|
50715
50544
|
reactExports.useEffect(() => {
|
50716
50545
|
const parent = scrollRef == null ? void 0 : scrollRef.current;
|
@@ -50791,7 +50620,7 @@ self.onmessage = function (e) {
|
|
50791
50620
|
const noTop = "_noTop_1p5e1_31";
|
50792
50621
|
const timePanel = "_timePanel_1p5e1_35";
|
50793
50622
|
const chat = "_chat_1p5e1_43";
|
50794
|
-
const styles$
|
50623
|
+
const styles$A = {
|
50795
50624
|
tabPanel,
|
50796
50625
|
fullWidth: fullWidth$1,
|
50797
50626
|
metadataPanel,
|
@@ -50805,7 +50634,7 @@ self.onmessage = function (e) {
|
|
50805
50634
|
const flatBody = "_flatBody_1uw6w_1";
|
50806
50635
|
const iconSmall$1 = "_iconSmall_1uw6w_9";
|
50807
50636
|
const lineBase = "_lineBase_1uw6w_15";
|
50808
|
-
const styles$
|
50637
|
+
const styles$z = {
|
50809
50638
|
flatBody,
|
50810
50639
|
iconSmall: iconSmall$1,
|
50811
50640
|
lineBase
|
@@ -50820,23 +50649,23 @@ self.onmessage = function (e) {
|
|
50820
50649
|
return "Error";
|
50821
50650
|
};
|
50822
50651
|
const FlatSampleError = ({ message: message2 }) => {
|
50823
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
50824
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$
|
50825
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
50652
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$z.flatBody), children: [
|
50653
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$z.iconSmall) }),
|
50654
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.lineBase, "text-truncate"), children: errorType(message2) })
|
50826
50655
|
] });
|
50827
50656
|
};
|
50828
50657
|
const target = "_target_1s9n0_1";
|
50829
50658
|
const answer = "_answer_1s9n0_5";
|
50830
|
-
const grid$
|
50659
|
+
const grid$3 = "_grid_1s9n0_9";
|
50831
50660
|
const centerLabel = "_centerLabel_1s9n0_17";
|
50832
50661
|
const centerValue = "_centerValue_1s9n0_22";
|
50833
50662
|
const wrap = "_wrap_1s9n0_27";
|
50834
50663
|
const titled = "_titled_1s9n0_31";
|
50835
50664
|
const value = "_value_1s9n0_35";
|
50836
|
-
const styles$
|
50665
|
+
const styles$y = {
|
50837
50666
|
target,
|
50838
50667
|
answer,
|
50839
|
-
grid: grid$
|
50668
|
+
grid: grid$3,
|
50840
50669
|
centerLabel,
|
50841
50670
|
centerValue,
|
50842
50671
|
wrap,
|
@@ -50912,7 +50741,7 @@ self.onmessage = function (e) {
|
|
50912
50741
|
MarkdownDiv,
|
50913
50742
|
{
|
50914
50743
|
markdown: arrayToString((fields == null ? void 0 : fields.target) || "none"),
|
50915
|
-
className: clsx("no-last-para-padding", styles$
|
50744
|
+
className: clsx("no-last-para-padding", styles$y.target)
|
50916
50745
|
}
|
50917
50746
|
),
|
50918
50747
|
size: `minmax(auto, 3fr)`,
|
@@ -50926,7 +50755,7 @@ self.onmessage = function (e) {
|
|
50926
50755
|
MarkdownDiv,
|
50927
50756
|
{
|
50928
50757
|
markdown: fields.answer || "",
|
50929
|
-
className: clsx("no-last-para-padding", styles$
|
50758
|
+
className: clsx("no-last-para-padding", styles$y.answer)
|
50930
50759
|
}
|
50931
50760
|
) : "",
|
50932
50761
|
size: `minmax(auto, 5fr)`,
|
@@ -50974,7 +50803,7 @@ self.onmessage = function (e) {
|
|
50974
50803
|
"div",
|
50975
50804
|
{
|
50976
50805
|
id: `sample-heading-${parent_id}`,
|
50977
|
-
className: clsx(styles$
|
50806
|
+
className: clsx(styles$y.grid, "text-size-base"),
|
50978
50807
|
style: {
|
50979
50808
|
gridTemplateColumns: `${columns.map((col) => {
|
50980
50809
|
return col.size;
|
@@ -50989,8 +50818,8 @@ self.onmessage = function (e) {
|
|
50989
50818
|
"text-style-label",
|
50990
50819
|
"text-style-secondary",
|
50991
50820
|
"text-size-base",
|
50992
|
-
col.title ? styles$
|
50993
|
-
col.center ? styles$
|
50821
|
+
col.title ? styles$y.titled : void 0,
|
50822
|
+
col.center ? styles$y.centerLabel : void 0
|
50994
50823
|
),
|
50995
50824
|
title: col.title,
|
50996
50825
|
children: col.label
|
@@ -51003,10 +50832,10 @@ self.onmessage = function (e) {
|
|
51003
50832
|
"div",
|
51004
50833
|
{
|
51005
50834
|
className: clsx(
|
51006
|
-
styles$
|
51007
|
-
styles$
|
50835
|
+
styles$y.value,
|
50836
|
+
styles$y.wrap,
|
51008
50837
|
col.clamp ? "three-line-clamp" : void 0,
|
51009
|
-
col.center ? styles$
|
50838
|
+
col.center ? styles$y.centerValue : void 0
|
51010
50839
|
),
|
51011
50840
|
children: col.value
|
51012
50841
|
},
|
@@ -51035,7 +50864,7 @@ self.onmessage = function (e) {
|
|
51035
50864
|
const separator$2 = "_separator_8i3m0_25";
|
51036
50865
|
const separatorPadded = "_separatorPadded_8i3m0_30";
|
51037
50866
|
const headerSep = "_headerSep_8i3m0_35";
|
51038
|
-
const styles$
|
50867
|
+
const styles$x = {
|
51039
50868
|
container: container$7,
|
51040
50869
|
cell: cell$1,
|
51041
50870
|
fullWidth,
|
@@ -51051,7 +50880,7 @@ self.onmessage = function (e) {
|
|
51051
50880
|
if (!evalDescriptor) {
|
51052
50881
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(EmptyPanel, { children: "No Sample Selected" });
|
51053
50882
|
}
|
51054
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2, styles$
|
50883
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2, styles$x.container), children: [
|
51055
50884
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51056
50885
|
"div",
|
51057
50886
|
{
|
@@ -51099,7 +50928,7 @@ self.onmessage = function (e) {
|
|
51099
50928
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51100
50929
|
"div",
|
51101
50930
|
{
|
51102
|
-
className: clsx(styles$
|
50931
|
+
className: clsx(styles$x.separator, styles$x.fullWidth, styles$x.headerSep)
|
51103
50932
|
}
|
51104
50933
|
),
|
51105
50934
|
Object.keys(evalSample.scores || {}).map((scorer2) => {
|
@@ -51111,16 +50940,16 @@ self.onmessage = function (e) {
|
|
51111
50940
|
const answer2 = scoreData.answer;
|
51112
50941
|
let metadata2 = scoreData.metadata || {};
|
51113
50942
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
51114
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$
|
51115
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51116
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
50943
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$x.cell), children: scorer2 }),
|
50944
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.cell, "text-size-base"), children: answer2 }),
|
50945
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.cell, "text-size-base"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51117
50946
|
SampleScores,
|
51118
50947
|
{
|
51119
50948
|
sample: evalSample,
|
51120
50949
|
scorer: scorer2
|
51121
50950
|
}
|
51122
50951
|
) }),
|
51123
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$
|
50952
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$x.cell), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: explanation2 }) }),
|
51124
50953
|
Object.keys(metadata2).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
51125
50954
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51126
50955
|
"div",
|
@@ -51129,19 +50958,19 @@ self.onmessage = function (e) {
|
|
51129
50958
|
"text-size-smaller",
|
51130
50959
|
"text-style-label",
|
51131
50960
|
"text-style-secondary",
|
51132
|
-
styles$
|
50961
|
+
styles$x.fullWidth
|
51133
50962
|
),
|
51134
50963
|
children: "Metadata"
|
51135
50964
|
}
|
51136
50965
|
),
|
51137
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
50966
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: metadata2 }) }),
|
51138
50967
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51139
50968
|
"div",
|
51140
50969
|
{
|
51141
50970
|
className: clsx(
|
51142
|
-
styles$
|
51143
|
-
styles$
|
51144
|
-
styles$
|
50971
|
+
styles$x.separator,
|
50972
|
+
styles$x.separatorPadded,
|
50973
|
+
styles$x.fullWidth
|
51145
50974
|
)
|
51146
50975
|
}
|
51147
50976
|
)
|
@@ -51154,7 +50983,7 @@ self.onmessage = function (e) {
|
|
51154
50983
|
const wordBreak = "_wordBreak_w4jj8_15";
|
51155
50984
|
const scoreCard = "_scoreCard_w4jj8_56";
|
51156
50985
|
const scores = "_scores_w4jj8_60";
|
51157
|
-
const styles$
|
50986
|
+
const styles$w = {
|
51158
50987
|
container: container$6,
|
51159
50988
|
wordBreak,
|
51160
50989
|
scoreCard,
|
@@ -51187,9 +51016,9 @@ self.onmessage = function (e) {
|
|
51187
51016
|
"container-fluid",
|
51188
51017
|
className2,
|
51189
51018
|
"font-size-base",
|
51190
|
-
styles$
|
51019
|
+
styles$w.container
|
51191
51020
|
),
|
51192
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: clsx(styles$
|
51021
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: clsx(styles$w.scoreCard), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
|
51193
51022
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51194
51023
|
"div",
|
51195
51024
|
{
|
@@ -51211,7 +51040,7 @@ self.onmessage = function (e) {
|
|
51211
51040
|
MarkdownDiv,
|
51212
51041
|
{
|
51213
51042
|
markdown: scoreInput.join("\n"),
|
51214
|
-
className: clsx(styles$
|
51043
|
+
className: clsx(styles$w.wordBreak, "text-size-base")
|
51215
51044
|
}
|
51216
51045
|
)
|
51217
51046
|
}
|
@@ -51220,7 +51049,7 @@ self.onmessage = function (e) {
|
|
51220
51049
|
SampleScoresGrid,
|
51221
51050
|
{
|
51222
51051
|
evalSample: sample2,
|
51223
|
-
className: clsx(styles$
|
51052
|
+
className: clsx(styles$w.scores)
|
51224
51053
|
}
|
51225
51054
|
)
|
51226
51055
|
] }) })
|
@@ -51229,7 +51058,7 @@ self.onmessage = function (e) {
|
|
51229
51058
|
};
|
51230
51059
|
const title$2 = "_title_19l1b_1";
|
51231
51060
|
const contents = "_contents_19l1b_8";
|
51232
|
-
const styles$
|
51061
|
+
const styles$v = {
|
51233
51062
|
title: title$2,
|
51234
51063
|
contents
|
51235
51064
|
};
|
@@ -51239,12 +51068,12 @@ self.onmessage = function (e) {
|
|
51239
51068
|
className: className2,
|
51240
51069
|
children: children2
|
51241
51070
|
}) => {
|
51242
|
-
const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$
|
51071
|
+
const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$v.title, className2), children: [
|
51243
51072
|
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: icon2 || ApplicationIcons.metadata }),
|
51244
51073
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: title2 }),
|
51245
51074
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: children2 })
|
51246
51075
|
] }) : "";
|
51247
|
-
const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$
|
51076
|
+
const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$v.contents), children: contentEl });
|
51248
51077
|
return card2;
|
51249
51078
|
};
|
51250
51079
|
const ApprovalEventView = ({
|
@@ -51294,7 +51123,7 @@ self.onmessage = function (e) {
|
|
51294
51123
|
}
|
51295
51124
|
};
|
51296
51125
|
const tab = "_tab_1je38_1";
|
51297
|
-
const styles$
|
51126
|
+
const styles$u = {
|
51298
51127
|
tab
|
51299
51128
|
};
|
51300
51129
|
const EventNav = ({
|
@@ -51319,7 +51148,7 @@ self.onmessage = function (e) {
|
|
51319
51148
|
active2 ? "active " : "",
|
51320
51149
|
"text-style-label",
|
51321
51150
|
"text-size-small",
|
51322
|
-
styles$
|
51151
|
+
styles$u.tab
|
51323
51152
|
),
|
51324
51153
|
onClick: handleClick,
|
51325
51154
|
children: title2
|
@@ -51327,7 +51156,7 @@ self.onmessage = function (e) {
|
|
51327
51156
|
) });
|
51328
51157
|
};
|
51329
51158
|
const navs$1 = "_navs_1vm6p_1";
|
51330
|
-
const styles$
|
51159
|
+
const styles$t = {
|
51331
51160
|
navs: navs$1
|
51332
51161
|
};
|
51333
51162
|
const EventNavs = ({
|
@@ -51338,7 +51167,7 @@ self.onmessage = function (e) {
|
|
51338
51167
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51339
51168
|
"ul",
|
51340
51169
|
{
|
51341
|
-
className: clsx("nav", "nav-pills", styles$
|
51170
|
+
className: clsx("nav", "nav-pills", styles$t.navs),
|
51342
51171
|
role: "tablist",
|
51343
51172
|
"aria-orientation": "horizontal",
|
51344
51173
|
children: navs2.map((nav2) => {
|
@@ -51361,7 +51190,7 @@ self.onmessage = function (e) {
|
|
51361
51190
|
const card = "_card_7z797_12";
|
51362
51191
|
const cardContent = "_cardContent_7z797_18";
|
51363
51192
|
const hidden$1 = "_hidden_7z797_23";
|
51364
|
-
const styles$
|
51193
|
+
const styles$s = {
|
51365
51194
|
label: label$4,
|
51366
51195
|
navs,
|
51367
51196
|
card,
|
@@ -51449,12 +51278,12 @@ self.onmessage = function (e) {
|
|
51449
51278
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51450
51279
|
"div",
|
51451
51280
|
{
|
51452
|
-
className: clsx("text-style-secondary", styles$
|
51281
|
+
className: clsx("text-style-secondary", styles$s.label),
|
51453
51282
|
onClick: toggleCollapse,
|
51454
51283
|
children: isCollapsed ? text2 : ""
|
51455
51284
|
}
|
51456
51285
|
),
|
51457
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
51286
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$s.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51458
51287
|
EventNavs,
|
51459
51288
|
{
|
51460
51289
|
navs: filteredArrChildren.map((child, index2) => {
|
@@ -51474,15 +51303,15 @@ self.onmessage = function (e) {
|
|
51474
51303
|
}
|
51475
51304
|
) : "";
|
51476
51305
|
const card2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
51477
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$
|
51306
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$s.card), children: [
|
51478
51307
|
titleEl,
|
51479
51308
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51480
51309
|
"div",
|
51481
51310
|
{
|
51482
51311
|
className: clsx(
|
51483
51312
|
"tab-content",
|
51484
|
-
styles$
|
51485
|
-
hasCollapse && isCollapsed ? styles$
|
51313
|
+
styles$s.cardContent,
|
51314
|
+
hasCollapse && isCollapsed ? styles$s.hidden : void 0
|
51486
51315
|
),
|
51487
51316
|
children: filteredArrChildren == null ? void 0 : filteredArrChildren.map((child, index2) => {
|
51488
51317
|
const id2 = pillId(index2);
|
@@ -51534,7 +51363,7 @@ self.onmessage = function (e) {
|
|
51534
51363
|
);
|
51535
51364
|
};
|
51536
51365
|
const panel$1 = "_panel_8zdtn_1";
|
51537
|
-
const styles$
|
51366
|
+
const styles$r = {
|
51538
51367
|
panel: panel$1
|
51539
51368
|
};
|
51540
51369
|
const InfoEventView = ({
|
@@ -51544,9 +51373,9 @@ self.onmessage = function (e) {
|
|
51544
51373
|
}) => {
|
51545
51374
|
const panels = [];
|
51546
51375
|
if (typeof event.data === "string") {
|
51547
|
-
panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$
|
51376
|
+
panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$r.panel }));
|
51548
51377
|
} else {
|
51549
|
-
panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$
|
51378
|
+
panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$r.panel }));
|
51550
51379
|
}
|
51551
51380
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51552
51381
|
EventPanel,
|
@@ -51583,9 +51412,9 @@ self.onmessage = function (e) {
|
|
51583
51412
|
}
|
51584
51413
|
);
|
51585
51414
|
};
|
51586
|
-
const grid$
|
51587
|
-
const styles$
|
51588
|
-
grid: grid$
|
51415
|
+
const grid$2 = "_grid_1eq5o_1";
|
51416
|
+
const styles$q = {
|
51417
|
+
grid: grid$2
|
51589
51418
|
};
|
51590
51419
|
const LoggerEventView = ({
|
51591
51420
|
event,
|
@@ -51598,7 +51427,7 @@ self.onmessage = function (e) {
|
|
51598
51427
|
className: className2,
|
51599
51428
|
title: event.message.level,
|
51600
51429
|
icon: ApplicationIcons.logging[event.message.level.toLowerCase()],
|
51601
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$
|
51430
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$q.grid), children: [
|
51602
51431
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: obj !== void 0 && obj !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: obj }) : event.message.message }),
|
51603
51432
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", "text-style-secondary"), children: [
|
51604
51433
|
event.message.filename,
|
@@ -51611,7 +51440,7 @@ self.onmessage = function (e) {
|
|
51611
51440
|
};
|
51612
51441
|
const container$5 = "_container_1brs9_1";
|
51613
51442
|
const title$1 = "_title_1brs9_5";
|
51614
|
-
const styles$
|
51443
|
+
const styles$p = {
|
51615
51444
|
container: container$5,
|
51616
51445
|
title: title$1
|
51617
51446
|
};
|
@@ -51620,11 +51449,11 @@ self.onmessage = function (e) {
|
|
51620
51449
|
children: children2,
|
51621
51450
|
className: className2
|
51622
51451
|
}) => {
|
51623
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
51452
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$p.container, className2), children: [
|
51624
51453
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51625
51454
|
"div",
|
51626
51455
|
{
|
51627
|
-
className: clsx("text-size-small", "text-style-label", styles$
|
51456
|
+
className: clsx("text-size-small", "text-style-label", styles$p.title),
|
51628
51457
|
children: title2
|
51629
51458
|
}
|
51630
51459
|
),
|
@@ -51639,7 +51468,7 @@ self.onmessage = function (e) {
|
|
51639
51468
|
const progress$1 = "_progress_11njc_34";
|
51640
51469
|
const toolConfig = "_toolConfig_11njc_38";
|
51641
51470
|
const toolChoice = "_toolChoice_11njc_46";
|
51642
|
-
const styles$
|
51471
|
+
const styles$o = {
|
51643
51472
|
container: container$4,
|
51644
51473
|
all,
|
51645
51474
|
tableSelection,
|
@@ -51655,7 +51484,7 @@ self.onmessage = function (e) {
|
|
51655
51484
|
const col3 = "_col3_45f60_16";
|
51656
51485
|
const separator$1 = "_separator_45f60_20";
|
51657
51486
|
const topMargin = "_topMargin_45f60_26";
|
51658
|
-
const styles$
|
51487
|
+
const styles$n = {
|
51659
51488
|
wrapper,
|
51660
51489
|
col2,
|
51661
51490
|
col1_3,
|
@@ -51723,9 +51552,9 @@ self.onmessage = function (e) {
|
|
51723
51552
|
});
|
51724
51553
|
}
|
51725
51554
|
}
|
51726
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$
|
51555
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$n.wrapper), children: rows.map((row2, idx) => {
|
51727
51556
|
if (row2.label === "---") {
|
51728
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
51557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.separator }, `$usage-sep-${idx}`);
|
51729
51558
|
} else {
|
51730
51559
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
51731
51560
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -51734,13 +51563,13 @@ self.onmessage = function (e) {
|
|
51734
51563
|
className: clsx(
|
51735
51564
|
"text-style-label",
|
51736
51565
|
"text-style-secondary",
|
51737
|
-
row2.secondary ? styles$
|
51738
|
-
row2.topMargin ? styles$
|
51566
|
+
row2.secondary ? styles$n.col2 : styles$n.col1_3,
|
51567
|
+
row2.topMargin ? styles$n.topMargin : void 0
|
51739
51568
|
),
|
51740
51569
|
children: row2.label
|
51741
51570
|
}
|
51742
51571
|
),
|
51743
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
51572
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.col3, children: row2.value ? row2.value : "" })
|
51744
51573
|
] }, `$usage-row-${idx}`);
|
51745
51574
|
}
|
51746
51575
|
}) });
|
@@ -51795,7 +51624,7 @@ self.onmessage = function (e) {
|
|
51795
51624
|
subTitle: formatTiming(event.timestamp, event.working_start),
|
51796
51625
|
icon: ApplicationIcons.model,
|
51797
51626
|
children: [
|
51798
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$
|
51627
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$o.container, children: [
|
51799
51628
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
51800
51629
|
ChatView,
|
51801
51630
|
{
|
@@ -51805,20 +51634,20 @@ self.onmessage = function (e) {
|
|
51805
51634
|
toolCallStyle: "omit"
|
51806
51635
|
}
|
51807
51636
|
),
|
51808
|
-
event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51637
|
+
event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
|
51809
51638
|
] }),
|
51810
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$
|
51811
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
51639
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$o.container, children: [
|
51640
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o.all, children: [
|
51812
51641
|
Object.keys(entries).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51813
51642
|
EventSection,
|
51814
51643
|
{
|
51815
51644
|
title: "Configuration",
|
51816
|
-
className: styles$
|
51645
|
+
className: styles$o.tableSelection,
|
51817
51646
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true })
|
51818
51647
|
}
|
51819
51648
|
),
|
51820
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$
|
51821
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$
|
51649
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$o.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
|
51650
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$o.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51822
51651
|
EventTimingPanel,
|
51823
51652
|
{
|
51824
51653
|
timestamp: event.timestamp,
|
@@ -51836,13 +51665,13 @@ self.onmessage = function (e) {
|
|
51836
51665
|
}
|
51837
51666
|
) })
|
51838
51667
|
] }),
|
51839
|
-
event.tools.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Tools", className: styles$
|
51668
|
+
event.tools.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Tools", className: styles$o.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools, toolChoice: event.tool_choice }) }),
|
51840
51669
|
event.call ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51841
51670
|
APIView,
|
51842
51671
|
{
|
51843
51672
|
"data-name": "API",
|
51844
51673
|
call: event.call,
|
51845
|
-
className: styles$
|
51674
|
+
className: styles$o.container
|
51846
51675
|
}
|
51847
51676
|
) : ""
|
51848
51677
|
]
|
@@ -51866,11 +51695,11 @@ self.onmessage = function (e) {
|
|
51866
51695
|
if (!contents2) {
|
51867
51696
|
return null;
|
51868
51697
|
}
|
51869
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
51698
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$o.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
51870
51699
|
"code",
|
51871
51700
|
{
|
51872
51701
|
id,
|
51873
|
-
className: clsx("language-json", styles$
|
51702
|
+
className: clsx("language-json", styles$o.code, "text-size-small"),
|
51874
51703
|
children: sourceCode
|
51875
51704
|
}
|
51876
51705
|
) }) });
|
@@ -51883,8 +51712,8 @@ self.onmessage = function (e) {
|
|
51883
51712
|
] }, `${tool2.name}-${idx}`);
|
51884
51713
|
});
|
51885
51714
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
51886
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
51887
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
51715
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$o.toolConfig, children: toolEls }),
|
51716
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o.toolChoice, children: [
|
51888
51717
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Tool Choice" }),
|
51889
51718
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolChoiceView, { toolChoice: toolChoice2 }) })
|
51890
51719
|
] })
|
@@ -51906,7 +51735,7 @@ self.onmessage = function (e) {
|
|
51906
51735
|
const sample = "_sample_1a3fk_10";
|
51907
51736
|
const section = "_section_1a3fk_14";
|
51908
51737
|
const metadata$1 = "_metadata_1a3fk_21";
|
51909
|
-
const styles$
|
51738
|
+
const styles$m = {
|
51910
51739
|
noMargin,
|
51911
51740
|
code: code$1,
|
51912
51741
|
sample,
|
@@ -51923,13 +51752,13 @@ self.onmessage = function (e) {
|
|
51923
51752
|
if (event.sample.files && Object.keys(event.sample.files).length > 0) {
|
51924
51753
|
sections.push(
|
51925
51754
|
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Files", children: Object.keys(event.sample.files).map((file) => {
|
51926
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$
|
51755
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$m.noMargin, children: file }, `sample-init-file-${file}`);
|
51927
51756
|
}) }, `sample-${id}-init-files`)
|
51928
51757
|
);
|
51929
51758
|
}
|
51930
51759
|
if (event.sample.setup) {
|
51931
51760
|
sections.push(
|
51932
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$
|
51761
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$m.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
|
51933
51762
|
);
|
51934
51763
|
}
|
51935
51764
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
@@ -51941,7 +51770,7 @@ self.onmessage = function (e) {
|
|
51941
51770
|
icon: ApplicationIcons.sample,
|
51942
51771
|
subTitle: formatDateTime(new Date(event.timestamp)),
|
51943
51772
|
children: [
|
51944
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$
|
51773
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$m.sample, children: [
|
51945
51774
|
/* @__PURE__ */ jsxRuntimeExports.jsx(ChatView, { messages: stateObj["messages"] }),
|
51946
51775
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
51947
51776
|
event.sample.choices ? event.sample.choices.map((choice, index2) => {
|
@@ -51951,7 +51780,7 @@ self.onmessage = function (e) {
|
|
51951
51780
|
choice
|
51952
51781
|
] }, `$choice-{choice}`);
|
51953
51782
|
}) : "",
|
51954
|
-
sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
51783
|
+
sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$m.section, children: sections }) : "",
|
51955
51784
|
event.sample.target ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Target", children: toArray(event.sample.target).map((target2) => {
|
51956
51785
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: target2 }, target2);
|
51957
51786
|
}) }) : void 0
|
@@ -51961,7 +51790,7 @@ self.onmessage = function (e) {
|
|
51961
51790
|
MetaDataGrid,
|
51962
51791
|
{
|
51963
51792
|
"data-name": "Metadata",
|
51964
|
-
className: styles$
|
51793
|
+
className: styles$m.metadata,
|
51965
51794
|
entries: event.sample.metadata
|
51966
51795
|
}
|
51967
51796
|
) : ""
|
@@ -52015,7 +51844,7 @@ self.onmessage = function (e) {
|
|
52015
51844
|
const result = "_result_iwnfd_19";
|
52016
51845
|
const fileLabel = "_fileLabel_iwnfd_23";
|
52017
51846
|
const wrapPre = "_wrapPre_iwnfd_28";
|
52018
|
-
const styles$
|
51847
|
+
const styles$l = {
|
52019
51848
|
twoColumn,
|
52020
51849
|
exec,
|
52021
51850
|
result,
|
@@ -52048,10 +51877,10 @@ self.onmessage = function (e) {
|
|
52048
51877
|
const input2 = event.input;
|
52049
51878
|
const result2 = event.result;
|
52050
51879
|
const output2 = event.output;
|
52051
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
52052
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
52053
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
52054
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
51880
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.exec), children: [
|
51881
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.twoColumn), children: [
|
51882
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.wrapPre), children: cmd2 }),
|
51883
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.wrapPre), children: input2 !== null ? input2 == null ? void 0 : input2.trim() : void 0 }),
|
52055
51884
|
options2 !== null && Object.keys(options2).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Options`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
52056
51885
|
MetaDataGrid,
|
52057
51886
|
{
|
@@ -52062,7 +51891,7 @@ self.onmessage = function (e) {
|
|
52062
51891
|
] }) }),
|
52063
51892
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(EventSection, { title: `Result`, children: [
|
52064
51893
|
output2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id}-output`, collapse: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: output2 }) }) : void 0,
|
52065
|
-
result2 !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
51894
|
+
result2 !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.result), children: [
|
52066
51895
|
"Exited with code ",
|
52067
51896
|
result2
|
52068
51897
|
] }) : void 0
|
@@ -52087,14 +51916,14 @@ self.onmessage = function (e) {
|
|
52087
51916
|
};
|
52088
51917
|
const FileView = ({ id, file, contents: contents2 }) => {
|
52089
51918
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
52090
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$
|
51919
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.fileLabel), children: file }) }),
|
52091
51920
|
contents2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Contents", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id}-file`, collapse: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { children: contents2 }) }) }) : void 0
|
52092
51921
|
] });
|
52093
51922
|
};
|
52094
51923
|
const explanation = "_explanation_1ww42_1";
|
52095
51924
|
const separator = "_separator_1ww42_8";
|
52096
51925
|
const metadata = "_metadata_1ww42_13";
|
52097
|
-
const styles$
|
51926
|
+
const styles$k = {
|
52098
51927
|
explanation,
|
52099
51928
|
separator,
|
52100
51929
|
metadata
|
@@ -52114,28 +51943,28 @@ self.onmessage = function (e) {
|
|
52114
51943
|
subTitle: formatDateTime(new Date(event.timestamp)),
|
52115
51944
|
icon: ApplicationIcons.scorer,
|
52116
51945
|
children: [
|
52117
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$
|
51946
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$k.explanation), children: [
|
52118
51947
|
event.target ? /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
52119
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51948
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
|
52120
51949
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Target" }),
|
52121
51950
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: resolvedTarget || "" }) })
|
52122
51951
|
] }) : "",
|
52123
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51952
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
|
52124
51953
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
|
52125
51954
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.answer || "" }) }),
|
52126
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51955
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
|
52127
51956
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
|
52128
51957
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.explanation || "" }) }),
|
52129
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51958
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
|
52130
51959
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Score" }),
|
52131
51960
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.score.value) }),
|
52132
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
51961
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) })
|
52133
51962
|
] }),
|
52134
51963
|
event.score.metadata ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Metadata", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
52135
51964
|
MetaDataGrid,
|
52136
51965
|
{
|
52137
51966
|
entries: event.score.metadata,
|
52138
|
-
className: styles$
|
51967
|
+
className: styles$k.metadata
|
52139
51968
|
}
|
52140
51969
|
) }) : void 0
|
52141
51970
|
]
|
@@ -58880,7 +58709,7 @@ ${events}
|
|
58880
58709
|
const lightboxButtonCloseWrapper = "_lightboxButtonCloseWrapper_1mvg8_45";
|
58881
58710
|
const lightboxButtonClose = "_lightboxButtonClose_1mvg8_45";
|
58882
58711
|
const lightboxPreviewButton = "_lightboxPreviewButton_1mvg8_63";
|
58883
|
-
const styles$
|
58712
|
+
const styles$j = {
|
58884
58713
|
carouselThumbs,
|
58885
58714
|
carouselThumb,
|
58886
58715
|
carouselPlayIcon,
|
@@ -58949,12 +58778,12 @@ ${events}
|
|
58949
58778
|
[openLightbox]
|
58950
58779
|
);
|
58951
58780
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("lightbox-carousel-container"), children: [
|
58952
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
58781
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.carouselThumbs), children: slides.map((slide, index2) => {
|
58953
58782
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
58954
58783
|
"div",
|
58955
58784
|
{
|
58956
58785
|
"data-index": index2,
|
58957
|
-
className: clsx(styles$
|
58786
|
+
className: clsx(styles$j.carouselThumb),
|
58958
58787
|
onClick: handleThumbClick,
|
58959
58788
|
children: [
|
58960
58789
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: slide.label }),
|
@@ -58963,7 +58792,7 @@ ${events}
|
|
58963
58792
|
{
|
58964
58793
|
className: clsx(
|
58965
58794
|
ApplicationIcons.play,
|
58966
|
-
styles$
|
58795
|
+
styles$j.carouselPlayIcon
|
58967
58796
|
)
|
58968
58797
|
}
|
58969
58798
|
) })
|
@@ -58975,12 +58804,12 @@ ${events}
|
|
58975
58804
|
showOverlay && /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
58976
58805
|
"div",
|
58977
58806
|
{
|
58978
|
-
className: clsx(styles$
|
58807
|
+
className: clsx(styles$j.lightboxOverlay, isOpen ? "open" : "closed"),
|
58979
58808
|
children: [
|
58980
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
58809
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
58981
58810
|
"button",
|
58982
58811
|
{
|
58983
|
-
className: styles$
|
58812
|
+
className: styles$j.lightboxButtonClose,
|
58984
58813
|
onClick: closeLightbox,
|
58985
58814
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
|
58986
58815
|
}
|
@@ -58988,7 +58817,7 @@ ${events}
|
|
58988
58817
|
slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
58989
58818
|
"button",
|
58990
58819
|
{
|
58991
|
-
className: clsx(styles$
|
58820
|
+
className: clsx(styles$j.lightboxPreviewButton, "prev"),
|
58992
58821
|
onClick: showPrev,
|
58993
58822
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.previous })
|
58994
58823
|
}
|
@@ -58996,7 +58825,7 @@ ${events}
|
|
58996
58825
|
slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
58997
58826
|
"button",
|
58998
58827
|
{
|
58999
|
-
className: clsx(styles$
|
58828
|
+
className: clsx(styles$j.lightboxPreviewButton, "next"),
|
59000
58829
|
onClick: showNext,
|
59001
58830
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.next })
|
59002
58831
|
}
|
@@ -59004,7 +58833,7 @@ ${events}
|
|
59004
58833
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
59005
58834
|
"div",
|
59006
58835
|
{
|
59007
|
-
className: clsx(styles$
|
58836
|
+
className: clsx(styles$j.lightboxContent, isOpen ? "open" : "closed"),
|
59008
58837
|
children: slides[currentIndex].render()
|
59009
58838
|
},
|
59010
58839
|
`carousel-slide-${currentIndex}`
|
@@ -59115,7 +58944,7 @@ ${events}
|
|
59115
58944
|
const toolsGrid = "_toolsGrid_1qqm2_1";
|
59116
58945
|
const tools = "_tools_1qqm2_1";
|
59117
58946
|
const tool = "_tool_1qqm2_1";
|
59118
|
-
const styles$
|
58947
|
+
const styles$i = {
|
59119
58948
|
toolsGrid,
|
59120
58949
|
tools,
|
59121
58950
|
tool
|
@@ -59256,7 +59085,7 @@ ${events}
|
|
59256
59085
|
toolsInfo["Tools"] = /* @__PURE__ */ jsxRuntimeExports.jsx(Tools, { toolDefinitions: filtered });
|
59257
59086
|
}
|
59258
59087
|
}
|
59259
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
59088
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$i.tools), children: Object.keys(toolsInfo).map((key2) => {
|
59260
59089
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
|
59261
59090
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
59262
59091
|
"div",
|
@@ -59309,7 +59138,7 @@ ${events}
|
|
59309
59138
|
human_baseline_session
|
59310
59139
|
];
|
59311
59140
|
const Tools = ({ toolDefinitions }) => {
|
59312
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
59141
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.toolsGrid, children: toolDefinitions.map((toolDefinition, idx) => {
|
59313
59142
|
var _a2;
|
59314
59143
|
const toolName = toolDefinition.name;
|
59315
59144
|
const toolArgs = ((_a2 = toolDefinition.parameters) == null ? void 0 : _a2.properties) ? Object.keys(toolDefinition.parameters.properties) : [];
|
@@ -59325,11 +59154,11 @@ ${events}
|
|
59325
59154
|
};
|
59326
59155
|
const Tool = ({ toolName, toolArgs }) => {
|
59327
59156
|
const functionCall = toolArgs && toolArgs.length > 0 ? `${toolName}(${toolArgs.join(", ")})` : toolName;
|
59328
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$
|
59157
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$i.tool), children: functionCall });
|
59329
59158
|
};
|
59330
59159
|
const diff = "_diff_eobja_1";
|
59331
59160
|
const summary$2 = "_summary_eobja_6";
|
59332
|
-
const styles$
|
59161
|
+
const styles$h = {
|
59333
59162
|
diff,
|
59334
59163
|
summary: summary$2
|
59335
59164
|
};
|
@@ -59367,14 +59196,14 @@ ${events}
|
|
59367
59196
|
text: !changePreview ? summary2 : void 0,
|
59368
59197
|
collapse: changePreview === void 0 ? true : void 0,
|
59369
59198
|
children: [
|
59370
|
-
changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$
|
59199
|
+
changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$h.summary), children: changePreview }) : void 0,
|
59371
59200
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
59372
59201
|
StateDiffView,
|
59373
59202
|
{
|
59374
59203
|
before,
|
59375
59204
|
after,
|
59376
59205
|
"data-name": "Diff",
|
59377
|
-
className: clsx(styles$
|
59206
|
+
className: clsx(styles$h.diff)
|
59378
59207
|
}
|
59379
59208
|
)
|
59380
59209
|
]
|
@@ -59795,7 +59624,7 @@ ${events}
|
|
59795
59624
|
const summaryRendered = "_summaryRendered_ac4z2_6";
|
59796
59625
|
const subtaskSummary = "_subtaskSummary_ac4z2_10";
|
59797
59626
|
const subtaskLabel = "_subtaskLabel_ac4z2_17";
|
59798
|
-
const styles$
|
59627
|
+
const styles$g = {
|
59799
59628
|
summary: summary$1,
|
59800
59629
|
summaryRendered,
|
59801
59630
|
subtaskSummary,
|
@@ -59810,9 +59639,9 @@ ${events}
|
|
59810
59639
|
const body2 = [];
|
59811
59640
|
if (event.type === "fork") {
|
59812
59641
|
body2.push(
|
59813
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$
|
59642
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$g.summary), children: [
|
59814
59643
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Inputs" }),
|
59815
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
59644
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$g.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
|
59816
59645
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Transcript" }),
|
59817
59646
|
event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
59818
59647
|
TranscriptView,
|
@@ -59869,12 +59698,12 @@ ${events}
|
|
59869
59698
|
};
|
59870
59699
|
const SubtaskSummary = ({ input: input2, result: result2 }) => {
|
59871
59700
|
const output2 = typeof result2 === "object" ? result2 : { result: result2 };
|
59872
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
59701
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$g.subtaskSummary), children: [
|
59873
59702
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Input" }),
|
59874
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$
|
59703
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$g.subtaskLabel) }),
|
59875
59704
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Output" }),
|
59876
59705
|
input2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: input2 }) : void 0,
|
59877
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$
|
59706
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$g.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
|
59878
59707
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: output2 }) })
|
59879
59708
|
] });
|
59880
59709
|
};
|
@@ -59899,7 +59728,7 @@ ${events}
|
|
59899
59728
|
const summary = "_summary_1qsnv_1";
|
59900
59729
|
const approval = "_approval_1qsnv_6";
|
59901
59730
|
const progress = "_progress_1qsnv_12";
|
59902
|
-
const styles$
|
59731
|
+
const styles$f = {
|
59903
59732
|
summary,
|
59904
59733
|
approval,
|
59905
59734
|
progress
|
@@ -59934,7 +59763,7 @@ ${events}
|
|
59934
59763
|
subTitle: formatTiming(event.timestamp, event.working_start),
|
59935
59764
|
icon: ApplicationIcons.solvers.use_tools,
|
59936
59765
|
children: [
|
59937
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$
|
59766
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$f.summary, children: [
|
59938
59767
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
59939
59768
|
ToolCallView,
|
59940
59769
|
{
|
@@ -59960,10 +59789,10 @@ ${events}
|
|
59960
59789
|
ApprovalEventView,
|
59961
59790
|
{
|
59962
59791
|
event: approvalEvent,
|
59963
|
-
className: styles$
|
59792
|
+
className: styles$f.approval
|
59964
59793
|
}
|
59965
59794
|
) : "",
|
59966
|
-
event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
59795
|
+
event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$f.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
|
59967
59796
|
] }),
|
59968
59797
|
event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
59969
59798
|
TranscriptView,
|
@@ -59986,7 +59815,7 @@ ${events}
|
|
59986
59815
|
const eventNodeContainer = "_eventNodeContainer_171gc_37";
|
59987
59816
|
const noBottom = "_noBottom_171gc_41";
|
59988
59817
|
const attached$1 = "_attached_171gc_45";
|
59989
|
-
const styles$
|
59818
|
+
const styles$e = {
|
59990
59819
|
transcriptComponent,
|
59991
59820
|
eventNode,
|
59992
59821
|
darkenBg,
|
@@ -59999,7 +59828,7 @@ ${events}
|
|
59999
59828
|
const normalBg = "_normalBg_1sie6_5";
|
60000
59829
|
const node = "_node_1sie6_9";
|
60001
59830
|
const attached = "_attached_1sie6_14";
|
60002
|
-
const styles$
|
59831
|
+
const styles$d = {
|
60003
59832
|
darkenedBg,
|
60004
59833
|
normalBg,
|
60005
59834
|
node,
|
@@ -60007,17 +59836,17 @@ ${events}
|
|
60007
59836
|
};
|
60008
59837
|
const TranscriptVirtualListComponent = ({ id, eventNodes, scrollRef, running: running2 }) => {
|
60009
59838
|
const renderRow = reactExports.useCallback((index2, item2) => {
|
60010
|
-
const bgClass = item2.depth % 2 == 0 ? styles$
|
60011
|
-
const paddingClass = index2 === 0 ? styles$
|
59839
|
+
const bgClass = item2.depth % 2 == 0 ? styles$d.darkenedBg : styles$d.normalBg;
|
59840
|
+
const paddingClass = index2 === 0 ? styles$d.first : void 0;
|
60012
59841
|
const eventId = `${id}-event-${index2}`;
|
60013
59842
|
const previousIndex = index2 - 1;
|
60014
59843
|
const previous = previousIndex > 0 && previousIndex <= eventNodes.length ? eventNodes[previousIndex] : void 0;
|
60015
59844
|
const attached2 = item2.event.event === "tool" && ((previous == null ? void 0 : previous.event.event) === "tool" || (previous == null ? void 0 : previous.event.event) === "model");
|
60016
|
-
const attachedClass = attached2 ? styles$
|
59845
|
+
const attachedClass = attached2 ? styles$d.attached : void 0;
|
60017
59846
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
60018
59847
|
"div",
|
60019
59848
|
{
|
60020
|
-
className: clsx(styles$
|
59849
|
+
className: clsx(styles$d.node, paddingClass, attachedClass),
|
60021
59850
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedEventNode, { id: eventId, node: item2, className: clsx(bgClass) })
|
60022
59851
|
},
|
60023
59852
|
eventId
|
@@ -60107,27 +59936,27 @@ ${events}
|
|
60107
59936
|
let attached2 = false;
|
60108
59937
|
for (let i2 = 0; i2 < eventNodes.length; i2++) {
|
60109
59938
|
const eventNode2 = eventNodes[i2];
|
60110
|
-
const clz = [styles$
|
59939
|
+
const clz = [styles$e.eventNode];
|
60111
59940
|
const containerClz = [];
|
60112
59941
|
if (eventNode2.event.event !== "tool") {
|
60113
59942
|
attached2 = false;
|
60114
59943
|
}
|
60115
59944
|
if (eventNode2.depth % 2 == 0) {
|
60116
|
-
clz.push(styles$
|
59945
|
+
clz.push(styles$e.darkenBg);
|
60117
59946
|
}
|
60118
59947
|
if (i2 === eventNodes.length - 1) {
|
60119
|
-
clz.push(styles$
|
59948
|
+
clz.push(styles$e.lastNode);
|
60120
59949
|
}
|
60121
59950
|
if (attached2) {
|
60122
|
-
containerClz.push(styles$
|
59951
|
+
containerClz.push(styles$e.attached);
|
60123
59952
|
}
|
60124
59953
|
const eventId = `${id}|event|${i2}`;
|
60125
59954
|
const row2 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
60126
59955
|
"div",
|
60127
59956
|
{
|
60128
59957
|
className: clsx(
|
60129
|
-
styles$
|
60130
|
-
i2 === eventNodes.length - 1 ? styles$
|
59958
|
+
styles$e.eventNodeContainer,
|
59959
|
+
i2 === eventNodes.length - 1 ? styles$e.noBottom : void 0,
|
60131
59960
|
containerClz
|
60132
59961
|
),
|
60133
59962
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -60150,7 +59979,7 @@ ${events}
|
|
60150
59979
|
"div",
|
60151
59980
|
{
|
60152
59981
|
id,
|
60153
|
-
className: clsx("text-size-small", styles$
|
59982
|
+
className: clsx("text-size-small", styles$e.transcriptComponent),
|
60154
59983
|
children: rows
|
60155
59984
|
}
|
60156
59985
|
);
|
@@ -60320,7 +60149,7 @@ ${events}
|
|
60320
60149
|
{
|
60321
60150
|
id: tabsetId,
|
60322
60151
|
tabControlsClassName: clsx("text-size-base"),
|
60323
|
-
tabPanelsClassName: clsx(styles$
|
60152
|
+
tabPanelsClassName: clsx(styles$A.tabPanel),
|
60324
60153
|
tools: tools2,
|
60325
60154
|
children: [
|
60326
60155
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -60349,7 +60178,7 @@ ${events}
|
|
60349
60178
|
TabPanel,
|
60350
60179
|
{
|
60351
60180
|
id: kSampleMessagesTabId,
|
60352
|
-
className: clsx("sample-tab", styles$
|
60181
|
+
className: clsx("sample-tab", styles$A.fullWidth, styles$A.chat),
|
60353
60182
|
title: "Messages",
|
60354
60183
|
onSelected: onSelectedTab,
|
60355
60184
|
selected: effectiveSelectedTab === kSampleMessagesTabId,
|
@@ -60389,7 +60218,7 @@ ${events}
|
|
60389
60218
|
title: "Metadata",
|
60390
60219
|
onSelected: onSelectedTab,
|
60391
60220
|
selected: effectiveSelectedTab === kSampleMetdataTabId,
|
60392
|
-
children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
60221
|
+
children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.metadataPanel), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No metadata" })
|
60393
60222
|
}
|
60394
60223
|
),
|
60395
60224
|
(sample2 == null ? void 0 : sample2.error) || (sample2 == null ? void 0 : sample2.error_retries) && (sample2 == null ? void 0 : sample2.error_retries.length) > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -60400,14 +60229,14 @@ ${events}
|
|
60400
60229
|
title: "Errors",
|
60401
60230
|
onSelected: onSelectedTab,
|
60402
60231
|
selected: effectiveSelectedTab === kSampleErrorTabId,
|
60403
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
60232
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.error), children: [
|
60404
60233
|
(sample2 == null ? void 0 : sample2.error) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
60405
60234
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: `Sample Error` }),
|
60406
60235
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
60407
60236
|
ANSIDisplay,
|
60408
60237
|
{
|
60409
60238
|
output: sample2.error.traceback_ansi,
|
60410
|
-
className: clsx("text-size-small", styles$
|
60239
|
+
className: clsx("text-size-small", styles$A.ansi),
|
60411
60240
|
style: {
|
60412
60241
|
fontSize: "clamp(0.4rem, calc(0.15em + 1vw), 0.8rem)",
|
60413
60242
|
margin: "0.5em 0"
|
@@ -60422,7 +60251,7 @@ ${events}
|
|
60422
60251
|
ANSIDisplay,
|
60423
60252
|
{
|
60424
60253
|
output: retry.traceback_ansi,
|
60425
|
-
className: clsx("text-size-small", styles$
|
60254
|
+
className: clsx("text-size-small", styles$A.ansi),
|
60426
60255
|
style: {
|
60427
60256
|
fontSize: "clamp(0.4rem, calc(0.15em + 1vw), 0.8rem)",
|
60428
60257
|
margin: "0.5em 0"
|
@@ -60442,7 +60271,7 @@ ${events}
|
|
60442
60271
|
title: "JSON",
|
60443
60272
|
onSelected: onSelectedTab,
|
60444
60273
|
selected: effectiveSelectedTab === kSampleJsonTabId,
|
60445
|
-
children: !sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "JSON not available" }) : sample2.messages.length > 100 ? /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "JSON too large too display" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
60274
|
+
children: !sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "JSON not available" }) : sample2.messages.length > 100 ? /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "JSON too large too display" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.padded, styles$A.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
60446
60275
|
JSONPanel,
|
60447
60276
|
{
|
60448
60277
|
data: sample2,
|
@@ -60470,7 +60299,7 @@ ${events}
|
|
60470
60299
|
ModelTokenTable,
|
60471
60300
|
{
|
60472
60301
|
model_usage: sample2.model_usage,
|
60473
|
-
className: clsx(styles$
|
60302
|
+
className: clsx(styles$A.noTop)
|
60474
60303
|
}
|
60475
60304
|
) })
|
60476
60305
|
] }, `sample-usage-${id}`)
|
@@ -60480,7 +60309,7 @@ ${events}
|
|
60480
60309
|
sampleMetadatas.push(
|
60481
60310
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
60482
60311
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Time" }),
|
60483
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
60312
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.timePanel, "text-size-smaller"), children: [
|
60484
60313
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Working" }),
|
60485
60314
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: formatTime$1(sample2.working_time) }),
|
60486
60315
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Total" }),
|
@@ -60498,7 +60327,7 @@ ${events}
|
|
60498
60327
|
{
|
60499
60328
|
id: "task-sample-metadata-${id}",
|
60500
60329
|
entries: sample2 == null ? void 0 : sample2.metadata,
|
60501
|
-
className: clsx("tab-pane", styles$
|
60330
|
+
className: clsx("tab-pane", styles$A.noTop)
|
60502
60331
|
}
|
60503
60332
|
) })
|
60504
60333
|
] }, `sample-metadata-${id}`)
|
@@ -60513,7 +60342,7 @@ ${events}
|
|
60513
60342
|
{
|
60514
60343
|
id: "task-sample-store-${id}",
|
60515
60344
|
entries: sample2 == null ? void 0 : sample2.store,
|
60516
|
-
className: clsx("tab-pane", styles$
|
60345
|
+
className: clsx("tab-pane", styles$A.noTop)
|
60517
60346
|
}
|
60518
60347
|
) })
|
60519
60348
|
] }, `sample-store-${id}`)
|
@@ -60590,7 +60419,7 @@ ${events}
|
|
60590
60419
|
const container$3 = "_container_kgsc6_1";
|
60591
60420
|
const body$1 = "_body_kgsc6_7";
|
60592
60421
|
const scroller = "_scroller_kgsc6_11";
|
60593
|
-
const styles$
|
60422
|
+
const styles$c = {
|
60594
60423
|
container: container$3,
|
60595
60424
|
body: body$1,
|
60596
60425
|
scroller
|
@@ -60627,14 +60456,14 @@ ${events}
|
|
60627
60456
|
(_f = sampleData.sample) == null ? void 0 : _f.epoch
|
60628
60457
|
]);
|
60629
60458
|
const scrollRef = reactExports.useRef(null);
|
60630
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
60459
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c.container, children: [
|
60631
60460
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
60632
60461
|
ProgressBar,
|
60633
60462
|
{
|
60634
60463
|
animating: sampleData.status === "loading" || sampleData.status === "streaming"
|
60635
60464
|
}
|
60636
60465
|
),
|
60637
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$
|
60466
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$c.scroller), ref: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$c.body, children: sampleData.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
60638
60467
|
ErrorPanel,
|
60639
60468
|
{
|
60640
60469
|
title: "Unable to load sample",
|
@@ -60653,7 +60482,7 @@ ${events}
|
|
60653
60482
|
const content$1 = "_content_yj2nt_41";
|
60654
60483
|
const header$1 = "_header_yj2nt_45";
|
60655
60484
|
const titleTool = "_titleTool_yj2nt_50";
|
60656
|
-
const styles$
|
60485
|
+
const styles$b = {
|
60657
60486
|
title,
|
60658
60487
|
detail,
|
60659
60488
|
detailText,
|
@@ -60693,8 +60522,8 @@ ${events}
|
|
60693
60522
|
id,
|
60694
60523
|
className: clsx(
|
60695
60524
|
"modal",
|
60696
|
-
styles$
|
60697
|
-
!visible2 ? styles$
|
60525
|
+
styles$b.modal,
|
60526
|
+
!visible2 ? styles$b.hidden : void 0
|
60698
60527
|
),
|
60699
60528
|
role: "dialog",
|
60700
60529
|
onKeyUp: onkeyup,
|
@@ -60706,23 +60535,23 @@ ${events}
|
|
60706
60535
|
className: clsx(
|
60707
60536
|
"modal-dialog",
|
60708
60537
|
"modal-dialog-scrollable",
|
60709
|
-
styles$
|
60538
|
+
styles$b.modalBody
|
60710
60539
|
),
|
60711
60540
|
role: "document",
|
60712
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$
|
60713
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$
|
60541
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$b.content), children: [
|
60542
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$b.header), children: [
|
60714
60543
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
60715
60544
|
"div",
|
60716
60545
|
{
|
60717
|
-
className: clsx("modal-title", "text-size-smaller", styles$
|
60546
|
+
className: clsx("modal-title", "text-size-smaller", styles$b.title),
|
60718
60547
|
children: title2 || ""
|
60719
60548
|
}
|
60720
60549
|
),
|
60721
|
-
detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
60550
|
+
detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.detail, children: [
|
60722
60551
|
(detailTools == null ? void 0 : detailTools.left) ? detailTools.left.map((tool2, idx) => {
|
60723
60552
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-left-${idx}`);
|
60724
60553
|
}) : "",
|
60725
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$
|
60554
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$b.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
|
60726
60555
|
(detailTools == null ? void 0 : detailTools.right) ? detailTools.right.map((tool2, idx) => {
|
60727
60556
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-right-${idx}`);
|
60728
60557
|
}) : ""
|
@@ -60735,7 +60564,7 @@ ${events}
|
|
60735
60564
|
"btn",
|
60736
60565
|
"btn-close-large-dialog",
|
60737
60566
|
"text-size-larger",
|
60738
|
-
styles$
|
60567
|
+
styles$b.close
|
60739
60568
|
),
|
60740
60569
|
onClick: onHide,
|
60741
60570
|
"aria-label": "Close",
|
@@ -60762,7 +60591,7 @@ ${events}
|
|
60762
60591
|
"btn",
|
60763
60592
|
"btn-outline",
|
60764
60593
|
"text-size-small",
|
60765
|
-
styles$
|
60594
|
+
styles$b.titleTool
|
60766
60595
|
),
|
60767
60596
|
"aria-label": label2,
|
60768
60597
|
onClick,
|
@@ -60872,7 +60701,7 @@ ${events}
|
|
60872
60701
|
};
|
60873
60702
|
const container$2 = "_container_15b4r_1";
|
60874
60703
|
const label$3 = "_label_15b4r_5";
|
60875
|
-
const styles$
|
60704
|
+
const styles$a = {
|
60876
60705
|
container: container$2,
|
60877
60706
|
label: label$3
|
60878
60707
|
};
|
@@ -60889,7 +60718,7 @@ ${events}
|
|
60889
60718
|
const sel = e.target;
|
60890
60719
|
setEpoch(sel.value);
|
60891
60720
|
};
|
60892
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
60721
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$a.container, children: [
|
60893
60722
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
60894
60723
|
"span",
|
60895
60724
|
{
|
@@ -60898,7 +60727,7 @@ ${events}
|
|
60898
60727
|
"text-size-smaller",
|
60899
60728
|
"text-style-label",
|
60900
60729
|
"text-style-secondary",
|
60901
|
-
styles$
|
60730
|
+
styles$a.label
|
60902
60731
|
),
|
60903
60732
|
children: "Epochs:"
|
60904
60733
|
}
|
@@ -81089,7 +80918,7 @@ ${events}
|
|
81089
80918
|
const label$2 = "_label_jbrqc_1";
|
81090
80919
|
const input = "_input_jbrqc_7";
|
81091
80920
|
const help = "_help_jbrqc_11";
|
81092
|
-
const styles$
|
80921
|
+
const styles$9 = {
|
81093
80922
|
label: label$2,
|
81094
80923
|
input,
|
81095
80924
|
help
|
@@ -81302,7 +81131,7 @@ Supported expressions:
|
|
81302
81131
|
"text-size-smaller",
|
81303
81132
|
"text-style-label",
|
81304
81133
|
"text-style-secondary",
|
81305
|
-
styles$
|
81134
|
+
styles$9.label
|
81306
81135
|
),
|
81307
81136
|
children: "Filter:"
|
81308
81137
|
}
|
@@ -81313,14 +81142,14 @@ Supported expressions:
|
|
81313
81142
|
ref: editorRef,
|
81314
81143
|
className: clsx(
|
81315
81144
|
(filteringResultInstant == null ? void 0 : filteringResultInstant.error) && "filter-pending",
|
81316
|
-
styles$
|
81145
|
+
styles$9.input
|
81317
81146
|
)
|
81318
81147
|
}
|
81319
81148
|
),
|
81320
81149
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
81321
81150
|
"span",
|
81322
81151
|
{
|
81323
|
-
className: clsx("bi", "bi-question-circle", styles$
|
81152
|
+
className: clsx("bi", "bi-question-circle", styles$9.help),
|
81324
81153
|
"data-tooltip": FILTER_TOOLTIP,
|
81325
81154
|
"data-tooltip-position": "bottom-left"
|
81326
81155
|
}
|
@@ -81331,7 +81160,7 @@ Supported expressions:
|
|
81331
81160
|
const label$1 = "_label_anstf_5";
|
81332
81161
|
const secondSel = "_secondSel_anstf_9";
|
81333
81162
|
const secondLabel = "_secondLabel_anstf_13";
|
81334
|
-
const styles$
|
81163
|
+
const styles$8 = {
|
81335
81164
|
flex,
|
81336
81165
|
label: label$1,
|
81337
81166
|
secondSel,
|
@@ -81357,7 +81186,7 @@ Supported expressions:
|
|
81357
81186
|
[setScore, scores2]
|
81358
81187
|
);
|
81359
81188
|
if (scorers.length === 1) {
|
81360
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
81189
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.flex, children: [
|
81361
81190
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
81362
81191
|
"span",
|
81363
81192
|
{
|
@@ -81366,7 +81195,7 @@ Supported expressions:
|
|
81366
81195
|
"text-size-smaller",
|
81367
81196
|
"text-style-label",
|
81368
81197
|
"text-style-secondary",
|
81369
|
-
styles$
|
81198
|
+
styles$8.label
|
81370
81199
|
),
|
81371
81200
|
children: "Score:"
|
81372
81201
|
}
|
@@ -81384,7 +81213,7 @@ Supported expressions:
|
|
81384
81213
|
const scorerScores = scores2.filter((sc) => {
|
81385
81214
|
return score2 && sc.scorer === score2.scorer;
|
81386
81215
|
});
|
81387
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
81216
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.flex, children: [
|
81388
81217
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
81389
81218
|
"span",
|
81390
81219
|
{
|
@@ -81393,8 +81222,8 @@ Supported expressions:
|
|
81393
81222
|
"text-size-smaller",
|
81394
81223
|
"text-style-label",
|
81395
81224
|
"text-style-secondary",
|
81396
|
-
styles$
|
81397
|
-
styles$
|
81225
|
+
styles$8.label,
|
81226
|
+
styles$8.secondLabel
|
81398
81227
|
),
|
81399
81228
|
children: "Scorer:"
|
81400
81229
|
}
|
@@ -81410,7 +81239,7 @@ Supported expressions:
|
|
81410
81239
|
scorerScores.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
81411
81240
|
ScoreSelector,
|
81412
81241
|
{
|
81413
|
-
className: clsx(styles$
|
81242
|
+
className: clsx(styles$8.secondSel),
|
81414
81243
|
scores: scorerScores,
|
81415
81244
|
selectedIndex: scoreIndex(scorerScores, score2),
|
81416
81245
|
setSelectedIndex: handleSelectScore
|
@@ -81516,6 +81345,18 @@ Supported expressions:
|
|
81516
81345
|
}
|
81517
81346
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SelectScorer, { scores: scores2, score: score2, setScore });
|
81518
81347
|
};
|
81348
|
+
const kBaseFontSize = 0.9;
|
81349
|
+
const ScaleBaseFont = (scale) => {
|
81350
|
+
return `${kBaseFontSize + scale}rem`;
|
81351
|
+
};
|
81352
|
+
const FontSize = {
|
81353
|
+
smaller: ScaleBaseFont(-0.1)
|
81354
|
+
};
|
81355
|
+
const TextStyle = {
|
81356
|
+
secondary: {
|
81357
|
+
color: "var(--bs-secondary)"
|
81358
|
+
}
|
81359
|
+
};
|
81519
81360
|
const ApplicationStyles = {
|
81520
81361
|
moreButton: {
|
81521
81362
|
maxHeight: "1.8em",
|
@@ -81565,7 +81406,7 @@ Supported expressions:
|
|
81565
81406
|
const body = "_body_12gn4_1";
|
81566
81407
|
const iconSmall = "_iconSmall_12gn4_9";
|
81567
81408
|
const message = "_message_12gn4_15";
|
81568
|
-
const styles$
|
81409
|
+
const styles$7 = {
|
81569
81410
|
body,
|
81570
81411
|
iconSmall,
|
81571
81412
|
message
|
@@ -81575,12 +81416,12 @@ Supported expressions:
|
|
81575
81416
|
align
|
81576
81417
|
}) => {
|
81577
81418
|
align = align || "center";
|
81578
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
81579
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$
|
81580
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
81419
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.body, children: [
|
81420
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$7.iconSmall) }),
|
81421
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
|
81581
81422
|
] });
|
81582
81423
|
};
|
81583
|
-
const grid = "_grid_185sx_1";
|
81424
|
+
const grid$1 = "_grid_185sx_1";
|
81584
81425
|
const selected = "_selected_185sx_13";
|
81585
81426
|
const disabled = "_disabled_185sx_23";
|
81586
81427
|
const cell = "_cell_185sx_28";
|
@@ -81588,8 +81429,8 @@ Supported expressions:
|
|
81588
81429
|
const noLeft = "_noLeft_185sx_37";
|
81589
81430
|
const score = "_score_185sx_41";
|
81590
81431
|
const centered = "_centered_185sx_46";
|
81591
|
-
const styles$
|
81592
|
-
grid,
|
81432
|
+
const styles$6 = {
|
81433
|
+
grid: grid$1,
|
81593
81434
|
selected,
|
81594
81435
|
disabled,
|
81595
81436
|
cell,
|
@@ -81622,10 +81463,10 @@ Supported expressions:
|
|
81622
81463
|
{
|
81623
81464
|
id: `sample-${id}`,
|
81624
81465
|
className: clsx(
|
81625
|
-
styles$
|
81466
|
+
styles$6.grid,
|
81626
81467
|
"text-size-base",
|
81627
|
-
selectedSampleIndex === index2 ? styles$
|
81628
|
-
!isViewable && !sampleUrl2 ? styles$
|
81468
|
+
selectedSampleIndex === index2 ? styles$6.selected : void 0,
|
81469
|
+
!isViewable && !sampleUrl2 ? styles$6.disabled : void 0
|
81629
81470
|
),
|
81630
81471
|
style: {
|
81631
81472
|
height: `${height}px`,
|
@@ -81633,31 +81474,31 @@ Supported expressions:
|
|
81633
81474
|
gridTemplateColumns: gridColumnsTemplate
|
81634
81475
|
},
|
81635
81476
|
children: [
|
81636
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$
|
81477
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$6.cell), children: sample2.id }),
|
81637
81478
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
81638
81479
|
"div",
|
81639
81480
|
{
|
81640
81481
|
className: clsx(
|
81641
81482
|
"sample-input",
|
81642
81483
|
"three-line-clamp",
|
81643
|
-
styles$
|
81644
|
-
styles$
|
81484
|
+
styles$6.cell,
|
81485
|
+
styles$6.wrapAnywhere
|
81645
81486
|
),
|
81646
81487
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: inputString(sample2.input).join(" ") })
|
81647
81488
|
}
|
81648
81489
|
),
|
81649
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$
|
81490
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$6.cell), children: (sample2 == null ? void 0 : sample2.target) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
81650
81491
|
MarkdownDiv,
|
81651
81492
|
{
|
81652
81493
|
markdown: arrayToString(sample2.target),
|
81653
|
-
className: clsx("no-last-para-padding", styles$
|
81494
|
+
className: clsx("no-last-para-padding", styles$6.noLeft)
|
81654
81495
|
}
|
81655
81496
|
) : void 0 }),
|
81656
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$
|
81497
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$6.cell), children: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
81657
81498
|
MarkdownDiv,
|
81658
81499
|
{
|
81659
81500
|
markdown: answer2 || "",
|
81660
|
-
className: clsx("no-last-para-padding", styles$
|
81501
|
+
className: clsx("no-last-para-padding", styles$6.noLeft)
|
81661
81502
|
}
|
81662
81503
|
) : "" }),
|
81663
81504
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -81667,7 +81508,7 @@ Supported expressions:
|
|
81667
81508
|
"sample-limit",
|
81668
81509
|
"text-size-small",
|
81669
81510
|
"three-line-clamp",
|
81670
|
-
styles$
|
81511
|
+
styles$6.cell
|
81671
81512
|
),
|
81672
81513
|
children: sample2.limit
|
81673
81514
|
}
|
@@ -81679,13 +81520,13 @@ Supported expressions:
|
|
81679
81520
|
"sample-retries",
|
81680
81521
|
"text-size-small",
|
81681
81522
|
"three-line-clamp",
|
81682
|
-
styles$
|
81683
|
-
styles$
|
81523
|
+
styles$6.cell,
|
81524
|
+
styles$6.centered
|
81684
81525
|
),
|
81685
81526
|
children: sample2.retries && sample2.retries > 0 ? sample2.retries : void 0
|
81686
81527
|
}
|
81687
81528
|
),
|
81688
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$
|
81529
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$6.cell, styles$6.score), children: sample2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(SampleErrorView, { message: sample2.error }) : completed ? scoreRendered : /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, {}) })
|
81689
81530
|
]
|
81690
81531
|
}
|
81691
81532
|
);
|
@@ -81698,7 +81539,7 @@ Supported expressions:
|
|
81698
81539
|
);
|
81699
81540
|
};
|
81700
81541
|
const row = "_row_utdq5_1";
|
81701
|
-
const styles$
|
81542
|
+
const styles$5 = {
|
81702
81543
|
row
|
81703
81544
|
};
|
81704
81545
|
const SampleSeparator = ({
|
@@ -81710,7 +81551,7 @@ Supported expressions:
|
|
81710
81551
|
"div",
|
81711
81552
|
{
|
81712
81553
|
id,
|
81713
|
-
className: clsx("text-style-secondary", "text-size-smaller", styles$
|
81554
|
+
className: clsx("text-style-secondary", "text-size-smaller", styles$5.row),
|
81714
81555
|
style: { height: `${height}px` },
|
81715
81556
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title2 })
|
81716
81557
|
}
|
@@ -81720,7 +81561,7 @@ Supported expressions:
|
|
81720
81561
|
const spinnerContainer = "_spinnerContainer_vkofn_11";
|
81721
81562
|
const spinner$1 = "_spinner_vkofn_11";
|
81722
81563
|
const label = "_label_vkofn_25";
|
81723
|
-
const styles$
|
81564
|
+
const styles$4 = {
|
81724
81565
|
footer,
|
81725
81566
|
spinnerContainer,
|
81726
81567
|
spinner: spinner$1,
|
@@ -81731,24 +81572,24 @@ Supported expressions:
|
|
81731
81572
|
totalSampleCount,
|
81732
81573
|
running: running2
|
81733
81574
|
}) => {
|
81734
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$
|
81735
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$
|
81575
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$4.footer), children: [
|
81576
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$4.spinnerContainer), children: [
|
81736
81577
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
81737
81578
|
"div",
|
81738
81579
|
{
|
81739
|
-
className: clsx("spinner-border", styles$
|
81580
|
+
className: clsx("spinner-border", styles$4.spinner),
|
81740
81581
|
role: "status",
|
81741
81582
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "Running..." })
|
81742
81583
|
}
|
81743
81584
|
),
|
81744
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$
|
81585
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$4.label), children: "running..." })
|
81745
81586
|
] }) : void 0 }),
|
81746
81587
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: sampleCount < totalSampleCount ? `${sampleCount} / ${totalSampleCount} Samples` : `${sampleCount} Samples` })
|
81747
81588
|
] });
|
81748
81589
|
};
|
81749
81590
|
const header = "_header_16ngy_1";
|
81750
81591
|
const center = "_center_16ngy_11";
|
81751
|
-
const styles$
|
81592
|
+
const styles$3 = {
|
81752
81593
|
header,
|
81753
81594
|
center
|
81754
81595
|
};
|
@@ -81764,7 +81605,7 @@ Supported expressions:
|
|
81764
81605
|
"div",
|
81765
81606
|
{
|
81766
81607
|
className: clsx(
|
81767
|
-
styles$
|
81608
|
+
styles$3.header,
|
81768
81609
|
"text-size-smaller",
|
81769
81610
|
"text-style-label",
|
81770
81611
|
"text-style-secondary"
|
@@ -81777,12 +81618,12 @@ Supported expressions:
|
|
81777
81618
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: answer2 ? "Answer" : "" }),
|
81778
81619
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: limit ? "Limit" : "" }),
|
81779
81620
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: retries ? "Retries" : "" }),
|
81780
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$
|
81621
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.center, children: score2 ? "Score" : "" })
|
81781
81622
|
]
|
81782
81623
|
}
|
81783
81624
|
);
|
81784
81625
|
const mainLayout = "_mainLayout_q79zq_7";
|
81785
|
-
const styles$
|
81626
|
+
const styles$2 = {
|
81786
81627
|
mainLayout
|
81787
81628
|
};
|
81788
81629
|
const kSampleHeight = 88;
|
@@ -81918,7 +81759,7 @@ Supported expressions:
|
|
81918
81759
|
const percentError = errorCount / sampleCount * 100;
|
81919
81760
|
const percentLimit = limitCount / sampleCount * 100;
|
81920
81761
|
const warningMessage = errorCount > 0 ? `INFO: ${errorCount} of ${sampleCount} samples (${formatNoDecimal(percentError)}%) had errors and were not scored.` : limitCount ? `INFO: ${limitCount} of ${sampleCount} samples (${formatNoDecimal(percentLimit)}%) completed due to exceeding a limit.` : void 0;
|
81921
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$
|
81762
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.mainLayout, children: [
|
81922
81763
|
warningMessage ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
81923
81764
|
MessageBand,
|
81924
81765
|
{
|
@@ -82013,16 +81854,16 @@ Supported expressions:
|
|
82013
81854
|
const container$1 = "_container_1yknn_7";
|
82014
81855
|
const spinner = "_spinner_1yknn_14";
|
82015
81856
|
const text = "_text_1yknn_20";
|
82016
|
-
const styles = {
|
81857
|
+
const styles$1 = {
|
82017
81858
|
panel,
|
82018
81859
|
container: container$1,
|
82019
81860
|
spinner,
|
82020
81861
|
text
|
82021
81862
|
};
|
82022
81863
|
const RunningNoSamples = () => {
|
82023
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles.container, "text-size-smaller"), children: [
|
82024
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles.spinner, "spinner-border"), role: "status", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "starting..." }) }),
|
82025
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles.text), children: "starting...." })
|
81864
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1.container, "text-size-smaller"), children: [
|
81865
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.spinner, "spinner-border"), role: "status", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "starting..." }) }),
|
81866
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.text), children: "starting...." })
|
82026
81867
|
] }) });
|
82027
81868
|
};
|
82028
81869
|
const getSampleProcessor = (samples, epochs, groupBy, groupByOrder, sampleDescriptor, score2) => {
|
@@ -82316,6 +82157,117 @@ Supported expressions:
|
|
82316
82157
|
] });
|
82317
82158
|
}
|
82318
82159
|
};
|
82160
|
+
const ghCommitUrl = (origin, commit) => {
|
82161
|
+
const baseUrl2 = origin.replace(/\.git$/, "");
|
82162
|
+
return `${baseUrl2}/commit/${commit}`;
|
82163
|
+
};
|
82164
|
+
const grid = "_grid_er9fb_1";
|
82165
|
+
const styles = {
|
82166
|
+
grid
|
82167
|
+
};
|
82168
|
+
const useTaskTabConfig = (evalSpec, evalStats) => {
|
82169
|
+
return reactExports.useMemo(() => {
|
82170
|
+
return {
|
82171
|
+
id: kLogViewTaskTabId,
|
82172
|
+
label: "Task",
|
82173
|
+
scrollable: true,
|
82174
|
+
component: TaskTab,
|
82175
|
+
componentProps: {
|
82176
|
+
evalSpec,
|
82177
|
+
evalStats
|
82178
|
+
}
|
82179
|
+
};
|
82180
|
+
}, [evalSpec, evalStats]);
|
82181
|
+
};
|
82182
|
+
const TaskTab = ({ evalSpec, evalStats }) => {
|
82183
|
+
Object.entries((evalSpec == null ? void 0 : evalSpec.config) || {}).forEach((entry2) => {
|
82184
|
+
entry2[0];
|
82185
|
+
entry2[1];
|
82186
|
+
});
|
82187
|
+
const revision = evalSpec == null ? void 0 : evalSpec.revision;
|
82188
|
+
const packages = evalSpec == null ? void 0 : evalSpec.packages;
|
82189
|
+
const taskInformation = {
|
82190
|
+
["Task ID"]: evalSpec == null ? void 0 : evalSpec.task_id,
|
82191
|
+
["Run ID"]: evalSpec == null ? void 0 : evalSpec.run_id
|
82192
|
+
};
|
82193
|
+
if (revision) {
|
82194
|
+
taskInformation[`${revision.type ? `${toTitleCase(revision.type)} ` : ""}Revision`] = {
|
82195
|
+
_html: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: ghCommitUrl(revision.origin, revision.commit), children: revision.commit })
|
82196
|
+
};
|
82197
|
+
}
|
82198
|
+
if (packages) {
|
82199
|
+
const names = Object.keys(packages).map((key2) => {
|
82200
|
+
return `${key2} ${packages[key2]}`;
|
82201
|
+
});
|
82202
|
+
if (names.length === 1) {
|
82203
|
+
taskInformation["Inspect"] = names[0];
|
82204
|
+
} else {
|
82205
|
+
taskInformation["Inspect"] = names;
|
82206
|
+
}
|
82207
|
+
}
|
82208
|
+
if (evalSpec == null ? void 0 : evalSpec.tags) {
|
82209
|
+
taskInformation["tags"] = evalSpec == null ? void 0 : evalSpec.tags.join(", ");
|
82210
|
+
}
|
82211
|
+
if (evalSpec == null ? void 0 : evalSpec.sandbox) {
|
82212
|
+
if (Array.isArray(evalSpec == null ? void 0 : evalSpec.sandbox)) {
|
82213
|
+
taskInformation["sandbox"] = evalSpec.sandbox[0];
|
82214
|
+
if (evalSpec.sandbox[1]) {
|
82215
|
+
taskInformation["sandbox_config"] = evalSpec.sandbox[1];
|
82216
|
+
}
|
82217
|
+
} else {
|
82218
|
+
taskInformation["sandbox"] = evalSpec == null ? void 0 : evalSpec.sandbox.type;
|
82219
|
+
taskInformation["sandbox_config"] = evalSpec == null ? void 0 : evalSpec.sandbox.config;
|
82220
|
+
}
|
82221
|
+
}
|
82222
|
+
const totalDuration = formatDuration(
|
82223
|
+
new Date((evalStats == null ? void 0 : evalStats.started_at) || 0),
|
82224
|
+
new Date((evalStats == null ? void 0 : evalStats.completed_at) || 0)
|
82225
|
+
);
|
82226
|
+
const task_args = (evalSpec == null ? void 0 : evalSpec.task_args) || {};
|
82227
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { padding: "0.5em 1em 0 1em", width: "100%" }, children: [
|
82228
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
82229
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Task Info" }),
|
82230
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-card-config", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles.grid), children: [
|
82231
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
82232
|
+
MetaDataView,
|
82233
|
+
{
|
82234
|
+
className: "text-size-small",
|
82235
|
+
entries: taskInformation,
|
82236
|
+
tableOptions: "sm"
|
82237
|
+
},
|
82238
|
+
`plan-md-task`
|
82239
|
+
),
|
82240
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
82241
|
+
MetaDataView,
|
82242
|
+
{
|
82243
|
+
entries: {
|
82244
|
+
["Start"]: new Date(
|
82245
|
+
(evalStats == null ? void 0 : evalStats.started_at) || 0
|
82246
|
+
).toLocaleString(),
|
82247
|
+
["End"]: new Date(
|
82248
|
+
(evalStats == null ? void 0 : evalStats.completed_at) || 0
|
82249
|
+
).toLocaleString(),
|
82250
|
+
["Duration"]: totalDuration
|
82251
|
+
},
|
82252
|
+
tableOptions: "sm"
|
82253
|
+
}
|
82254
|
+
)
|
82255
|
+
] }) })
|
82256
|
+
] }),
|
82257
|
+
Object.keys(task_args).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
82258
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Task Args" }),
|
82259
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-card-config", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
82260
|
+
MetaDataView,
|
82261
|
+
{
|
82262
|
+
className: "text-size-small",
|
82263
|
+
entries: task_args,
|
82264
|
+
tableOptions: "sm"
|
82265
|
+
},
|
82266
|
+
`plan-md-task-args`
|
82267
|
+
) })
|
82268
|
+
] })
|
82269
|
+
] }) });
|
82270
|
+
};
|
82319
82271
|
const LogView = () => {
|
82320
82272
|
const divRef = reactExports.useRef(null);
|
82321
82273
|
const refreshLog = useRefreshLog();
|
@@ -82338,8 +82290,13 @@ Supported expressions:
|
|
82338
82290
|
evalSpec,
|
82339
82291
|
selectedLogSummary == null ? void 0 : selectedLogSummary.plan,
|
82340
82292
|
selectedLogSummary == null ? void 0 : selectedLogSummary.error,
|
82341
|
-
selectedLogSummary == null ? void 0 : selectedLogSummary.results
|
82342
|
-
|
82293
|
+
selectedLogSummary == null ? void 0 : selectedLogSummary.results
|
82294
|
+
);
|
82295
|
+
const taskTabConfig = useTaskTabConfig(evalSpec, selectedLogSummary == null ? void 0 : selectedLogSummary.stats);
|
82296
|
+
const modelsTabConfig = useModelsTab(
|
82297
|
+
evalSpec,
|
82298
|
+
selectedLogSummary == null ? void 0 : selectedLogSummary.stats,
|
82299
|
+
selectedLogSummary == null ? void 0 : selectedLogSummary.status
|
82343
82300
|
);
|
82344
82301
|
const jsonTabConfig = useJsonTabConfig(
|
82345
82302
|
selectedLogSummary == null ? void 0 : selectedLogSummary.version,
|
@@ -82352,6 +82309,8 @@ Supported expressions:
|
|
82352
82309
|
);
|
82353
82310
|
const tabs2 = {
|
82354
82311
|
...samplesTabConfig ? { samples: samplesTabConfig } : {},
|
82312
|
+
task: taskTabConfig,
|
82313
|
+
model: modelsTabConfig,
|
82355
82314
|
config: configTabConfig,
|
82356
82315
|
json: jsonTabConfig
|
82357
82316
|
};
|
@@ -82397,15 +82356,15 @@ Supported expressions:
|
|
82397
82356
|
showToggle
|
82398
82357
|
}
|
82399
82358
|
),
|
82400
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: divRef, className: clsx("workspace", styles$
|
82359
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: divRef, className: clsx("workspace", styles$P.workspace), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("log-detail", styles$P.tabContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
82401
82360
|
TabSet,
|
82402
82361
|
{
|
82403
82362
|
id: "log-details",
|
82404
82363
|
tools: tabTools2,
|
82405
82364
|
type: "pills",
|
82406
|
-
className: clsx(styles$
|
82407
|
-
tabControlsClassName: clsx(styles$
|
82408
|
-
tabPanelsClassName: clsx(styles$
|
82365
|
+
className: clsx(styles$P.tabSet, "text-size-smaller"),
|
82366
|
+
tabControlsClassName: clsx(styles$P.tabs, "text-size-smaller"),
|
82367
|
+
tabPanelsClassName: clsx(styles$P.tabPanels),
|
82409
82368
|
children: Object.keys(tabs2).map((key2) => {
|
82410
82369
|
const tab2 = tabs2[key2];
|
82411
82370
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|