inspect-ai 0.3.88__py3-none-any.whl → 0.3.90__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 (90) hide show
  1. inspect_ai/_cli/eval.py +16 -0
  2. inspect_ai/_cli/score.py +1 -12
  3. inspect_ai/_cli/util.py +4 -2
  4. inspect_ai/_display/core/footer.py +2 -2
  5. inspect_ai/_display/plain/display.py +2 -2
  6. inspect_ai/_eval/context.py +7 -1
  7. inspect_ai/_eval/eval.py +51 -27
  8. inspect_ai/_eval/evalset.py +27 -10
  9. inspect_ai/_eval/loader.py +7 -8
  10. inspect_ai/_eval/run.py +23 -31
  11. inspect_ai/_eval/score.py +18 -1
  12. inspect_ai/_eval/task/log.py +5 -13
  13. inspect_ai/_eval/task/resolved.py +1 -0
  14. inspect_ai/_eval/task/run.py +231 -256
  15. inspect_ai/_eval/task/task.py +25 -2
  16. inspect_ai/_eval/task/util.py +1 -8
  17. inspect_ai/_util/constants.py +1 -0
  18. inspect_ai/_util/json.py +8 -3
  19. inspect_ai/_util/registry.py +30 -13
  20. inspect_ai/_view/www/App.css +5 -0
  21. inspect_ai/_view/www/dist/assets/index.css +71 -36
  22. inspect_ai/_view/www/dist/assets/index.js +573 -475
  23. inspect_ai/_view/www/log-schema.json +66 -0
  24. inspect_ai/_view/www/src/metadata/MetaDataView.module.css +1 -1
  25. inspect_ai/_view/www/src/metadata/MetaDataView.tsx +13 -8
  26. inspect_ai/_view/www/src/metadata/RenderedContent.tsx +3 -0
  27. inspect_ai/_view/www/src/plan/ModelCard.module.css +16 -0
  28. inspect_ai/_view/www/src/plan/ModelCard.tsx +93 -0
  29. inspect_ai/_view/www/src/samples/chat/ChatMessage.tsx +2 -2
  30. inspect_ai/_view/www/src/samples/chat/tools/ToolInput.module.css +2 -2
  31. inspect_ai/_view/www/src/samples/transcript/ModelEventView.tsx +5 -1
  32. inspect_ai/_view/www/src/samples/transcript/StepEventView.tsx +12 -6
  33. inspect_ai/_view/www/src/samples/transcript/TranscriptView.module.css +0 -2
  34. inspect_ai/_view/www/src/samples/transcript/state/StateEventView.tsx +6 -29
  35. inspect_ai/_view/www/src/types/log.d.ts +24 -6
  36. inspect_ai/_view/www/src/workspace/navbar/ModelRolesView.module.css +16 -0
  37. inspect_ai/_view/www/src/workspace/navbar/ModelRolesView.tsx +43 -0
  38. inspect_ai/_view/www/src/workspace/navbar/PrimaryBar.module.css +1 -1
  39. inspect_ai/_view/www/src/workspace/navbar/PrimaryBar.tsx +5 -0
  40. inspect_ai/_view/www/src/workspace/tabs/InfoTab.tsx +2 -0
  41. inspect_ai/agent/_agent.py +12 -0
  42. inspect_ai/agent/_as_tool.py +1 -1
  43. inspect_ai/agent/_bridge/bridge.py +9 -2
  44. inspect_ai/agent/_react.py +142 -74
  45. inspect_ai/agent/_run.py +13 -2
  46. inspect_ai/agent/_types.py +6 -0
  47. inspect_ai/approval/_apply.py +6 -7
  48. inspect_ai/approval/_approver.py +3 -3
  49. inspect_ai/approval/_auto.py +2 -2
  50. inspect_ai/approval/_call.py +20 -4
  51. inspect_ai/approval/_human/approver.py +3 -3
  52. inspect_ai/approval/_human/manager.py +2 -2
  53. inspect_ai/approval/_human/panel.py +3 -3
  54. inspect_ai/approval/_policy.py +3 -3
  55. inspect_ai/log/__init__.py +2 -0
  56. inspect_ai/log/_log.py +23 -2
  57. inspect_ai/log/_model.py +58 -0
  58. inspect_ai/log/_recorders/file.py +14 -3
  59. inspect_ai/log/_transcript.py +3 -0
  60. inspect_ai/model/__init__.py +2 -0
  61. inspect_ai/model/_call_tools.py +4 -1
  62. inspect_ai/model/_model.py +49 -3
  63. inspect_ai/model/_openai.py +151 -21
  64. inspect_ai/model/_providers/anthropic.py +20 -12
  65. inspect_ai/model/_providers/bedrock.py +3 -3
  66. inspect_ai/model/_providers/cloudflare.py +29 -108
  67. inspect_ai/model/_providers/google.py +21 -10
  68. inspect_ai/model/_providers/grok.py +23 -17
  69. inspect_ai/model/_providers/groq.py +61 -37
  70. inspect_ai/model/_providers/llama_cpp_python.py +8 -9
  71. inspect_ai/model/_providers/mistral.py +8 -3
  72. inspect_ai/model/_providers/ollama.py +8 -9
  73. inspect_ai/model/_providers/openai.py +53 -157
  74. inspect_ai/model/_providers/openai_compatible.py +195 -0
  75. inspect_ai/model/_providers/openrouter.py +4 -15
  76. inspect_ai/model/_providers/providers.py +11 -0
  77. inspect_ai/model/_providers/together.py +25 -23
  78. inspect_ai/model/_trim.py +83 -0
  79. inspect_ai/solver/_plan.py +5 -3
  80. inspect_ai/tool/_tool_def.py +8 -2
  81. inspect_ai/util/__init__.py +3 -0
  82. inspect_ai/util/_concurrency.py +15 -2
  83. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/METADATA +1 -1
  84. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/RECORD +88 -83
  85. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/WHEEL +1 -1
  86. inspect_ai/_eval/task/rundir.py +0 -78
  87. inspect_ai/_view/www/node_modules/flatted/python/flatted.py +0 -149
  88. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/entry_points.txt +0 -0
  89. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/licenses/LICENSE +0 -0
  90. {inspect_ai-0.3.88.dist-info → inspect_ai-0.3.90.dist-info}/top_level.txt +0 -0
@@ -16959,24 +16959,24 @@ self.onmessage = function (e) {
16959
16959
  return n;
16960
16960
  }
16961
16961
  const wrapper$4 = "_wrapper_1tajk_1";
16962
- const container$i = "_container_1tajk_12";
16962
+ const container$k = "_container_1tajk_12";
16963
16963
  const animate = "_animate_1tajk_21";
16964
- const styles$1i = {
16964
+ const styles$1k = {
16965
16965
  wrapper: wrapper$4,
16966
- container: container$i,
16966
+ container: container$k,
16967
16967
  animate
16968
16968
  };
16969
16969
  const ProgressBar = ({ animating }) => {
16970
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1i.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16970
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1k.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
16971
16971
  "div",
16972
16972
  {
16973
- className: clsx(styles$1i.container),
16973
+ className: clsx(styles$1k.container),
16974
16974
  role: "progressbar",
16975
16975
  "aria-label": "Basic example",
16976
16976
  "aria-valuenow": 25,
16977
16977
  "aria-valuemin": 0,
16978
16978
  "aria-valuemax": 100,
16979
- children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1i.animate })
16979
+ children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1k.animate })
16980
16980
  }
16981
16981
  ) });
16982
16982
  };
@@ -19596,7 +19596,7 @@ self.onmessage = function (e) {
19596
19596
  return throttledCallback;
19597
19597
  }
19598
19598
  const dirname = "_dirname_16ra5_1";
19599
- const styles$1h = {
19599
+ const styles$1j = {
19600
19600
  dirname
19601
19601
  };
19602
19602
  const LogDirectoryTitleView = ({
@@ -19621,7 +19621,7 @@ self.onmessage = function (e) {
19621
19621
  "span",
19622
19622
  {
19623
19623
  title: displayDir,
19624
- className: clsx("text-size-base", styles$1h.dirname),
19624
+ className: clsx("text-size-base", styles$1j.dirname),
19625
19625
  children: offCanvas ? displayDir : ""
19626
19626
  }
19627
19627
  )
@@ -19652,7 +19652,7 @@ self.onmessage = function (e) {
19652
19652
  const backdrop$1 = "_backdrop_ajt7u_55";
19653
19653
  const active = "_active_ajt7u_63";
19654
19654
  const item$1 = "_item_ajt7u_67";
19655
- const styles$1g = {
19655
+ const styles$1i = {
19656
19656
  sidebar,
19657
19657
  sidebarClosed,
19658
19658
  sidebarOpen,
@@ -19667,7 +19667,7 @@ self.onmessage = function (e) {
19667
19667
  const error$1 = "_error_srruf_1";
19668
19668
  const running = "_running_srruf_6";
19669
19669
  const cancelled = "_cancelled_srruf_13";
19670
- const styles$1f = {
19670
+ const styles$1h = {
19671
19671
  error: error$1,
19672
19672
  running,
19673
19673
  cancelled
@@ -19807,20 +19807,20 @@ self.onmessage = function (e) {
19807
19807
  return clusterValue;
19808
19808
  };
19809
19809
  const metricModifiers = [clusterMetricModifier];
19810
- const container$h = "_container_1frsg_1";
19810
+ const container$j = "_container_1frsg_1";
19811
19811
  const metric = "_metric_1frsg_8";
19812
19812
  const metricName$1 = "_metricName_1frsg_17";
19813
19813
  const metricReducer$1 = "_metricReducer_1frsg_21";
19814
- const styles$1e = {
19815
- container: container$h,
19814
+ const styles$1g = {
19815
+ container: container$j,
19816
19816
  metric,
19817
19817
  metricName: metricName$1,
19818
19818
  metricReducer: metricReducer$1
19819
19819
  };
19820
19820
  const SidebarScoreView = ({ scorer: scorer2 }) => {
19821
19821
  const showReducer = !!scorer2.reducer;
19822
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1e.container, children: Object.keys(scorer2.metrics).map((metric2) => {
19823
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1e.metric, children: [
19822
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1g.container, children: Object.keys(scorer2.metrics).map((metric2) => {
19823
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1g.metric, children: [
19824
19824
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19825
19825
  "div",
19826
19826
  {
@@ -19828,24 +19828,24 @@ self.onmessage = function (e) {
19828
19828
  "text-style-secondary",
19829
19829
  "text-style-label",
19830
19830
  "text-size-small",
19831
- styles$1e.metricName
19831
+ styles$1g.metricName
19832
19832
  ),
19833
19833
  children: metricDisplayName(scorer2.metrics[metric2])
19834
19834
  }
19835
19835
  ),
19836
- showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$1e.metricReducer), children: scorer2.reducer || "default" }) : "",
19836
+ showReducer ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$1g.metricReducer), children: scorer2.reducer || "default" }) : "",
19837
19837
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-title-secondary", children: formatPrettyDecimal(scorer2.metrics[metric2].value) })
19838
19838
  ] }, metric2);
19839
19839
  }) });
19840
19840
  };
19841
- const container$g = "_container_5kpg1_1";
19841
+ const container$i = "_container_5kpg1_1";
19842
19842
  const scoreWrapper = "_scoreWrapper_5kpg1_9";
19843
19843
  const metricName = "_metricName_5kpg1_16";
19844
19844
  const metricReducer = "_metricReducer_5kpg1_22";
19845
19845
  const metricValues = "_metricValues_5kpg1_27";
19846
19846
  const metricValue = "_metricValue_5kpg1_27";
19847
- const styles$1d = {
19848
- container: container$g,
19847
+ const styles$1f = {
19848
+ container: container$i,
19849
19849
  scoreWrapper,
19850
19850
  metricName,
19851
19851
  metricReducer,
@@ -19854,10 +19854,10 @@ self.onmessage = function (e) {
19854
19854
  };
19855
19855
  const SidebarScoresView = ({ scores: scores2 }) => {
19856
19856
  const showReducer = scores2.findIndex((score2) => !!score2.reducer) !== -1;
19857
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1d.container, children: scores2.map((score2, idx) => {
19857
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1f.container, children: scores2.map((score2, idx) => {
19858
19858
  const name2 = score2.name;
19859
19859
  const reducer = score2.reducer;
19860
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1d.scoreWrapper, children: [
19860
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1f.scoreWrapper, children: [
19861
19861
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19862
19862
  "div",
19863
19863
  {
@@ -19865,7 +19865,7 @@ self.onmessage = function (e) {
19865
19865
  "text-style-secondary",
19866
19866
  "text-style-label",
19867
19867
  "text-size-small",
19868
- styles$1d.metricName
19868
+ styles$1f.metricName
19869
19869
  ),
19870
19870
  children: name2
19871
19871
  }
@@ -19877,16 +19877,16 @@ self.onmessage = function (e) {
19877
19877
  "text-size-small",
19878
19878
  "text-style-label",
19879
19879
  "text-style-secondary",
19880
- styles$1d.metricReducer
19880
+ styles$1f.metricReducer
19881
19881
  ),
19882
19882
  children: reducer || "default"
19883
19883
  }
19884
19884
  ) : "",
19885
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$1d.metricValues), children: Object.keys(score2.metrics).map((key2) => {
19885
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$1f.metricValues), children: Object.keys(score2.metrics).map((key2) => {
19886
19886
  const metric2 = score2.metrics[key2];
19887
19887
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
19888
19888
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: metricDisplayName(metric2) }),
19889
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1d.metricValue, children: formatPrettyDecimal(metric2.value) })
19889
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1f.metricValue, children: formatPrettyDecimal(metric2.value) })
19890
19890
  ] }, key2);
19891
19891
  }) })
19892
19892
  ] }, `scorer-${name2}-${idx}`);
@@ -19921,7 +19921,7 @@ self.onmessage = function (e) {
19921
19921
  "text-style-secondary",
19922
19922
  "text-style-label",
19923
19923
  "text-size-small",
19924
- styles$1f.cancelled
19924
+ styles$1h.cancelled
19925
19925
  ),
19926
19926
  children: message2
19927
19927
  }
@@ -19935,21 +19935,21 @@ self.onmessage = function (e) {
19935
19935
  "text-style-secondary",
19936
19936
  "text-style-label",
19937
19937
  "text-size-small",
19938
- styles$1f.running
19938
+ styles$1h.running
19939
19939
  ),
19940
19940
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: message2 })
19941
19941
  }
19942
19942
  );
19943
19943
  };
19944
19944
  const StatusError = ({ message: message2 }) => {
19945
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1f.error, "text-size-small"), children: message2 });
19945
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1h.error, "text-size-small"), children: message2 });
19946
19946
  };
19947
19947
  const entry = "_entry_12m5n_1";
19948
19948
  const title$3 = "_title_12m5n_7";
19949
19949
  const task = "_task_12m5n_12";
19950
19950
  const params = "_params_12m5n_18";
19951
19951
  const scores$1 = "_scores_12m5n_22";
