inspect-ai 0.3.92__py3-none-any.whl → 0.3.94__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.
Files changed (149) hide show
  1. inspect_ai/_cli/eval.py +27 -0
  2. inspect_ai/_display/textual/widgets/samples.py +3 -3
  3. inspect_ai/_display/textual/widgets/transcript.py +3 -29
  4. inspect_ai/_eval/eval.py +19 -2
  5. inspect_ai/_eval/evalset.py +4 -1
  6. inspect_ai/_eval/run.py +41 -0
  7. inspect_ai/_eval/task/generate.py +38 -44
  8. inspect_ai/_eval/task/log.py +26 -28
  9. inspect_ai/_eval/task/run.py +23 -27
  10. inspect_ai/_util/answer.py +26 -0
  11. inspect_ai/_util/constants.py +0 -1
  12. inspect_ai/_util/local_server.py +398 -0
  13. inspect_ai/_util/working.py +10 -4
  14. inspect_ai/_view/www/dist/assets/index.css +173 -159
  15. inspect_ai/_view/www/dist/assets/index.js +1417 -1142
  16. inspect_ai/_view/www/log-schema.json +379 -3
  17. inspect_ai/_view/www/package.json +1 -1
  18. inspect_ai/_view/www/src/@types/log.d.ts +93 -14
  19. inspect_ai/_view/www/src/app/content/MetaDataGrid.tsx +2 -2
  20. inspect_ai/_view/www/src/app/content/MetaDataView.module.css +1 -1
  21. inspect_ai/_view/www/src/app/content/MetadataGrid.module.css +1 -1
  22. inspect_ai/_view/www/src/app/content/RenderedContent.tsx +1 -1
  23. inspect_ai/_view/www/src/app/log-view/LogView.tsx +11 -0
  24. inspect_ai/_view/www/src/app/log-view/tabs/InfoTab.tsx +2 -9
  25. inspect_ai/_view/www/src/app/log-view/tabs/ModelsTab.tsx +51 -0
  26. inspect_ai/_view/www/src/app/log-view/tabs/TaskTab.module.css +6 -0
  27. inspect_ai/_view/www/src/app/log-view/tabs/TaskTab.tsx +143 -0
  28. inspect_ai/_view/www/src/app/plan/ModelCard.tsx +1 -2
  29. inspect_ai/_view/www/src/app/plan/PlanCard.tsx +29 -7
  30. inspect_ai/_view/www/src/app/plan/PlanDetailView.module.css +1 -1
  31. inspect_ai/_view/www/src/app/plan/PlanDetailView.tsx +1 -198
  32. inspect_ai/_view/www/src/app/samples/descriptor/score/NumericScoreDescriptor.tsx +2 -1
  33. inspect_ai/_view/www/src/app/samples/transcript/SandboxEventView.module.css +2 -1
  34. inspect_ai/_view/www/src/app/samples/transcript/SpanEventView.tsx +174 -0
  35. inspect_ai/_view/www/src/app/samples/transcript/ToolEventView.tsx +8 -8
  36. inspect_ai/_view/www/src/app/samples/transcript/TranscriptView.tsx +12 -2
  37. inspect_ai/_view/www/src/app/samples/transcript/TranscriptVirtualListComponent.module.css +1 -1
  38. inspect_ai/_view/www/src/app/samples/transcript/event/EventPanel.tsx +0 -3
  39. inspect_ai/_view/www/src/app/samples/transcript/transform/fixups.ts +87 -25
  40. inspect_ai/_view/www/src/app/samples/transcript/transform/treeify.ts +229 -17
  41. inspect_ai/_view/www/src/app/samples/transcript/transform/utils.ts +11 -0
  42. inspect_ai/_view/www/src/app/samples/transcript/types.ts +5 -1
  43. inspect_ai/_view/www/src/app/usage/ModelUsagePanel.tsx +3 -2
  44. inspect_ai/_view/www/src/app/usage/TokenTable.module.css +4 -1
  45. inspect_ai/_view/www/src/app/usage/TokenTable.tsx +2 -2
  46. inspect_ai/_view/www/src/app/usage/UsageCard.module.css +8 -3
  47. inspect_ai/_view/www/src/app/usage/UsageCard.tsx +1 -35
  48. inspect_ai/_view/www/src/components/Card.css +0 -1
  49. inspect_ai/_view/www/src/constants.ts +2 -0
  50. inspect_ai/_view/www/src/utils/numeric.ts +17 -0
  51. inspect_ai/agent/_agent.py +3 -3
  52. inspect_ai/agent/_as_solver.py +22 -12
  53. inspect_ai/agent/_as_tool.py +20 -6
  54. inspect_ai/agent/_handoff.py +12 -1
  55. inspect_ai/agent/_react.py +4 -3
  56. inspect_ai/agent/_run.py +16 -3
  57. inspect_ai/agent/_types.py +9 -0
  58. inspect_ai/dataset/_dataset.py +6 -3
  59. inspect_ai/log/__init__.py +14 -0
  60. inspect_ai/log/_convert.py +4 -9
  61. inspect_ai/log/_file.py +56 -0
  62. inspect_ai/log/_log.py +99 -0
  63. inspect_ai/log/_recorders/__init__.py +2 -0
  64. inspect_ai/log/_recorders/buffer/database.py +12 -11
  65. inspect_ai/log/_recorders/buffer/filestore.py +2 -2
  66. inspect_ai/log/_recorders/buffer/types.py +2 -2
  67. inspect_ai/log/_recorders/eval.py +20 -65
  68. inspect_ai/log/_recorders/file.py +28 -6
  69. inspect_ai/log/_recorders/recorder.py +7 -0
  70. inspect_ai/log/_recorders/types.py +1 -23
  71. inspect_ai/log/_samples.py +14 -25
  72. inspect_ai/log/_transcript.py +84 -36
  73. inspect_ai/log/_tree.py +118 -0
  74. inspect_ai/log/_util.py +52 -0
  75. inspect_ai/model/__init__.py +5 -1
  76. inspect_ai/model/_call_tools.py +72 -44
  77. inspect_ai/model/_generate_config.py +14 -8
  78. inspect_ai/model/_model.py +66 -88
  79. inspect_ai/model/_model_output.py +25 -0
  80. inspect_ai/model/_openai.py +2 -0
  81. inspect_ai/model/_providers/anthropic.py +13 -23
  82. inspect_ai/model/_providers/hf.py +27 -1
  83. inspect_ai/model/_providers/openai_o1.py +8 -2
  84. inspect_ai/model/_providers/providers.py +18 -4
  85. inspect_ai/model/_providers/sglang.py +247 -0
  86. inspect_ai/model/_providers/vllm.py +211 -400
  87. inspect_ai/scorer/_choice.py +1 -2
  88. inspect_ai/solver/__init__.py +7 -2
  89. inspect_ai/solver/_basic_agent.py +3 -10
  90. inspect_ai/solver/_chain.py +1 -1
  91. inspect_ai/solver/_fork.py +1 -1
  92. inspect_ai/solver/_multiple_choice.py +5 -22
  93. inspect_ai/solver/_plan.py +2 -2
  94. inspect_ai/solver/_task_state.py +26 -88
  95. inspect_ai/solver/_transcript.py +6 -7
  96. inspect_ai/tool/_json_rpc_helpers.py +45 -17
  97. inspect_ai/tool/_mcp/_mcp.py +8 -5
  98. inspect_ai/tool/_mcp/_sandbox.py +8 -2
  99. inspect_ai/tool/_mcp/server.py +3 -1
  100. inspect_ai/tool/_tool_call.py +4 -1
  101. inspect_ai/tool/_tool_support_helpers.py +51 -12
  102. inspect_ai/tool/_tools/_bash_session.py +190 -68
  103. inspect_ai/tool/_tools/_computer/_computer.py +25 -1
  104. inspect_ai/tool/_tools/_execute.py +4 -1
  105. inspect_ai/tool/_tools/_text_editor.py +4 -3
  106. inspect_ai/tool/_tools/_web_browser/_web_browser.py +10 -3
  107. inspect_ai/util/__init__.py +16 -0
  108. inspect_ai/util/_anyio.py +11 -0
  109. inspect_ai/util/_collect.py +50 -0
  110. inspect_ai/util/_limit.py +393 -0
  111. inspect_ai/util/_limited_conversation.py +57 -0
  112. inspect_ai/util/_span.py +58 -0
  113. inspect_ai/util/_subtask.py +27 -42
  114. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.dist-info}/METADATA +1 -1
  115. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.dist-info}/RECORD +120 -134
  116. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.dist-info}/WHEEL +1 -1
  117. inspect_ai/_display/core/group.py +0 -79
  118. inspect_ai/solver/_limit.py +0 -39
  119. inspect_ai/tool/_tools/_computer/_resources/Dockerfile +0 -102
  120. inspect_ai/tool/_tools/_computer/_resources/README.md +0 -30
  121. inspect_ai/tool/_tools/_computer/_resources/entrypoint/entrypoint.sh +0 -18
  122. inspect_ai/tool/_tools/_computer/_resources/entrypoint/novnc_startup.sh +0 -20
  123. inspect_ai/tool/_tools/_computer/_resources/entrypoint/x11vnc_startup.sh +0 -48
  124. inspect_ai/tool/_tools/_computer/_resources/entrypoint/xfce_startup.sh +0 -13
  125. inspect_ai/tool/_tools/_computer/_resources/entrypoint/xvfb_startup.sh +0 -48
  126. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/Code/User/globalStorage/state.vscdb +0 -0
  127. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/Code/User/settings.json +0 -9
  128. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml +0 -61
  129. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-screensaver.xml +0 -10
  130. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml +0 -91
  131. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Firefox Web Browser.desktop +0 -10
  132. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Terminal.desktop +0 -10
  133. inspect_ai/tool/_tools/_computer/_resources/image_home_dir/Desktop/Visual Studio Code.desktop +0 -10
  134. inspect_ai/tool/_tools/_computer/_resources/tool/.pylintrc +0 -8
  135. inspect_ai/tool/_tools/_computer/_resources/tool/.vscode/settings.json +0 -12
  136. inspect_ai/tool/_tools/_computer/_resources/tool/_args.py +0 -78
  137. inspect_ai/tool/_tools/_computer/_resources/tool/_constants.py +0 -22
  138. inspect_ai/tool/_tools/_computer/_resources/tool/_logger.py +0 -22
  139. inspect_ai/tool/_tools/_computer/_resources/tool/_run.py +0 -42
  140. inspect_ai/tool/_tools/_computer/_resources/tool/_tool_result.py +0 -33
  141. inspect_ai/tool/_tools/_computer/_resources/tool/_x11_client.py +0 -341
  142. inspect_ai/tool/_tools/_computer/_resources/tool/computer_tool.py +0 -141
  143. inspect_ai/tool/_tools/_computer/_resources/tool/pyproject.toml +0 -65
  144. inspect_ai/tool/_tools/_computer/_resources/tool/requirements.txt +0 -0
  145. inspect_ai/tool/_tools/_computer/test_args.py +0 -151
  146. /inspect_ai/{tool/_tools/_computer/_resources/tool/__init__.py → _view/www/src/app/log-view/tabs/ModelsTab.module.css} +0 -0
  147. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.dist-info}/entry_points.txt +0 -0
  148. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.dist-info}/licenses/LICENSE +0 -0
  149. {inspect_ai-0.3.92.dist-info → inspect_ai-0.3.94.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$1l = {
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$1l.circle,
24186
+ styles$1m.circle,
24187
24187
  "text-size-small",
24188
- score2 ? styles$1l.green : styles$1l.red
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 - b.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$1k = {
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$1k.key, "text-size-smaller"), children: key2 }),
24286
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1k.value, "text-size-base"), children: formattedValue })
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$1k.container), children: scores2 }, `score-value`);
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$1j = {
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$1j.visible : styles$1j.hidden,
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$1j.pills),
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$1j.pill
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$1i = {
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$1i.expandablePanel,
24458
- collapsed ? styles$1i.expandableCollapsed : void 0,
24459
- border ? styles$1i.expandableBordered : void 0
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$1i.moreToggle, border ? styles$1i.bordered : void 0),
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$1i.moreToggleContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
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$1i.moreToggleButton, "text-size-smallest"),
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$1i.icon) }),
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$1h = {
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$1g[sup[this.id]];
29732
+ return styles$1h[sup[this.id]];
29719
29733
  };
29720
29734
  Style$4.prototype.sub = function() {
29721
- return styles$1g[sub[this.id]];
29735
+ return styles$1h[sub[this.id]];
29722
29736
  };
29723
29737
  Style$4.prototype.fracNum = function() {
29724
- return styles$1g[fracNum[this.id]];
29738
+ return styles$1h[fracNum[this.id]];
29725
29739
  };
29726
29740
  Style$4.prototype.fracDen = function() {
29727
- return styles$1g[fracDen[this.id]];
29741
+ return styles$1h[fracDen[this.id]];
29728
29742
  };