19952
- const styles$1c = {
19952
+ const styles$1e = {
19953
19953
  entry,
19954
19954
  title: title$3,
19955
19955
  task,
@@ -19981,15 +19981,15 @@ self.onmessage = function (e) {
19981
19981
  minute: "2-digit"
19982
19982
  })}` : "";
19983
19983
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
19984
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1c.entry, children: [
19985
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1c.title, children: [
19986
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1c.task, "text-size-title-secondary"), children: ((_i = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _i.task) || task2 }),
19984
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1e.entry, children: [
19985
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1e.title, children: [
19986
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1e.task, "text-size-title-secondary"), children: ((_i = logHeader == null ? void 0 : logHeader.eval) == null ? void 0 : _i.task) || task2 }),
19987
19987
  /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: timeStr }),
19988
19988
  model2 && model2 !== kModelNone ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: clsx("mb-1", "text-size-small"), children: model2 }) }) : ""
19989
19989
  ] }),
19990
19990
  /* @__PURE__ */ jsxRuntimeExports.jsx(EvalStatus, { logHeader })
19991
19991
  ] }),
19992
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1c.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: hyperparameters ? Object.keys(hyperparameters).map((key2) => {
19992
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1e.params, "three-line-clamp"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("small", { className: "mb-1", children: hyperparameters ? Object.keys(hyperparameters).map((key2) => {
19993
19993
  const val = hyperparameters[key2];
19994
19994
  if (Array.isArray(val) || typeof val === "object") {
19995
19995
  return `${key2}: ${JSON.stringify(val)}`;
@@ -20000,13 +20000,13 @@ self.onmessage = function (e) {
20000
20000
  (((_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(
20001
20001
  "div",
20002
20002
  {
20003
- className: clsx("text-truncate", "text-size-small", styles$1c.scores),
20003
+ className: clsx("text-truncate", "text-size-small", styles$1e.scores),
20004
20004
  children: [
20005
20005
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
20006
20006
  "dataset: ",
20007
20007
  datasetName || "(samples)"
20008
20008
  ] }),
20009
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles$1c.scoreInfo), children: [
20009
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-truncate", styles$1e.scoreInfo), children: [
20010
20010
  scorerLabel,
20011
20011
  ": ",
20012
20012
  scorerNames || "(none)"
@@ -20038,34 +20038,34 @@ self.onmessage = function (e) {
20038
20038
  [onSelectedIndexChanged]
20039
20039
  );
20040
20040
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
20041
- offCanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1g.backdrop, onClick: handleToggle }),
20041
+ offCanvas && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1i.backdrop, onClick: handleToggle }),
20042
20042
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
20043
20043
  "div",
20044
20044
  {
20045
20045
  className: clsx(
20046
- styles$1g.sidebar,
20047
- offCanvas ? styles$1g.sidebarOpen : styles$1g.sidebarClosed
20046
+ styles$1i.sidebar,
20047
+ offCanvas ? styles$1i.sidebarOpen : styles$1i.sidebarClosed
20048
20048
  ),
20049
20049
  children: [
20050
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1g.header, children: [
20050
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$1i.header, children: [
20051
20051
  /* @__PURE__ */ jsxRuntimeExports.jsx(LogDirectoryTitleView, { log_dir: logs.log_dir }),
20052
20052
  /* @__PURE__ */ jsxRuntimeExports.jsx(
20053
20053
  "button",
20054
20054
  {
20055
20055
  onClick: handleToggle,
20056
- className: clsx("btn", styles$1g.toggle),
20056
+ className: clsx("btn", styles$1i.toggle),
20057
20057
  type: "button",
20058
20058
  "aria-label": "Close sidebar",
20059
20059
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
20060
20060
  }
20061
20061
  )
20062
20062
  ] }),
20063
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1g.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
20063
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1i.progress, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ProgressBar, { animating: loading }) }),
20064
20064
  /* @__PURE__ */ jsxRuntimeExports.jsx(
20065
20065
  "ul",
20066
20066
  {
20067
20067
  ref: sidebarContentsRef,
20068
- className: clsx("list-group", styles$1g.list),
20068
+ className: clsx("list-group", styles$1i.list),
20069
20069
  children: logs.files.map((file, index2) => {
20070
20070
  const logHeader = logHeaders[file.name];
20071
20071
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -20074,8 +20074,8 @@ self.onmessage = function (e) {
20074
20074
  className: clsx(
20075
20075
  "list-group-item",
20076
20076
  "list-group-item-action",
20077
- styles$1g.item,
20078
- selectedIndex === index2 ? styles$1g.active : void 0
20077
+ styles$1i.item,
20078
+ selectedIndex === index2 ? styles$1i.active : void 0
20079
20079
  ),
20080
20080
  "data-index": index2,
20081
20081
  onClick: handleClick,
@@ -20110,7 +20110,7 @@ self.onmessage = function (e) {
20110
20110
  const circle$1 = "_circle_qymy9_1";
20111
20111
  const green$1 = "_green_qymy9_12";
20112
20112
  const red$1 = "_red_qymy9_18";
20113
- const styles$1b = {
20113
+ const styles$1d = {
20114
20114
  circle: circle$1,
20115
20115
  green: green$1,
20116
20116
  red: red$1
@@ -20126,9 +20126,9 @@ self.onmessage = function (e) {
20126
20126
  "span",
20127
20127
  {
20128
20128
  className: clsx(
20129
- styles$1b.circle,
20129
+ styles$1d.circle,
20130
20130
  "text-size-small",
20131
- score2 ? styles$1b.green : styles$1b.red
20131
+ score2 ? styles$1d.green : styles$1d.red
20132
20132
  ),
20133
20133
  children: String(score2)
20134
20134
  }
@@ -20179,11 +20179,11 @@ self.onmessage = function (e) {
20179
20179
  return [val];
20180
20180
  }
20181
20181
  };
20182
- const container$f = "_container_1ramc_1";
20182
+ const container$h = "_container_1ramc_1";
20183
20183
  const key = "_key_1ramc_12";
20184
20184
  const value$3 = "_value_1ramc_16";
20185
- const styles$1a = {
20186
- container: container$f,
20185
+ const styles$1c = {
20186
+ container: container$h,
20187
20187
  key,
20188
20188
  value: value$3
20189
20189
  };
@@ -20225,12 +20225,12 @@ self.onmessage = function (e) {
20225
20225
  ) : String(value2);
20226
20226
  scores2.push(
20227
20227
  /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
20228
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1a.key, "text-size-smaller"), children: key2 }),
20229
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1a.value, "text-size-base"), children: formattedValue })
20228
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1c.key, "text-size-smaller"), children: key2 }),
20229
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1c.value, "text-size-base"), children: formattedValue })
20230
20230
  ] })
20231
20231
  );
20232
20232
  });
20233
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1a.container), children: scores2 }, `score-value`);
20233
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1c.container), children: scores2 }, `score-value`);
20234
20234
  }
20235
20235
  };
20236
20236
  };
@@ -21631,7 +21631,7 @@ self.onmessage = function (e) {
21631
21631
  const hidden$2 = "_hidden_tm52u_5";
21632
21632
  const pills = "_pills_tm52u_9";
21633
21633
  const pill = "_pill_tm52u_9";
21634
- const styles$19 = {
21634
+ const styles$1b = {
21635
21635
  visible,
21636
21636
  hidden: hidden$2,
21637
21637
  pills,
@@ -21663,7 +21663,7 @@ self.onmessage = function (e) {
21663
21663
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
21664
21664
  "div",
21665
21665
  {
21666
- className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$19.visible : styles$19.hidden,
21666
+ className: ((_a2 = child["props"]) == null ? void 0 : _a2.title) === activeItem ? styles$1b.visible : styles$1b.hidden,
21667
21667
  children: child
21668
21668
  },
21669
21669
  `nav-pill-container-${idx}`
@@ -21673,7 +21673,7 @@ self.onmessage = function (e) {
21673
21673
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21674
21674
  "ul",
21675
21675
  {
21676
- className: clsx("nav", "nav-pills", styles$19.pills),
21676
+ className: clsx("nav", "nav-pills", styles$1b.pills),
21677
21677
  role: "tablist",
21678
21678
  "aria-orientation": "horizontal",
21679
21679
  children: navPills
@@ -21709,7 +21709,7 @@ self.onmessage = function (e) {
21709
21709
  "nav-link",
21710
21710
  "text-style-label",
21711
21711
  active2 ? "active " : "",
21712
- styles$19.pill
21712
+ styles$1b.pill
21713
21713
  ),
21714
21714
  "data-target": title2,
21715
21715
  onClick: handleClick,
@@ -21815,7 +21815,7 @@ self.onmessage = function (e) {
21815
21815
  const messageGrid = "_messageGrid_xh8qq_13";
21816
21816
  const messageContents = "_messageContents_xh8qq_21";
21817
21817
  const indented = "_indented_xh8qq_26";
21818
- const styles$18 = {
21818
+ const styles$1a = {
21819
21819
  message: message$1,
21820
21820
  systemRole,
21821
21821
  messageGrid,
@@ -27021,19 +27021,19 @@ self.onmessage = function (e) {
27021
27021
  this.sizeMultiplier = multiplier;
27022
27022
  }
27023
27023
  Style$4.prototype.sup = function() {
27024
- return styles$17[sup[this.id]];
27024
+ return styles$19[sup[this.id]];
27025
27025
  };
27026
27026
  Style$4.prototype.sub = function() {
27027
- return styles$17[sub[this.id]];
27027
+ return styles$19[sub[this.id]];
27028
27028
  };
27029
27029
  Style$4.prototype.fracNum = function() {
27030
- return styles$17[fracNum[this.id]];
27030
+ return styles$19[fracNum[this.id]];
27031
27031
  };
27032
27032
  Style$4.prototype.fracDen = function() {
27033
- return styles$17[fracDen[this.id]];
27033
+ return styles$19[fracDen[this.id]];
27034
27034
  };
27035
27035
  Style$4.prototype.cramp = function() {
27036
- return styles$17[cramp[this.id]];
27036
+ return styles$19[cramp[this.id]];
27037
27037
  };
27038
27038
  Style$4.prototype.cls = function() {
27039
27039
  return sizeNames[this.size] + (this.cramped ? " cramped" : " uncramped");
@@ -27061,7 +27061,7 @@ self.onmessage = function (e) {
27061
27061
  "reset-scriptstyle",
27062
27062
  "reset-scriptscriptstyle"
27063
27063
  ];
27064
- var styles$17 = [
27064
+ var styles$19 = [
27065
27065
  new Style$4(D, 0, 1, false),
27066
27066
  new Style$4(Dc, 0, 1, true),
27067
27067
  new Style$4(T, 1, 1, false),
@@ -27077,10 +27077,10 @@ self.onmessage = function (e) {
27077
27077
  var fracDen = [Tc, Tc, Sc, Sc, SSc, SSc, SSc, SSc];
27078
27078
  var cramp = [Dc, Dc, Tc, Tc, Sc, Sc, SSc, SSc];
27079
27079
  var Style_1 = {
27080
- DISPLAY: styles$17[D],
27081
- TEXT: styles$17[T],
27082
- SCRIPT: styles$17[S],
27083
- SCRIPTSCRIPT: styles$17[SS]
27080
+ DISPLAY: styles$19[D],
27081
+ TEXT: styles$19[T],
27082
+ SCRIPT: styles$19[S],
27083
+ SCRIPTSCRIPT: styles$19[SS]
27084
27084
  };
27085
27085
  var nativeIndexOf = Array.prototype.indexOf;
27086
27086
  var indexOf = function(list2, elem) {
@@ -33854,14 +33854,14 @@ self.onmessage = function (e) {
33854
33854
  );
33855
33855
  }
33856
33856
  const contentImage = "_contentImage_121dp_1";
33857
- const styles$16 = {
33857
+ const styles$18 = {
33858
33858
  contentImage
33859
33859
  };
33860
33860
  const toolImage = "_toolImage_1j5uu_1";
33861
33861
  const output$2 = "_output_1j5uu_6";
33862
33862
  const textOutput = "_textOutput_1j5uu_10";
33863
33863
  const textCode = "_textCode_1j5uu_17";
33864
- const styles$15 = {
33864
+ const styles$17 = {
33865
33865
  toolImage,
33866
33866
  output: output$2,
33867
33867
  textOutput,
@@ -33883,7 +33883,7 @@ self.onmessage = function (e) {
33883
33883
  /* @__PURE__ */ jsxRuntimeExports.jsx(
33884
33884
  "img",
33885
33885
  {
33886
- className: clsx(styles$15.toolImage),
33886
+ className: clsx(styles$17.toolImage),
33887
33887
  src: out.image
33888
33888
  },
33889
33889
  key2
@@ -33899,10 +33899,10 @@ self.onmessage = function (e) {
33899
33899
  /* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(output2) }, "tool-output-single")
33900
33900
  );
33901
33901
  }
33902
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$15.output), children: outputs });
33902
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$17.output), children: outputs });
33903
33903
  };
33904
33904
  const ToolTextOutput = ({ text: text2 }) => {
33905
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$15.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$15.textCode), children: text2.trim() }) });
33905
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$17.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$17.textCode), children: text2.trim() }) });
33906
33906
  };
33907
33907
  const MessageContent = ({ contents: contents2 }) => {
33908
33908
  if (Array.isArray(contents2)) {
@@ -33990,7 +33990,7 @@ self.onmessage = function (e) {
33990
33990
  render: (key2, content2) => {
33991
33991
  const c2 = content2;
33992
33992
  if (c2.image.startsWith("data:")) {
33993
- return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$16.contentImage }, key2);
33993
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$18.contentImage }, key2);
33994
33994
  } else {
33995
33995
  return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: c2.image }, key2);
33996
33996
  }
@@ -34087,13 +34087,13 @@ self.onmessage = function (e) {
34087
34087
  };
34088
34088
  };
34089
34089
  const output$1 = "_output_s17ok_1";
34090
- const styles$14 = {
34090
+ const styles$16 = {
34091
34091
  output: output$1
34092
34092
  };
34093
- const outputPre = "_outputPre_1h1fn_1";
34094
- const outputCode = "_outputCode_1h1fn_7";
34095
- const bottomPadding = "_bottomPadding_1h1fn_12";
34096
- const styles$13 = {
34093
+ const outputPre = "_outputPre_1t1y9_1";
34094
+ const outputCode = "_outputCode_1t1y9_7";
34095
+ const bottomPadding = "_bottomPadding_1t1y9_12";
34096
+ const styles$15 = {
34097
34097
  outputPre,
34098
34098
  outputCode,
34099
34099
  bottomPadding
@@ -34108,7 +34108,7 @@ self.onmessage = function (e) {
34108
34108
  {
34109
34109
  markdown: toolCallView.content,
34110
34110
  ref: prismParentRef,
34111
- className: clsx(styles$13.bottomPadding, "text-size-small", "tool-output")
34111
+ className: clsx(styles$15.bottomPadding, "text-size-small", "tool-output")
34112
34112
  }
34113
34113
  );
34114
34114
  }
@@ -34116,7 +34116,7 @@ self.onmessage = function (e) {
34116
34116
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34117
34117
  "pre",
34118
34118
  {
34119
- className: clsx("tool-output", styles$13.outputPre, styles$13.bottomMargin),
34119
+ className: clsx("tool-output", styles$15.outputPre, styles$15.bottomMargin),
34120
34120
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34121
34121
  "code",
34122
34122
  {
@@ -34124,7 +34124,7 @@ self.onmessage = function (e) {
34124
34124
  "source-code",
34125
34125
  "sourceCode",
34126
34126
  highlightLanguage ? `language-${highlightLanguage}` : void 0,
34127
- styles$13.outputCode
34127
+ styles$15.outputCode
34128
34128
  ),
34129
34129
  children: formattedContent
34130
34130
  }
@@ -34132,10 +34132,10 @@ self.onmessage = function (e) {
34132
34132
  }
34133
34133
  ) });
34134
34134
  };
34135
- const styles$12 = {};
34135
+ const styles$14 = {};
34136
34136
  const ToolTitle = ({ title: title2 }) => {
34137
34137
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
34138
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$12.styles) }),
34138
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$14.styles) }),
34139
34139
  /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "text-size-small", children: title2 })
34140
34140
  ] });
34141
34141
  };
@@ -34197,7 +34197,7 @@ self.onmessage = function (e) {
34197
34197
  collapse,
34198
34198
  border: true,
34199
34199
  lines: 15,
34200
- className: styles$14.output,
34200
+ className: styles$16.output,
34201
34201
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: normalizedContent })
34202
34202
  }
34203
34203
  ) : void 0
@@ -34223,7 +34223,7 @@ self.onmessage = function (e) {
34223
34223
  }
34224
34224
  };
34225
34225
  const content$2 = "_content_p4lvn_1";
34226
- const styles$11 = {
34226
+ const styles$13 = {
34227
34227
  content: content$2
34228
34228
  };
34229
34229
  const MessageContents = ({
@@ -34267,7 +34267,7 @@ self.onmessage = function (e) {
34267
34267
  }
34268
34268
  });
34269
34269
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
34270
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.content, children: message2.content ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) : void 0 }),
34270
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$13.content, children: message2.content ? /* @__PURE__ */ jsxRuntimeExports.jsx(MessageContent, { contents: message2.content }) : void 0 }),
34271
34271
  toolCalls
34272
34272
  ] });
34273
34273
  } else {
@@ -34410,18 +34410,18 @@ self.onmessage = function (e) {
34410
34410
  indented: indented2,
34411
34411
  toolCallStyle
34412
34412
  }) => {
34413
- const collapse = message2.role === "system";
34413
+ const collapse = message2.role === "system" || message2.role === "user";
34414
34414
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
34415
34415
  "div",
34416
34416
  {
34417
34417
  className: clsx(
34418
34418
  message2.role,
34419
34419
  "text-size-base",
34420
- styles$18.message,
34421
- message2.role === "system" ? styles$18.systemRole : void 0
34420
+ styles$1a.message,
34421
+ message2.role === "system" ? styles$1a.systemRole : void 0
34422
34422
  ),
34423
34423
  children: [
34424
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$18.messageGrid, "text-style-label"), children: [
34424
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1a.messageGrid, "text-style-label"), children: [
34425
34425
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: iconForMsg(message2) }),
34426
34426
  message2.role
34427
34427
  ] }),
@@ -34429,10 +34429,10 @@ self.onmessage = function (e) {
34429
34429
  "div",
34430
34430
  {
34431
34431
  className: clsx(
34432
- styles$18.messageContents,
34433
- indented2 ? styles$18.indented : void 0
34432
+ styles$1a.messageContents,
34433
+ indented2 ? styles$1a.indented : void 0
34434
34434
  ),
34435
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id}-message`, collapse, lines: 30, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34435
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id}-message`, collapse, lines: 15, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
34436
34436
  MessageContents,
34437
34437
  {
34438
34438
  id: `${id}-contents`,
@@ -34448,10 +34448,10 @@ self.onmessage = function (e) {
34448
34448
  }
34449
34449
  );
34450
34450
  };
34451
- const grid$5 = "_grid_140x5_1";
34451
+ const grid$6 = "_grid_140x5_1";
34452
34452
  const number$1 = "_number_140x5_7";
34453
- const styles$10 = {
34454
- grid: grid$5,
34453
+ const styles$12 = {
34454
+ grid: grid$6,
34455
34455
  number: number$1
34456
34456
  };
34457
34457
  const ChatMessageRow = ({
@@ -34462,14 +34462,14 @@ self.onmessage = function (e) {
34462
34462
  indented: indented2
34463
34463
  }) => {
34464
34464
  if (number2) {
34465
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$10.grid, children: [
34465
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$12.grid, children: [
34466
34466
  /* @__PURE__ */ jsxRuntimeExports.jsx(
34467
34467
  "div",
34468
34468
  {
34469
34469
  className: clsx(
34470
34470
  "text-size-smaller",
34471
34471
  "text-style-secondary",
34472
- styles$10.number
34472
+ styles$12.number
34473
34473
  ),
34474
34474
  children: number2
34475
34475
  }
@@ -34549,12 +34549,12 @@ self.onmessage = function (e) {
34549
34549
  }
34550
34550
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ChatView, { id, messages: summaryMessages });
34551
34551
  };
34552
- const table$2 = "_table_1memb_1";
34553
- const cell$3 = "_cell_1memb_11";
34554
- const compact = "_compact_1memb_15";
34555
- const cellKey = "_cellKey_1memb_19";
34556
- const cellValue = "_cellValue_1memb_31";
34557
- const styles$$ = {
34552
+ const table$2 = "_table_9qith_1";
34553
+ const cell$3 = "_cell_9qith_11";
34554
+ const compact = "_compact_9qith_15";
34555
+ const cellKey = "_cellKey_9qith_19";
34556
+ const cellValue = "_cellValue_9qith_31";
34557
+ const styles$11 = {
34558
34558
  table: table$2,
34559
34559
  cell: cell$3,
34560
34560
  compact,
@@ -34582,40 +34582,43 @@ self.onmessage = function (e) {
34582
34582
  "td",
34583
34583
  {
34584
34584
  className: clsx(
34585
- styles$$.cell,
34586
- styles$$.cellKey,
34585
+ styles$11.cell,
34586
+ styles$11.cellKey,
34587
34587
  "text-size-small",
34588
34588
  "text-style-label"
34589
34589
  ),
34590
34590
  children: entry2.name
34591
34591
  }
34592
34592
  ),
34593
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$$.cell, styles$$.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
34593
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: clsx(styles$11.cell, styles$11.cellValue, "text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 }) })
34594
34594
  ] }, id2);
34595
34595
  });
34596
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
34596
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
34597
34597
  "table",
34598
34598
  {
34599
34599
  id,
34600
34600
  className: clsx(
34601
34601
  "table",
34602
34602
  tblClz,
34603
- styles$$.table,
34604
- compact2 ? styles$$.compact : void 0,
34603
+ styles$11.table,
34604
+ compact2 ? styles$11.compact : void 0,
34605
34605
  className2
34606
34606
  ),
34607
34607
  style: style2,
34608
- children: [
34609
- /* @__PURE__ */ jsxRuntimeExports.jsx("thead", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("tr", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("th", { colSpan: 2, className: "th" }) }) }),
34610
- /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: entryEls })
34611
- ]
34608
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: entryEls })
34612
34609
  }
34613
34610
  );
34614
34611
  };
34615
34612
  const toNameValues = (entries) => {
34616
34613
  if (entries) {
34617
34614
  if (Array.isArray(entries)) {
34618
- return entries;
34615
+ const filtered = entries.filter((entry2) => {
34616
+ if (entry2 && typeof entry2 === "object") {
34617
+ return "name" in entry2 && "value" in entry2;
34618
+ }
34619
+ return false;
34620
+ });
34621
+ return filtered;
34619
34622
  } else {
34620
34623
  return Object.entries(entries || {}).map(([key2, value2]) => {
34621
34624
  return { name: key2, value: value2 };
@@ -34693,7 +34696,7 @@ self.onmessage = function (e) {
34693
34696
  const query = "_query_9u9bt_1";
34694
34697
  const summary$3 = "_summary_9u9bt_6";
34695
34698
  const preWrap = "_preWrap_9u9bt_10";
34696
- const styles$_ = {
34699
+ const styles$10 = {
34697
34700
  query,
34698
34701
  summary: summary$3,
34699
34702
  preWrap
@@ -34808,6 +34811,9 @@ self.onmessage = function (e) {
34808
34811
  canRender: (entry2) => {
34809
34812
  const isArray = Array.isArray(entry2.value);
34810
34813
  if (isArray) {
34814
+ if (entry2.value.length === 0 || entry2.value.length === 1) {
34815
+ return true;
34816
+ }
34811
34817
  const types2 = new Set(
34812
34818
  entry2.value.filter((e) => e !== null).map((e) => {
34813
34819
  return typeof e;
@@ -34845,7 +34851,7 @@ self.onmessage = function (e) {
34845
34851
  render: (_id, entry2) => {
34846
34852
  const results = [];
34847
34853
  results.push(
34848
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$_.query, children: [
34854
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$10.query, children: [
34849
34855
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.search }),
34850
34856
  " ",
34851
34857
  entry2.value.query
@@ -34857,7 +34863,7 @@ self.onmessage = function (e) {
34857
34863
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: result2.url, children: result2.url }) })
34858
34864
  );
34859
34865
  results.push(
34860
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$_.summary), children: result2.summary })
34866
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$10.summary), children: result2.summary })
34861
34867
  );
34862
34868
  }
34863
34869
  );
@@ -34874,7 +34880,7 @@ self.onmessage = function (e) {
34874
34880
  },
34875
34881
  render: (_id, entry2) => {
34876
34882
  return {
34877
- rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$_.preWrap, children: entry2.value })
34883
+ rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$10.preWrap, children: entry2.value })
34878
34884
  };
34879
34885
  }
34880
34886
  },
@@ -34942,7 +34948,7 @@ self.onmessage = function (e) {
34942
34948
  const green = "_green_1iagp_12";
34943
34949
  const red = "_red_1iagp_18";
34944
34950
  const orange = "_orange_1iagp_24";
34945
- const styles$Z = {
34951
+ const styles$$ = {
34946
34952
  circle,
34947
34953
  green,
34948
34954
  red,
@@ -34983,22 +34989,22 @@ self.onmessage = function (e) {
34983
34989
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
34984
34990
  "span",
34985
34991
  {
34986
- className: clsx("text-size-small", styles$Z.circle, styles$Z.green),
34992
+ className: clsx("text-size-small", styles$$.circle, styles$$.green),
34987
34993
  children: "C"
34988
34994
  }
34989
34995
  );
34990
34996
  } else if (score2 === "I") {
34991
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$Z.circle, styles$Z.red), children: "I" });
34997
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$$.circle, styles$$.red), children: "I" });
34992
34998
  } else if (score2 === "P") {
34993
34999
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
34994
35000
  "span",
34995
35001
  {
34996
- className: clsx("text-size-small", styles$Z.circle, styles$Z.orange),
35002
+ className: clsx("text-size-small", styles$$.circle, styles$$.orange),
34997
35003
  children: "P"
34998
35004
  }
34999
35005
  );
35000
35006
  } else if (score2 === "N") {
35001
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$Z.circle, styles$Z.red), children: "N" });
35007
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-small", styles$$.circle, styles$$.red), children: "N" });
35002
35008
  } else {
35003
35009
  return String(score2);
35004
35010
  }
@@ -37957,7 +37963,7 @@ categories: ${categories.join(" ")}`;
37957
37963
  };
37958
37964
  const flex$1 = "_flex_1kye9_1";
37959
37965
  const label$7 = "_label_1kye9_5";
37960
- const styles$Y = {
37966
+ const styles$_ = {
37961
37967
  flex: flex$1,
37962
37968
  label: label$7
37963
37969
  };
@@ -37991,7 +37997,7 @@ categories: ${categories.join(" ")}`;
37991
37997
  },
37992
37998
  [setSort]
37993
37999
  );
37994
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$Y.flex, children: [
38000
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$_.flex, children: [
37995
38001
  /* @__PURE__ */ jsxRuntimeExports.jsx(
37996
38002
  "span",
37997
38003
  {
@@ -38000,7 +38006,7 @@ categories: ${categories.join(" ")}`;
38000
38006
  "text-size-smaller",
38001
38007
  "text-style-label",
38002
38008
  "text-style-secondary",
38003
- styles$Y.label
38009
+ styles$_.label
38004
38010
  ),
38005
38011
  children: "Sort:"
38006
38012
  }
@@ -38422,10 +38428,10 @@ categories: ${categories.join(" ")}`;
38422
38428
  [setSelectedLogIndex, clearSelectedLogSummary, clearSelectedSample]
38423
38429
  );
38424
38430
  };
38425
- const container$e = "_container_15b4r_1";
38431
+ const container$g = "_container_15b4r_1";
38426
38432
  const label$6 = "_label_15b4r_5";
38427
- const styles$X = {
38428
- container: container$e,
38433
+ const styles$Z = {
38434
+ container: container$g,
38429
38435
  label: label$6
38430
38436
  };
38431
38437
  const EpochFilter = ({
@@ -38441,7 +38447,7 @@ categories: ${categories.join(" ")}`;
38441
38447
  const sel = e.target;
38442
38448
  setEpoch(sel.value);
38443
38449
  };