29729
29743
  Style$4.prototype.cramp = function() {
29730
- return styles$1g[cramp[this.id]];
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$1g = [
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$1g[D],
29775
- TEXT: styles$1g[T],
29776
- SCRIPT: styles$1g[S],
29777
- SCRIPTSCRIPT: styles$1g[SS]
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$1f = {
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$1e = {
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$1e.toolImage),
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$1e.output), children: outputs });
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$1e.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$1e.textCode), children: text2.trim() }) });
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$1f.reasoning, "text-size-small"), children: [
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$1f.contentImage }, key2);
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$1d = {
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$1c = {
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$1c.toolView)
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$1c.outputPre, styles$1c.bottomMargin),
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$1c.outputCode
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$1b = {
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$1b.image) }),
36844
- /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$1b.toolTitle), children: title2 })
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$1d.toolCallView), children: [
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$1d.output,
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$1a = {
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$1a.codeCompact), children: [
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$1a.content, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) }),
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$1h.message,
37131
- padded2 ? styles$1h.padded : void 0,
37132
- message2.role === "system" ? styles$1h.systemRole : void 0
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$1h.messageGrid, "text-style-label"), children: [
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$1h.messageContents,
37144
- indented2 ? styles$1h.indented : void 0
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$6 = "_grid_140x5_1";
37184
+ const grid$7 = "_grid_140x5_1";
37171
37185
  const number$1 = "_number_140x5_7";
37172
- const styles$19 = {
37173
- grid: grid$6,
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$19.grid, children: [
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$19.number
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 = "_table_9qith_1";
38669
- const cell$3 = "_cell_9qith_11";
38670
- const compact = "_compact_9qith_15";
38671
- const cellKey = "_cellKey_9qith_19";
38672
- const cellValue = "_cellValue_9qith_31";
38673
- const styles$18 = {
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$18.cell,
38702
- styles$18.cellKey,
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$18.cell, styles$18.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
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$18.table,
38720
- compact2 ? styles$18.compact : void 0,
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$17 = {
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$17.query, children: [
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$17.summary), children: result2.summary })
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$17.preWrap, children: entry2.value })
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$16 = {
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$16.circle, styles$16.green),
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$16.circle, styles$16.red), children: "I" });
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$16.circle, styles$16.orange),
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$16.circle, styles$16.red), children: "N" });
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$15 = {
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$15.flex, children: [
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$15.label
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$14 = {
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$14.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
42755
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$15.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
42742
42756
  "div",
42743
42757
  {
42744
- className: clsx(styles$14.container),
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$14.animate })
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$13 = {
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$13.directoryLink, onClick: handleClick, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { display: "flex", flexDirection: "column" }, children: [
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$13.dirname),
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$13.directoryLink, onClick: handleClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-title"), children: offCanvas ? "Log History" : "" }) });
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$12 = {
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$11 = {
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$10 = {
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$10.container, children: Object.keys(scorer2.metrics).map((metric2) => {
43008
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$10.metric, children: [
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$10.metricName
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$10.metricReducer), children: scorer2.reducer || "default" }) : "",
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$$.container, children: scores2.map((score2, idx) => {
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$$.scoreWrapper, children: [
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$$.metricName
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$$.metricReducer
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$$.metricValues), children: Object.keys(score2.metrics).map((key2) => {
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$$.metricValue, children: formatPrettyDecimal(metric2.value) })
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$11.cancelled
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$11.running
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$11.error, "text-size-small"), children: message2 });
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$_.entry, children: [
43170
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$_.title, children: [
43171
- /* @__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 }),
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$_.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: hyperparameters ? Object.keys(hyperparameters).map((key2) => {
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$_.scores),
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$_.scoreInfo), children: [
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$12.backdrop, onClick: handleToggle }),
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$12.sidebar,
43235
- offCanvas ? styles$12.sidebarOpen : styles$12.sidebarClosed
43248
+ styles$13.sidebar,
43249
+ offCanvas ? styles$13.sidebarOpen : styles$13.sidebarClosed
43236
43250
  ),
43237
43251
  children: [
43238
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$12.header, children: [
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$12.toggle),
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$12.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
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$12.list),
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$12.item,
43269
- selectedIndex === index2 ? styles$12.active : void 0
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$12.logLink,
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$Z = {
43445
+ const styles$_ = {
43432
43446
  navbarWrapper
43433
43447
  };
43434
43448
  const copyButton = "_copyButton_1goi8_1";
43435
- const styles$Y = {
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$Y.copyButton, className2),
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$X = {
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$W = {
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$W.button, "text-size-smaller"),
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$W.label), children: text2 }) : void 0
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$V = {
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$V.backdrop, onClick: () => setShowing(false) }),
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$V.modal), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "modal-content", children: [
43578
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$V.header), children: [
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$V.modalTitle
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$V.btnClose
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$U = {
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$T = {
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$T.label
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$T.headerRow), children: [
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$T.value, "text-size-small"), children: formatPrettyDecimal(g.metrics[i2].value) })
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$T.value) }));
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$T.scorer, "text-size-small"), children: [
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$T.groupSeparator)
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$T.tableBody), children: rows })
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$T.table,
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$U.simpleMetricsRows, children: metrics2.map((metric2, i2) => {
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$U.metricsSummary), children: [
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$U.modalScores,
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$U.moreButton,
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$U.verticalMetricName
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$U.verticalMetricReducer
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$U.verticalMetricValue
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$S = {
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$S.statusContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$S.status), children: [
43939
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.running, styles$S.icon) }),
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$S.statusText,
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$R = {
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$R.statusPanel, children: [
43989
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$R.statusIcon), style: {} }),
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$5 = "_grid_q17yq_10";
44004
- const styles$Q = {
44017
+ const grid$6 = "_grid_q17yq_10";
44018
+ const styles$R = {
44005
44019
  container: container$f,
44006
- grid: grid$5
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$Q.grid : void 0,
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$Q.container, children: modelEls }) : void 0;
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$X.wrapper), children: [
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$X.container
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$X.toggle
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$X.body, children: [
44081
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$X.bodyContainer, children: [
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$X.taskTitle),
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$X.taskModel,
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$X.secondaryContainer), children: [
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$X.taskStatus, "navbar-text"), children: [
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$P = {
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$P.staticCol, "text-size-small"),
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$P.staticCol,
44222
- hasConfig ? styles$P.justifyLeft : styles$P.justifyCenter,
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$P.justifyRight, "text-size-small"),
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$P.justifyRight, "text-size-small"),
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$P.container, "text-size-small"),
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$P.valueGrid,
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$Z.navbarWrapper), children: [
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$O = {
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 grid$4 = "_grid_ktnsp_1";
44822
- const cell$2 = "_cell_ktnsp_8";
44823
- const value$1 = "_value_ktnsp_13";
44824
- const styles$J = {
44825
- grid: grid$4,
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$J.cell,
44619
+ styles$N.cell,
44855
44620
  "text-style-label",
44856
44621
  "text-style-secondary",
44857
- "text-size-small"
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$J.value, `${baseId}-value`, "text-size-small"),
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$J.grid), style: style2, children: entryEls });
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$c = "_container_59zaz_5";
44651
+ const container$d = "_container_59zaz_5";
44982
44652
  const metadata$2 = "_metadata_59zaz_11";
44983
- const styles$G = {
44653
+ const styles$M = {
44984
44654
  icon,
44985
- container: container$c,
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$G.icon) }) : "";
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$G.container, children: params2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
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$G.metadata)
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$H.item, "text-size-base")
44692
+ className: clsx(styles$O.item, "text-size-base")
45023
44693
  }
45024
44694
  );
45025
44695
  };
45026
- const container$b = "_container_12j2k_1";
45027
- const separator$3 = "_separator_12j2k_11";
45028
- const styles$F = {
45029
- container: container$b,
45030
- separator: separator$3
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$F.items, "text-size-small", styles$F.separator), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) });
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$F.items, "text-size-small")
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$F.container, children: details });
45047
- };
45048
- const floatingCol = "_floatingCol_q6xma_1";
45049
- const wideCol = "_wideCol_q6xma_9";
45050
- const oneCol = "_oneCol_q6xma_16";
45051
- const twoCol = "_twoCol_q6xma_20";
45052
- const planCol = "_planCol_q6xma_24";
45053
- const container$a = "_container_q6xma_28";
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$a,
45063
- grid: grid$3,
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$E.floatingCol,
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$E.wideCol,
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$E.floatingCol,
44782
+ className: styles$K.floatingCol,
45170
44783
  contents: scorerPanels
45171
44784
  });
45172
44785
  }
45173
44786
  }
45174
- const metadataColumns = [];
45175
- const cols = colCount(
45176
- metadataColumns,
45177
- task_args,
45178
- model_args,
45179
- config2,
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
- `plan-md-task`
45193
- )
45194
- });
45195
- if (task_args && Object.keys(task_args).length > 0) {
45196
- metadataColumns.push({
45197
- title: "Task Args",
45198
- className: cols === 1 ? styles$E.oneCol : styles$E.twoCol,
45199
- contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
45200
- MetaDataView,
45201
- {
45202
- className: "text-size-small",
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$E.planCol
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(CardHeader, { icon: ApplicationIcons.config, label: "Config" }),
45337
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-plan-card-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlanDetailView, { evaluation: evalSpec, plan: evalPlan, scores: scores2 }) })
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, evalStats) => {
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, evalStats, totalSampleCount]);
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$D = {
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$D.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
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$D.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
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;
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
+ });
47456
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$C = {
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$C.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$C.container, "text-size-smaller"), children: [
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$B = {
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$B.container,
50614
- size === "small" ? styles$B.small : size === "medium" ? styles$B.medium : styles$B.large
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$B.dotsContainer, children: [...Array(dotsCount)].map((_, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
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$B.dot,
50623
- subtle2 ? styles$B.subtle : styles$B.primary
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$B.visuallyHidden, children: text2 })
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$A = {
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$A.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
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$z = {
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$y = {
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$y.flatBody), children: [
50824
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$y.iconSmall) }),
50825
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.lineBase, "text-truncate"), children: errorType(message2) })
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$2 = "_grid_1s9n0_9";
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$x = {
50665
+ const styles$y = {
50837
50666
  target,
50838
50667
  answer,
50839
- grid: grid$2,
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$x.target)
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$x.answer)
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$x.grid, "text-size-base"),
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$x.titled : void 0,
50993
- col.center ? styles$x.centerLabel : void 0
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$x.value,
51007
- styles$x.wrap,
50835
+ styles$y.value,
50836
+ styles$y.wrap,
51008
50837
  col.clamp ? "three-line-clamp" : void 0,
51009
- col.center ? styles$x.centerValue : void 0
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$w = {
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$w.container), children: [
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$w.separator, styles$w.fullWidth, styles$w.headerSep)
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$w.cell), children: scorer2 }),
51115
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.cell, "text-size-base"), children: answer2 }),
51116
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.cell, "text-size-base"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
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$w.cell), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: explanation2 }) }),
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$w.fullWidth
50961
+ styles$x.fullWidth
51133
50962
  ),
51134
50963
  children: "Metadata"
51135
50964
  }
51136
50965
  ),
51137
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: metadata2 }) }),
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$w.separator,
51143
- styles$w.separatorPadded,
51144
- styles$w.fullWidth
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$v = {
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$v.container
51019
+ styles$w.container
51191
51020
  ),
51192
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: clsx(styles$v.scoreCard), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
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$v.wordBreak, "text-size-base")
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$v.scores)
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$u = {
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$u.title, className2), children: [
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$u.contents), children: contentEl });
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$t = {
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$t.tab
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$s = {
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$s.navs),
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$r = {
51193
+ const styles$s = {
51365
51194
  label: label$4,
51366
51195
  navs,
51367
51196
  card,
@@ -51376,8 +51205,7 @@ self.onmessage = function (e) {
51376
51205
  text: text2,
51377
51206
  icon: icon2,
51378
51207
  collapse,
51379
- children: children2,
51380
- running: running2
51208
+ children: children2
51381
51209
  }) => {
51382
51210
  const [isCollapsed, setCollapsed] = useProperty(id, "collapsed", {
51383
51211
  defaultValue: !!collapse
@@ -51449,12 +51277,12 @@ self.onmessage = function (e) {
51449
51277
  /* @__PURE__ */ jsxRuntimeExports.jsx(
51450
51278
  "div",
51451
51279
  {
51452
- className: clsx("text-style-secondary", styles$r.label),
51280
+ className: clsx("text-style-secondary", styles$s.label),
51453
51281
  onClick: toggleCollapse,
51454
51282
  children: isCollapsed ? text2 : ""
51455
51283
  }
51456
51284
  ),
51457
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
51285
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$s.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
51458
51286
  EventNavs,
51459
51287
  {
51460
51288
  navs: filteredArrChildren.map((child, index2) => {
@@ -51473,35 +51301,32 @@ self.onmessage = function (e) {
51473
51301
  ]
51474
51302
  }
51475
51303
  ) : "";
51476
- const card2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
51477
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$r.card), children: [
51478
- titleEl,
51479
- /* @__PURE__ */ jsxRuntimeExports.jsx(
51480
- "div",
51481
- {
51482
- className: clsx(
51483
- "tab-content",
51484
- styles$r.cardContent,
51485
- hasCollapse && isCollapsed ? styles$r.hidden : void 0
51486
- ),
51487
- children: filteredArrChildren == null ? void 0 : filteredArrChildren.map((child, index2) => {
51488
- const id2 = pillId(index2);
51489
- const isSelected = id2 === selectedNav;
51490
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
51491
- "div",
51492
- {
51493
- id: id2,
51494
- className: clsx("tab-pane", "show", isSelected ? "active" : ""),
51495
- children: child
51496
- },
51497
- `children-${id2}-${index2}`
51498
- );
51499
- })
51500
- }
51501
- )
51502
- ] }),
51503
- /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: !!running2 })
51504
- ] });
51304
+ const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$s.card), children: [
51305
+ titleEl,
51306
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
51307
+ "div",
51308
+ {
51309
+ className: clsx(
51310
+ "tab-content",
51311
+ styles$s.cardContent,
51312
+ hasCollapse && isCollapsed ? styles$s.hidden : void 0
51313
+ ),
51314
+ children: filteredArrChildren == null ? void 0 : filteredArrChildren.map((child, index2) => {
51315
+ const id2 = pillId(index2);
51316
+ const isSelected = id2 === selectedNav;
51317
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
51318
+ "div",
51319
+ {
51320
+ id: id2,
51321
+ className: clsx("tab-pane", "show", isSelected ? "active" : ""),
51322
+ children: child
51323
+ },
51324
+ `children-${id2}-${index2}`
51325
+ );
51326
+ })
51327
+ }
51328
+ )
51329
+ ] }) });
51505
51330
  return card2;
51506
51331
  };
51507
51332
  function hasDataDefault(node2) {
@@ -51534,7 +51359,7 @@ self.onmessage = function (e) {
51534
51359
  );
51535
51360
  };
51536
51361
  const panel$1 = "_panel_8zdtn_1";
51537
- const styles$q = {
51362
+ const styles$r = {
51538
51363
  panel: panel$1
51539
51364
  };
51540
51365
  const InfoEventView = ({
@@ -51544,9 +51369,9 @@ self.onmessage = function (e) {
51544
51369
  }) => {
51545
51370
  const panels = [];
51546
51371
  if (typeof event.data === "string") {
51547
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$q.panel }));
51372
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$r.panel }));
51548
51373
  } else {
51549
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$q.panel }));
51374
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$r.panel }));
51550
51375
  }
51551
51376
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
51552
51377
  EventPanel,
@@ -51583,9 +51408,9 @@ self.onmessage = function (e) {
51583
51408
  }
51584
51409
  );
51585
51410
  };
51586
- const grid$1 = "_grid_1eq5o_1";
51587
- const styles$p = {
51588
- grid: grid$1
51411
+ const grid$2 = "_grid_1eq5o_1";
51412
+ const styles$q = {
51413
+ grid: grid$2
51589
51414
  };
51590
51415
  const LoggerEventView = ({
51591
51416
  event,
@@ -51598,7 +51423,7 @@ self.onmessage = function (e) {
51598
51423
  className: className2,
51599
51424
  title: event.message.level,
51600
51425
  icon: ApplicationIcons.logging[event.message.level.toLowerCase()],
51601
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$p.grid), children: [
51426
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$q.grid), children: [
51602
51427
  /* @__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
51428
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", "text-style-secondary"), children: [
51604
51429
  event.message.filename,
@@ -51611,7 +51436,7 @@ self.onmessage = function (e) {
51611
51436
  };
51612
51437
  const container$5 = "_container_1brs9_1";
51613
51438
  const title$1 = "_title_1brs9_5";
51614
- const styles$o = {
51439
+ const styles$p = {
51615
51440
  container: container$5,
51616
51441
  title: title$1
51617
51442
  };
@@ -51620,11 +51445,11 @@ self.onmessage = function (e) {
51620
51445
  children: children2,
51621
51446
  className: className2
51622
51447
  }) => {
51623
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$o.container, className2), children: [
51448
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$p.container, className2), children: [
51624
51449
  /* @__PURE__ */ jsxRuntimeExports.jsx(
51625
51450
  "div",
51626
51451
  {
51627
- className: clsx("text-size-small", "text-style-label", styles$o.title),
51452
+ className: clsx("text-size-small", "text-style-label", styles$p.title),
51628
51453
  children: title2
51629
51454
  }
51630
51455
  ),
@@ -51639,7 +51464,7 @@ self.onmessage = function (e) {
51639
51464
  const progress$1 = "_progress_11njc_34";
51640
51465
  const toolConfig = "_toolConfig_11njc_38";
51641
51466
  const toolChoice = "_toolChoice_11njc_46";
51642
- const styles$n = {
51467
+ const styles$o = {
51643
51468
  container: container$4,
51644
51469
  all,
51645
51470
  tableSelection,
@@ -51655,7 +51480,7 @@ self.onmessage = function (e) {
51655
51480
  const col3 = "_col3_45f60_16";
51656
51481
  const separator$1 = "_separator_45f60_20";
51657
51482
  const topMargin = "_topMargin_45f60_26";
51658
- const styles$m = {
51483
+ const styles$n = {
51659
51484
  wrapper,
51660
51485
  col2,
51661
51486
  col1_3,
@@ -51723,9 +51548,9 @@ self.onmessage = function (e) {
51723
51548
  });
51724
51549
  }
51725
51550
  }
51726
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$m.wrapper), children: rows.map((row2, idx) => {
51551
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$n.wrapper), children: rows.map((row2, idx) => {
51727
51552
  if (row2.label === "---") {
51728
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$m.separator }, `$usage-sep-${idx}`);
51553
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.separator }, `$usage-sep-${idx}`);
51729
51554
  } else {
51730
51555
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
51731
51556
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -51734,13 +51559,13 @@ self.onmessage = function (e) {
51734
51559
  className: clsx(
51735
51560
  "text-style-label",
51736
51561
  "text-style-secondary",
51737
- row2.secondary ? styles$m.col2 : styles$m.col1_3,
51738
- row2.topMargin ? styles$m.topMargin : void 0
51562
+ row2.secondary ? styles$n.col2 : styles$n.col1_3,
51563
+ row2.topMargin ? styles$n.topMargin : void 0
51739
51564
  ),
51740
51565
  children: row2.label
51741
51566
  }
51742
51567
  ),
51743
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$m.col3, children: row2.value ? row2.value : "" })
51568
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.col3, children: row2.value ? row2.value : "" })
51744
51569
  ] }, `$usage-row-${idx}`);
51745
51570
  }
51746
51571
  }) });
@@ -51795,7 +51620,7 @@ self.onmessage = function (e) {
51795
51620
  subTitle: formatTiming(event.timestamp, event.working_start),
51796
51621
  icon: ApplicationIcons.model,
51797
51622
  children: [
51798
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$n.container, children: [
51623
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$o.container, children: [
51799
51624
  /* @__PURE__ */ jsxRuntimeExports.jsx(
51800
51625
  ChatView,
51801
51626
  {
@@ -51805,20 +51630,20 @@ self.onmessage = function (e) {
51805
51630
  toolCallStyle: "omit"
51806
51631
  }
51807
51632
  ),
51808
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$n.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
51633
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$o.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
51809
51634
  ] }),
51810
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$n.container, children: [
51811
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$n.all, children: [
51635
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$o.container, children: [
51636
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o.all, children: [
51812
51637
  Object.keys(entries).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
51813
51638
  EventSection,
51814
51639
  {
51815
51640
  title: "Configuration",
51816
- className: styles$n.tableSelection,
51641
+ className: styles$o.tableSelection,
51817
51642
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true })
51818
51643
  }
51819
51644
  ),
51820
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$n.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
51821
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$n.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51645
+ /* @__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 }),
51646
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$o.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51822
51647
  EventTimingPanel,
51823
51648
  {
51824
51649
  timestamp: event.timestamp,
@@ -51836,13 +51661,13 @@ self.onmessage = function (e) {
51836
51661
  }
51837
51662
  ) })
51838
51663
  ] }),
51839
- event.tools.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Tools", className: styles$n.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools, toolChoice: event.tool_choice }) }),
51664
+ 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
51665
  event.call ? /* @__PURE__ */ jsxRuntimeExports.jsx(
51841
51666
  APIView,
51842
51667
  {
51843
51668
  "data-name": "API",
51844
51669
  call: event.call,
51845
- className: styles$n.container
51670
+ className: styles$o.container
51846
51671
  }
51847
51672
  ) : ""
51848
51673
  ]
@@ -51866,11 +51691,11 @@ self.onmessage = function (e) {
51866
51691
  if (!contents2) {
51867
51692
  return null;
51868
51693
  }
51869
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$n.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51694
+ 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
51695
  "code",
51871
51696
  {
51872
51697
  id,
51873
- className: clsx("language-json", styles$n.code, "text-size-small"),
51698
+ className: clsx("language-json", styles$o.code, "text-size-small"),
51874
51699
  children: sourceCode
51875
51700
  }
51876
51701
  ) }) });
@@ -51883,8 +51708,8 @@ self.onmessage = function (e) {
51883
51708
  ] }, `${tool2.name}-${idx}`);
51884
51709
  });
51885
51710
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
51886
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.toolConfig, children: toolEls }),
51887
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$n.toolChoice, children: [
51711
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$o.toolConfig, children: toolEls }),
51712
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o.toolChoice, children: [
51888
51713
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Tool Choice" }),
51889
51714
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolChoiceView, { toolChoice: toolChoice2 }) })
51890
51715
  ] })
@@ -51906,7 +51731,7 @@ self.onmessage = function (e) {
51906
51731
  const sample = "_sample_1a3fk_10";
51907
51732
  const section = "_section_1a3fk_14";
51908
51733
  const metadata$1 = "_metadata_1a3fk_21";
51909
- const styles$l = {
51734
+ const styles$m = {
51910
51735
  noMargin,
51911
51736
  code: code$1,
51912
51737
  sample,
@@ -51923,13 +51748,13 @@ self.onmessage = function (e) {
51923
51748
  if (event.sample.files && Object.keys(event.sample.files).length > 0) {
51924
51749
  sections.push(
51925
51750
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Files", children: Object.keys(event.sample.files).map((file) => {
51926
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$l.noMargin, children: file }, `sample-init-file-${file}`);
51751
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$m.noMargin, children: file }, `sample-init-file-${file}`);
51927
51752
  }) }, `sample-${id}-init-files`)
51928
51753
  );
51929
51754
  }
51930
51755
  if (event.sample.setup) {
51931
51756
  sections.push(
51932
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$l.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
51757
+ /* @__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
51758
  );
51934
51759
  }
51935
51760
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -51941,7 +51766,7 @@ self.onmessage = function (e) {
51941
51766
  icon: ApplicationIcons.sample,
51942
51767
  subTitle: formatDateTime(new Date(event.timestamp)),
51943
51768
  children: [
51944
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$l.sample, children: [
51769
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$m.sample, children: [
51945
51770
  /* @__PURE__ */ jsxRuntimeExports.jsx(ChatView, { messages: stateObj["messages"] }),
51946
51771
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
51947
51772
  event.sample.choices ? event.sample.choices.map((choice, index2) => {
@@ -51951,7 +51776,7 @@ self.onmessage = function (e) {
51951
51776
  choice
51952
51777
  ] }, `$choice-{choice}`);
51953
51778
  }) : "",
51954
- sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$l.section, children: sections }) : "",
51779
+ sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$m.section, children: sections }) : "",
51955
51780
  event.sample.target ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Target", children: toArray(event.sample.target).map((target2) => {
51956
51781
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: target2 }, target2);
51957
51782
  }) }) : void 0
@@ -51961,7 +51786,7 @@ self.onmessage = function (e) {
51961
51786
  MetaDataGrid,
51962
51787
  {
51963
51788
  "data-name": "Metadata",
51964
- className: styles$l.metadata,
51789
+ className: styles$m.metadata,
51965
51790
  entries: event.sample.metadata
51966
51791
  }
51967
51792
  ) : ""
@@ -52010,12 +51835,12 @@ self.onmessage = function (e) {
52010
51835
  const icon2 = resolve_icon(event.type);
52011
51836
  return /* @__PURE__ */ jsxRuntimeExports.jsx(EventPanel, { id, title: title2, icon: icon2, className: className2, children: event.message });
52012
51837
  };