38444
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$X.container, children: [
38450
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$Z.container, children: [
38445
38451
  /* @__PURE__ */ jsxRuntimeExports.jsx(
38446
38452
  "span",
38447
38453
  {
@@ -38450,7 +38456,7 @@ categories: ${categories.join(" ")}`;
38450
38456
  "text-size-smaller",
38451
38457
  "text-style-label",
38452
38458
  "text-style-secondary",
38453
- styles$X.label
38459
+ styles$Z.label
38454
38460
  ),
38455
38461
  children: "Epochs:"
38456
38462
  }
@@ -58639,7 +58645,7 @@ categories: ${categories.join(" ")}`;
58639
58645
  const label$5 = "_label_jbrqc_1";
58640
58646
  const input = "_input_jbrqc_7";
58641
58647
  const help = "_help_jbrqc_11";
58642
- const styles$W = {
58648
+ const styles$Y = {
58643
58649
  label: label$5,
58644
58650
  input,
58645
58651
  help
@@ -58851,7 +58857,7 @@ Supported expressions:
58851
58857
  "text-size-smaller",
58852
58858
  "text-style-label",
58853
58859
  "text-style-secondary",
58854
- styles$W.label
58860
+ styles$Y.label
58855
58861
  ),
58856
58862
  children: "Filter:"
58857
58863
  }
@@ -58862,14 +58868,14 @@ Supported expressions:
58862
58868
  ref: editorRef,
58863
58869
  className: clsx(
58864
58870
  (filteringResultInstant == null ? void 0 : filteringResultInstant.error) && "filter-pending",
58865
- styles$W.input
58871
+ styles$Y.input
58866
58872
  )
58867
58873
  }
58868
58874
  ),
58869
58875
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58870
58876
  "span",
58871
58877
  {
58872
- className: clsx("bi", "bi-question-circle", styles$W.help),
58878
+ className: clsx("bi", "bi-question-circle", styles$Y.help),
58873
58879
  "data-tooltip": FILTER_TOOLTIP,
58874
58880
  "data-tooltip-position": "bottom-left"
58875
58881
  }
@@ -58880,7 +58886,7 @@ Supported expressions:
58880
58886
  const label$4 = "_label_anstf_5";
58881
58887
  const secondSel = "_secondSel_anstf_9";
58882
58888
  const secondLabel = "_secondLabel_anstf_13";
58883
- const styles$V = {
58889
+ const styles$X = {
58884
58890
  flex,
58885
58891
  label: label$4,
58886
58892
  secondSel,
@@ -58906,7 +58912,7 @@ Supported expressions:
58906
58912
  [setScore, scores2]
58907
58913
  );
58908
58914
  if (scorers.length === 1) {
58909
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$V.flex, children: [
58915
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$X.flex, children: [
58910
58916
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58911
58917
  "span",
58912
58918
  {
@@ -58915,7 +58921,7 @@ Supported expressions:
58915
58921
  "text-size-smaller",
58916
58922
  "text-style-label",
58917
58923
  "text-style-secondary",
58918
- styles$V.label
58924
+ styles$X.label
58919
58925
  ),
58920
58926
  children: "Score:"
58921
58927
  }
@@ -58933,7 +58939,7 @@ Supported expressions:
58933
58939
  const scorerScores = scores2.filter((sc) => {
58934
58940
  return score2 && sc.scorer === score2.scorer;
58935
58941
  });
58936
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$V.flex, children: [
58942
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$X.flex, children: [
58937
58943
  /* @__PURE__ */ jsxRuntimeExports.jsx(
58938
58944
  "span",
58939
58945
  {
@@ -58942,8 +58948,8 @@ Supported expressions:
58942
58948
  "text-size-smaller",
58943
58949
  "text-style-label",
58944
58950
  "text-style-secondary",
58945
- styles$V.label,
58946
- styles$V.secondLabel
58951
+ styles$X.label,
58952
+ styles$X.secondLabel
58947
58953
  ),
58948
58954
  children: "Scorer:"
58949
58955
  }
@@ -58959,7 +58965,7 @@ Supported expressions:
58959
58965
  scorerScores.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58960
58966
  ScoreSelector,
58961
58967
  {
58962
- className: clsx(styles$V.secondSel),
58968
+ className: clsx(styles$X.secondSel),
58963
58969
  scores: scorerScores,
58964
58970
  selectedIndex: scoreIndex(scorerScores, score2),
58965
58971
  setSelectedIndex: handleSelectScore
@@ -59100,7 +59106,7 @@ Supported expressions:
59100
59106
  ] }) });
59101
59107
  };
59102
59108
  const jsonTab = "_jsonTab_6pq03_1";
59103
- const styles$U = {
59109
+ const styles$W = {
59104
59110
  jsonTab
59105
59111
  };
59106
59112
  const kJsonMaxSize = 1e7;
@@ -59108,7 +59114,7 @@ Supported expressions:
59108
59114
  const downloadFiles = useStore((state) => state.capabilities.downloadFiles);
59109
59115
  if (logFile && json.length > kJsonMaxSize && downloadFiles) {
59110
59116
  const file = `${filename(logFile)}.json`;
59111
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$U.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
59117
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$W.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
59112
59118
  DownloadPanel,
59113
59119
  {
59114
59120
  message: "The JSON for this log file is too large to render.",
@@ -59118,17 +59124,17 @@ Supported expressions:
59118
59124
  }
59119
59125
  ) });
59120
59126
  } else {
59121
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$U.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
59127
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$W.jsonTab, children: /* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { id: "task-json-contents", json, simple: true }) });
59122
59128
  }
59123
59129
  };
59124
59130
  const panel$2 = "_panel_twp3v_1";
59125
- const container$d = "_container_twp3v_7";
59126
- const styles$T = {
59131
+ const container$f = "_container_twp3v_7";
59132
+ const styles$V = {
59127
59133
  panel: panel$2,
59128
- container: container$d
59134
+ container: container$f
59129
59135
  };
59130
59136
  const NoContentsPanel = ({ text: text2 }) => {
59131
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$T.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$T.container, "text-size-smaller"), children: [
59137
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$V.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$V.container, "text-size-smaller"), children: [
59132
59138
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.noSamples }),
59133
59139
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: text2 })
59134
59140
  ] }) });
@@ -59296,7 +59302,7 @@ Supported expressions:
59296
59302
  const col3$1 = "_col3_sq96g_16";
59297
59303
  const separator$4 = "_separator_sq96g_20";
59298
59304
  const padded$1 = "_padded_sq96g_26";
59299
- const styles$S = {
59305
+ const styles$U = {
59300
59306
  wrapper: wrapper$3,
59301
59307
  col2: col2$2,
59302
59308
  col1_3: col1_3$1,
@@ -59358,14 +59364,14 @@ Supported expressions:
59358
59364
  value: usage.total_tokens,
59359
59365
  secondary: false
59360
59366
  });
59361
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$S.wrapper), children: rows.map((row2, idx) => {
59367
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$U.wrapper), children: rows.map((row2, idx) => {
59362
59368
  if (row2.label === "---") {
59363
59369
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
59364
59370
  "div",
59365
59371
  {
59366
59372
  className: clsx(
59367
- styles$S.separator,
59368
- row2.padded ? styles$S.padded : void 0
59373
+ styles$U.separator,
59374
+ row2.padded ? styles$U.padded : void 0
59369
59375
  )
59370
59376
  },
59371
59377
  `$usage-sep-${idx}`
@@ -59378,12 +59384,12 @@ Supported expressions:
59378
59384
  className: clsx(
59379
59385
  "text-style-label",
59380
59386
  "text-style-secondary",
59381
- row2.secondary ? styles$S.col2 : styles$S.col1_3
59387
+ row2.secondary ? styles$U.col2 : styles$U.col1_3
59382
59388
  ),
59383
59389
  children: row2.label
59384
59390
  }
59385
59391
  ),
59386
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$S.col3, children: row2.value ? formatNumber(row2.value) : "" })
59392
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$U.col3, children: row2.value ? formatNumber(row2.value) : "" })
59387
59393
  ] }, `$usage-row-${idx}`);
59388
59394
  }
59389
59395
  }) });
@@ -59392,7 +59398,7 @@ Supported expressions:
59392
59398
  const tableTokens = "_tableTokens_dbhwb_6";
59393
59399
  const tableH = "_tableH_dbhwb_10";
59394
59400
  const model = "_model_dbhwb_15";
59395
- const styles$R = {
59401
+ const styles$T = {
59396
59402
  table: table$1,
59397
59403
  tableTokens,
59398
59404
  tableH,
@@ -59406,7 +59412,7 @@ Supported expressions:
59406
59412
  "table",
59407
59413
  "table-sm",
59408
59414
  "text-size-smaller",
59409
- styles$R.table,
59415
+ styles$T.table,
59410
59416
  className2
59411
59417
  ),
59412
59418
  children: children2
@@ -59423,7 +59429,7 @@ Supported expressions:
59423
59429
  colSpan: 3,
59424
59430
  className: clsx(
59425
59431
  "card-subheading",
59426
- styles$R.tableTokens,
59432
+ styles$T.tableTokens,
59427
59433
  "text-size-small",
59428
59434
  "text-style-label",
59429
59435
  "text-style-secondary"
@@ -59438,7 +59444,7 @@ Supported expressions:
59438
59444
  "th",
59439
59445
  {
59440
59446
  className: clsx(
59441
- styles$R.tableH,
59447
+ styles$T.tableH,
59442
59448
  "text-sixe-small",
59443
59449
  "text-style-label",
59444
59450
  "text-style-secondary"
@@ -59450,7 +59456,7 @@ Supported expressions:
59450
59456
  "th",
59451
59457
  {
59452
59458
  className: clsx(
59453
- styles$R.tableH,
59459
+ styles$T.tableH,
59454
59460
  "text-sixe-small",
59455
59461
  "text-style-label",
59456
59462
  "text-style-secondary"
@@ -59463,7 +59469,7 @@ Supported expressions:
59463
59469
  };
59464
59470
  const TokenRow = ({ model: model2, usage }) => {
59465
59471
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
59466
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$R.model, children: model2 }) }),
59472
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$T.model, children: model2 }) }),
59467
59473
  /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage }) })
59468
59474
  ] });
59469
59475
  };
@@ -62563,7 +62569,7 @@ Supported expressions:
62563
62569
  function Rn(t2, e, n) {
62564
62570
  return e !== "normal" && !(e != null && e.endsWith("px")) && n(`${t2} was not resolved to pixel value correctly`, e, ht.WARN), e === "normal" ? 0 : parseInt(e != null ? e : "0", 10);
62565
62571
  }
62566
- const container$c = "_container_1rer0_2";
62572
+ const container$e = "_container_1rer0_2";
62567
62573
  const dotsContainer = "_dotsContainer_1rer0_8";
62568
62574
  const small = "_small_1rer0_15";
62569
62575
  const medium = "_medium_1rer0_19";
@@ -62572,8 +62578,8 @@ Supported expressions:
62572
62578
  const subtle = "_subtle_1rer0_36";
62573
62579
  const primary = "_primary_1rer0_40";
62574
62580
  const visuallyHidden = "_visuallyHidden_1rer0_59";
62575
- const styles$Q = {
62576
- container: container$c,
62581
+ const styles$S = {
62582
+ container: container$e,
62577
62583
  dotsContainer,
62578
62584
  small,
62579
62585
  medium,
@@ -62593,29 +62599,29 @@ Supported expressions:
62593
62599
  "div",
62594
62600
  {
62595
62601
  className: clsx(
62596
- styles$Q.container,
62597
- size === "small" ? styles$Q.small : size === "medium" ? styles$Q.medium : styles$Q.large
62602
+ styles$S.container,
62603
+ size === "small" ? styles$S.small : size === "medium" ? styles$S.medium : styles$S.large
62598
62604
  ),
62599
62605
  role: "status",
62600
62606
  children: [
62601
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$Q.dotsContainer, children: [...Array(dotsCount)].map((_, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
62607
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$S.dotsContainer, children: [...Array(dotsCount)].map((_, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx(
62602
62608
  "div",
62603
62609
  {
62604
62610
  className: clsx(
62605
- styles$Q.dot,
62606
- subtle2 ? styles$Q.subtle : styles$Q.primary
62611
+ styles$S.dot,
62612
+ subtle2 ? styles$S.subtle : styles$S.primary
62607
62613
  ),
62608
62614
  style: { animationDelay: `${index2 * 0.15}s` }
62609
62615
  },
62610
62616
  index2
62611
62617
  )) }),
62612
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$Q.visuallyHidden, children: text2 })
62618
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$S.visuallyHidden, children: text2 })
62613
62619
  ]
62614
62620
  }
62615
62621
  );
62616
62622
  };
62617
62623
  const progressContainer = "_progressContainer_1cjjr_1";
62618
- const styles$P = {
62624
+ const styles$R = {
62619
62625
  progressContainer
62620
62626
  };
62621
62627
  const LiveVirtualList = ({
@@ -62693,7 +62699,7 @@ Supported expressions:
62693
62699
  const [, forceRender] = reactExports.useState({});
62694
62700
  const forceUpdate = reactExports.useCallback(() => forceRender({}), []);
62695
62701
  const Footer = () => {
62696
- return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$P.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
62702
+ return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$R.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
62697
62703
  };
62698
62704
  reactExports.useEffect(() => {
62699
62705
  const parent = scrollRef == null ? void 0 : scrollRef.current;
@@ -62772,7 +62778,7 @@ Supported expressions:
62772
62778
  const noTop = "_noTop_cjf1d_27";
62773
62779
  const timePanel = "_timePanel_cjf1d_31";
62774
62780
  const chat = "_chat_cjf1d_39";
62775
- const styles$O = {
62781
+ const styles$Q = {
62776
62782
  tabPanel,
62777
62783
  fullWidth: fullWidth$1,
62778
62784
  metadataPanel,
@@ -62785,7 +62791,7 @@ Supported expressions:
62785
62791
  const flatBody = "_flatBody_1uw6w_1";
62786
62792
  const iconSmall$1 = "_iconSmall_1uw6w_9";
62787
62793
  const lineBase = "_lineBase_1uw6w_15";
62788
- const styles$N = {
62794
+ const styles$P = {
62789
62795
  flatBody,
62790
62796
  iconSmall: iconSmall$1,
62791
62797
  lineBase
@@ -62800,23 +62806,23 @@ Supported expressions:
62800
62806
  return "Error";
62801
62807
  };
62802
62808
  const FlatSampleError = ({ message: message2 }) => {
62803
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$N.flatBody), children: [
62804
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$N.iconSmall) }),
62805
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$N.lineBase, "text-truncate"), children: errorType(message2) })
62809
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$P.flatBody), children: [
62810
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$P.iconSmall) }),
62811
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$P.lineBase, "text-truncate"), children: errorType(message2) })
62806
62812
  ] });
62807
62813
  };
62808
62814
  const target = "_target_giah9_1";
62809
62815
  const answer = "_answer_giah9_5";
62810
- const grid$4 = "_grid_giah9_9";
62816
+ const grid$5 = "_grid_giah9_9";
62811
62817
  const centerLabel = "_centerLabel_giah9_17";
62812
62818
  const centerValue = "_centerValue_giah9_22";
62813
62819
  const wrap = "_wrap_giah9_27";
62814
62820
  const titled = "_titled_giah9_31";
62815
62821
  const value$2 = "_value_giah9_35";
62816
- const styles$M = {
62822
+ const styles$O = {
62817
62823
  target,
62818
62824
  answer,
62819
- grid: grid$4,
62825
+ grid: grid$5,
62820
62826
  centerLabel,
62821
62827
  centerValue,
62822
62828
  wrap,
@@ -62893,7 +62899,7 @@ Supported expressions:
62893
62899
  MarkdownDiv,
62894
62900
  {
62895
62901
  markdown: arrayToString((fields == null ? void 0 : fields.target) || "none"),
62896
- className: clsx("no-last-para-padding", styles$M.target)
62902
+ className: clsx("no-last-para-padding", styles$O.target)
62897
62903
  }
62898
62904
  ),
62899
62905
  size: `${target2}fr`,
@@ -62907,7 +62913,7 @@ Supported expressions:
62907
62913
  MarkdownDiv,
62908
62914
  {
62909
62915
  markdown: fields.answer,
62910
- className: clsx("no-last-para-padding", styles$M.answer)
62916
+ className: clsx("no-last-para-padding", styles$O.answer)
62911
62917
  }
62912
62918
  ) : "",
62913
62919
  size: `${answer2}fr`,
@@ -62947,7 +62953,7 @@ Supported expressions:
62947
62953
  "div",
62948
62954
  {
62949
62955
  id: `sample-heading-${parent_id}`,
62950
- className: clsx(styles$M.grid, "text-size-base"),
62956
+ className: clsx(styles$O.grid, "text-size-base"),
62951
62957
  style: {
62952
62958
  gridTemplateColumns: `${columns.map((col) => {
62953
62959
  return col.size;
@@ -62962,8 +62968,8 @@ Supported expressions:
62962
62968
  "text-style-label",
62963
62969
  "text-style-secondary",
62964
62970
  "text-size-base",
62965
- col.title ? styles$M.titled : void 0,
62966
- col.center ? styles$M.centerLabel : void 0
62971
+ col.title ? styles$O.titled : void 0,
62972
+ col.center ? styles$O.centerLabel : void 0
62967
62973
  ),
62968
62974
  title: col.title,
62969
62975
  children: col.label
@@ -62976,10 +62982,10 @@ Supported expressions:
62976
62982
  "div",
62977
62983
  {
62978
62984
  className: clsx(
62979
- styles$M.value,
62980
- styles$M.wrap,
62985
+ styles$O.value,
62986
+ styles$O.wrap,
62981
62987
  col.clamp ? "three-line-clamp" : void 0,
62982
- col.center ? styles$M.centerValue : void 0
62988
+ col.center ? styles$O.centerValue : void 0
62983
62989
  ),
62984
62990
  children: col.value
62985
62991
  },
@@ -62993,11 +62999,11 @@ Supported expressions:
62993
62999
  const EmptyPanel = ({ children: children2 }) => {
62994
63000
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "empty-panel", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "container", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: children2 }) }) });
62995
63001
  };
62996
- const grid$3 = "_grid_ktnsp_1";
63002
+ const grid$4 = "_grid_ktnsp_1";
62997
63003
  const cell$2 = "_cell_ktnsp_8";
62998
63004
  const value$1 = "_value_ktnsp_13";
62999
- const styles$L = {
63000
- grid: grid$3,
63005
+ const styles$N = {
63006
+ grid: grid$4,
63001
63007
  cell: cell$2,
63002
63008
  value: value$1
63003
63009
  };
@@ -63026,7 +63032,7 @@ Supported expressions:
63026
63032
  {
63027
63033
  className: clsx(
63028
63034
  `${baseId}-key`,
63029
- styles$L.cell,
63035
+ styles$N.cell,
63030
63036
  "text-style-label",
63031
63037
  "text-style-secondary",
63032
63038
  "text-size-small"
@@ -63037,13 +63043,13 @@ Supported expressions:
63037
63043
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63038
63044
  "div",
63039
63045
  {
63040
- className: clsx(styles$L.value, `${baseId}-value`, "text-size-small"),
63046
+ className: clsx(styles$N.value, `${baseId}-value`, "text-size-small"),
63041
63047
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedContent, { id: id2, entry: entry2 })
63042
63048
  }
63043
63049
  )
63044
63050
  ] }, `${baseId}-record-${index2}`);
63045
63051
  });
63046
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$L.grid), style: style2, children: entryEls });
63052
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: clsx(className2, styles$N.grid), style: style2, children: entryEls });
63047
63053
  };
63048
63054
  const entryRecords = (entries) => {
63049
63055
  if (!entries) {
@@ -63069,14 +63075,14 @@ Supported expressions:
63069
63075
  );
63070
63076
  return scorerDescriptor == null ? void 0 : scorerDescriptor.render(scoreData.value);
63071
63077
  };
63072
- const container$b = "_container_8i3m0_1";
63078
+ const container$d = "_container_8i3m0_1";
63073
63079
  const cell$1 = "_cell_8i3m0_9";
63074
63080
  const fullWidth = "_fullWidth_8i3m0_13";
63075
63081
  const separator$3 = "_separator_8i3m0_25";
63076
63082
  const separatorPadded = "_separatorPadded_8i3m0_30";
63077
63083
  const headerSep = "_headerSep_8i3m0_35";
63078
- const styles$K = {
63079
- container: container$b,
63084
+ const styles$M = {
63085
+ container: container$d,
63080
63086
  cell: cell$1,
63081
63087
  fullWidth,
63082
63088
  separator: separator$3,
@@ -63091,7 +63097,7 @@ Supported expressions:
63091
63097
  if (!evalDescriptor) {
63092
63098
  return /* @__PURE__ */ jsxRuntimeExports.jsx(EmptyPanel, { children: "No Sample Selected" });
63093
63099
  }
63094
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2, styles$K.container), children: [
63100
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2, styles$M.container), children: [
63095
63101
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63096
63102
  "div",
63097
63103
  {
@@ -63139,7 +63145,7 @@ Supported expressions:
63139
63145
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63140
63146
  "div",
63141
63147
  {
63142
- className: clsx(styles$K.separator, styles$K.fullWidth, styles$K.headerSep)
63148
+ className: clsx(styles$M.separator, styles$M.fullWidth, styles$M.headerSep)
63143
63149
  }
63144
63150
  ),
63145
63151
  Object.keys(evalSample.scores || {}).map((scorer2) => {
@@ -63151,16 +63157,16 @@ Supported expressions:
63151
63157
  const answer2 = scoreData.answer;
63152
63158
  let metadata2 = scoreData.metadata || {};
63153
63159
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
63154
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$K.cell), children: scorer2 }),
63155
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$K.cell, "text-size-base"), children: answer2 }),
63156
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$K.cell, "text-size-base"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63160
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$M.cell), children: scorer2 }),
63161
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$M.cell, "text-size-base"), children: answer2 }),
63162
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$M.cell, "text-size-base"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63157
63163
  SampleScores,
63158
63164
  {
63159
63165
  sample: evalSample,
63160
63166
  scorer: scorer2
63161
63167
  }
63162
63168
  ) }),
63163
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$K.cell), children: explanation2 }),
63169
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base", styles$M.cell), children: explanation2 }),
63164
63170
  Object.keys(metadata2).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
63165
63171
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63166
63172
  "div",
@@ -63169,19 +63175,19 @@ Supported expressions:
63169
63175
  "text-size-smaller",
63170
63176
  "text-style-label",
63171
63177
  "text-style-secondary",
63172
- styles$K.fullWidth
63178
+ styles$M.fullWidth
63173
63179
  ),
63174
63180
  children: "Metadata"
63175
63181
  }
63176
63182
  ),
63177
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$K.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: metadata2 }) }),
63183
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$M.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: metadata2 }) }),
63178
63184
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63179
63185
  "div",
63180
63186
  {
63181
63187
  className: clsx(
63182
- styles$K.separator,
63183
- styles$K.separatorPadded,
63184
- styles$K.fullWidth
63188
+ styles$M.separator,
63189
+ styles$M.separatorPadded,
63190
+ styles$M.fullWidth
63185
63191
  )
63186
63192
  }
63187
63193
  )
@@ -63190,12 +63196,12 @@ Supported expressions:
63190
63196
  })
63191
63197
  ] });
63192
63198
  };
63193
- const container$a = "_container_w4jj8_1";
63199
+ const container$c = "_container_w4jj8_1";
63194
63200
  const wordBreak = "_wordBreak_w4jj8_15";
63195
63201
  const scoreCard = "_scoreCard_w4jj8_56";
63196
63202
  const scores = "_scores_w4jj8_60";
63197
- const styles$J = {
63198
- container: container$a,
63203
+ const styles$L = {
63204
+ container: container$c,
63199
63205
  wordBreak,
63200
63206
  scoreCard,
63201
63207
  scores
@@ -63227,9 +63233,9 @@ Supported expressions:
63227
63233
  "container-fluid",
63228
63234
  className2,
63229
63235
  "font-size-base",
63230
- styles$J.container
63236
+ styles$L.container
63231
63237
  ),
63232
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: clsx(styles$J.scoreCard), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
63238
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { className: clsx(styles$L.scoreCard), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
63233
63239
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63234
63240
  "div",
63235
63241
  {
@@ -63251,7 +63257,7 @@ Supported expressions:
63251
63257
  MarkdownDiv,
63252
63258
  {
63253
63259
  markdown: scoreInput.join("\n"),
63254
- className: clsx(styles$J.wordBreak, "text-size-base")
63260
+ className: clsx(styles$L.wordBreak, "text-size-base")
63255
63261
  }
63256
63262
  )
63257
63263
  }
@@ -63260,7 +63266,7 @@ Supported expressions:
63260
63266
  SampleScoresGrid,
63261
63267
  {
63262
63268
  evalSample: sample2,
63263
- className: clsx(styles$J.scores)
63269
+ className: clsx(styles$L.scores)
63264
63270
  }
63265
63271
  )
63266
63272
  ] }) })
@@ -63269,7 +63275,7 @@ Supported expressions:
63269
63275
  };
63270
63276
  const title$2 = "_title_19l1b_1";
63271
63277
  const contents = "_contents_19l1b_8";
63272
- const styles$I = {
63278
+ const styles$K = {
63273
63279
  title: title$2,
63274
63280
  contents
63275
63281
  };
@@ -63279,12 +63285,12 @@ Supported expressions:
63279
63285
  className: className2,
63280
63286
  children: children2
63281
63287
  }) => {
63282
- const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$I.title, className2), children: [
63288
+ const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$K.title, className2), children: [
63283
63289
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: icon2 || ApplicationIcons.metadata }),
63284
63290
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: title2 }),
63285
63291
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: children2 })
63286
63292
  ] }) : "";
63287
- const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$I.contents), children: contentEl });
63293
+ const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$K.contents), children: contentEl });
63288
63294
  return card2;
63289
63295
  };
63290
63296
  const ApprovalEventView = ({
@@ -63334,7 +63340,7 @@ Supported expressions:
63334
63340
  }
63335
63341
  };
63336
63342
  const tab = "_tab_1je38_1";
63337
- const styles$H = {
63343
+ const styles$J = {
63338
63344
  tab
63339
63345
  };
63340
63346
  const EventNav = ({
@@ -63359,7 +63365,7 @@ Supported expressions:
63359
63365
  active2 ? "active " : "",
63360
63366
  "text-style-label",
63361
63367
  "text-size-small",
63362
- styles$H.tab
63368
+ styles$J.tab
63363
63369
  ),
63364
63370
  onClick: handleClick,
63365
63371
  children: title2
@@ -63367,7 +63373,7 @@ Supported expressions:
63367
63373
  ) });
63368
63374
  };
63369
63375
  const navs$1 = "_navs_1vm6p_1";