52013
- const twoColumn = "_twoColumn_iwnfd_9";
52014
- const exec = "_exec_iwnfd_15";
52015
- const result = "_result_iwnfd_19";
52016
- const fileLabel = "_fileLabel_iwnfd_23";
52017
- const wrapPre = "_wrapPre_iwnfd_28";
52018
- const styles$k = {
51838
+ const twoColumn = "_twoColumn_1irga_9";
51839
+ const exec = "_exec_1irga_15";
51840
+ const result = "_result_1irga_19";
51841
+ const fileLabel = "_fileLabel_1irga_23";
51842
+ const wrapPre = "_wrapPre_1irga_28";
51843
+ const styles$l = {
52019
51844
  twoColumn,
52020
51845
  exec,
52021
51846
  result,
@@ -52048,10 +51873,10 @@ self.onmessage = function (e) {
52048
51873
  const input2 = event.input;
52049
51874
  const result2 = event.result;
52050
51875
  const output2 = event.output;
52051
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$k.exec), children: [
52052
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$k.twoColumn), children: [
52053
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$k.wrapPre), children: cmd2 }),
52054
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$k.wrapPre), children: input2 !== null ? input2 == null ? void 0 : input2.trim() : void 0 }),
51876
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.exec), children: [
51877
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.twoColumn), children: [
51878
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.wrapPre), children: cmd2 }),
51879
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.wrapPre), children: input2 !== null ? input2 == null ? void 0 : input2.trim() : void 0 }),
52055
51880
  options2 !== null && Object.keys(options2).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Options`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
52056
51881
  MetaDataGrid,
52057
51882
  {
@@ -52062,7 +51887,7 @@ self.onmessage = function (e) {
52062
51887
  ] }) }),
52063
51888
  /* @__PURE__ */ jsxRuntimeExports.jsxs(EventSection, { title: `Result`, children: [
52064
51889
  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$k.result), children: [
51890
+ result2 !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$l.result), children: [
52066
51891
  "Exited with code ",
52067
51892
  result2
52068
51893
  ] }) : void 0
@@ -52087,14 +51912,14 @@ self.onmessage = function (e) {
52087
51912
  };
52088
51913
  const FileView = ({ id, file, contents: contents2 }) => {
52089
51914
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
52090
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$k.fileLabel), children: file }) }),
51915
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$l.fileLabel), children: file }) }),
52091
51916
  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
51917
  ] });
52093
51918
  };
52094
51919
  const explanation = "_explanation_1ww42_1";
52095
51920
  const separator = "_separator_1ww42_8";
52096
51921
  const metadata = "_metadata_1ww42_13";
52097
- const styles$j = {
51922
+ const styles$k = {
52098
51923
  explanation,
52099
51924
  separator,
52100
51925
  metadata
@@ -52114,28 +51939,28 @@ self.onmessage = function (e) {
52114
51939
  subTitle: formatDateTime(new Date(event.timestamp)),
52115
51940
  icon: ApplicationIcons.scorer,
52116
51941
  children: [
52117
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$j.explanation), children: [
51942
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$k.explanation), children: [
52118
51943
  event.target ? /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
52119
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.separator) }),
51944
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
52120
51945
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Target" }),
52121
51946
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: resolvedTarget || "" }) })
52122
51947
  ] }) : "",
52123
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.separator) }),
51948
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
52124
51949
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
52125
51950
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.answer || "" }) }),
52126
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.separator) }),
51951
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
52127
51952
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
52128
51953
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.explanation || "" }) }),
52129
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.separator) }),
51954
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) }),
52130
51955
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Score" }),
52131
51956
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.score.value) }),
52132
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.separator) })
51957
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$k.separator) })
52133
51958
  ] }),
52134
51959
  event.score.metadata ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Metadata", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
52135
51960
  MetaDataGrid,
52136
51961
  {
52137
51962
  entries: event.score.metadata,
52138
- className: styles$j.metadata
51963
+ className: styles$k.metadata
52139
51964
  }
52140
51965
  ) }) : void 0
52141
51966
  ]
@@ -58880,7 +58705,7 @@ ${events}
58880
58705
  const lightboxButtonCloseWrapper = "_lightboxButtonCloseWrapper_1mvg8_45";
58881
58706
  const lightboxButtonClose = "_lightboxButtonClose_1mvg8_45";
58882
58707
  const lightboxPreviewButton = "_lightboxPreviewButton_1mvg8_63";
58883
- const styles$i = {
58708
+ const styles$j = {
58884
58709
  carouselThumbs,
58885
58710
  carouselThumb,
58886
58711
  carouselPlayIcon,
@@ -58949,12 +58774,12 @@ ${events}
58949
58774
  [openLightbox]
58950
58775
  );
58951
58776
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("lightbox-carousel-container"), children: [
58952
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$i.carouselThumbs), children: slides.map((slide, index2) => {
58777
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.carouselThumbs), children: slides.map((slide, index2) => {
58953
58778
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
58954
58779
  "div",
58955
58780
  {
58956
58781
  "data-index": index2,
58957
- className: clsx(styles$i.carouselThumb),
58782
+ className: clsx(styles$j.carouselThumb),
58958
58783
  onClick: handleThumbClick,
58959
58784
  children: [
58960
58785
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: slide.label }),
@@ -58963,7 +58788,7 @@ ${events}
58963
58788
  {
58964
58789
  className: clsx(
58965
58790
  ApplicationIcons.play,
58966
- styles$i.carouselPlayIcon
58791
+ styles$j.carouselPlayIcon
58967
58792
  )
58968
58793
  }
58969
58794
  ) })
@@ -58975,12 +58800,12 @@ ${events}
58975
58800
  showOverlay && /* @__PURE__ */ jsxRuntimeExports.jsxs(
58976
58801
  "div",
58977
58802
  {
58978
- className: clsx(styles$i.lightboxOverlay, isOpen ? "open" : "closed"),
58803
+ className: clsx(styles$j.lightboxOverlay, isOpen ? "open" : "closed"),
58979
58804
  children: [
58980
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$i.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58805
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
58981
58806
  "button",
58982
58807
  {
58983
- className: styles$i.lightboxButtonClose,
58808
+ className: styles$j.lightboxButtonClose,
58984
58809
  onClick: closeLightbox,
58985
58810
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
58986
58811
  }
@@ -58988,7 +58813,7 @@ ${events}
58988
58813
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58989
58814
  "button",
58990
58815
  {
58991
- className: clsx(styles$i.lightboxPreviewButton, "prev"),
58816
+ className: clsx(styles$j.lightboxPreviewButton, "prev"),
58992
58817
  onClick: showPrev,
58993
58818
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.previous })
58994
58819
  }
@@ -58996,7 +58821,7 @@ ${events}
58996
58821
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58997
58822
  "button",
58998
58823
  {
58999
- className: clsx(styles$i.lightboxPreviewButton, "next"),
58824
+ className: clsx(styles$j.lightboxPreviewButton, "next"),
59000
58825
  onClick: showNext,
59001
58826
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.next })
59002
58827
  }
@@ -59004,7 +58829,7 @@ ${events}
59004
58829
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59005
58830
  "div",
59006
58831
  {
59007
- className: clsx(styles$i.lightboxContent, isOpen ? "open" : "closed"),
58832
+ className: clsx(styles$j.lightboxContent, isOpen ? "open" : "closed"),
59008
58833
  children: slides[currentIndex].render()
59009
58834
  },
59010
58835
  `carousel-slide-${currentIndex}`
@@ -59115,7 +58940,7 @@ ${events}
59115
58940
  const toolsGrid = "_toolsGrid_1qqm2_1";
59116
58941
  const tools = "_tools_1qqm2_1";
59117
58942
  const tool = "_tool_1qqm2_1";
59118
- const styles$h = {
58943
+ const styles$i = {
59119
58944
  toolsGrid,
59120
58945
  tools,
59121
58946
  tool
@@ -59256,7 +59081,7 @@ ${events}
59256
59081
  toolsInfo["Tools"] = /* @__PURE__ */ jsxRuntimeExports.jsx(Tools, { toolDefinitions: filtered });
59257
59082
  }
59258
59083
  }
59259
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$h.tools), children: Object.keys(toolsInfo).map((key2) => {
59084
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$i.tools), children: Object.keys(toolsInfo).map((key2) => {
59260
59085
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
59261
59086
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59262
59087
  "div",
@@ -59309,7 +59134,7 @@ ${events}
59309
59134
  human_baseline_session
59310
59135
  ];
59311
59136
  const Tools = ({ toolDefinitions }) => {
59312
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$h.toolsGrid, children: toolDefinitions.map((toolDefinition, idx) => {
59137
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.toolsGrid, children: toolDefinitions.map((toolDefinition, idx) => {
59313
59138
  var _a2;
59314
59139
  const toolName = toolDefinition.name;
59315
59140
  const toolArgs = ((_a2 = toolDefinition.parameters) == null ? void 0 : _a2.properties) ? Object.keys(toolDefinition.parameters.properties) : [];
@@ -59325,11 +59150,11 @@ ${events}
59325
59150
  };
59326
59151
  const Tool = ({ toolName, toolArgs }) => {
59327
59152
  const functionCall = toolArgs && toolArgs.length > 0 ? `${toolName}(${toolArgs.join(", ")})` : toolName;
59328
- return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$h.tool), children: functionCall });
59153
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$i.tool), children: functionCall });
59329
59154
  };
59330
59155
  const diff = "_diff_eobja_1";
59331
59156
  const summary$2 = "_summary_eobja_6";
59332
- const styles$g = {
59157
+ const styles$h = {
59333
59158
  diff,
59334
59159
  summary: summary$2
59335
59160
  };
@@ -59367,14 +59192,14 @@ ${events}
59367
59192
  text: !changePreview ? summary2 : void 0,
59368
59193
  collapse: changePreview === void 0 ? true : void 0,
59369
59194
  children: [
59370
- changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$g.summary), children: changePreview }) : void 0,
59195
+ changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$h.summary), children: changePreview }) : void 0,
59371
59196
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59372
59197
  StateDiffView,
59373
59198
  {
59374
59199
  before,
59375
59200
  after,
59376
59201
  "data-name": "Diff",
59377
- className: clsx(styles$g.diff)
59202
+ className: clsx(styles$h.diff)
59378
59203
  }
59379
59204
  )
59380
59205
  ]
@@ -59575,6 +59400,13 @@ ${events}
59575
59400
  function initializeObject(current2) {
59576
59401
  return current2 ?? {};
59577
59402
  }
59403
+ const ET_STEP = "step";
59404
+ const ACTION_BEGIN = "begin";
59405
+ const ET_SPAN_BEGIN = "span_begin";
59406
+ const ET_SPAN_END = "span_end";
59407
+ const hasSpans = (events) => {
59408
+ return events.some((event) => event.event === ET_SPAN_BEGIN);
59409
+ };
59578
59410
  const kSandboxSignalName = "53787D8A-D3FC-426D-B383-9F880B70E4AA";
59579
59411
  const fixupEventStream = (events, filterPending = true) => {
59580
59412
  const collapsed = processPendingEvents(events, filterPending);
@@ -59597,44 +59429,65 @@ ${events}
59597
59429
  }, []);
59598
59430
  };
59599
59431
  const collapseSampleInit = (events) => {
59432
+ const hasSpans2 = events.some((e) => {
59433
+ return e.event === "span_begin" || e.event === "span_end";
59434
+ });
59435
+ if (hasSpans2) {
59436
+ return events;
59437
+ }
59600
59438
  const hasInitStep = events.findIndex((e) => {
59601
59439
  return e.event === "step" && e.name === "init";
59602
59440
  }) !== -1;
59441
+ if (hasInitStep) {
59442
+ return events;
59443
+ }
59603
59444
  const initEventIndex = events.findIndex((e) => {
59604
59445
  return e.event === "sample_init";
59605
59446
  });
59606
59447
  const initEvent = events[initEventIndex];
59607
- const fixedUp = [...events];
59608
- if (!hasInitStep && initEvent) {
59609
- fixedUp.splice(initEventIndex, 0, {
59610
- timestamp: initEvent.timestamp,
59611
- event: "step",
59612
- action: "begin",
59613
- type: null,
59614
- name: "sample_init",
59615
- pending: false,
59616
- working_start: 0
59617
- });
59618
- fixedUp.splice(initEventIndex + 2, 0, {
59619
- timestamp: initEvent.timestamp,
59620
- event: "step",
59621
- action: "end",
59622
- type: null,
59623
- name: "sample_init",
59624
- pending: false,
59625
- working_start: 0
59626
- });
59448
+ if (!initEvent) {
59449
+ return events;
59627
59450
  }
59451
+ const fixedUp = [...events];
59452
+ fixedUp.splice(initEventIndex, 0, {
59453
+ timestamp: initEvent.timestamp,
59454
+ event: "step",
59455
+ action: "begin",
59456
+ type: null,
59457
+ name: "sample_init",
59458
+ pending: false,
59459
+ working_start: 0,
59460
+ span_id: initEvent.span_id
59461
+ });
59462
+ fixedUp.splice(initEventIndex + 2, 0, {
59463
+ timestamp: initEvent.timestamp,
59464
+ event: "step",
59465
+ action: "end",
59466
+ type: null,
59467
+ name: "sample_init",
59468
+ pending: false,
59469
+ working_start: 0,
59470
+ span_id: initEvent.span_id
59471
+ });
59628
59472
  return fixedUp;
59629
59473
  };
59630
59474
  const groupSandboxEvents = (events) => {
59631
59475
  const result2 = [];
59632
59476
  const pendingSandboxEvents = [];
59477
+ const useSpans = hasSpans(events);
59633
59478
  const pushPendingSandboxEvents = () => {
59634
59479
  const timestamp = pendingSandboxEvents[pendingSandboxEvents.length - 1].timestamp;
59635
- result2.push(createStepEvent(kSandboxSignalName, timestamp, "begin"));
59480
+ if (useSpans) {
59481
+ result2.push(createSpanBegin(kSandboxSignalName, timestamp, null));
59482
+ } else {
59483
+ result2.push(createStepEvent(kSandboxSignalName, timestamp, "begin"));
59484
+ }
59636
59485
  result2.push(...pendingSandboxEvents);
59637
- result2.push(createStepEvent(kSandboxSignalName, timestamp, "end"));
59486
+ if (useSpans) {
59487
+ result2.push(createSpanEnd(kSandboxSignalName, timestamp));
59488
+ } else {
59489
+ result2.push(createStepEvent(kSandboxSignalName, timestamp, "end"));
59490
+ }
59638
59491
  pendingSandboxEvents.length = 0;
59639
59492
  };
59640
59493
  for (const event of events) {
@@ -59659,8 +59512,32 @@ ${events}
59659
59512
  type: null,
59660
59513
  name: name2,
59661
59514
  pending: false,
59662
- working_start: 0
59515
+ working_start: 0,
59516
+ span_id: null
59663
59517
  });
59518
+ const createSpanBegin = (name2, timestamp, parent_id) => {
59519
+ return {
59520
+ name: name2,
59521
+ id: `${name2}-begin`,
59522
+ span_id: name2,
59523
+ parent_id,
59524
+ timestamp,
59525
+ event: "span_begin",
59526
+ type: null,
59527
+ pending: false,
59528
+ working_start: 0
59529
+ };
59530
+ };
59531
+ const createSpanEnd = (name2, timestamp) => {
59532
+ return {
59533
+ id: `${name2}-end`,
59534
+ timestamp,
59535
+ event: "span_end",
59536
+ pending: false,
59537
+ working_start: 0,
59538
+ span_id: name2
59539
+ };
59540
+ };
59664
59541
  const StepEventView = ({
59665
59542
  id,
59666
59543
  event,
@@ -59669,7 +59546,7 @@ ${events}
59669
59546
  }) => {
59670
59547
  const descriptor = stepDescriptor(event);
59671
59548
  const title2 = descriptor.name || `${event.type ? event.type + ": " : "Step: "}${event.name}`;
59672
- const text2 = summarize(children2);
59549
+ const text2 = summarize$1(children2);
59673
59550
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
59674
59551
  EventPanel,
59675
59552
  {
@@ -59690,7 +59567,7 @@ ${events}
59690
59567
  }
59691
59568
  );
59692
59569
  };
59693
- const summarize = (children2) => {
59570
+ const summarize$1 = (children2) => {
59694
59571
  if (children2.length === 0) {
59695
59572
  return "(no events)";
59696
59573
  }
@@ -59795,7 +59672,7 @@ ${events}
59795
59672
  const summaryRendered = "_summaryRendered_ac4z2_6";
59796
59673
  const subtaskSummary = "_subtaskSummary_ac4z2_10";
59797
59674
  const subtaskLabel = "_subtaskLabel_ac4z2_17";
59798
- const styles$f = {
59675
+ const styles$g = {
59799
59676
  summary: summary$1,
59800
59677
  summaryRendered,
59801
59678
  subtaskSummary,
@@ -59810,9 +59687,9 @@ ${events}
59810
59687
  const body2 = [];
59811
59688
  if (event.type === "fork") {
59812
59689
  body2.push(
59813
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$f.summary), children: [
59690
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$g.summary), children: [
59814
59691
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Inputs" }),
59815
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$f.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
59692
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$g.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
59816
59693
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Transcript" }),
59817
59694
  event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
59818
59695
  TranscriptView,
@@ -59869,12 +59746,12 @@ ${events}
59869
59746
  };
59870
59747
  const SubtaskSummary = ({ input: input2, result: result2 }) => {
59871
59748
  const output2 = typeof result2 === "object" ? result2 : { result: result2 };
59872
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$f.subtaskSummary), children: [
59749
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$g.subtaskSummary), children: [
59873
59750
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Input" }),
59874
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$f.subtaskLabel) }),
59751
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$g.subtaskLabel) }),
59875
59752
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Output" }),
59876
59753
  input2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: input2 }) : void 0,
59877
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$f.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
59754
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$g.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
59878
59755
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: output2 }) })
59879
59756
  ] });
59880
59757
  };
@@ -59899,7 +59776,7 @@ ${events}
59899
59776
  const summary = "_summary_1qsnv_1";
59900
59777
  const approval = "_approval_1qsnv_6";
59901
59778
  const progress = "_progress_1qsnv_12";
59902
- const styles$e = {
59779
+ const styles$f = {
59903
59780
  summary,
59904
59781
  approval,
59905
59782
  progress
@@ -59907,7 +59784,7 @@ ${events}
59907
59784
  const ToolEventView = ({
59908
59785
  id,
59909
59786
  event,
59910
- depth,
59787
+ children: children2,
59911
59788
  className: className2
59912
59789
  }) => {
59913
59790
  var _a2, _b2;
@@ -59934,7 +59811,7 @@ ${events}
59934
59811
  subTitle: formatTiming(event.timestamp, event.working_start),
59935
59812
  icon: ApplicationIcons.solvers.use_tools,
59936
59813
  children: [
59937
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$e.summary, children: [
59814
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$f.summary, children: [
59938
59815
  /* @__PURE__ */ jsxRuntimeExports.jsx(
59939
59816
  ToolCallView,
59940
59817
  {
@@ -59960,25 +59837,162 @@ ${events}
59960
59837
  ApprovalEventView,
59961
59838
  {
59962
59839
  event: approvalEvent,
59963
- className: styles$e.approval
59840
+ className: styles$f.approval
59964
59841
  }
59965
59842
  ) : "",
59966
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$e.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
59843
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$f.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
59967
59844
  ] }),
59968
- event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
59969
- TranscriptView,
59845
+ children2.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
59846
+ TranscriptComponent,
59970
59847
  {
59971
- id: `${id}-subtask`,
59972
59848
  "data-name": "Transcript",
59973
- "data-default": event.failed || event.agent ? true : null,
59974
- events: event.events,
59975
- depth: depth + 1
59849
+ id: `${id}-subtask`,
59850
+ eventNodes: children2,
59851
+ "data-default": event.failed || event.agent ? true : null
59976
59852
  }
59977
59853
  ) : ""
59978
59854
  ]
59979
59855
  }
59980
59856
  );
59981
59857
  };
59858
+ const SpanEventView = ({
59859
+ id,
59860
+ event,
59861
+ children: children2,
59862
+ className: className2
59863
+ }) => {
59864
+ const descriptor = spanDescriptor(event);
59865
+ const title2 = descriptor.name || `${event.type ? event.type + ": " : "Step: "}${event.name}`;
59866
+ const text2 = summarize(children2);
59867
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
59868
+ EventPanel,
59869
+ {
59870
+ id: `span-${event.name}-${id}`,
59871
+ className: clsx("transcript-span", className2),
59872
+ title: title2,
59873
+ subTitle: formatDateTime(new Date(event.timestamp)),
59874
+ text: text2,
59875
+ collapse: descriptor.collapse,
59876
+ icon: descriptor.icon,
59877
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
59878
+ TranscriptComponent,
59879
+ {
59880
+ id: `span|${event.name}|${id}`,
59881
+ eventNodes: children2
59882
+ }
59883
+ )
59884
+ }
59885
+ );
59886
+ };
59887
+ const summarize = (children2) => {
59888
+ if (children2.length === 0) {
59889
+ return "(no events)";
59890
+ }
59891
+ const formatEvent = (event, count) => {
59892
+ if (count === 1) {
59893
+ return `${count} ${event} event`;
59894
+ } else {
59895
+ return `${count} ${event} events`;
59896
+ }
59897
+ };
59898
+ const typeCount = {};
59899
+ children2.forEach((child) => {
59900
+ const currentCount = typeCount[child.event.event] || 0;
59901
+ typeCount[child.event.event] = currentCount + 1;
59902
+ });
59903
+ const numberOfTypes = Object.keys(typeCount).length;
59904
+ if (numberOfTypes < 3) {
59905
+ return Object.keys(typeCount).map((key2) => {
59906
+ return formatEvent(key2, typeCount[key2]);
59907
+ }).join(", ");
59908
+ }
59909
+ if (children2.length === 1) {
59910
+ return "1 event";
59911
+ } else {
59912
+ return `${children2.length} events`;
59913
+ }
59914
+ };
59915
+ const spanDescriptor = (event) => {
59916
+ const rootStepDescriptor = {
59917
+ endSpace: true
59918
+ };
59919
+ if (event.type === "solver") {
59920
+ switch (event.name) {
59921
+ case "chain_of_thought":
59922
+ return {
59923
+ ...rootStepDescriptor,
59924
+ collapse: false
59925
+ };
59926
+ case "generate":
59927
+ return {
59928
+ ...rootStepDescriptor,
59929
+ collapse: false
59930
+ };
59931
+ case "self_critique":
59932
+ return {
59933
+ ...rootStepDescriptor,
59934
+ collapse: false
59935
+ };
59936
+ case "system_message":
59937
+ return {
59938
+ ...rootStepDescriptor,
59939
+ collapse: true
59940
+ };
59941
+ case "use_tools":
59942
+ return {
59943
+ ...rootStepDescriptor,
59944
+ collapse: false
59945
+ };
59946
+ case "multiple_choice":
59947
+ return {
59948
+ ...rootStepDescriptor,
59949
+ collapse: false
59950
+ };
59951
+ default:
59952
+ return {
59953
+ ...rootStepDescriptor,
59954
+ collapse: false
59955
+ };
59956
+ }
59957
+ } else if (event.type === "scorer") {
59958
+ return {
59959
+ ...rootStepDescriptor,
59960
+ collapse: false
59961
+ };
59962
+ } else if (event.event === "span_begin") {
59963
+ if (event.span_id === kSandboxSignalName) {
59964
+ return {
59965
+ ...rootStepDescriptor,
59966
+ name: "Sandbox Events",
59967
+ collapse: true
59968
+ };
59969
+ } else if (event.name === "init") {
59970
+ return {
59971
+ ...rootStepDescriptor,
59972
+ name: "Init",
59973
+ collapse: true
59974
+ };
59975
+ } else {
59976
+ return {
59977
+ ...rootStepDescriptor,
59978
+ collapse: false
59979
+ };
59980
+ }
59981
+ } else {
59982
+ switch (event.name) {
59983
+ case "sample_init":
59984
+ return {
59985
+ ...rootStepDescriptor,
59986
+ name: "Sample Init",
59987
+ collapse: true
59988
+ };
59989
+ default:
59990
+ return {
59991
+ endSpace: false
59992
+ };
59993
+ }
59994
+ }
59995
+ };
59982
59996
  const transcriptComponent = "_transcriptComponent_171gc_19";
59983
59997
  const eventNode = "_eventNode_171gc_25";
59984
59998
  const darkenBg = "_darkenBg_171gc_29";
@@ -59986,7 +60000,7 @@ ${events}
59986
60000
  const eventNodeContainer = "_eventNodeContainer_171gc_37";
59987
60001
  const noBottom = "_noBottom_171gc_41";
59988
60002
  const attached$1 = "_attached_171gc_45";
59989
- const styles$d = {
60003
+ const styles$e = {
59990
60004
  transcriptComponent,
59991
60005
  eventNode,
59992
60006
  darkenBg,
@@ -59995,11 +60009,11 @@ ${events}
59995
60009
  noBottom,
59996
60010
  attached: attached$1
59997
60011
  };
59998
- const darkenedBg = "_darkenedBg_1sie6_1";
59999
- const normalBg = "_normalBg_1sie6_5";
60000
- const node = "_node_1sie6_9";
60001
- const attached = "_attached_1sie6_14";
60002
- const styles$c = {
60012
+ const darkenedBg = "_darkenedBg_u9na2_1";
60013
+ const normalBg = "_normalBg_u9na2_5";
60014
+ const node = "_node_u9na2_9";
60015
+ const attached = "_attached_u9na2_14";
60016
+ const styles$d = {
60003
60017
  darkenedBg,
60004
60018
  normalBg,
60005
60019
  node,
@@ -60007,17 +60021,17 @@ ${events}
60007
60021
  };
60008
60022
  const TranscriptVirtualListComponent = ({ id, eventNodes, scrollRef, running: running2 }) => {
60009
60023
  const renderRow = reactExports.useCallback((index2, item2) => {
60010
- const bgClass = item2.depth % 2 == 0 ? styles$c.darkenedBg : styles$c.normalBg;
60011
- const paddingClass = index2 === 0 ? styles$c.first : void 0;
60024
+ const bgClass = item2.depth % 2 == 0 ? styles$d.darkenedBg : styles$d.normalBg;
60025
+ const paddingClass = index2 === 0 ? styles$d.first : void 0;
60012
60026
  const eventId = `${id}-event-${index2}`;
60013
60027
  const previousIndex = index2 - 1;
60014
60028
  const previous = previousIndex > 0 && previousIndex <= eventNodes.length ? eventNodes[previousIndex] : void 0;
60015
60029
  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$c.attached : void 0;
60030
+ const attachedClass = attached2 ? styles$d.attached : void 0;
60017
60031
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
60018
60032
  "div",
60019
60033
  {
60020
- className: clsx(styles$c.node, paddingClass, attachedClass),
60034
+ className: clsx(styles$d.node, paddingClass, attachedClass),
60021
60035
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedEventNode, { id: eventId, node: item2, className: clsx(bgClass) })
60022
60036
  },
60023
60037
  eventId
@@ -60044,9 +60058,11 @@ ${events}
60044
60058
  }
60045
60059
  }
60046
60060
  function treeifyEvents(events, depth) {
60061
+ const useSpans = hasSpans(events);
60062
+ const treeFn = useSpans ? treeifyFnSpan : treeifyFnStep;
60047
60063
  const rootNodes = [];
60048
60064
  const stack2 = [];
60049
- const pushNode = (event) => {
60065
+ const addNode = (event) => {
60050
60066
  const node2 = new EventNode(event, stack2.length + depth);
60051
60067
  if (stack2.length > 0) {
60052
60068
  const parentNode = stack2[stack2.length - 1];
@@ -60056,20 +60072,139 @@ ${events}
60056
60072
  }
60057
60073
  return node2;
60058
60074
  };
60075
+ const pushStack = (node2) => {
60076
+ stack2.push(node2);
60077
+ };
60078
+ const popStack = () => {
60079
+ if (stack2.length > 0) {
60080
+ stack2.pop();
60081
+ }
60082
+ };
60059
60083
  events.forEach((event) => {
60060
- if (event.event === "step" && event.action === "begin") {
60061
- const node2 = pushNode(event);
60062
- stack2.push(node2);
60063
- } else if (event.event === "step" && event.action === "end") {
60064
- if (stack2.length > 0) {
60065
- stack2.pop();
60084
+ treeFn(event, addNode, pushStack, popStack);
60085
+ });
60086
+ if (useSpans) {
60087
+ return transformTree(rootNodes);
60088
+ } else {
60089
+ return rootNodes;
60090
+ }
60091
+ }
60092
+ const treeifyFnStep = (event, addNode, pushStack, popStack) => {
60093
+ switch (event.event) {
60094
+ case ET_STEP:
60095
+ if (event.action === ACTION_BEGIN) {
60096
+ const node2 = addNode(event);
60097
+ pushStack(node2);
60098
+ } else {
60099
+ popStack();
60100
+ }
60101
+ break;
60102
+ case ET_SPAN_BEGIN: {
60103
+ break;
60104
+ }
60105
+ case ET_SPAN_END: {
60106
+ break;
60107
+ }
60108
+ default:
60109
+ addNode(event);
60110
+ break;
60111
+ }
60112
+ };
60113
+ const treeifyFnSpan = (event, addNode, pushStack, popStack) => {
60114
+ switch (event.event) {
60115
+ case ET_STEP:
60116
+ break;
60117
+ case ET_SPAN_BEGIN: {
60118
+ const node2 = addNode(event);
60119
+ pushStack(node2);
60120
+ break;
60121
+ }
60122
+ case ET_SPAN_END: {
60123
+ popStack();
60124
+ break;
60125
+ }
60126
+ default:
60127
+ addNode(event);
60128
+ break;
60129
+ }
60130
+ };
60131
+ const treeNodeTransformers = [
60132
+ {
60133
+ name: "unwrap_tools",
60134
+ matches: (node2) => node2.event.event === "span_begin" && node2.event.type === "tool",
60135
+ process: (node2) => elevateChildNode(node2, "tool") || node2
60136
+ },
60137
+ {
60138
+ name: "unwrap_subtasks",
60139
+ matches: (node2) => node2.event.event === "span_begin" && node2.event.type === "subtask",
60140
+ process: (node2) => elevateChildNode(node2, "subtask") || node2
60141
+ },
60142
+ {
60143
+ name: "unwrap_agent_solver",
60144
+ matches: (node2) => node2.event.event === "span_begin" && node2.event["type"] === "solver" && node2.children.length === 2 && node2.children[0].event.event === "span_begin" && node2.children[0].event.type === "agent" && node2.children[1].event.event === "state",
60145
+ process: (node2) => skipFirstChildNode(node2)
60146
+ },
60147
+ {
60148
+ name: "unwrap_agent_solver w/store",
60149
+ matches: (node2) => node2.event.event === "span_begin" && node2.event["type"] === "solver" && node2.children.length === 3 && node2.children[0].event.event === "span_begin" && node2.children[0].event.type === "agent" && node2.children[1].event.event === "state" && node2.children[2].event.event === "store",
60150
+ process: (node2) => skipFirstChildNode(node2)
60151
+ },
60152
+ {
60153
+ name: "unwrap_handoff",
60154
+ matches: (node2) => node2.event.event === "span_begin" && node2.event["type"] === "handoff" && node2.children.length === 2 && node2.children[0].event.event === "tool" && node2.children[1].event.event === "store" && node2.children[0].children.length === 2 && node2.children[0].children[0].event.event === "span_begin" && node2.children[0].children[0].event.type === "agent",
60155
+ process: (node2) => skipThisNode(node2)
60156
+ }
60157
+ ];
60158
+ const transformTree = (roots) => {
60159
+ const visitNode = (node2) => {
60160
+ let processedNode = node2;
60161
+ processedNode.children = processedNode.children.map(visitNode);
60162
+ for (const transformer of treeNodeTransformers) {
60163
+ if (transformer.matches(processedNode)) {
60164
+ processedNode = transformer.process(processedNode);
60165
+ break;
60066
60166
  }
60067
- } else {
60068
- pushNode(event);
60069
60167
  }
60168
+ return processedNode;
60169
+ };
60170
+ return roots.map(visitNode);
60171
+ };
60172
+ const elevateChildNode = (node2, childEventType) => {
60173
+ const targetIndex = node2.children.findIndex(
60174
+ (child) => child.event.event === childEventType
60175
+ );
60176
+ if (targetIndex === -1) {
60177
+ console.log(
60178
+ `No ${childEventType} event found in a span, this is very unexpected.`
60179
+ );
60180
+ return null;
60181
+ }
60182
+ const targetNode = { ...node2.children[targetIndex] };
60183
+ const remainingChildren = node2.children.filter((_, i2) => i2 !== targetIndex);
60184
+ targetNode.depth = node2.depth;
60185
+ targetNode.children = reduceDepth(remainingChildren);
60186
+ return targetNode;
60187
+ };
60188
+ const skipFirstChildNode = (node2) => {
60189
+ const agentSpan = node2.children.splice(0, 1)[0];
60190
+ node2.children.unshift(...reduceDepth(agentSpan.children));
60191
+ return node2;
60192
+ };
60193
+ const skipThisNode = (node2) => {
60194
+ const newNode = { ...node2.children[0] };
60195
+ newNode.depth = node2.depth;
60196
+ newNode.children = reduceDepth(newNode.children[0].children, 2);
60197
+ return newNode;
60198
+ };
60199
+ const reduceDepth = (nodes, depth = 1) => {
60200
+ return nodes.map((node2) => {
60201
+ if (node2.children.length > 0) {
60202
+ node2.children = reduceDepth(node2.children, 1);
60203
+ }
60204
+ node2.depth = node2.depth - depth;
60205
+ return node2;
60070
60206
  });
60071
- return rootNodes;
60072
- }
60207
+ };
60073
60208
  const TranscriptView = ({
60074
60209
  id,
60075
60210
  events,
@@ -60107,27 +60242,27 @@ ${events}
60107
60242
  let attached2 = false;
60108
60243
  for (let i2 = 0; i2 < eventNodes.length; i2++) {
60109
60244
  const eventNode2 = eventNodes[i2];
60110
- const clz = [styles$d.eventNode];
60245
+ const clz = [styles$e.eventNode];
60111
60246
  const containerClz = [];
60112
60247
  if (eventNode2.event.event !== "tool") {
60113
60248
  attached2 = false;
60114
60249
  }
60115
60250
  if (eventNode2.depth % 2 == 0) {
60116
- clz.push(styles$d.darkenBg);
60251
+ clz.push(styles$e.darkenBg);
60117
60252
  }
60118
60253
  if (i2 === eventNodes.length - 1) {
60119
- clz.push(styles$d.lastNode);
60254
+ clz.push(styles$e.lastNode);
60120
60255
  }
60121
60256
  if (attached2) {
60122
- containerClz.push(styles$d.attached);
60257
+ containerClz.push(styles$e.attached);
60123
60258
  }
60124
60259
  const eventId = `${id}|event|${i2}`;
60125
60260
  const row2 = /* @__PURE__ */ jsxRuntimeExports.jsx(
60126
60261
  "div",
60127
60262
  {
60128
60263
  className: clsx(
60129
- styles$d.eventNodeContainer,
60130
- i2 === eventNodes.length - 1 ? styles$d.noBottom : void 0,
60264
+ styles$e.eventNodeContainer,
60265
+ i2 === eventNodes.length - 1 ? styles$e.noBottom : void 0,
60131
60266
  containerClz
60132
60267
  ),
60133
60268
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -60150,7 +60285,7 @@ ${events}
60150
60285
  "div",
60151
60286
  {
60152
60287
  id,
60153
- className: clsx("text-size-small", styles$d.transcriptComponent),
60288
+ className: clsx("text-size-small", styles$e.transcriptComponent),
60154
60289
  children: rows
60155
60290
  }
60156
60291
  );
@@ -60187,6 +60322,16 @@ ${events}
60187
60322
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ScoreEventView, { id, event: node2.event, className: className2 });
60188
60323
  case "state":
60189
60324
  return /* @__PURE__ */ jsxRuntimeExports.jsx(StateEventView, { id, event: node2.event, className: className2 });
60325
+ case "span_begin":
60326
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
60327
+ SpanEventView,
60328
+ {
60329
+ id,
60330
+ event: node2.event,
60331
+ children: node2.children,
60332
+ className: className2
60333
+ }
60334
+ );
60190
60335
  case "step":
60191
60336
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
60192
60337
  StepEventView,
@@ -60224,7 +60369,7 @@ ${events}
60224
60369
  id,
60225
60370
  event: node2.event,
60226
60371
  className: className2,
60227
- depth: node2.depth
60372
+ children: node2.children
60228
60373
  }
60229
60374
  );
60230
60375
  case "input":
@@ -60320,7 +60465,7 @@ ${events}
60320
60465
  {
60321
60466
  id: tabsetId,
60322
60467
  tabControlsClassName: clsx("text-size-base"),
60323
- tabPanelsClassName: clsx(styles$z.tabPanel),
60468
+ tabPanelsClassName: clsx(styles$A.tabPanel),
60324
60469
  tools: tools2,
60325
60470
  children: [
60326
60471
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -60349,7 +60494,7 @@ ${events}
60349
60494
  TabPanel,
60350
60495
  {
60351
60496
  id: kSampleMessagesTabId,
60352
- className: clsx("sample-tab", styles$z.fullWidth, styles$z.chat),
60497
+ className: clsx("sample-tab", styles$A.fullWidth, styles$A.chat),
60353
60498
  title: "Messages",
60354
60499
  onSelected: onSelectedTab,
60355
60500
  selected: effectiveSelectedTab === kSampleMessagesTabId,
@@ -60389,7 +60534,7 @@ ${events}
60389
60534
  title: "Metadata",
60390
60535
  onSelected: onSelectedTab,
60391
60536
  selected: effectiveSelectedTab === kSampleMetdataTabId,
60392
- children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.metadataPanel), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No metadata" })
60537
+ children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.metadataPanel), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No metadata" })
60393
60538
  }
60394
60539
  ),
60395
60540
  (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 +60545,14 @@ ${events}
60400
60545
  title: "Errors",
60401
60546
  onSelected: onSelectedTab,
60402
60547
  selected: effectiveSelectedTab === kSampleErrorTabId,
60403
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$z.error), children: [
60548
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.error), children: [
60404
60549
  (sample2 == null ? void 0 : sample2.error) ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
60405
60550
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: `Sample Error` }),
60406
60551
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
60407
60552
  ANSIDisplay,
60408
60553
  {
60409
60554
  output: sample2.error.traceback_ansi,
60410
- className: clsx("text-size-small", styles$z.ansi),
60555
+ className: clsx("text-size-small", styles$A.ansi),
60411
60556
  style: {
60412
60557
  fontSize: "clamp(0.4rem, calc(0.15em + 1vw), 0.8rem)",
60413
60558
  margin: "0.5em 0"
@@ -60422,7 +60567,7 @@ ${events}
60422
60567
  ANSIDisplay,
60423
60568
  {
60424
60569
  output: retry.traceback_ansi,
60425
- className: clsx("text-size-small", styles$z.ansi),
60570
+ className: clsx("text-size-small", styles$A.ansi),
60426
60571
  style: {
60427
60572
  fontSize: "clamp(0.4rem, calc(0.15em + 1vw), 0.8rem)",
60428
60573
  margin: "0.5em 0"
@@ -60442,7 +60587,7 @@ ${events}
60442
60587
  title: "JSON",
60443
60588
  onSelected: onSelectedTab,
60444
60589
  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$z.padded, styles$z.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
60590
+ 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
60591
  JSONPanel,
60447
60592
  {
60448
60593
  data: sample2,
@@ -60470,7 +60615,7 @@ ${events}
60470
60615
  ModelTokenTable,
60471
60616
  {
60472
60617
  model_usage: sample2.model_usage,
60473
- className: clsx(styles$z.noTop)
60618
+ className: clsx(styles$A.noTop)
60474
60619
  }
60475
60620
  ) })
60476
60621
  ] }, `sample-usage-${id}`)
@@ -60480,7 +60625,7 @@ ${events}
60480
60625
  sampleMetadatas.push(
60481
60626
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
60482
60627
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Time" }),
60483
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$z.timePanel, "text-size-smaller"), children: [
60628
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.timePanel, "text-size-smaller"), children: [
60484
60629
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Working" }),
60485
60630
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: formatTime$1(sample2.working_time) }),
60486
60631
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Total" }),
@@ -60498,7 +60643,7 @@ ${events}
60498
60643
  {
60499
60644
  id: "task-sample-metadata-${id}",
60500
60645
  entries: sample2 == null ? void 0 : sample2.metadata,
60501
- className: clsx("tab-pane", styles$z.noTop)
60646
+ className: clsx("tab-pane", styles$A.noTop)
60502
60647
  }
60503
60648
  ) })
60504
60649
  ] }, `sample-metadata-${id}`)
@@ -60513,7 +60658,7 @@ ${events}
60513
60658
  {
60514
60659
  id: "task-sample-store-${id}",
60515
60660
  entries: sample2 == null ? void 0 : sample2.store,
60516
- className: clsx("tab-pane", styles$z.noTop)
60661
+ className: clsx("tab-pane", styles$A.noTop)
60517
60662
  }
60518
60663
  ) })
60519
60664
  ] }, `sample-store-${id}`)
@@ -60590,7 +60735,7 @@ ${events}
60590
60735
  const container$3 = "_container_kgsc6_1";
60591
60736
  const body$1 = "_body_kgsc6_7";
60592
60737
  const scroller = "_scroller_kgsc6_11";
60593
- const styles$b = {
60738
+ const styles$c = {
60594
60739
  container: container$3,
60595
60740
  body: body$1,
60596
60741
  scroller
@@ -60627,14 +60772,14 @@ ${events}
60627
60772
  (_f = sampleData.sample) == null ? void 0 : _f.epoch
60628
60773
  ]);
60629
60774
  const scrollRef = reactExports.useRef(null);
60630
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.container, children: [
60775
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c.container, children: [
60631
60776
  /* @__PURE__ */ jsxRuntimeExports.jsx(
60632
60777
  ProgressBar,
60633
60778
  {
60634
60779
  animating: sampleData.status === "loading" || sampleData.status === "streaming"
60635
60780
  }
60636
60781
  ),
60637
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$b.scroller), ref: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$b.body, children: sampleData.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
60782
+ /* @__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
60783
  ErrorPanel,
60639
60784
  {
60640
60785
  title: "Unable to load sample",
@@ -60653,7 +60798,7 @@ ${events}
60653
60798
  const content$1 = "_content_yj2nt_41";
60654
60799
  const header$1 = "_header_yj2nt_45";
60655
60800
  const titleTool = "_titleTool_yj2nt_50";
60656
- const styles$a = {
60801
+ const styles$b = {
60657
60802
  title,
60658
60803
  detail,
60659
60804
  detailText,
@@ -60693,8 +60838,8 @@ ${events}
60693
60838
  id,
60694
60839
  className: clsx(
60695
60840
  "modal",
60696
- styles$a.modal,
60697
- !visible2 ? styles$a.hidden : void 0
60841
+ styles$b.modal,
60842
+ !visible2 ? styles$b.hidden : void 0
60698
60843
  ),
60699
60844
  role: "dialog",
60700
60845
  onKeyUp: onkeyup,
@@ -60706,23 +60851,23 @@ ${events}
60706
60851
  className: clsx(
60707
60852
  "modal-dialog",
60708
60853
  "modal-dialog-scrollable",
60709
- styles$a.modalBody
60854
+ styles$b.modalBody
60710
60855
  ),
60711
60856
  role: "document",
60712
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$a.content), children: [
60713
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$a.header), children: [
60857
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$b.content), children: [
60858
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$b.header), children: [
60714
60859
  /* @__PURE__ */ jsxRuntimeExports.jsx(
60715
60860
  "div",
60716
60861
  {
60717
- className: clsx("modal-title", "text-size-smaller", styles$a.title),
60862
+ className: clsx("modal-title", "text-size-smaller", styles$b.title),
60718
60863
  children: title2 || ""
60719
60864
  }
60720
60865
  ),
60721
- detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$a.detail, children: [
60866
+ detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$b.detail, children: [
60722
60867
  (detailTools == null ? void 0 : detailTools.left) ? detailTools.left.map((tool2, idx) => {
60723
60868
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-left-${idx}`);
60724
60869
  }) : "",
60725
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$a.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
60870
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$b.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
60726
60871
  (detailTools == null ? void 0 : detailTools.right) ? detailTools.right.map((tool2, idx) => {
60727
60872
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-right-${idx}`);
60728
60873
  }) : ""
@@ -60735,7 +60880,7 @@ ${events}
60735
60880
  "btn",
60736
60881
  "btn-close-large-dialog",
60737
60882
  "text-size-larger",
60738
- styles$a.close
60883
+ styles$b.close
60739
60884
  ),
60740
60885
  onClick: onHide,
60741
60886
  "aria-label": "Close",
@@ -60762,7 +60907,7 @@ ${events}
60762
60907
  "btn",
60763
60908
  "btn-outline",
60764
60909
  "text-size-small",
60765
- styles$a.titleTool
60910
+ styles$b.titleTool
60766
60911
  ),
60767
60912
  "aria-label": label2,
60768
60913
  onClick,
@@ -60872,7 +61017,7 @@ ${events}
60872
61017
  };
60873
61018
  const container$2 = "_container_15b4r_1";
60874
61019
  const label$3 = "_label_15b4r_5";
60875
- const styles$9 = {
61020
+ const styles$a = {
60876
61021
  container: container$2,
60877
61022
  label: label$3
60878
61023
  };
@@ -60889,7 +61034,7 @@ ${events}
60889
61034
  const sel = e.target;
60890
61035
  setEpoch(sel.value);
60891
61036
  };
60892
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$9.container, children: [
61037
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$a.container, children: [
60893
61038
  /* @__PURE__ */ jsxRuntimeExports.jsx(
60894
61039
  "span",
60895
61040
  {
@@ -60898,7 +61043,7 @@ ${events}
60898
61043
  "text-size-smaller",
60899
61044
  "text-style-label",
60900
61045
  "text-style-secondary",
60901
- styles$9.label
61046
+ styles$a.label
60902
61047
  ),
60903
61048
  children: "Epochs:"
60904
61049
  }
@@ -81089,7 +81234,7 @@ ${events}
81089
81234
  const label$2 = "_label_jbrqc_1";
81090
81235
  const input = "_input_jbrqc_7";
81091
81236
  const help = "_help_jbrqc_11";
81092
- const styles$8 = {
81237
+ const styles$9 = {
81093
81238
  label: label$2,
81094
81239
  input,
81095
81240
  help
@@ -81302,7 +81447,7 @@ Supported expressions:
81302
81447
  "text-size-smaller",
81303
81448
  "text-style-label",
81304
81449
  "text-style-secondary",
81305
- styles$8.label
81450
+ styles$9.label
81306
81451
  ),
81307
81452
  children: "Filter:"
81308
81453
  }
@@ -81313,14 +81458,14 @@ Supported expressions:
81313
81458
  ref: editorRef,
81314
81459
  className: clsx(
81315
81460
  (filteringResultInstant == null ? void 0 : filteringResultInstant.error) && "filter-pending",
81316
- styles$8.input
81461
+ styles$9.input
81317
81462
  )
81318
81463
  }
81319
81464
  ),
81320
81465
  /* @__PURE__ */ jsxRuntimeExports.jsx(
81321
81466
  "span",
81322
81467
  {
81323
- className: clsx("bi", "bi-question-circle", styles$8.help),
81468
+ className: clsx("bi", "bi-question-circle", styles$9.help),
81324
81469
  "data-tooltip": FILTER_TOOLTIP,
81325
81470
  "data-tooltip-position": "bottom-left"
81326
81471
  }
@@ -81331,7 +81476,7 @@ Supported expressions:
81331
81476
  const label$1 = "_label_anstf_5";
81332
81477
  const secondSel = "_secondSel_anstf_9";
81333
81478
  const secondLabel = "_secondLabel_anstf_13";
81334
- const styles$7 = {
81479
+ const styles$8 = {
81335
81480
  flex,
81336
81481
  label: label$1,
81337
81482
  secondSel,
@@ -81357,7 +81502,7 @@ Supported expressions:
81357
81502
  [setScore, scores2]
81358
81503
  );
81359
81504
  if (scorers.length === 1) {
81360
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.flex, children: [
81505
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.flex, children: [
81361
81506
  /* @__PURE__ */ jsxRuntimeExports.jsx(
81362
81507
  "span",
81363
81508
  {
@@ -81366,7 +81511,7 @@ Supported expressions:
81366
81511
  "text-size-smaller",
81367
81512
  "text-style-label",
81368
81513
  "text-style-secondary",
81369
- styles$7.label
81514
+ styles$8.label
81370
81515
  ),
81371
81516
  children: "Score:"
81372
81517
  }
@@ -81384,7 +81529,7 @@ Supported expressions:
81384
81529
  const scorerScores = scores2.filter((sc) => {
81385
81530
  return score2 && sc.scorer === score2.scorer;
81386
81531
  });
81387
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.flex, children: [
81532
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$8.flex, children: [
81388
81533
  /* @__PURE__ */ jsxRuntimeExports.jsx(
81389
81534
  "span",
81390
81535
  {
@@ -81393,8 +81538,8 @@ Supported expressions:
81393
81538
  "text-size-smaller",
81394
81539
  "text-style-label",
81395
81540
  "text-style-secondary",
81396
- styles$7.label,
81397
- styles$7.secondLabel
81541
+ styles$8.label,
81542
+ styles$8.secondLabel
81398
81543
  ),
81399
81544
  children: "Scorer:"
81400
81545
  }
@@ -81410,7 +81555,7 @@ Supported expressions:
81410
81555
  scorerScores.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
81411
81556
  ScoreSelector,
81412
81557
  {
81413
- className: clsx(styles$7.secondSel),
81558
+ className: clsx(styles$8.secondSel),
81414
81559
  scores: scorerScores,
81415
81560
  selectedIndex: scoreIndex(scorerScores, score2),
81416
81561
  setSelectedIndex: handleSelectScore
@@ -81516,6 +81661,18 @@ Supported expressions:
81516
81661
  }
81517
81662
  return /* @__PURE__ */ jsxRuntimeExports.jsx(SelectScorer, { scores: scores2, score: score2, setScore });
81518
81663
  };
81664
+ const kBaseFontSize = 0.9;
81665
+ const ScaleBaseFont = (scale) => {
81666
+ return `${kBaseFontSize + scale}rem`;
81667
+ };
81668
+ const FontSize = {
81669
+ smaller: ScaleBaseFont(-0.1)
81670
+ };
81671
+ const TextStyle = {
81672
+ secondary: {
81673
+ color: "var(--bs-secondary)"
81674
+ }
81675
+ };
81519
81676
  const ApplicationStyles = {
81520
81677
  moreButton: {
81521
81678
  maxHeight: "1.8em",
@@ -81565,7 +81722,7 @@ Supported expressions:
81565
81722
  const body = "_body_12gn4_1";
81566
81723
  const iconSmall = "_iconSmall_12gn4_9";
81567
81724
  const message = "_message_12gn4_15";
81568
- const styles$6 = {
81725
+ const styles$7 = {
81569
81726
  body,
81570
81727
  iconSmall,
81571
81728
  message
@@ -81575,12 +81732,12 @@ Supported expressions:
81575
81732
  align
81576
81733
  }) => {
81577
81734
  align = align || "center";
81578
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.body, children: [
81579
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$6.iconSmall) }),
81580
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$6.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
81735
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$7.body, children: [
81736
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$7.iconSmall) }),
81737
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$7.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
81581
81738
  ] });
81582
81739
  };
81583
- const grid = "_grid_185sx_1";
81740
+ const grid$1 = "_grid_185sx_1";
81584
81741
  const selected = "_selected_185sx_13";
81585
81742
  const disabled = "_disabled_185sx_23";
81586
81743
  const cell = "_cell_185sx_28";
@@ -81588,8 +81745,8 @@ Supported expressions:
81588
81745
  const noLeft = "_noLeft_185sx_37";
81589
81746
  const score = "_score_185sx_41";
81590
81747
  const centered = "_centered_185sx_46";
81591
- const styles$5 = {
81592
- grid,
81748
+ const styles$6 = {
81749
+ grid: grid$1,
81593
81750
  selected,
81594
81751
  disabled,
81595
81752
  cell,
@@ -81622,10 +81779,10 @@ Supported expressions:
81622
81779
  {
81623
81780
  id: `sample-${id}`,
81624
81781
  className: clsx(
81625
- styles$5.grid,
81782
+ styles$6.grid,
81626
81783
  "text-size-base",
81627
- selectedSampleIndex === index2 ? styles$5.selected : void 0,
81628
- !isViewable && !sampleUrl2 ? styles$5.disabled : void 0
81784
+ selectedSampleIndex === index2 ? styles$6.selected : void 0,
81785
+ !isViewable && !sampleUrl2 ? styles$6.disabled : void 0
81629
81786
  ),
81630
81787
  style: {
81631
81788
  height: `${height}px`,
@@ -81633,31 +81790,31 @@ Supported expressions:
81633
81790
  gridTemplateColumns: gridColumnsTemplate
81634
81791
  },
81635
81792
  children: [
81636
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$5.cell), children: sample2.id }),
81793
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$6.cell), children: sample2.id }),
81637
81794
  /* @__PURE__ */ jsxRuntimeExports.jsx(
81638
81795
  "div",
81639
81796
  {
81640
81797
  className: clsx(
81641
81798
  "sample-input",
81642
81799
  "three-line-clamp",
81643
- styles$5.cell,
81644
- styles$5.wrapAnywhere
81800
+ styles$6.cell,
81801
+ styles$6.wrapAnywhere
81645
81802
  ),
81646
81803
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: inputString(sample2.input).join(" ") })
81647
81804
  }
81648
81805
  ),
81649
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$5.cell), children: (sample2 == null ? void 0 : sample2.target) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
81806
+ /* @__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
81807
  MarkdownDiv,
81651
81808
  {
81652
81809
  markdown: arrayToString(sample2.target),
81653
- className: clsx("no-last-para-padding", styles$5.noLeft)
81810
+ className: clsx("no-last-para-padding", styles$6.noLeft)
81654
81811
  }
81655
81812
  ) : void 0 }),
81656
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$5.cell), children: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
81813
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$6.cell), children: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
81657
81814
  MarkdownDiv,
81658
81815
  {
81659
81816
  markdown: answer2 || "",
81660
- className: clsx("no-last-para-padding", styles$5.noLeft)
81817
+ className: clsx("no-last-para-padding", styles$6.noLeft)
81661
81818
  }
81662
81819
  ) : "" }),
81663
81820
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -81667,7 +81824,7 @@ Supported expressions:
81667
81824
  "sample-limit",
81668
81825
  "text-size-small",
81669
81826
  "three-line-clamp",
81670
- styles$5.cell
81827
+ styles$6.cell
81671
81828
  ),
81672
81829
  children: sample2.limit
81673
81830
  }
@@ -81679,13 +81836,13 @@ Supported expressions:
81679
81836
  "sample-retries",
81680
81837
  "text-size-small",
81681
81838
  "three-line-clamp",
81682
- styles$5.cell,
81683
- styles$5.centered
81839
+ styles$6.cell,
81840
+ styles$6.centered
81684
81841
  ),
81685
81842
  children: sample2.retries && sample2.retries > 0 ? sample2.retries : void 0
81686
81843
  }
81687
81844
  ),
81688
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$5.cell, styles$5.score), children: sample2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(SampleErrorView, { message: sample2.error }) : completed ? scoreRendered : /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, {}) })
81845
+ /* @__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
81846
  ]
81690
81847
  }
81691
81848
  );
@@ -81698,7 +81855,7 @@ Supported expressions:
81698
81855
  );
81699
81856
  };
81700
81857
  const row = "_row_utdq5_1";
81701
- const styles$4 = {
81858
+ const styles$5 = {
81702
81859
  row
81703
81860
  };
81704
81861
  const SampleSeparator = ({
@@ -81710,7 +81867,7 @@ Supported expressions:
81710
81867
  "div",
81711
81868
  {
81712
81869
  id,
81713
- className: clsx("text-style-secondary", "text-size-smaller", styles$4.row),
81870
+ className: clsx("text-style-secondary", "text-size-smaller", styles$5.row),
81714
81871
  style: { height: `${height}px` },
81715
81872
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title2 })
81716
81873
  }
@@ -81720,7 +81877,7 @@ Supported expressions:
81720
81877
  const spinnerContainer = "_spinnerContainer_vkofn_11";
81721
81878
  const spinner$1 = "_spinner_vkofn_11";
81722
81879
  const label = "_label_vkofn_25";
81723
- const styles$3 = {
81880
+ const styles$4 = {
81724
81881
  footer,
81725
81882
  spinnerContainer,
81726
81883
  spinner: spinner$1,
@@ -81731,24 +81888,24 @@ Supported expressions:
81731
81888
  totalSampleCount,
81732
81889
  running: running2
81733
81890
  }) => {
81734
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$3.footer), children: [
81735
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$3.spinnerContainer), children: [
81891
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$4.footer), children: [
81892
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$4.spinnerContainer), children: [
81736
81893
  /* @__PURE__ */ jsxRuntimeExports.jsx(
81737
81894
  "div",
81738
81895
  {
81739
- className: clsx("spinner-border", styles$3.spinner),
81896
+ className: clsx("spinner-border", styles$4.spinner),
81740
81897
  role: "status",
81741
81898
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "Running..." })
81742
81899
  }
81743
81900
  ),
81744
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$3.label), children: "running..." })
81901
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$4.label), children: "running..." })
81745
81902
  ] }) : void 0 }),
81746
81903
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: sampleCount < totalSampleCount ? `${sampleCount} / ${totalSampleCount} Samples` : `${sampleCount} Samples` })
81747
81904
  ] });
81748
81905
  };
81749
81906
  const header = "_header_16ngy_1";
81750
81907
  const center = "_center_16ngy_11";
81751
- const styles$2 = {
81908
+ const styles$3 = {
81752
81909
  header,
81753
81910
  center
81754
81911
  };
@@ -81764,7 +81921,7 @@ Supported expressions:
81764
81921
  "div",
81765
81922
  {
81766
81923
  className: clsx(
81767
- styles$2.header,
81924
+ styles$3.header,
81768
81925
  "text-size-smaller",
81769
81926
  "text-style-label",
81770
81927
  "text-style-secondary"
@@ -81777,12 +81934,12 @@ Supported expressions:
81777
81934
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: answer2 ? "Answer" : "" }),
81778
81935
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: limit ? "Limit" : "" }),
81779
81936
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: retries ? "Retries" : "" }),
81780
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.center, children: score2 ? "Score" : "" })
81937
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.center, children: score2 ? "Score" : "" })
81781
81938
  ]
81782
81939
  }
81783
81940
  );
81784
81941
  const mainLayout = "_mainLayout_q79zq_7";
81785
- const styles$1 = {
81942
+ const styles$2 = {
81786
81943
  mainLayout
81787
81944
  };
81788
81945
  const kSampleHeight = 88;
@@ -81918,7 +82075,7 @@ Supported expressions:
81918
82075
  const percentError = errorCount / sampleCount * 100;
81919
82076
  const percentLimit = limitCount / sampleCount * 100;
81920
82077
  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$1.mainLayout, children: [
82078
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$2.mainLayout, children: [
81922
82079
  warningMessage ? /* @__PURE__ */ jsxRuntimeExports.jsx(
81923
82080
  MessageBand,
81924
82081
  {
@@ -82013,16 +82170,16 @@ Supported expressions:
82013
82170
  const container$1 = "_container_1yknn_7";
82014
82171
  const spinner = "_spinner_1yknn_14";
82015
82172
  const text = "_text_1yknn_20";
82016
- const styles = {
82173
+ const styles$1 = {
82017
82174
  panel,
82018
82175
  container: container$1,
82019
82176
  spinner,
82020
82177
  text
82021
82178
  };
82022
82179
  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...." })
82180
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1.container, "text-size-smaller"), children: [
82181
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.spinner, "spinner-border"), role: "status", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "starting..." }) }),
82182
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1.text), children: "starting...." })
82026
82183
  ] }) });
82027
82184
  };
82028
82185
  const getSampleProcessor = (samples, epochs, groupBy, groupByOrder, sampleDescriptor, score2) => {
@@ -82316,6 +82473,117 @@ Supported expressions:
82316
82473
  ] });
82317
82474
  }
82318
82475
  };
82476
+ const ghCommitUrl = (origin, commit) => {
82477
+ const baseUrl2 = origin.replace(/\.git$/, "");
82478
+ return `${baseUrl2}/commit/${commit}`;
82479
+ };
82480
+ const grid = "_grid_er9fb_1";
82481
+ const styles = {
82482
+ grid
82483
+ };
82484
+ const useTaskTabConfig = (evalSpec, evalStats) => {
82485
+ return reactExports.useMemo(() => {
82486
+ return {
82487
+ id: kLogViewTaskTabId,
82488
+ label: "Task",
82489
+ scrollable: true,
82490
+ component: TaskTab,
82491
+ componentProps: {
82492
+ evalSpec,
82493
+ evalStats
82494
+ }
82495
+ };
82496
+ }, [evalSpec, evalStats]);
82497
+ };
82498
+ const TaskTab = ({ evalSpec, evalStats }) => {
82499
+ Object.entries((evalSpec == null ? void 0 : evalSpec.config) || {}).forEach((entry2) => {
82500
+ entry2[0];
82501
+ entry2[1];
82502
+ });
82503
+ const revision = evalSpec == null ? void 0 : evalSpec.revision;
82504
+ const packages = evalSpec == null ? void 0 : evalSpec.packages;
82505
+ const taskInformation = {
82506
+ ["Task ID"]: evalSpec == null ? void 0 : evalSpec.task_id,
82507
+ ["Run ID"]: evalSpec == null ? void 0 : evalSpec.run_id
82508
+ };
82509
+ if (revision) {
82510
+ taskInformation[`${revision.type ? `${toTitleCase(revision.type)} ` : ""}Revision`] = {
82511
+ _html: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: ghCommitUrl(revision.origin, revision.commit), children: revision.commit })
82512
+ };
82513
+ }
82514
+ if (packages) {
82515
+ const names = Object.keys(packages).map((key2) => {
82516
+ return `${key2} ${packages[key2]}`;
82517
+ });
82518
+ if (names.length === 1) {
82519
+ taskInformation["Inspect"] = names[0];
82520
+ } else {
82521
+ taskInformation["Inspect"] = names;
82522
+ }
82523
+ }
82524
+ if (evalSpec == null ? void 0 : evalSpec.tags) {
82525
+ taskInformation["tags"] = evalSpec == null ? void 0 : evalSpec.tags.join(", ");
82526
+ }
82527
+ if (evalSpec == null ? void 0 : evalSpec.sandbox) {
82528
+ if (Array.isArray(evalSpec == null ? void 0 : evalSpec.sandbox)) {
82529
+ taskInformation["sandbox"] = evalSpec.sandbox[0];
82530
+ if (evalSpec.sandbox[1]) {
82531
+ taskInformation["sandbox_config"] = evalSpec.sandbox[1];
82532
+ }
82533
+ } else {
82534
+ taskInformation["sandbox"] = evalSpec == null ? void 0 : evalSpec.sandbox.type;
82535
+ taskInformation["sandbox_config"] = evalSpec == null ? void 0 : evalSpec.sandbox.config;
82536
+ }
82537
+ }
82538
+ const totalDuration = formatDuration(
82539
+ new Date((evalStats == null ? void 0 : evalStats.started_at) || 0),
82540
+ new Date((evalStats == null ? void 0 : evalStats.completed_at) || 0)
82541
+ );
82542
+ const task_args = (evalSpec == null ? void 0 : evalSpec.task_args) || {};
82543
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { padding: "0.5em 1em 0 1em", width: "100%" }, children: [
82544
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
82545
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Task Info" }),
82546
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-card-config", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles.grid), children: [
82547
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
82548
+ MetaDataView,
82549
+ {
82550
+ className: "text-size-small",
82551
+ entries: taskInformation,
82552
+ tableOptions: "sm"
82553
+ },
82554
+ `plan-md-task`
82555
+ ),
82556
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
82557
+ MetaDataView,
82558
+ {
82559
+ entries: {
82560
+ ["Start"]: new Date(
82561
+ (evalStats == null ? void 0 : evalStats.started_at) || 0
82562
+ ).toLocaleString(),
82563
+ ["End"]: new Date(
82564
+ (evalStats == null ? void 0 : evalStats.completed_at) || 0
82565
+ ).toLocaleString(),
82566
+ ["Duration"]: totalDuration
82567
+ },
82568
+ tableOptions: "sm"
82569
+ }
82570
+ )
82571
+ ] }) })
82572
+ ] }),
82573
+ Object.keys(task_args).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
82574
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Task Args" }),
82575
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-card-config", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
82576
+ MetaDataView,
82577
+ {
82578
+ className: "text-size-small",
82579
+ entries: task_args,
82580
+ tableOptions: "sm"
82581
+ },
82582
+ `plan-md-task-args`
82583
+ ) })
82584
+ ] })
82585
+ ] }) });
82586
+ };
82319
82587
  const LogView = () => {
82320
82588
  const divRef = reactExports.useRef(null);
82321
82589
  const refreshLog = useRefreshLog();
@@ -82338,8 +82606,13 @@ Supported expressions:
82338
82606
  evalSpec,
82339
82607
  selectedLogSummary == null ? void 0 : selectedLogSummary.plan,
82340
82608
  selectedLogSummary == null ? void 0 : selectedLogSummary.error,
82341
- selectedLogSummary == null ? void 0 : selectedLogSummary.results,
82342
- selectedLogSummary == null ? void 0 : selectedLogSummary.stats
82609
+ selectedLogSummary == null ? void 0 : selectedLogSummary.results
82610
+ );
82611
+ const taskTabConfig = useTaskTabConfig(evalSpec, selectedLogSummary == null ? void 0 : selectedLogSummary.stats);
82612
+ const modelsTabConfig = useModelsTab(
82613
+ evalSpec,
82614
+ selectedLogSummary == null ? void 0 : selectedLogSummary.stats,
82615
+ selectedLogSummary == null ? void 0 : selectedLogSummary.status
82343
82616
  );
82344
82617
  const jsonTabConfig = useJsonTabConfig(
82345
82618
  selectedLogSummary == null ? void 0 : selectedLogSummary.version,
@@ -82352,6 +82625,8 @@ Supported expressions:
82352
82625
  );
82353
82626
  const tabs2 = {
82354
82627
  ...samplesTabConfig ? { samples: samplesTabConfig } : {},
82628
+ task: taskTabConfig,
82629
+ model: modelsTabConfig,
82355
82630
  config: configTabConfig,
82356
82631
  json: jsonTabConfig
82357
82632
  };
@@ -82397,15 +82672,15 @@ Supported expressions:
82397
82672
  showToggle
82398
82673
  }
82399
82674
  ),
82400
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: divRef, className: clsx("workspace", styles$O.workspace), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("log-detail", styles$O.tabContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
82675
+ /* @__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
82676
  TabSet,
82402
82677
  {
82403
82678
  id: "log-details",
82404
82679
  tools: tabTools2,
82405
82680
  type: "pills",
82406
- className: clsx(styles$O.tabSet, "text-size-smaller"),
82407
- tabControlsClassName: clsx(styles$O.tabs, "text-size-smaller"),
82408
- tabPanelsClassName: clsx(styles$O.tabPanels),
82681
+ className: clsx(styles$P.tabSet, "text-size-smaller"),
82682
+ tabControlsClassName: clsx(styles$P.tabs, "text-size-smaller"),
82683
+ tabPanelsClassName: clsx(styles$P.tabPanels),
82409
82684
  children: Object.keys(tabs2).map((key2) => {
82410
82685
  const tab2 = tabs2[key2];
82411
82686
  return /* @__PURE__ */ jsxRuntimeExports.jsx(