63370
- const styles$G = {
63376
+ const styles$I = {
63371
63377
  navs: navs$1
63372
63378
  };
63373
63379
  const EventNavs = ({
@@ -63378,7 +63384,7 @@ Supported expressions:
63378
63384
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
63379
63385
  "ul",
63380
63386
  {
63381
- className: clsx("nav", "nav-pills", styles$G.navs),
63387
+ className: clsx("nav", "nav-pills", styles$I.navs),
63382
63388
  role: "tablist",
63383
63389
  "aria-orientation": "horizontal",
63384
63390
  children: navs2.map((nav2) => {
@@ -63401,7 +63407,7 @@ Supported expressions:
63401
63407
  const card = "_card_7z797_12";
63402
63408
  const cardContent = "_cardContent_7z797_18";
63403
63409
  const hidden$1 = "_hidden_7z797_23";
63404
- const styles$F = {
63410
+ const styles$H = {
63405
63411
  label: label$3,
63406
63412
  navs,
63407
63413
  card,
@@ -63489,12 +63495,12 @@ Supported expressions:
63489
63495
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63490
63496
  "div",
63491
63497
  {
63492
- className: clsx("text-style-secondary", styles$F.label),
63498
+ className: clsx("text-style-secondary", styles$H.label),
63493
63499
  onClick: toggleCollapse,
63494
63500
  children: isCollapsed ? text2 : ""
63495
63501
  }
63496
63502
  ),
63497
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$F.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
63503
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$H.navs, children: (!hasCollapse || !isCollapsed) && filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
63498
63504
  EventNavs,
63499
63505
  {
63500
63506
  navs: filteredArrChildren.map((child, index2) => {
@@ -63514,15 +63520,15 @@ Supported expressions:
63514
63520
  }
63515
63521
  ) : "";
63516
63522
  const card2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
63517
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$F.card), children: [
63523
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id, className: clsx(className2, styles$H.card), children: [
63518
63524
  titleEl,
63519
63525
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63520
63526
  "div",
63521
63527
  {
63522
63528
  className: clsx(
63523
63529
  "tab-content",
63524
- styles$F.cardContent,
63525
- hasCollapse && isCollapsed ? styles$F.hidden : void 0
63530
+ styles$H.cardContent,
63531
+ hasCollapse && isCollapsed ? styles$H.hidden : void 0
63526
63532
  ),
63527
63533
  children: filteredArrChildren == null ? void 0 : filteredArrChildren.map((child, index2) => {
63528
63534
  const id2 = pillId(index2);
@@ -63574,7 +63580,7 @@ Supported expressions:
63574
63580
  );
63575
63581
  };
63576
63582
  const panel$1 = "_panel_8zdtn_1";
63577
- const styles$E = {
63583
+ const styles$G = {
63578
63584
  panel: panel$1
63579
63585
  };
63580
63586
  const InfoEventView = ({
@@ -63584,9 +63590,9 @@ Supported expressions:
63584
63590
  }) => {
63585
63591
  const panels = [];
63586
63592
  if (typeof event.data === "string") {
63587
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$E.panel }));
63593
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.data, className: styles$G.panel }));
63588
63594
  } else {
63589
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$E.panel }));
63595
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$G.panel }));
63590
63596
  }
63591
63597
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
63592
63598
  EventPanel,
@@ -63623,9 +63629,9 @@ Supported expressions:
63623
63629
  }
63624
63630
  );
63625
63631
  };
63626
- const grid$2 = "_grid_1eq5o_1";
63627
- const styles$D = {
63628
- grid: grid$2
63632
+ const grid$3 = "_grid_1eq5o_1";
63633
+ const styles$F = {
63634
+ grid: grid$3
63629
63635
  };
63630
63636
  const LoggerEventView = ({
63631
63637
  event,
@@ -63638,7 +63644,7 @@ Supported expressions:
63638
63644
  className: className2,
63639
63645
  title: event.message.level,
63640
63646
  icon: ApplicationIcons.logging[event.message.level.toLowerCase()],
63641
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$D.grid), children: [
63647
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$F.grid), children: [
63642
63648
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: obj !== void 0 && obj !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: obj }) : event.message.message }),
63643
63649
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", "text-style-secondary"), children: [
63644
63650
  event.message.filename,
@@ -63649,10 +63655,10 @@ Supported expressions:
63649
63655
  }
63650
63656
  );
63651
63657
  };
63652
- const container$9 = "_container_1brs9_1";
63658
+ const container$b = "_container_1brs9_1";
63653
63659
  const title$1 = "_title_1brs9_5";
63654
- const styles$C = {
63655
- container: container$9,
63660
+ const styles$E = {
63661
+ container: container$b,
63656
63662
  title: title$1
63657
63663
  };
63658
63664
  const EventSection = ({
@@ -63660,11 +63666,11 @@ Supported expressions:
63660
63666
  children: children2,
63661
63667
  className: className2
63662
63668
  }) => {
63663
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$C.container, className2), children: [
63669
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$E.container, className2), children: [
63664
63670
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63665
63671
  "div",
63666
63672
  {
63667
- className: clsx("text-size-small", "text-style-label", styles$C.title),
63673
+ className: clsx("text-size-small", "text-style-label", styles$E.title),
63668
63674
  children: title2
63669
63675
  }
63670
63676
  ),
@@ -63672,7 +63678,7 @@ Supported expressions:
63672
63678
  ] });
63673
63679
  };
63674
63680
  const output = "_output_1bdt9_1";
63675
- const container$8 = "_container_1bdt9_5";
63681
+ const container$a = "_container_1bdt9_5";
63676
63682
  const all = "_all_1bdt9_10";
63677
63683
  const tableSelection = "_tableSelection_1bdt9_16";
63678
63684
  const tools$1 = "_tools_1bdt9_22";
@@ -63680,9 +63686,9 @@ Supported expressions:
63680
63686
  const code$1 = "_code_1bdt9_26";
63681
63687
  const toolConfig = "_toolConfig_1bdt9_38";
63682
63688
  const progress$1 = "_progress_1bdt9_45";
63683
- const styles$B = {
63689
+ const styles$D = {
63684
63690
  output,
63685
- container: container$8,
63691
+ container: container$a,
63686
63692
  all,
63687
63693
  tableSelection,
63688
63694
  tools: tools$1,
@@ -63697,7 +63703,7 @@ Supported expressions:
63697
63703
  const col3 = "_col3_45f60_16";
63698
63704
  const separator$2 = "_separator_45f60_20";
63699
63705
  const topMargin = "_topMargin_45f60_26";
63700
- const styles$A = {
63706
+ const styles$C = {
63701
63707
  wrapper: wrapper$2,
63702
63708
  col2: col2$1,
63703
63709
  col1_3,
@@ -63765,9 +63771,9 @@ Supported expressions:
63765
63771
  });
63766
63772
  }
63767
63773
  }
63768
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$A.wrapper), children: rows.map((row2, idx) => {
63774
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$C.wrapper), children: rows.map((row2, idx) => {
63769
63775
  if (row2.label === "---") {
63770
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$A.separator }, `$usage-sep-${idx}`);
63776
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$C.separator }, `$usage-sep-${idx}`);
63771
63777
  } else {
63772
63778
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
63773
63779
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -63776,13 +63782,13 @@ Supported expressions:
63776
63782
  className: clsx(
63777
63783
  "text-style-label",
63778
63784
  "text-style-secondary",
63779
- row2.secondary ? styles$A.col2 : styles$A.col1_3,
63780
- row2.topMargin ? styles$A.topMargin : void 0
63785
+ row2.secondary ? styles$C.col2 : styles$C.col1_3,
63786
+ row2.topMargin ? styles$C.topMargin : void 0
63781
63787
  ),
63782
63788
  children: row2.label
63783
63789
  }
63784
63790
  ),
63785
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$A.col3, children: row2.value ? row2.value : "" })
63791
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$C.col3, children: row2.value ? row2.value : "" })
63786
63792
  ] }, `$usage-row-${idx}`);
63787
63793
  }
63788
63794
  }) });
@@ -63828,33 +63834,34 @@ Supported expressions:
63828
63834
  break;
63829
63835
  }
63830
63836
  }
63837
+ const panelTitle = event.role ? `Model Call (${event.role}): ${event.model}` : `Model Call: ${event.model}`;
63831
63838
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
63832
63839
  EventPanel,
63833
63840
  {
63834
63841
  id,
63835
63842
  className: className2,
63836
- title: formatTitle(`Model Call: ${event.model}`, totalUsage, callTime),
63843
+ title: formatTitle(panelTitle, totalUsage, callTime),
63837
63844
  subTitle: formatTiming(event.timestamp, event.working_start),
63838
63845
  icon: ApplicationIcons.model,
63839
63846
  children: [
63840
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$B.container, children: [
63847
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$D.container, children: [
63841
63848
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63842
63849
  ChatView,
63843
63850
  {
63844
63851
  id: `${id}-model-output`,
63845
63852
  messages: [...userMessages, ...outputMessages || []],
63846
- className: clsx(styles$B.output),
63853
+ className: clsx(styles$D.output),
63847
63854
  numbered: false,
63848
63855
  toolCallStyle: "compact"
63849
63856
  }
63850
63857
  ),
63851
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
63858
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$D.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
63852
63859
  ] }),
63853
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$B.container, children: [
63854
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$B.all, children: [
63855
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Configuration", className: styles$B.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true }) }),
63856
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$B.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
63857
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$B.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63860
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$D.container, children: [
63861
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$D.all, children: [
63862
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Configuration", className: styles$D.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries, plain: true }) }),
63863
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$D.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
63864
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$D.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63858
63865
  EventTimingPanel,
63859
63866
  {
63860
63867
  timestamp: event.timestamp,
@@ -63867,7 +63874,7 @@ Supported expressions:
63867
63874
  EventSection,
63868
63875
  {
63869
63876
  title: "Tools",
63870
- className: clsx(styles$B.tableSelection, styles$B.tools),
63877
+ className: clsx(styles$D.tableSelection, styles$D.tools),
63871
63878
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools })
63872
63879
  }
63873
63880
  )
@@ -63885,7 +63892,7 @@ Supported expressions:
63885
63892
  {
63886
63893
  "data-name": "API",
63887
63894
  call: event.call,
63888
- className: styles$B.container
63895
+ className: styles$D.container
63889
63896
  }
63890
63897
  ) : ""
63891
63898
  ]
@@ -63909,11 +63916,11 @@ Supported expressions:
63909
63916
  if (!contents2) {
63910
63917
  return null;
63911
63918
  }
63912
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$B.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63919
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: prismParentRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$D.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63913
63920
  "code",
63914
63921
  {
63915
63922
  id,
63916
- className: clsx("language-json", styles$B.code, "text-size-small"),
63923
+ className: clsx("language-json", styles$D.code, "text-size-small"),
63917
63924
  children: sourceCode
63918
63925
  }
63919
63926
  ) }) });
@@ -63925,14 +63932,14 @@ Supported expressions:
63925
63932
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: tool2.description })
63926
63933
  ] }, `${tool2.name}-${idx}`);
63927
63934
  });
63928
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$B.toolConfig, children: toolEls });
63935
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$D.toolConfig, children: toolEls });
63929
63936
  };
63930
63937
  const noMargin = "_noMargin_1a3fk_1";
63931
63938
  const code = "_code_1a3fk_5";
63932
63939
  const sample = "_sample_1a3fk_10";
63933
63940
  const section = "_section_1a3fk_14";
63934
63941
  const metadata$2 = "_metadata_1a3fk_21";
63935
- const styles$z = {
63942
+ const styles$B = {
63936
63943
  noMargin,
63937
63944
  code,
63938
63945
  sample,
@@ -63949,13 +63956,13 @@ Supported expressions:
63949
63956
  if (event.sample.files && Object.keys(event.sample.files).length > 0) {
63950
63957
  sections.push(
63951
63958
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Files", children: Object.keys(event.sample.files).map((file) => {
63952
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$z.noMargin, children: file }, `sample-init-file-${file}`);
63959
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$B.noMargin, children: file }, `sample-init-file-${file}`);
63953
63960
  }) }, `sample-${id}-init-files`)
63954
63961
  );
63955
63962
  }
63956
63963
  if (event.sample.setup) {
63957
63964
  sections.push(
63958
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$z.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
63965
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$B.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `sample-${id}-init-setup`)
63959
63966
  );
63960
63967
  }
63961
63968
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -63967,7 +63974,7 @@ Supported expressions:
63967
63974
  icon: ApplicationIcons.sample,
63968
63975
  subTitle: formatDateTime(new Date(event.timestamp)),
63969
63976
  children: [
63970
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$z.sample, children: [
63977
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$B.sample, children: [
63971
63978
  /* @__PURE__ */ jsxRuntimeExports.jsx(ChatView, { messages: stateObj["messages"] }),
63972
63979
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
63973
63980
  event.sample.choices ? event.sample.choices.map((choice, index2) => {
@@ -63977,7 +63984,7 @@ Supported expressions:
63977
63984
  choice
63978
63985
  ] }, `$choice-{choice}`);
63979
63986
  }) : "",
63980
- sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$z.section, children: sections }) : "",
63987
+ sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$B.section, children: sections }) : "",
63981
63988
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Target", children: toArray(event.sample.target).map((target2) => {
63982
63989
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: target2 }, target2);
63983
63990
  }) })
@@ -63987,7 +63994,7 @@ Supported expressions:
63987
63994
  MetaDataGrid,
63988
63995
  {
63989
63996
  "data-name": "Metadata",
63990
- className: styles$z.metadata,
63997
+ className: styles$B.metadata,
63991
63998
  entries: event.sample.metadata
63992
63999
  }
63993
64000
  ) : ""
@@ -64041,7 +64048,7 @@ Supported expressions:
64041
64048
  const result = "_result_iwnfd_19";
64042
64049
  const fileLabel = "_fileLabel_iwnfd_23";
64043
64050
  const wrapPre = "_wrapPre_iwnfd_28";
64044
- const styles$y = {
64051
+ const styles$A = {
64045
64052
  twoColumn,
64046
64053
  exec,
64047
64054
  result,
@@ -64074,10 +64081,10 @@ Supported expressions:
64074
64081
  const input2 = event.input;
64075
64082
  const result2 = event.result;
64076
64083
  const output2 = event.output;
64077
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$y.exec), children: [
64078
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$y.twoColumn), children: [
64079
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$y.wrapPre), children: cmd2 }),
64080
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$y.wrapPre), children: input2 !== null ? input2 == null ? void 0 : input2.trim() : void 0 }),
64084
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.exec), children: [
64085
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.twoColumn), children: [
64086
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$A.wrapPre), children: cmd2 }),
64087
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$A.wrapPre), children: input2 !== null ? input2 == null ? void 0 : input2.trim() : void 0 }),
64081
64088
  options2 !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Options`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
64082
64089
  MetaDataGrid,
64083
64090
  {
@@ -64088,7 +64095,7 @@ Supported expressions:
64088
64095
  ] }) }),
64089
64096
  /* @__PURE__ */ jsxRuntimeExports.jsxs(EventSection, { title: `Result`, children: [
64090
64097
  output2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id}-output`, collapse: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: output2 }) }) : void 0,
64091
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$y.result), children: [
64098
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.result), children: [
64092
64099
  "Exited with code ",
64093
64100
  result2
64094
64101
  ] })
@@ -64113,14 +64120,14 @@ Supported expressions:
64113
64120
  };
64114
64121
  const FileView = ({ id, file, contents: contents2 }) => {
64115
64122
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
64116
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$y.fileLabel), children: file }) }),
64123
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$A.fileLabel), children: file }) }),
64117
64124
  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
64118
64125
  ] });
64119
64126
  };
64120
64127
  const explanation = "_explanation_1ww42_1";
64121
64128
  const separator$1 = "_separator_1ww42_8";
64122
64129
  const metadata$1 = "_metadata_1ww42_13";
64123
- const styles$x = {
64130
+ const styles$z = {
64124
64131
  explanation,
64125
64132
  separator: separator$1,
64126
64133
  metadata: metadata$1
@@ -64140,28 +64147,28 @@ Supported expressions:
64140
64147
  subTitle: formatDateTime(new Date(event.timestamp)),
64141
64148
  icon: ApplicationIcons.scorer,
64142
64149
  children: [
64143
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$x.explanation), children: [
64150
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$z.explanation), children: [
64144
64151
  event.target ? /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
64145
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.separator) }),
64152
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
64146
64153
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Target" }),
64147
64154
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: resolvedTarget || "" }) })
64148
64155
  ] }) : "",
64149
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.separator) }),
64156
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
64150
64157
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
64151
64158
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.answer || "" }) }),
64152
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.separator) }),
64159
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
64153
64160
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
64154
64161
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: event.score.explanation || "" }) }),
64155
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.separator) }),
64162
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
64156
64163
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Score" }),
64157
64164
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.score.value) }),
64158
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.separator) })
64165
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) })
64159
64166
  ] }),
64160
64167
  event.score.metadata ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Metadata", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
64161
64168
  MetaDataGrid,
64162
64169
  {
64163
64170
  entries: event.score.metadata,
64164
- className: styles$x.metadata
64171
+ className: styles$z.metadata
64165
64172
  }
64166
64173
  ) }) : void 0
64167
64174
  ]
@@ -70724,7 +70731,7 @@ ${events}
70724
70731
  const lightboxButtonCloseWrapper = "_lightboxButtonCloseWrapper_1mvg8_45";
70725
70732
  const lightboxButtonClose = "_lightboxButtonClose_1mvg8_45";
70726
70733
  const lightboxPreviewButton = "_lightboxPreviewButton_1mvg8_63";
70727
- const styles$w = {
70734
+ const styles$y = {
70728
70735
  carouselThumbs,
70729
70736
  carouselThumb,
70730
70737
  carouselPlayIcon,
@@ -70793,12 +70800,12 @@ ${events}
70793
70800
  [openLightbox]
70794
70801
  );
70795
70802
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("lightbox-carousel-container"), children: [
70796
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.carouselThumbs), children: slides.map((slide, index2) => {
70803
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.carouselThumbs), children: slides.map((slide, index2) => {
70797
70804
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
70798
70805
  "div",
70799
70806
  {
70800
70807
  "data-index": index2,
70801
- className: clsx(styles$w.carouselThumb),
70808
+ className: clsx(styles$y.carouselThumb),
70802
70809
  onClick: handleThumbClick,
70803
70810
  children: [
70804
70811
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: slide.label }),
@@ -70807,7 +70814,7 @@ ${events}
70807
70814
  {
70808
70815
  className: clsx(
70809
70816
  ApplicationIcons.play,
70810
- styles$w.carouselPlayIcon
70817
+ styles$y.carouselPlayIcon
70811
70818
  )
70812
70819
  }
70813
70820
  ) })
@@ -70819,12 +70826,12 @@ ${events}
70819
70826
  showOverlay && /* @__PURE__ */ jsxRuntimeExports.jsxs(
70820
70827
  "div",
70821
70828
  {
70822
- className: clsx(styles$w.lightboxOverlay, isOpen ? "open" : "closed"),
70829
+ className: clsx(styles$y.lightboxOverlay, isOpen ? "open" : "closed"),
70823
70830
  children: [
70824
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
70831
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
70825
70832
  "button",
70826
70833
  {
70827
- className: styles$w.lightboxButtonClose,
70834
+ className: styles$y.lightboxButtonClose,
70828
70835
  onClick: closeLightbox,
70829
70836
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
70830
70837
  }
@@ -70832,7 +70839,7 @@ ${events}
70832
70839
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
70833
70840
  "button",
70834
70841
  {
70835
- className: clsx(styles$w.lightboxPreviewButton, "prev"),
70842
+ className: clsx(styles$y.lightboxPreviewButton, "prev"),
70836
70843
  onClick: showPrev,
70837
70844
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.previous })
70838
70845
  }
@@ -70840,7 +70847,7 @@ ${events}
70840
70847
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
70841
70848
  "button",
70842
70849
  {
70843
- className: clsx(styles$w.lightboxPreviewButton, "next"),
70850
+ className: clsx(styles$y.lightboxPreviewButton, "next"),
70844
70851
  onClick: showNext,
70845
70852
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.next })
70846
70853
  }
@@ -70848,7 +70855,7 @@ ${events}
70848
70855
  /* @__PURE__ */ jsxRuntimeExports.jsx(
70849
70856
  "div",
70850
70857
  {
70851
- className: clsx(styles$w.lightboxContent, isOpen ? "open" : "closed"),
70858
+ className: clsx(styles$y.lightboxContent, isOpen ? "open" : "closed"),
70852
70859
  children: slides[currentIndex].render()
70853
70860
  },
70854
70861
  `carousel-slide-${currentIndex}`
@@ -70958,7 +70965,7 @@ ${events}
70958
70965
  };
70959
70966
  const tools = "_tools_13oio_1";
70960
70967
  const tool = "_tool_13oio_1";
70961
- const styles$v = {
70968
+ const styles$x = {
70962
70969
  tools,
70963
70970
  tool
70964
70971
  };
@@ -71098,7 +71105,7 @@ ${events}
71098
71105
  toolsInfo["Tools"] = /* @__PURE__ */ jsxRuntimeExports.jsx(Tools, { toolDefinitions: filtered });
71099
71106
  }
71100
71107
  }
71101
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$v.tools), children: Object.keys(toolsInfo).map((key2) => {
71108
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.tools), children: Object.keys(toolsInfo).map((key2) => {
71102
71109
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
71103
71110
  /* @__PURE__ */ jsxRuntimeExports.jsx(
71104
71111
  "div",
@@ -71115,14 +71122,14 @@ ${events}
71115
71122
  ] }, key2);
71116
71123
  }) }, "state-diff-tools");
71117
71124
  };
71118
- const createMessageRenderer = (name2, role) => {
71125
+ const createMessageRenderer = (name2, role2) => {
71119
71126
  return {
71120
71127
  type: name2,
71121
71128
  match: (changes) => {
71122
71129
  if (changes.length === 1) {
71123
71130
  const change = changes[0];
71124
71131
  if (change.op === "add" && change.path.match(/\/messages\/\d+/)) {
71125
- return change.value["role"] === role;
71132
+ return change.value["role"] === role2;
71126
71133
  }
71127
71134
  }
71128
71135
  return false;
@@ -71167,11 +71174,11 @@ ${events}
71167
71174
  };
71168
71175
  const Tool = ({ toolName, toolArgs }) => {
71169
71176
  const functionCall = toolArgs && toolArgs.length > 0 ? `${toolName}(${toolArgs.join(", ")})` : toolName;
71170
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$v.tool), children: functionCall }) });
71177
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$x.tool), children: functionCall }) });
71171
71178
  };
71172
71179
  const diff = "_diff_eobja_1";
71173
71180
  const summary$2 = "_summary_eobja_6";
71174
- const styles$u = {
71181
+ const styles$w = {
71175
71182
  diff,
71176
71183
  summary: summary$2
71177
71184
  };
@@ -71209,14 +71216,14 @@ ${events}
71209
71216
  text: !changePreview ? summary2 : void 0,
71210
71217
  collapse: changePreview === void 0 ? true : void 0,
71211
71218
  children: [
71212
- changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$u.summary), children: changePreview }) : void 0,
71219
+ changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$w.summary), children: changePreview }) : void 0,
71213
71220
  /* @__PURE__ */ jsxRuntimeExports.jsx(
71214
71221
  StateDiffView,
71215
71222
  {
71216
71223
  before,
71217
71224
  after,
71218
71225
  "data-name": "Diff",
71219
- className: clsx(styles$u.diff)
71226
+ className: clsx(styles$w.diff)
71220
71227
  }
71221
71228
  )
71222
71229
  ]
@@ -71368,32 +71375,14 @@ ${events}
71368
71375
  let current2 = target2;
71369
71376
  for (let i2 = 0; i2 < keys.length - 1; i2++) {
71370
71377
  const key2 = keys[i2];
71371
- if (Array.isArray(current2)) {
71372
- const numericIndex = getIndex(key2);
71373
- current2[numericIndex] = isArrayIndex(keys[i2 + 1]) ? [] : {};
71374
- current2 = current2[numericIndex];
71375
- } else {
71376
- if (!(key2 in current2)) {
71377
- current2[key2] = isArrayIndex(keys[i2 + 1]) ? [] : {};
71378
- }
71379
- current2 = current2[key2];
71378
+ if (!(key2 in current2)) {
71379
+ current2[key2] = isArrayIndex(keys[i2 + 1]) ? [] : {};
71380
71380
  }
71381
+ current2 = current2[key2];
71381
71382
  }
71382
71383
  const lastKey = keys[keys.length - 1];
71383
- if (Array.isArray(current2)) {
71384
- const numericIndex = getIndex(lastKey);
71385
- current2[numericIndex] = value2;
71386
- } else {
71387
- current2[lastKey] = value2;
71388
- }
71384
+ current2[lastKey] = value2;
71389
71385
  }
71390
- const getIndex = (key2) => {
71391
- const numericIndex = isArrayIndex(key2) ? parseInt(key2) : void 0;
71392
- if (numericIndex === void 0) {
71393
- throw new Error(`The key ${key2} isn't a valid Array index!`);
71394
- }
71395
- return numericIndex;
71396
- };
71397
71386
  function initializeArrays(target2, path) {
71398
71387
  const keys = parsePath(path);
71399
71388
  let current2 = target2;
@@ -71531,6 +71520,18 @@ ${events}
71531
71520
  return {
71532
71521
  ...rootStepDescriptor
71533
71522
  };
71523
+ } else if (event.event === "step") {
71524
+ if (event.name === "init") {
71525
+ return {
71526
+ ...rootStepDescriptor,
71527
+ name: "Init",
71528
+ collapse: true
71529
+ };
71530
+ } else {
71531
+ return {
71532
+ ...rootStepDescriptor
71533
+ };
71534
+ }
71534
71535
  } else {
71535
71536
  switch (event.name) {
71536
71537
  case "sample_init":
@@ -71539,12 +71540,6 @@ ${events}
71539
71540
  name: "Sample Init",
71540
71541
  collapse: true
71541
71542
  };
71542
- case "init":
71543
- return {
71544
- ...rootStepDescriptor,
71545
- name: "Init",
71546
- collapse: true
71547
- };
71548
71543
  default:
71549
71544
  return {
71550
71545
  endSpace: false
@@ -71556,7 +71551,7 @@ ${events}
71556
71551
  const summaryRendered = "_summaryRendered_ac4z2_6";
71557
71552
  const subtaskSummary = "_subtaskSummary_ac4z2_10";
71558
71553
  const subtaskLabel = "_subtaskLabel_ac4z2_17";
71559
- const styles$t = {
71554
+ const styles$v = {
71560
71555
  summary: summary$1,
71561
71556
  summaryRendered,
71562
71557
  subtaskSummary,
@@ -71571,9 +71566,9 @@ ${events}
71571
71566
  const body2 = [];
71572
71567
  if (event.type === "fork") {
71573
71568
  body2.push(
71574
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$t.summary), children: [
71569
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$v.summary), children: [
71575
71570
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Inputs" }),
71576
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$t.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
71571
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$v.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) }),
71577
71572
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Transcript" }),
71578
71573
  event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
71579
71574
  TranscriptView,
@@ -71630,12 +71625,12 @@ ${events}
71630
71625
  };
71631
71626
  const SubtaskSummary = ({ input: input2, result: result2 }) => {
71632
71627
  const output2 = typeof result2 === "object" ? result2 : { result: result2 };
71633
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$t.subtaskSummary), children: [
71628
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$v.subtaskSummary), children: [
71634
71629
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Input" }),
71635
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$t.subtaskLabel) }),
71630
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$v.subtaskLabel) }),
71636
71631
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Output" }),
71637
71632
  input2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: input2 }) : void 0,
71638
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$t.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
71633
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$v.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
71639
71634
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: output2 }) })
71640
71635
  ] });
71641
71636
  };
@@ -71660,7 +71655,7 @@ ${events}
71660
71655
  const summary = "_summary_1qsnv_1";
71661
71656
  const approval = "_approval_1qsnv_6";
71662
71657
  const progress = "_progress_1qsnv_12";
71663
- const styles$s = {
71658
+ const styles$u = {
71664
71659
  summary,
71665
71660
  approval,
71666
71661
  progress
@@ -71695,7 +71690,7 @@ ${events}
71695
71690
  subTitle: formatTiming(event.timestamp, event.working_start),
71696
71691
  icon: ApplicationIcons.solvers.use_tools,
71697
71692
  children: [
71698
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$s.summary, children: [
71693
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$u.summary, children: [
71699
71694
  /* @__PURE__ */ jsxRuntimeExports.jsx(
71700
71695
  ToolCallView,
71701
71696
  {
@@ -71721,10 +71716,10 @@ ${events}
71721
71716
  ApprovalEventView,
71722
71717
  {
71723
71718
  event: approvalEvent,
71724
- className: styles$s.approval
71719
+ className: styles$u.approval
71725
71720
  }
71726
71721
  ) : "",
71727
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$s.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
71722
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$u.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
71728
71723
  ] }),
71729
71724
  event.events.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
71730
71725
  TranscriptView,
@@ -71749,13 +71744,13 @@ ${events}
71749
71744
  this.depth = depth;
71750
71745
  }
71751
71746
  }
71752
- const transcriptComponent = "_transcriptComponent_c8m1t_23";
71753
- const eventNode = "_eventNode_c8m1t_29";
71754
- const darkenBg = "_darkenBg_c8m1t_35";
71755
- const lastNode = "_lastNode_c8m1t_39";
71756
- const eventNodeContainer = "_eventNodeContainer_c8m1t_43";
71757
- const noBottom = "_noBottom_c8m1t_47";
71758
- const styles$r = {
71747
+ const transcriptComponent = "_transcriptComponent_eq9th_23";
71748
+ const eventNode = "_eventNode_eq9th_29";
71749
+ const darkenBg = "_darkenBg_eq9th_33";
71750
+ const lastNode = "_lastNode_eq9th_37";
71751
+ const eventNodeContainer = "_eventNodeContainer_eq9th_41";
71752
+ const noBottom = "_noBottom_eq9th_45";
71753
+ const styles$t = {
71759
71754
  transcriptComponent,
71760
71755
  eventNode,
71761
71756
  darkenBg,
@@ -71767,7 +71762,7 @@ ${events}
71767
71762
  const normalBg = "_normalBg_1ye6u_5";
71768
71763
  const node = "_node_1ye6u_9";
71769
71764
  const first = "_first_1ye6u_9";
71770
- const styles$q = {
71765
+ const styles$s = {
71771
71766
  darkenedBg,
71772
71767
  normalBg,
71773
71768
  node,
@@ -71775,10 +71770,10 @@ ${events}
71775
71770
  };
71776
71771
  const TranscriptVirtualListComponent = ({ id, eventNodes, scrollRef, running: running2 }) => {
71777
71772
  const renderRow = reactExports.useCallback((index2, item2) => {
71778
- const bgClass = item2.depth % 2 == 0 ? styles$q.darkenedBg : styles$q.normalBg;
71779
- const paddingClass = index2 === 0 ? styles$q.first : void 0;
71773
+ const bgClass = item2.depth % 2 == 0 ? styles$s.darkenedBg : styles$s.normalBg;
71774
+ const paddingClass = index2 === 0 ? styles$s.first : void 0;
71780
71775
  const eventId = `${id}-event-${index2}`;
71781
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$q.node, paddingClass), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedEventNode, { id: eventId, node: item2, className: clsx(bgClass) }) }, eventId);
71776
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$s.node, paddingClass), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedEventNode, { id: eventId, node: item2, className: clsx(bgClass) }) }, eventId);
71782
71777
  }, []);
71783
71778
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
71784
71779
  LiveVirtualList,
@@ -71825,20 +71820,20 @@ ${events}
71825
71820
  const TranscriptComponent = reactExports.memo(
71826
71821
  ({ id, eventNodes }) => {
71827
71822
  const rows = eventNodes.map((eventNode2, index2) => {
71828
- const clz = [styles$r.eventNode];
71823
+ const clz = [styles$t.eventNode];
71829
71824
  if (eventNode2.depth % 2 == 0) {
71830
- clz.push(styles$r.darkenBg);
71825
+ clz.push(styles$t.darkenBg);
71831
71826
  }
71832
71827
  if (index2 === eventNodes.length - 1) {
71833
- clz.push(styles$r.lastNode);
71828
+ clz.push(styles$t.lastNode);
71834
71829
  }
71835
71830
  const eventId = `${id}|event|${index2}`;
71836
71831
  const row2 = /* @__PURE__ */ jsxRuntimeExports.jsx(
71837
71832
  "div",
71838
71833
  {
71839
71834
  className: clsx(
71840
- styles$r.eventNodeContainer,
71841
- index2 === eventNodes.length - 1 ? styles$r.noBottom : void 0
71835
+ styles$t.eventNodeContainer,
71836
+ index2 === eventNodes.length - 1 ? styles$t.noBottom : void 0
71842
71837
  ),
71843
71838
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
71844
71839
  RenderedEventNode,
@@ -71857,7 +71852,7 @@ ${events}
71857
71852
  "div",
71858
71853
  {
71859
71854
  id,
71860
- className: clsx("text-size-small", styles$r.transcriptComponent),
71855
+ className: clsx("text-size-small", styles$t.transcriptComponent),
71861
71856
  children: rows
71862
71857
  }
71863
71858
  );
@@ -72076,7 +72071,7 @@ ${events}
72076
72071
  {
72077
72072
  id: tabsetId,
72078
72073
  tabControlsClassName: clsx("text-size-base"),
72079
- tabPanelsClassName: clsx(styles$O.tabPanel),
72074
+ tabPanelsClassName: clsx(styles$Q.tabPanel),
72080
72075
  tools: tools2,
72081
72076
  children: [
72082
72077
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -72105,7 +72100,7 @@ ${events}
72105
72100
  TabPanel,
72106
72101
  {
72107
72102
  id: kSampleMessagesTabId,
72108
- className: clsx("sample-tab", styles$O.fullWidth, styles$O.chat),
72103
+ className: clsx("sample-tab", styles$Q.fullWidth, styles$Q.chat),
72109
72104
  title: "Messages",
72110
72105
  onSelected: onSelectedTab,
72111
72106
  selected: selectedTab === kSampleMessagesTabId,
@@ -72145,7 +72140,7 @@ ${events}
72145
72140
  title: "Metadata",
72146
72141
  onSelected: onSelectedTab,
72147
72142
  selected: selectedTab === kSampleMetdataTabId,
72148
- children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$O.metadataPanel), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No metadata" })
72143
+ children: sampleMetadatas.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.metadataPanel), children: sampleMetadatas }) : /* @__PURE__ */ jsxRuntimeExports.jsx(NoContentsPanel, { text: "No metadata" })
72149
72144
  }
72150
72145
  ),
72151
72146
  (sample2 == null ? void 0 : sample2.error) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -72156,11 +72151,11 @@ ${events}
72156
72151
  title: "Error",
72157
72152
  onSelected: onSelectedTab,
72158
72153
  selected: selectedTab === kSampleErrorTabId,
72159
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$O.padded), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72154
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.padded), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72160
72155
  ANSIDisplay,
72161
72156
  {
72162
72157
  output: sample2.error.traceback_ansi,
72163
- className: clsx("text-size-small", styles$O.ansi)
72158
+ className: clsx("text-size-small", styles$Q.ansi)
72164
72159
  }
72165
72160
  ) })
72166
72161
  }
@@ -72173,7 +72168,7 @@ ${events}
72173
72168
  title: "JSON",
72174
72169
  onSelected: onSelectedTab,
72175
72170
  selected: selectedTab === kSampleJsonTabId,
72176
- 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$O.padded, styles$O.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72171
+ 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$Q.padded, styles$Q.fullWidth), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72177
72172
  JSONPanel,
72178
72173
  {
72179
72174
  data: sample2,
@@ -72201,7 +72196,7 @@ ${events}
72201
72196
  ModelTokenTable,
72202
72197
  {
72203
72198
  model_usage: sample2.model_usage,
72204
- className: clsx(styles$O.noTop)
72199
+ className: clsx(styles$Q.noTop)
72205
72200
  }
72206
72201
  ) })
72207
72202
  ] }, `sample-usage-${id}`)
@@ -72211,7 +72206,7 @@ ${events}
72211
72206
  sampleMetadatas.push(
72212
72207
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
72213
72208
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Time" }),
72214
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$O.timePanel, "text-size-smaller"), children: [
72209
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Q.timePanel, "text-size-smaller"), children: [
72215
72210
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Working" }),
72216
72211
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: formatTime$1(sample2.working_time) }),
72217
72212
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Total" }),
@@ -72229,7 +72224,7 @@ ${events}
72229
72224
  {
72230
72225
  id: "task-sample-metadata-${id}",
72231
72226
  entries: sample2 == null ? void 0 : sample2.metadata,
72232
- className: clsx("tab-pane", styles$O.noTop)
72227
+ className: clsx("tab-pane", styles$Q.noTop)
72233
72228
  }
72234
72229
  ) })
72235
72230
  ] }, `sample-metadata-${id}`)
@@ -72244,7 +72239,7 @@ ${events}
72244
72239
  {
72245
72240
  id: "task-sample-store-${id}",
72246
72241
  entries: sample2 == null ? void 0 : sample2.store,
72247
- className: clsx("tab-pane", styles$O.noTop)
72242
+ className: clsx("tab-pane", styles$Q.noTop)
72248
72243
  }
72249
72244
  ) })
72250
72245
  ] }, `sample-store-${id}`)
@@ -72318,11 +72313,11 @@ ${events}
72318
72313
  }
72319
72314
  return false;
72320
72315
  };
72321
- const container$7 = "_container_kgsc6_1";
72316
+ const container$9 = "_container_kgsc6_1";
72322
72317
  const body$2 = "_body_kgsc6_7";
72323
72318
  const scroller = "_scroller_kgsc6_11";
72324
- const styles$p = {
72325
- container: container$7,
72319
+ const styles$r = {
72320
+ container: container$9,
72326
72321
  body: body$2,
72327
72322
  scroller
72328
72323
  };
@@ -72362,14 +72357,14 @@ ${events}
72362
72357
  (_f = sampleData.sample) == null ? void 0 : _f.epoch
72363
72358
  ]);
72364
72359
  const scrollRef = reactExports.useRef(null);
72365
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$p.container, children: [
72360
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$r.container, children: [
72366
72361
  /* @__PURE__ */ jsxRuntimeExports.jsx(
72367
72362
  ProgressBar,
72368
72363
  {
72369
72364
  animating: sampleData.status === "loading" || sampleData.status === "streaming"
72370
72365
  }
72371
72366
  ),
72372
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$p.scroller), ref: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$p.body, children: sampleData.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
72367
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$r.scroller), ref: scrollRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$r.body, children: sampleData.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(
72373
72368
  ErrorPanel,
72374
72369
  {
72375
72370
  title: "Unable to load sample",
@@ -72398,7 +72393,7 @@ ${events}
72398
72393
  const content = "_content_yj2nt_41";
72399
72394
  const header$2 = "_header_yj2nt_45";
72400
72395
  const titleTool = "_titleTool_yj2nt_50";
72401
- const styles$o = {
72396
+ const styles$q = {
72402
72397
  title,
72403
72398
  detail,
72404
72399
  detailText,
@@ -72432,8 +72427,8 @@ ${events}
72432
72427
  id,
72433
72428
  className: clsx(
72434
72429
  "modal",
72435
- styles$o.modal,
72436
- !visible2 ? styles$o.hidden : void 0
72430
+ styles$q.modal,
72431
+ !visible2 ? styles$q.hidden : void 0
72437
72432
  ),
72438
72433
  role: "dialog",
72439
72434
  onKeyUp: onkeyup,
@@ -72444,23 +72439,23 @@ ${events}
72444
72439
  className: clsx(
72445
72440
  "modal-dialog",
72446
72441
  "modal-dialog-scrollable",
72447
- styles$o.modalBody
72442
+ styles$q.modalBody
72448
72443
  ),
72449
72444
  role: "document",
72450
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$o.content), children: [
72451
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$o.header), children: [
72445
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-content", styles$q.content), children: [
72446
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("modal-header", styles$q.header), children: [
72452
72447
  /* @__PURE__ */ jsxRuntimeExports.jsx(
72453
72448
  "div",
72454
72449
  {
72455
- className: clsx("modal-title", "text-size-smaller", styles$o.title),
72450
+ className: clsx("modal-title", "text-size-smaller", styles$q.title),
72456
72451
  children: title2 || ""
72457
72452
  }
72458
72453
  ),
72459
- detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$o.detail, children: [
72454
+ detail2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$q.detail, children: [
72460
72455
  (detailTools == null ? void 0 : detailTools.left) ? detailTools.left.map((tool2, idx) => {
72461
72456
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-left-${idx}`);
72462
72457
  }) : "",
72463
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$o.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
72458
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$q.detailText), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: detail2 }) }),
72464
72459
  (detailTools == null ? void 0 : detailTools.right) ? detailTools.right.map((tool2, idx) => {
72465
72460
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TitleTool, { ...tool2 }, `tool-right-${idx}`);
72466
72461
  }) : ""
@@ -72473,7 +72468,7 @@ ${events}
72473
72468
  "btn",
72474
72469
  "btn-close-large-dialog",
72475
72470
  "text-size-larger",
72476
- styles$o.close
72471
+ styles$q.close
72477
72472
  ),
72478
72473
  onClick: onHide,
72479
72474
  "aria-label": "Close",
@@ -72500,7 +72495,7 @@ ${events}
72500
72495
  "btn",
72501
72496
  "btn-outline",
72502
72497
  "text-size-small",
72503
- styles$o.titleTool
72498
+ styles$q.titleTool
72504
72499
  ),
72505
72500
  "aria-label": label2,
72506
72501
  onClick,
@@ -72706,7 +72701,7 @@ ${events}
72706
72701
  const body$1 = "_body_5y0hl_1";
72707
72702
  const iconSmall = "_iconSmall_5y0hl_9";
72708
72703
  const message = "_message_5y0hl_15";
72709
- const styles$n = {
72704
+ const styles$p = {
72710
72705
  body: body$1,
72711
72706
  iconSmall,
72712
72707
  message
@@ -72716,19 +72711,19 @@ ${events}
72716
72711
  align
72717
72712
  }) => {
72718
72713
  align = align || "center";
72719
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$n.body, children: [
72720
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$n.iconSmall) }),
72721
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$n.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
72714
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$p.body, children: [
72715
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$p.iconSmall) }),
72716
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$p.message, style: ApplicationStyles.lineClamp(2), children: errorType(message2) })
72722
72717
  ] });
72723
72718
  };
72724
- const grid$1 = "_grid_2k7ov_1";
72719
+ const grid$2 = "_grid_2k7ov_1";
72725
72720
  const selected = "_selected_2k7ov_13";
72726
72721
  const cell = "_cell_2k7ov_17";
72727
72722
  const wrapAnywhere = "_wrapAnywhere_2k7ov_22";
72728
72723
  const noLeft = "_noLeft_2k7ov_26";
72729
72724
  const score = "_score_2k7ov_30";
72730
- const styles$m = {
72731
- grid: grid$1,
72725
+ const styles$o = {
72726
+ grid: grid$2,
72732
72727
  selected,
72733
72728
  cell,
72734
72729
  wrapAnywhere,
@@ -72763,9 +72758,9 @@ ${events}
72763
72758
  id: `sample-${id}`,
72764
72759
  onClick: handleClick,
72765
72760
  className: clsx(
72766
- styles$m.grid,
72761
+ styles$o.grid,
72767
72762
  "text-size-base",
72768
- selectedSampleIndex === index2 ? styles$m.selected : void 0
72763
+ selectedSampleIndex === index2 ? styles$o.selected : void 0
72769
72764
  ),
72770
72765
  style: {
72771
72766
  height: `${height}px`,
@@ -72773,31 +72768,31 @@ ${events}
72773
72768
  gridTemplateColumns: gridColumnsTemplate
72774
72769
  },
72775
72770
  children: [
72776
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$m.cell), children: sample2.id }),
72771
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-id", "three-line-clamp", styles$o.cell), children: sample2.id }),
72777
72772
  /* @__PURE__ */ jsxRuntimeExports.jsx(
72778
72773
  "div",
72779
72774
  {
72780
72775
  className: clsx(
72781
72776
  "sample-input",
72782
72777
  "three-line-clamp",
72783
- styles$m.cell,
72784
- styles$m.wrapAnywhere
72778
+ styles$o.cell,
72779
+ styles$o.wrapAnywhere
72785
72780
  ),
72786
72781
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MarkdownDiv, { markdown: inputString(sample2.input).join(" ") })
72787
72782
  }
72788
72783
  ),
72789
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$m.cell), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72784
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-target", "three-line-clamp", styles$o.cell), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
72790
72785
  MarkdownDiv,
72791
72786
  {
72792
72787
  markdown: arrayToString(sample2 == null ? void 0 : sample2.target),
72793
- className: clsx("no-last-para-padding", styles$m.noLeft)
72788
+ className: clsx("no-last-para-padding", styles$o.noLeft)
72794
72789
  }
72795
72790
  ) }),
72796
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$m.cell), children: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
72791
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("sample-answer", "three-line-clamp", styles$o.cell), children: sample2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
72797
72792
  MarkdownDiv,
72798
72793
  {
72799
72794
  markdown: answer2 || "",
72800
- className: clsx("no-last-para-padding", styles$m.noLeft)
72795
+ className: clsx("no-last-para-padding", styles$o.noLeft)
72801
72796
  }
72802
72797
  ) : "" }),
72803
72798
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -72807,18 +72802,18 @@ ${events}
72807
72802
  "sample-limit",
72808
72803
  "text-size-small",
72809
72804
  "three-line-clamp",
72810
- styles$m.cell
72805
+ styles$o.cell
72811
72806
  ),
72812
72807
  children: sample2.limit
72813
72808
  }
72814
72809
  ),
72815
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$m.cell, styles$m.score), children: sample2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(SampleErrorView, { message: sample2.error }) : completed ? scoreRendered : /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, {}) })
72810
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$o.cell, styles$o.score), children: sample2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx(SampleErrorView, { message: sample2.error }) : completed ? scoreRendered : /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, {}) })
72816
72811
  ]
72817
72812
  }
72818
72813
  );
72819
72814
  };
72820
72815
  const row$1 = "_row_utdq5_1";
72821
- const styles$l = {
72816
+ const styles$n = {
72822
72817
  row: row$1
72823
72818
  };
72824
72819
  const SampleSeparator = ({
@@ -72830,7 +72825,7 @@ ${events}
72830
72825
  "div",
72831
72826
  {
72832
72827
  id,
72833
- className: clsx("text-style-secondary", "text-size-smaller", styles$l.row),
72828
+ className: clsx("text-style-secondary", "text-size-smaller", styles$n.row),
72834
72829
  style: { height: `${height}px` },
72835
72830
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title2 })
72836
72831
  }
@@ -72840,7 +72835,7 @@ ${events}
72840
72835
  const spinnerContainer = "_spinnerContainer_vkofn_11";
72841
72836
  const spinner$1 = "_spinner_vkofn_11";
72842
72837
  const label$2 = "_label_vkofn_25";
72843
- const styles$k = {
72838
+ const styles$m = {
72844
72839
  footer,
72845
72840
  spinnerContainer,
72846
72841
  spinner: spinner$1,
@@ -72851,24 +72846,24 @@ ${events}
72851
72846
  totalSampleCount,
72852
72847
  running: running2
72853
72848
  }) => {
72854
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$k.footer), children: [
72855
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$k.spinnerContainer), children: [
72849
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", styles$m.footer), children: [
72850
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: running2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$m.spinnerContainer), children: [
72856
72851
  /* @__PURE__ */ jsxRuntimeExports.jsx(
72857
72852
  "div",
72858
72853
  {
72859
- className: clsx("spinner-border", styles$k.spinner),
72854
+ className: clsx("spinner-border", styles$m.spinner),
72860
72855
  role: "status",
72861
72856
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "Running..." })
72862
72857
  }
72863
72858
  ),
72864
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$k.label), children: "running..." })
72859
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-secondary", styles$m.label), children: "running..." })
72865
72860
  ] }) : void 0 }),
72866
72861
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: sampleCount < totalSampleCount ? `${sampleCount} / ${totalSampleCount} Samples` : `${sampleCount} Samples` })
72867
72862
  ] });
72868
72863
  };
72869
72864
  const header$1 = "_header_16ngy_1";
72870
72865
  const center = "_center_16ngy_11";
72871
- const styles$j = {
72866
+ const styles$l = {
72872
72867
  header: header$1,
72873
72868
  center
72874
72869
  };
@@ -72883,7 +72878,7 @@ ${events}
72883
72878
  "div",
72884
72879
  {
72885
72880
  className: clsx(
72886
- styles$j.header,
72881
+ styles$l.header,
72887
72882
  "text-size-smaller",
72888
72883
  "text-style-label",
72889
72884
  "text-style-secondary"
@@ -72895,12 +72890,12 @@ ${events}
72895
72890
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: target2 ? "Target" : "" }),
72896
72891
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: answer2 ? "Answer" : "" }),
72897
72892
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: limit ? "Limit" : "" }),
72898
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$j.center, children: score2 ? "Score" : "" })
72893
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$l.center, children: score2 ? "Score" : "" })
72899
72894
  ]
72900
72895
  }
72901
72896
  );
72902
72897
  const mainLayout = "_mainLayout_q79zq_7";
72903
- const styles$i = {
72898
+ const styles$k = {
72904
72899
  mainLayout
72905
72900
  };
72906
72901
  const kSampleHeight = 88;
@@ -73035,7 +73030,7 @@ ${events}
73035
73030
  const percentError = errorCount / sampleCount * 100;
73036
73031
  const percentLimit = limitCount / sampleCount * 100;
73037
73032
  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;
73038
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$i.mainLayout, children: [
73033
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$k.mainLayout, children: [
73039
73034
  warningMessage ? /* @__PURE__ */ jsxRuntimeExports.jsx(
73040
73035
  MessageBand,
73041
73036
  {
@@ -73123,19 +73118,19 @@ ${events}
73123
73118
  };
73124
73119
  };
73125
73120
  const panel = "_panel_1yknn_1";
73126
- const container$6 = "_container_1yknn_7";
73121
+ const container$8 = "_container_1yknn_7";
73127
73122
  const spinner = "_spinner_1yknn_14";
73128
73123
  const text = "_text_1yknn_20";
73129
- const styles$h = {
73124
+ const styles$j = {
73130
73125
  panel,
73131
- container: container$6,
73126
+ container: container$8,
73132
73127
  spinner,
73133
73128
  text
73134
73129
  };
73135
73130
  const RunningNoSamples = () => {
73136
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$h.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$h.container, "text-size-smaller"), children: [
73137
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$h.spinner, "spinner-border"), role: "status", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "starting..." }) }),
73138
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$h.text), children: "starting...." })
73131
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$j.container, "text-size-smaller"), children: [
73132
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.spinner, "spinner-border"), role: "status", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("visually-hidden"), children: "starting..." }) }),
73133
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$j.text), children: "starting...." })
73139
73134
  ] }) });
73140
73135
  };
73141
73136
  const getSampleProcessor = (samples, epochs, groupBy, groupByOrder, sampleDescriptor, score2) => {
@@ -73430,12 +73425,79 @@ ${events}
73430
73425
  ] });
73431
73426
  }
73432
73427
  };
73428
+ const container$7 = "_container_304w9_1";
73429
+ const modelInfo = "_modelInfo_304w9_8";
73430
+ const role = "_role_304w9_14";
73431
+ const styles$i = {
73432
+ container: container$7,
73433
+ modelInfo,
73434
+ role
73435
+ };
73436
+ const ModelCard = ({ evalSpec }) => {
73437
+ if (!evalSpec) {
73438
+ return void 0;
73439
+ }
73440
+ const modelsInfo = {
73441
+ eval: {
73442
+ model: evalSpec.model,
73443
+ base_url: evalSpec.model_base_url,
73444
+ config: evalSpec.model_generate_config,
73445
+ args: evalSpec.model_args
73446
+ },
73447
+ ...evalSpec.model_roles
73448
+ };
73449
+ const noneEl = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-style-secondary", children: "None" });
73450
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
73451
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { icon: ApplicationIcons.model, label: "Models" }),
73452
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: "task-model-card-body", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$i.container, children: Object.keys(modelsInfo || {}).map((modelKey) => {
73453
+ const modelInfo2 = modelsInfo[modelKey];
73454
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
73455
+ "div",
73456
+ {
73457
+ className: clsx(styles$i.modelInfo, "text-size-small"),
73458
+ children: [
73459
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
73460
+ "div",
73461
+ {
73462
+ className: clsx(
73463
+ styles$i.role,
73464
+ "text-style-label",
73465
+ "text-style-secondary"
73466
+ ),
73467
+ children: modelKey
73468
+ }
73469
+ ),
73470
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Model" }),
73471
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: modelInfo2.model }),
73472
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Base Url" }),
73473
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.base_url || noneEl }),
73474
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Configuration" }),
73475
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: modelInfo2.config && Object.keys(modelInfo2.config).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
73476
+ MetaDataGrid,
73477
+ {
73478
+ entries: modelInfo2.config
73479
+ }
73480
+ ) : noneEl }),
73481
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Args" }),
73482
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-size-small", children: Object.keys(modelInfo2.args).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
73483
+ MetaDataGrid,
73484
+ {
73485
+ entries: modelInfo2.args
73486
+ }
73487
+ ) : noneEl })
73488
+ ]
73489
+ },
73490
+ modelKey
73491
+ );
73492
+ }) }) })
73493
+ ] });
73494
+ };
73433
73495
  const ghCommitUrl = (origin, commit) => {
73434
73496
  const baseUrl = origin.replace(/\.git$/, "");
73435
73497
  return `${baseUrl}/commit/${commit}`;
73436
73498
  };
73437
73499
  const item = "_item_1uzhd_1";
73438
- const styles$g = {
73500
+ const styles$h = {
73439
73501
  item
73440
73502
  };
73441
73503
  const DatasetDetailView = ({
@@ -73446,12 +73508,12 @@ ${events}
73446
73508
  Object.entries(dataset).filter(([key2]) => key2 !== "sample_ids")
73447
73509
  );
73448
73510
  if (!dataset || Object.keys(filtered).length === 0) {
73449
- return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-base", styles$g.item), style: style2, children: "No dataset information available" });
73511
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-size-base", styles$h.item), style: style2, children: "No dataset information available" });
73450
73512
  }
73451
73513
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
73452
73514
  MetaDataView,
73453
73515
  {
73454
- className: clsx("text-size-base", styles$g.item),
73516
+ className: clsx("text-size-base", styles$h.item),
73455
73517
  entries: filtered,
73456
73518
  tableOptions: "borderless,sm",
73457
73519
  style: style2
@@ -73459,11 +73521,11 @@ ${events}
73459
73521
  );
73460
73522
  };
73461
73523
  const icon$1 = "_icon_59zaz_1";
73462
- const container$5 = "_container_59zaz_5";
73524
+ const container$6 = "_container_59zaz_5";
73463
73525
  const metadata = "_metadata_59zaz_11";
73464
- const styles$f = {
73526
+ const styles$g = {
73465
73527
  icon: icon$1,
73466
- container: container$5,
73528
+ container: container$6,
73467
73529
  metadata
73468
73530
  };
73469
73531
  const DetailStep = ({
@@ -73472,16 +73534,16 @@ ${events}
73472
73534
  params: params2,
73473
73535
  className: className2
73474
73536
  }) => {
73475
- const iconHtml = icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$f.icon) }) : "";
73537
+ const iconHtml = icon2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(icon2, styles$g.icon) }) : "";
73476
73538
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(className2), children: [
73477
73539
  iconHtml,
73478
73540
  " ",
73479
73541
  name2,
73480
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.container, children: params2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
73542
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$g.container, children: params2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
73481
73543
  MetaDataGrid,
73482
73544
  {
73483
73545
  entries: params2,
73484
- className: clsx("text-size-small", styles$f.metadata)
73546
+ className: clsx("text-size-small", styles$g.metadata)
73485
73547
  }
73486
73548
  ) : "" })
73487
73549
  ] });
@@ -73500,48 +73562,48 @@ ${events}
73500
73562
  icon: ApplicationIcons.scorer,
73501
73563
  name: name2,
73502
73564
  params: params2,
73503
- className: clsx(styles$g.item, "text-size-base")
73565
+ className: clsx(styles$h.item, "text-size-base")
73504
73566
  }
73505
73567
  );
73506
73568
  };
73507
- const container$4 = "_container_12j2k_1";
73569
+ const container$5 = "_container_12j2k_1";
73508
73570
  const separator = "_separator_12j2k_11";
73509
- const styles$e = {
73510
- container: container$4,
73571
+ const styles$f = {
73572
+ container: container$5,
73511
73573
  separator
73512
73574
  };
73513
73575
  const SolversDetailView = ({ steps }) => {
73514
- const separator2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$e.items, "text-size-small", styles$e.separator), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) });
73576
+ 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 }) });
73515
73577
  const details = steps == null ? void 0 : steps.map((step, index2) => {
73516
73578
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(reactExports.Fragment, { children: [
73517
73579
  /* @__PURE__ */ jsxRuntimeExports.jsx(
73518
73580
  DetailStep,
73519
73581
  {
73520
73582
  name: step.solver,
73521
- className: clsx(styles$e.items, "text-size-small")
73583
+ className: clsx(styles$f.items, "text-size-small")
73522
73584
  }
73523
73585
  ),
73524
73586
  index2 < steps.length - 1 ? separator2 : ""
73525
73587
  ] }, `solver-step-${index2}`);
73526
73588
  });
73527
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$e.container, children: details });
73589
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$f.container, children: details });
73528
73590
  };
73529
73591
  const floatingCol = "_floatingCol_q6xma_1";
73530
73592
  const wideCol = "_wideCol_q6xma_9";
73531
73593
  const oneCol = "_oneCol_q6xma_16";
73532
73594
  const twoCol = "_twoCol_q6xma_20";
73533
73595
  const planCol = "_planCol_q6xma_24";
73534
- const container$3 = "_container_q6xma_28";
73535
- const grid = "_grid_q6xma_34";
73596
+ const container$4 = "_container_q6xma_28";
73597
+ const grid$1 = "_grid_q6xma_34";
73536
73598
  const row = "_row_q6xma_42";
73537
- const styles$d = {
73599
+ const styles$e = {
73538
73600
  floatingCol,
73539
73601
  wideCol,
73540
73602
  oneCol,
73541
73603
  twoCol,
73542
73604
  planCol,
73543
- container: container$3,
73544
- grid,
73605
+ container: container$4,
73606
+ grid: grid$1,
73545
73607
  row
73546
73608
  };
73547
73609
  const PlanDetailView = ({
@@ -73607,13 +73669,13 @@ ${events}
73607
73669
  const taskColumns = [];
73608
73670
  taskColumns.push({
73609
73671
  title: "Dataset",
73610
- className: styles$d.floatingCol,
73672
+ className: styles$e.floatingCol,
73611
73673
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(DatasetDetailView, { dataset: evaluation.dataset })
73612
73674
  });
73613
73675
  if (steps) {
73614
73676
  taskColumns.push({
73615
73677
  title: "Solvers",
73616
- className: styles$d.wideCol,
73678
+ className: styles$e.wideCol,
73617
73679
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(SolversDetailView, { steps })
73618
73680
  });
73619
73681
  }
@@ -73647,7 +73709,7 @@ ${events}
73647
73709
  });
73648
73710
  taskColumns.push({
73649
73711
  title: label2,
73650
- className: styles$d.floatingCol,
73712
+ className: styles$e.floatingCol,
73651
73713
  contents: scorerPanels
73652
73714
  });
73653
73715
  }
@@ -73662,7 +73724,7 @@ ${events}
73662
73724
  );
73663
73725
  metadataColumns.push({
73664
73726
  title: "Task Information",
73665
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73727
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73666
73728
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73667
73729
  MetaDataView,
73668
73730
  {
@@ -73676,7 +73738,7 @@ ${events}
73676
73738
  if (task_args && Object.keys(task_args).length > 0) {
73677
73739
  metadataColumns.push({
73678
73740
  title: "Task Args",
73679
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73741
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73680
73742
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73681
73743
  MetaDataView,
73682
73744
  {
@@ -73691,7 +73753,7 @@ ${events}
73691
73753
  if (model_args && Object.keys(model_args).length > 0) {
73692
73754
  metadataColumns.push({
73693
73755
  title: "Model Args",
73694
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73756
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73695
73757
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73696
73758
  MetaDataView,
73697
73759
  {
@@ -73706,7 +73768,7 @@ ${events}
73706
73768
  if (config2 && Object.keys(config2).length > 0) {
73707
73769
  metadataColumns.push({
73708
73770
  title: "Configuration",
73709
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73771
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73710
73772
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73711
73773
  MetaDataView,
73712
73774
  {
@@ -73724,7 +73786,7 @@ ${events}
73724
73786
  );
73725
73787
  metadataColumns.push({
73726
73788
  title: "Generate Config",
73727
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73789
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73728
73790
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73729
73791
  MetaDataView,
73730
73792
  {
@@ -73739,7 +73801,7 @@ ${events}
73739
73801
  if (metadata2 && Object.keys(metadata2).length > 0) {
73740
73802
  metadataColumns.push({
73741
73803
  title: "Metadata",
73742
- className: cols === 1 ? styles$d.oneCol : styles$d.twoCol,
73804
+ className: cols === 1 ? styles$e.oneCol : styles$e.twoCol,
73743
73805
  contents: /* @__PURE__ */ jsxRuntimeExports.jsx(
73744
73806
  MetaDataView,
73745
73807
  {
@@ -73751,11 +73813,11 @@ ${events}
73751
73813
  )
73752
73814
  });
73753
73815
  }
73754
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d.container, children: [
73816
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$e.container, children: [
73755
73817
  /* @__PURE__ */ jsxRuntimeExports.jsx(
73756
73818
  "div",
73757
73819
  {
73758
- className: styles$d.grid,
73820
+ className: styles$e.grid,
73759
73821
  style: {
73760
73822
  gridTemplateColumns: `repeat(${taskColumns.length}, auto)`
73761
73823
  },
@@ -73772,7 +73834,7 @@ ${events}
73772
73834
  })
73773
73835
  }
73774
73836
  ),
73775
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$d.row), children: metadataColumns.map((col) => {
73837
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$e.row), children: metadataColumns.map((col) => {
73776
73838
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
73777
73839
  PlanColumn,
73778
73840
  {
@@ -73804,7 +73866,7 @@ ${events}
73804
73866
  "text-size-small",
73805
73867
  "text-style-label",
73806
73868
  "text-style-secondary",
73807
- styles$d.planCol
73869
+ styles$e.planCol
73808
73870
  ),
73809
73871
  children: title2
73810
73872
  }
@@ -73821,7 +73883,7 @@ ${events}
73821
73883
  const wrapper$1 = "_wrapper_11ije_1";
73822
73884
  const col1 = "_col1_11ije_8";
73823
73885
  const col2 = "_col2_11ije_13";
73824
- const styles$c = {
73886
+ const styles$d = {
73825
73887
  wrapper: wrapper$1,
73826
73888
  col1,
73827
73889
  col2
@@ -73840,8 +73902,8 @@ ${events}
73840
73902
  };
73841
73903
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
73842
73904
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { icon: ApplicationIcons.usage, label: "Usage" }),
73843
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: kUsageCardBodyId, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c.wrapper, children: [
73844
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$c.col1, children: [
73905
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { id: kUsageCardBodyId, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d.wrapper, children: [
73906
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$d.col1, children: [
73845
73907
  /* @__PURE__ */ jsxRuntimeExports.jsx(
73846
73908
  "div",
73847
73909
  {
@@ -73866,11 +73928,11 @@ ${events}
73866
73928
  }
73867
73929
  )
73868
73930
  ] }),
73869
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$c.col2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelTokenTable, { model_usage: stats.model_usage }) })
73931
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$d.col2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelTokenTable, { model_usage: stats.model_usage }) })
73870
73932
  ] }) })
73871
73933
  ] });
73872
73934
  };
73873
- const styles$b = {
73935
+ const styles$c = {
73874
73936
  "task-error-display": "_task-error-display_1624b_1"
73875
73937
  };
73876
73938
  const TaskErrorCard = ({ error: error2 }) => {
@@ -73886,7 +73948,7 @@ ${events}
73886
73948
  ANSIDisplay,
73887
73949
  {
73888
73950
  output: error2.traceback_ansi,
73889
- className: styles$b["task-error-display"]
73951
+ className: styles$c["task-error-display"]
73890
73952
  }
73891
73953
  ) })
73892
73954
  ] });
@@ -73919,17 +73981,18 @@ ${events}
73919
73981
  scores: evalResults == null ? void 0 : evalResults.scores
73920
73982
  }
73921
73983
  ),
73984
+ evalSpec ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelCard, { evalSpec }) : void 0,
73922
73985
  evalStatus !== "started" ? /* @__PURE__ */ jsxRuntimeExports.jsx(UsageCard, { stats: evalStats }) : void 0,
73923
73986
  evalStatus === "error" && evalError ? /* @__PURE__ */ jsxRuntimeExports.jsx(TaskErrorCard, { error: evalError }) : void 0
73924
73987
  ] })
73925
73988
  ] });
73926
73989
  };
73927
73990
  const navbarWrapper = "_navbarWrapper_838qu_48";
73928
- const styles$a = {
73991
+ const styles$b = {
73929
73992
  navbarWrapper
73930
73993
  };
73931
73994
  const copyButton = "_copyButton_1goi8_1";
73932
- const styles$9 = {
73995
+ const styles$a = {
73933
73996
  copyButton
73934
73997
  };
73935
73998
  const CopyButton = ({
@@ -73958,7 +74021,7 @@ ${events}
73958
74021
  "button",
73959
74022
  {
73960
74023
  type: "button",
73961
- className: clsx(styles$9.copyButton, className2),
74024
+ className: clsx(styles$a.copyButton, className2),
73962
74025
  onClick: handleClick,
73963
74026
  "aria-label": ariaLabel,
73964
74027
  disabled: isCopied,
@@ -73972,15 +74035,49 @@ ${events}
73972
74035
  }
73973
74036
  );
73974
74037
  };
73975
- const container$2 = "_container_14b93_1";
73976
- const wrapper = "_wrapper_14b93_8";
73977
- const toggle = "_toggle_14b93_14";
73978
- const body = "_body_14b93_19";
73979
- const bodyContainer = "_bodyContainer_14b93_25";
73980
- const taskTitle = "_taskTitle_14b93_31";
73981
- const taskModel = "_taskModel_14b93_36";
73982
- const taskStatus = "_taskStatus_14b93_40";
73983
- const secondaryContainer = "_secondaryContainer_14b93_47";
74038
+ const container$3 = "_container_q17yq_1";
74039
+ const grid = "_grid_q17yq_10";
74040
+ const styles$9 = {
74041
+ container: container$3,
74042
+ grid
74043
+ };
74044
+ const ModelRolesView = ({ roles }) => {
74045
+ roles = roles || {};
74046
+ const singleLine = Object.keys(roles).length !== 1;
74047
+ const modelEls = Object.keys(roles).map((key2) => {
74048
+ const role2 = key2;
74049
+ const roleData = roles[role2];
74050
+ const model2 = roleData.model;
74051
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
74052
+ "div",
74053
+ {
74054
+ className: clsx(
74055
+ singleLine ? styles$9.grid : void 0,
74056
+ "text-style-secondary",
74057
+ "text-size-smallest"
74058
+ ),
74059
+ children: [
74060
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: clsx("text-style-label"), children: [
74061
+ role2,
74062
+ ":"
74063
+ ] }),
74064
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: model2 })
74065
+ ]
74066
+ },
74067
+ key2
74068
+ );
74069
+ });
74070
+ return modelEls.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$9.container, children: modelEls }) : void 0;
74071
+ };
74072
+ const container$2 = "_container_291sb_1";
74073
+ const wrapper = "_wrapper_291sb_8";
74074
+ const toggle = "_toggle_291sb_14";
74075
+ const body = "_body_291sb_19";
74076
+ const bodyContainer = "_bodyContainer_291sb_25";
74077
+ const taskTitle = "_taskTitle_291sb_31";
74078
+ const taskModel = "_taskModel_291sb_36";
74079
+ const taskStatus = "_taskStatus_291sb_40";
74080
+ const secondaryContainer = "_secondaryContainer_291sb_47";
73984
74081
  const styles$8 = {
73985
74082
  container: container$2,
73986
74083
  wrapper,
@@ -74542,6 +74639,7 @@ ${events}
74542
74639
  }
74543
74640
  ) : ""
74544
74641
  ] }),
74642
+ (evalSpec == null ? void 0 : evalSpec.model_roles) ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelRolesView, { roles: evalSpec.model_roles }) : void 0,
74545
74643
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$8.secondaryContainer), children: [
74546
74644
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("navbar-secondary-text", "text-truncate"), children: logFileName }),
74547
74645
  selectedLogFile ? /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, { value: selectedLogFile }) : ""
@@ -74769,7 +74867,7 @@ ${events}
74769
74867
  runningMetrics
74770
74868
  }) => {
74771
74869
  const totalSampleCount = useTotalSampleCount();
74772
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: clsx("navbar", "sticky-top", styles$a.navbarWrapper), children: [
74870
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { className: clsx("navbar", "sticky-top", styles$b.navbarWrapper), children: [
74773
74871
  /* @__PURE__ */ jsxRuntimeExports.jsx(
74774
74872
  PrimaryBar,
74775
74873
  {