@metrevals/inspect-scout-viewer 0.3.2-beta.1764377954 → 0.3.2-beta.1764711188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -6513,22 +6513,22 @@ function clsx() {
6513
6513
  const wrapper$2 = "_wrapper_1tajk_1";
6514
6514
  const container$h = "_container_1tajk_12";
6515
6515
  const animate = "_animate_1tajk_21";
6516
- const styles$1l = {
6516
+ const styles$1m = {
6517
6517
  wrapper: wrapper$2,
6518
6518
  container: container$h,
6519
6519
  animate
6520
6520
  };
6521
6521
  const ActivityBar = ({ animating }) => {
6522
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1l.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6522
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1m.wrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
6523
6523
  "div",
6524
6524
  {
6525
- className: clsx(styles$1l.container),
6525
+ className: clsx(styles$1m.container),
6526
6526
  role: "progressbar",
6527
6527
  "aria-label": "Progress bar",
6528
6528
  "aria-valuenow": 25,
6529
6529
  "aria-valuemin": 0,
6530
6530
  "aria-valuemax": 100,
6531
- children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1l.animate })
6531
+ children: animating && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1m.animate })
6532
6532
  }
6533
6533
  ) });
6534
6534
  };
@@ -9404,6 +9404,7 @@ const createStore$1 = (api) => create$2()(
9404
9404
  transcriptCollapsedEvents: {},
9405
9405
  scopedErrors: {},
9406
9406
  visibleScannerResults: [],
9407
+ visibleScannerResultsCount: 0,
9407
9408
  highlightLabeled: false,
9408
9409
  // Actions
9409
9410
  setSingleFileMode: (enabled) => {
@@ -9495,6 +9496,11 @@ const createStore$1 = (api) => create$2()(
9495
9496
  state.visibleScannerResults = results;
9496
9497
  });
9497
9498
  },
9499
+ setVisibleScannerResultsCount(count2) {
9500
+ set3((state) => {
9501
+ state.visibleScannerResultsCount = count2;
9502
+ });
9503
+ },
9498
9504
  setSelectedScanResultPreviews: (scanner, previews) => {
9499
9505
  if (selectedScanResultDataRef.scanner === scanner) {
9500
9506
  selectedScanResultDataRef.previews = previews;
@@ -9710,6 +9716,11 @@ const createStore$1 = (api) => create$2()(
9710
9716
  set3((state) => {
9711
9717
  state.selectedResultRow = row2;
9712
9718
  });
9719
+ },
9720
+ setDataframeWrapText: (wrap2) => {
9721
+ set3((state) => {
9722
+ state.dataframeWrapText = wrap2;
9723
+ });
9713
9724
  }
9714
9725
  })),
9715
9726
  {
@@ -10132,6 +10143,7 @@ const ApplicationIcons = {
10132
10143
  down: "bi bi-arrow-down",
10133
10144
  up: "bi bi-arrow-up"
10134
10145
  },
10146
+ check: "bi bi-check",
10135
10147
  checkbox: {
10136
10148
  checked: "bi bi-check-circle",
10137
10149
  unchecked: "bi bi-circle"
@@ -10189,11 +10201,13 @@ const ApplicationIcons = {
10189
10201
  tree: {
10190
10202
  open: "bi bi-caret-down-fill",
10191
10203
  closed: "bi bi-caret-right-fill"
10192
- }
10204
+ },
10205
+ wrap: "bi bi-text-wrap",
10206
+ x: "bi bi-x"
10193
10207
  };
10194
10208
  const toolButton = "_toolButton_1y0d0_1";
10195
10209
  const latched = "_latched_1y0d0_17";
10196
- const styles$1k = {
10210
+ const styles$1l = {
10197
10211
  toolButton,
10198
10212
  latched
10199
10213
  };
@@ -10205,11 +10219,11 @@ const ToolButton = forwardRef(
10205
10219
  ref: ref2,
10206
10220
  type: "button",
10207
10221
  className: clsx(
10208
- styles$1k.toolButton,
10222
+ styles$1l.toolButton,
10209
10223
  "btn",
10210
10224
  "btn-tools",
10211
10225
  className2,
10212
- latched2 ? styles$1k.latched : void 0
10226
+ latched2 ? styles$1l.latched : void 0
10213
10227
  ),
10214
10228
  ...rest,
10215
10229
  children: [
@@ -21106,7 +21120,7 @@ function keys(object2) {
21106
21120
  Object.keys(object2)
21107
21121
  ) : [];
21108
21122
  }
21109
- function values$1(object2) {
21123
+ function values$2(object2) {
21110
21124
  return isMapOrSet(object2) ? array(object2.values()) : object2 != null ? Object.values(object2) : [];
21111
21125
  }
21112
21126
  function entries$1(object2) {
@@ -21127,7 +21141,7 @@ const object$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
21127
21141
  has: has$1,
21128
21142
  keys,
21129
21143
  object,
21130
- values: values$1
21144
+ values: values$2
21131
21145
  }, Symbol.toStringTag, { value: "Module" }));
21132
21146
  function parse_date(value2) {
21133
21147
  return value2 == null ? value2 : new Date(value2);
@@ -21924,7 +21938,7 @@ function quantile(values2, p) {
21924
21938
  const v0 = toNumeric(values2[i0]);
21925
21939
  return isBigInt(v0) ? v0 : v0 + (toNumeric(values2[i0 + 1]) - v0) * (i2 - i0);
21926
21940
  }
21927
- class ValueList {
21941
+ let ValueList$1 = class ValueList {
21928
21942
  constructor(values2) {
21929
21943
  this._values = values2 || [];
21930
21944
  this._sorted = null;
@@ -21958,7 +21972,7 @@ class ValueList {
21958
21972
  }
21959
21973
  return quantile(this._sorted, p);
21960
21974
  }
21961
- }
21975
+ };
21962
21976
  class Reducer {
21963
21977
  constructor(outputs) {
21964
21978
  this._outputs = outputs;
@@ -22031,7 +22045,7 @@ class FieldReducer extends Reducer {
22031
22045
  const state = { count: 0, valid: 0, stream: this._stream };
22032
22046
  this._op.forEach((op2) => op2.init(state));
22033
22047
  if (state.values) {
22034
- state.list = new ValueList();
22048
+ state.list = new ValueList$1();
22035
22049
  }
22036
22050
  return state;
22037
22051
  }
@@ -34848,13 +34862,13 @@ function formats(table2, names, options) {
34848
34862
  const format2 = {};
34849
34863
  const align2 = {};
34850
34864
  names.forEach((name2) => {
34851
- const auto2 = inferFormat(values(table2, name2), options);
34865
+ const auto2 = inferFormat(values$1(table2, name2), options);
34852
34866
  align2[name2] = alignOpt[name2] || auto2.align;
34853
34867
  format2[name2] = formatOpt[name2] || auto2.format;
34854
34868
  });
34855
34869
  return { align: align2, format: format2 };
34856
34870
  }
34857
- function values(table2, columnName) {
34871
+ function values$1(table2, columnName) {
34858
34872
  const column2 = table2.column(columnName);
34859
34873
  return (fn3) => table2.scan((row2) => fn3(column2.at(row2)));
34860
34874
  }
@@ -34886,7 +34900,7 @@ function formatValue(v, options = {}) {
34886
34900
  function toHTML(table2, options = {}) {
34887
34901
  const names = columns(table2, options.columns);
34888
34902
  const { align: align2, format: format2 } = formats(table2, names, options);
34889
- const style2 = styles$1j(options);
34903
+ const style2 = styles$1k(options);
34890
34904
  const nullish = options.null;
34891
34905
  const alignValue = (a2) => a2 === "c" ? "center" : a2 === "r" ? "right" : "left";
34892
34906
  const escape2 = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
@@ -34916,7 +34930,7 @@ function toHTML(table2, options = {}) {
34916
34930
  });
34917
34931
  return text2 + "</tbody></table>";
34918
34932
  }
34919
- function styles$1j(options) {
34933
+ function styles$1k(options) {
34920
34934
  return mapObject(
34921
34935
  options.style,
34922
34936
  (value2) => isFunction$1(value2) ? value2 : () => value2
@@ -35913,6 +35927,16 @@ function fromIterable(values2, names) {
35913
35927
  }
35914
35928
  return columns2;
35915
35929
  }
35930
+ function table$2(columns2, names) {
35931
+ if (columns2 instanceof ColumnTable) return columns2;
35932
+ const data2 = {};
35933
+ const keys2 = [];
35934
+ for (const [key2, value2] of entries(columns2)) {
35935
+ data2[key2] = value2;
35936
+ keys2.push(key2);
35937
+ }
35938
+ return new ColumnTable(data2, keys2);
35939
+ }
35916
35940
  function from(values2, names) {
35917
35941
  return new ColumnTable(columnsFrom(values2, names), names);
35918
35942
  }
@@ -36401,7 +36425,13 @@ const decodeArrowBytes = (bytes) => {
36401
36425
  const uncompressedBytes = tableToIPC$1(arrowTable);
36402
36426
  let table2 = fromArrow(uncompressedBytes);
36403
36427
  table2 = castColumns(table2);
36404
- return table2;
36428
+ const columns2 = {};
36429
+ const columnNames = table2.columnNames();
36430
+ for (const colName of columnNames) {
36431
+ const colData = table2.array(colName);
36432
+ columns2[colName] = Array.isArray(colData) ? colData : Array.from(colData);
36433
+ }
36434
+ return table$2(columns2);
36405
36435
  };
36406
36436
  let codecRegistered = false;
36407
36437
  function ensureLZ4CodecRegistered() {
@@ -37735,7 +37765,7 @@ const prettyDirUri = (uri) => {
37735
37765
  return uri;
37736
37766
  }
37737
37767
  };
37738
- function expandResultsetRows(columnTable) {
37768
+ async function expandResultsetRows(columnTable) {
37739
37769
  const colNames = columnTable.columnNames();
37740
37770
  if (!colNames.includes("value_type") || !colNames.includes("value") || columnTable.numRows() === 0) {
37741
37771
  return columnTable;
@@ -37769,6 +37799,12 @@ function expandResultsetRows(columnTable) {
37769
37799
  expandedRow.label = result2.label ?? null;
37770
37800
  expandedRow.answer = result2.answer ?? null;
37771
37801
  expandedRow.explanation = result2.explanation ?? null;
37802
+ if (row2.validation_result && typeof row2.validation_result === "string") {
37803
+ expandedRow.validation_result = await extractLabelValidation(
37804
+ expandedRow,
37805
+ row2.validation_result
37806
+ );
37807
+ }
37772
37808
  const metadata2 = result2.metadata ?? {};
37773
37809
  expandedRow.metadata = maybeSerializeValue(metadata2);
37774
37810
  const valueType = result2.type ?? inferType(result2.value);
@@ -37787,14 +37823,95 @@ function expandResultsetRows(columnTable) {
37787
37823
  continue;
37788
37824
  }
37789
37825
  }
37826
+ const syntheticRows = await createSyntheticRows(
37827
+ explodedResultsetRows,
37828
+ resultObjs
37829
+ );
37790
37830
  if (explodedResultsetRows.length === 0) {
37791
37831
  return otherRows;
37792
37832
  } else {
37793
37833
  const otherRowsArray = otherRows.objects();
37794
- const allRowsArray = [...otherRowsArray, ...explodedResultsetRows];
37834
+ const allRowsArray = [
37835
+ ...otherRowsArray,
37836
+ ...explodedResultsetRows,
37837
+ ...syntheticRows
37838
+ ];
37795
37839
  return from(allRowsArray);
37796
37840
  }
37797
37841
  }
37842
+ async function extractLabelValidation(row2, validationResultStr) {
37843
+ if (!row2.label || typeof row2.label !== "string") {
37844
+ return validationResultStr;
37845
+ }
37846
+ try {
37847
+ const parsedValidation = await asyncJsonParse(validationResultStr);
37848
+ if (typeof parsedValidation === "object" && parsedValidation !== null && !Array.isArray(parsedValidation)) {
37849
+ const validationDict = parsedValidation;
37850
+ const labelValidation = validationDict[row2.label];
37851
+ return labelValidation ?? null;
37852
+ }
37853
+ return parsedValidation;
37854
+ } catch (error2) {
37855
+ return validationResultStr;
37856
+ }
37857
+ }
37858
+ async function createSyntheticRows(expandedRows, resultsetRows) {
37859
+ if (resultsetRows.length === 0 || expandedRows.length === 0) {
37860
+ return [];
37861
+ }
37862
+ const firstRow = expandedRows[0];
37863
+ if (!firstRow || !firstRow.validation_target || typeof firstRow.validation_target !== "string") {
37864
+ return [];
37865
+ }
37866
+ try {
37867
+ const parsedTarget = await asyncJsonParse(
37868
+ firstRow.validation_target
37869
+ );
37870
+ if (typeof parsedTarget !== "object" || parsedTarget === null || Array.isArray(parsedTarget)) {
37871
+ return [];
37872
+ }
37873
+ const validationTarget = parsedTarget;
37874
+ const parsedResult = firstRow.validation_result ? await asyncJsonParse(
37875
+ typeof firstRow.validation_result === "string" ? firstRow.validation_result : JSON.stringify(firstRow.validation_result)
37876
+ ) : {};
37877
+ const validationResults = typeof parsedResult === "object" && !Array.isArray(parsedResult) ? parsedResult : {};
37878
+ const presentLabels = new Set(
37879
+ expandedRows.map((row2) => row2.label).filter((label2) => label2 !== null && label2 !== void 0)
37880
+ );
37881
+ const expectedLabels = Object.keys(validationTarget);
37882
+ const missingLabels = expectedLabels.filter(
37883
+ (label2) => !presentLabels.has(label2)
37884
+ );
37885
+ const syntheticRows = [];
37886
+ const negativeValues = [false, null, "NONE", "none", 0, ""];
37887
+ for (const label2 of missingLabels) {
37888
+ const expectedValue = validationTarget[label2];
37889
+ if (!negativeValues.includes(expectedValue)) {
37890
+ continue;
37891
+ }
37892
+ const templateRow = { ...resultsetRows[0] };
37893
+ templateRow.label = label2;
37894
+ templateRow.value = expectedValue;
37895
+ templateRow.value_type = typeof expectedValue === "boolean" ? "boolean" : "null";
37896
+ templateRow.answer = null;
37897
+ templateRow.explanation = null;
37898
+ templateRow.metadata = maybeSerializeValue({});
37899
+ templateRow.message_references = maybeSerializeValue([]);
37900
+ templateRow.event_references = maybeSerializeValue([]);
37901
+ templateRow.uuid = null;
37902
+ templateRow.validation_result = validationResults[label2] ?? null;
37903
+ templateRow.scan_error = null;
37904
+ templateRow.scan_error_traceback = null;
37905
+ templateRow.scan_error_type = null;
37906
+ templateRow.scan_total_tokens = null;
37907
+ templateRow.scan_model_usage = null;
37908
+ syntheticRows.push(templateRow);
37909
+ }
37910
+ return syntheticRows;
37911
+ } catch (error2) {
37912
+ return [];
37913
+ }
37914
+ }
37798
37915
  function inferType(value2) {
37799
37916
  if (typeof value2 === "boolean") {
37800
37917
  return "boolean";
@@ -37893,7 +38010,7 @@ const useServerScannerDataframe = () => {
37893
38010
  selectedScanner
37894
38011
  );
37895
38012
  const table2 = decodeArrowBytes(arrayBuffer);
37896
- const expandedTable = expandResultsetRows(table2);
38013
+ const expandedTable = await expandResultsetRows(table2);
37897
38014
  setSelectedScanResultData(selectedScanner, expandedTable);
37898
38015
  } catch (e) {
37899
38016
  setError("dataframe", e?.toString());
@@ -38365,7 +38482,7 @@ const right$2 = "_right_oy6cz_41";
38365
38482
  const toolbarButton = "_toolbarButton_oy6cz_50";
38366
38483
  const pathContainer = "_pathContainer_oy6cz_58";
38367
38484
  const hasChildren = "_hasChildren_oy6cz_62";
38368
- const styles$1i = {
38485
+ const styles$1j = {
38369
38486
  header: header$2,
38370
38487
  bordered: bordered$1,
38371
38488
  breadcrumbs,
@@ -38503,38 +38620,38 @@ const Navbar = ({ bordered: bordered2 = true, children: children2 }) => {
38503
38620
  className: clsx(
38504
38621
  "text-size-smaller",
38505
38622
  "header-nav",
38506
- styles$1i.header,
38507
- bordered2 ? styles$1i.bordered : void 0
38623
+ styles$1j.header,
38624
+ bordered2 ? styles$1j.bordered : void 0
38508
38625
  ),
38509
38626
  "aria-label": "breadcrumb",
38510
38627
  "data-unsearchable": true,
38511
38628
  children: [
38512
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1i.left), children: [
38513
- backUrl && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: backUrl, className: clsx(styles$1i.toolbarButton), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.navbar.back) }) }),
38629
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1j.left), children: [
38630
+ backUrl && /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: backUrl, className: clsx(styles$1j.toolbarButton), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.navbar.back) }) }),
38514
38631
  !singleFileMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
38515
38632
  Link,
38516
38633
  {
38517
38634
  to: scansRoute(),
38518
- className: clsx(styles$1i.toolbarButton),
38635
+ className: clsx(styles$1j.toolbarButton),
38519
38636
  onClick: () => {
38520
38637
  },
38521
38638
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.navbar.home) })
38522
38639
  }
38523
38640
  ),
38524
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1i.pathContainer), ref: pathContainerRef, children: resultsDir ? /* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx("breadcrumb", styles$1i.breadcrumbs), children: visibleSegments.map((segment2, index) => {
38641
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1j.pathContainer), ref: pathContainerRef, children: resultsDir ? /* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx("breadcrumb", styles$1j.breadcrumbs), children: visibleSegments.map((segment2, index) => {
38525
38642
  const isLast = index === visibleSegments.length - 1;
38526
38643
  const shouldShowEllipsis = showEllipsis && index === 1 && visibleSegments.length >= 2;
38527
38644
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
38528
- shouldShowEllipsis && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: clsx("breadcrumb-item", styles$1i.ellipsis), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "..." }) }),
38645
+ shouldShowEllipsis && /* @__PURE__ */ jsxRuntimeExports.jsx("li", { className: clsx("breadcrumb-item", styles$1j.ellipsis), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "..." }) }),
38529
38646
  /* @__PURE__ */ jsxRuntimeExports.jsx(
38530
38647
  "li",
38531
38648
  {
38532
38649
  className: clsx(
38533
- styles$1i.pathLink,
38650
+ styles$1j.pathLink,
38534
38651
  "breadcrumb-item",
38535
38652
  isLast && !singleFileMode ? "active" : void 0
38536
38653
  ),
38537
- children: segment2.url && !singleFileMode && !isLast ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: segment2.url, children: segment2.text }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$1i.pathSegment), children: segment2.text })
38654
+ children: segment2.url && !singleFileMode && !isLast ? /* @__PURE__ */ jsxRuntimeExports.jsx(Link, { to: segment2.url, children: segment2.text }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$1j.pathSegment), children: segment2.text })
38538
38655
  }
38539
38656
  )
38540
38657
  ] }, index);
@@ -38544,8 +38661,8 @@ const Navbar = ({ bordered: bordered2 = true, children: children2 }) => {
38544
38661
  "div",
38545
38662
  {
38546
38663
  className: clsx(
38547
- styles$1i.right,
38548
- children2 ? styles$1i.hasChildren : void 0
38664
+ styles$1j.right,
38665
+ children2 ? styles$1j.hasChildren : void 0
38549
38666
  ),
38550
38667
  children: children2
38551
38668
  }
@@ -40019,19 +40136,19 @@ const Card = ({ id: id2, children: children2, className: className2 }) => {
40019
40136
  };
40020
40137
  const container$g = "_container_1cz5u_1";
40021
40138
  const traceback = "_traceback_1cz5u_5";
40022
- const styles$1h = {
40139
+ const styles$1i = {
40023
40140
  container: container$g,
40024
40141
  traceback
40025
40142
  };
40026
40143
  const ErrorPanel$1 = ({ error: error2, traceback: traceback2 }) => {
40027
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: clsx(styles$1h.container), children: [
40144
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { className: clsx(styles$1i.container), children: [
40028
40145
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { type: "modern", children: "Error" }),
40029
40146
  /* @__PURE__ */ jsxRuntimeExports.jsxs(CardBody, { children: [
40030
40147
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: error2 }),
40031
40148
  traceback2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
40032
40149
  ANSIDisplay,
40033
40150
  {
40034
- className: clsx(styles$1h.traceback, "text-size-smaller"),
40151
+ className: clsx(styles$1i.traceback, "text-size-smaller"),
40035
40152
  output: traceback2
40036
40153
  }
40037
40154
  )
@@ -40042,7 +40159,7 @@ const labeledValue = "_labeledValue_6obbb_1";
40042
40159
  const row$3 = "_row_6obbb_6";
40043
40160
  const column = "_column_6obbb_10";
40044
40161
  const labeledValueLabel = "_labeledValueLabel_6obbb_14";
40045
- const styles$1g = {
40162
+ const styles$1h = {
40046
40163
  labeledValue,
40047
40164
  row: row$3,
40048
40165
  column,
@@ -40060,8 +40177,8 @@ const LabeledValue = ({
40060
40177
  "div",
40061
40178
  {
40062
40179
  className: clsx(
40063
- styles$1g.labeledValue,
40064
- layout === "column" ? styles$1g.column : styles$1g.row,
40180
+ styles$1h.labeledValue,
40181
+ layout === "column" ? styles$1h.column : styles$1h.row,
40065
40182
  className2
40066
40183
  ),
40067
40184
  style: {
@@ -40072,14 +40189,14 @@ const LabeledValue = ({
40072
40189
  "div",
40073
40190
  {
40074
40191
  className: clsx(
40075
- styles$1g.labeledValueLabel,
40192
+ styles$1h.labeledValueLabel,
40076
40193
  "text-style-label",
40077
40194
  "text-style-secondary"
40078
40195
  ),
40079
40196
  children: label2
40080
40197
  }
40081
40198
  ),
40082
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1g.labeledValueValue), style: { ...valueStyle }, children: children2 })
40199
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1h.labeledValueValue), style: { ...valueStyle }, children: children2 })
40083
40200
  ]
40084
40201
  }
40085
40202
  );
@@ -43306,7 +43423,7 @@ const moreToggleButton = "_moreToggleButton_1ka1g_36";
43306
43423
  const separator$4 = "_separator_1ka1g_44";
43307
43424
  const inlineRight = "_inlineRight_1ka1g_50";
43308
43425
  const blockLeft = "_blockLeft_1ka1g_56";
43309
- const styles$1f = {
43426
+ const styles$1g = {
43310
43427
  expandablePanel,
43311
43428
  expandableBordered,
43312
43429
  expandableCollapsed,
@@ -43358,10 +43475,10 @@ const ExpandablePanel = memo$1(
43358
43475
  style: baseStyles,
43359
43476
  ref: contentRef,
43360
43477
  className: clsx(
43361
- styles$1f.expandablePanel,
43362
- collapsed ? styles$1f.expandableCollapsed : void 0,
43363
- border ? styles$1f.expandableBordered : void 0,
43364
- showToggle ? styles$1f.padBottom : void 0,
43478
+ styles$1g.expandablePanel,
43479
+ collapsed ? styles$1g.expandableCollapsed : void 0,
43480
+ border ? styles$1g.expandableBordered : void 0,
43481
+ showToggle ? styles$1g.padBottom : void 0,
43365
43482
  className2
43366
43483
  ),
43367
43484
  children: [
@@ -43387,7 +43504,7 @@ const ExpandablePanel = memo$1(
43387
43504
  position: "block-left"
43388
43505
  }
43389
43506
  ) }),
43390
- showToggle && layout === "inline-right" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1f.separator) })
43507
+ showToggle && layout === "inline-right" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1g.separator) })
43391
43508
  ] });
43392
43509
  }
43393
43510
  );
@@ -43406,15 +43523,15 @@ const MoreToggle = ({
43406
43523
  "div",
43407
43524
  {
43408
43525
  className: clsx(
43409
- styles$1f.moreToggle,
43410
- border ? styles$1f.bordered : void 0,
43411
- position === "inline-right" ? styles$1f.inlineRight : styles$1f.blockLeft
43526
+ styles$1g.moreToggle,
43527
+ border ? styles$1g.bordered : void 0,
43528
+ position === "inline-right" ? styles$1g.inlineRight : styles$1g.blockLeft
43412
43529
  ),
43413
43530
  style: style2,
43414
43531
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
43415
43532
  "button",
43416
43533
  {
43417
- className: clsx(styles$1f.moreToggleButton, "text-size-smallest"),
43534
+ className: clsx(styles$1g.moreToggleButton, "text-size-smallest"),
43418
43535
  onClick: handleClick,
43419
43536
  children: [
43420
43537
  text2,
@@ -43511,7 +43628,7 @@ const keyPairBordered = "_keyPairBordered_qjlxf_9";
43511
43628
  const key = "_key_qjlxf_1";
43512
43629
  const pre = "_pre_qjlxf_19";
43513
43630
  const treeIcon = "_treeIcon_qjlxf_23";
43514
- const styles$1e = {
43631
+ const styles$1f = {
43515
43632
  keyPairContainer,
43516
43633
  keyPairBordered,
43517
43634
  key,
@@ -43522,7 +43639,7 @@ const visible = "_visible_tm52u_1";
43522
43639
  const hidden$2 = "_hidden_tm52u_5";
43523
43640
  const pills = "_pills_tm52u_9";
43524
43641
  const pill = "_pill_tm52u_9";
43525
- const styles$1d = {
43642
+ const styles$1e = {
43526
43643
  visible,
43527
43644
  hidden: hidden$2,
43528
43645
  pills,
@@ -43552,7 +43669,7 @@ const NavPills = ({ id: id2, children: children2 }) => {
43552
43669
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
43553
43670
  "div",
43554
43671
  {
43555
- className: child["props"]?.title === activeItem ? styles$1d.visible : styles$1d.hidden,
43672
+ className: child["props"]?.title === activeItem ? styles$1e.visible : styles$1e.hidden,
43556
43673
  children: child
43557
43674
  },
43558
43675
  `nav-pill-container-${idx}`
@@ -43562,7 +43679,7 @@ const NavPills = ({ id: id2, children: children2 }) => {
43562
43679
  /* @__PURE__ */ jsxRuntimeExports.jsx(
43563
43680
  "ul",
43564
43681
  {
43565
- className: clsx("nav", "nav-pills", styles$1d.pills),
43682
+ className: clsx("nav", "nav-pills", styles$1e.pills),
43566
43683
  role: "tablist",
43567
43684
  "aria-orientation": "horizontal",
43568
43685
  children: navPills
@@ -43598,7 +43715,7 @@ const NavPill = ({
43598
43715
  "nav-link",
43599
43716
  "text-style-label",
43600
43717
  active ? "active " : "",
43601
- styles$1d.pill
43718
+ styles$1e.pill
43602
43719
  ),
43603
43720
  "data-target": title2,
43604
43721
  onClick: handleClick,
@@ -43614,7 +43731,7 @@ const Buckets = {
43614
43731
  final: 1e3
43615
43732
  };
43616
43733
  const copyButton = "_copyButton_1goi8_1";
43617
- const styles$1c = {
43734
+ const styles$1d = {
43618
43735
  copyButton
43619
43736
  };
43620
43737
  const CopyButton = ({
@@ -43644,7 +43761,7 @@ const CopyButton = ({
43644
43761
  "button",
43645
43762
  {
43646
43763
  type: "button",
43647
- className: clsx("copy-button", styles$1c.copyButton, className2),
43764
+ className: clsx("copy-button", styles$1d.copyButton, className2),
43648
43765
  onClick: () => {
43649
43766
  void handleClick();
43650
43767
  },
@@ -43669,7 +43786,7 @@ const indented = "_indented_b8oe1_29";
43669
43786
  const copyLink = "_copyLink_b8oe1_33";
43670
43787
  const metadataLabel = "_metadataLabel_b8oe1_43";
43671
43788
  const hover$1 = "_hover_b8oe1_47";
43672
- const styles$1b = {
43789
+ const styles$1c = {
43673
43790
  message,
43674
43791
  systemRole,
43675
43792
  messageGrid,
@@ -49258,17 +49375,17 @@ function unescapeCodeHtmlEntities(str) {
49258
49375
  );
49259
49376
  }
49260
49377
  const cite = "_cite_1t1bm_1";
49261
- const styles$1a = {
49378
+ const styles$1b = {
49262
49379
  cite
49263
49380
  };
49264
49381
  const panel$1 = "_panel_twp3v_1";
49265
49382
  const container$f = "_container_twp3v_7";
49266
- const styles$19 = {
49383
+ const styles$1a = {
49267
49384
  panel: panel$1,
49268
49385
  container: container$f
49269
49386
  };
49270
49387
  const NoContentsPanel = ({ text: text2 }) => {
49271
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$19.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$19.container, "text-size-smaller"), children: [
49388
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1a.panel), children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1a.container, "text-size-smaller"), children: [
49272
49389
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.noSamples }),
49273
49390
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: text2 })
49274
49391
  ] }) });
@@ -51229,12 +51346,12 @@ const MarkdownDivWithReferences = forwardRef(({ markdown, references, className:
51229
51346
  const escapedCite = ref22.cite.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
51230
51347
  const regex2 = new RegExp(escapedCite, "g");
51231
51348
  const href = ref22.citeUrl || "javascript:void(0)";
51232
- const replacement = `<a href="${href}" class="${styles$1a.cite}" data-ref-id="${ref22.id}">${ref22.cite}</a>`;
51349
+ const replacement = `<a href="${href}" class="${styles$1b.cite}" data-ref-id="${ref22.id}">${ref22.cite}</a>`;
51233
51350
  processedHtml = processedHtml.replace(regex2, replacement);
51234
51351
  });
51235
51352
  return processedHtml;
51236
51353
  },
51237
- [references, styles$1a.cite]
51354
+ [references, styles$1b.cite]
51238
51355
  );
51239
51356
  const memoizedMarkdown = useMemo(
51240
51357
  () => /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -51256,7 +51373,7 @@ const MarkdownDivWithReferences = forwardRef(({ markdown, references, className:
51256
51373
  return;
51257
51374
  }
51258
51375
  const citeLinks = container2.querySelectorAll(
51259
- `.${styles$1a.cite}`
51376
+ `.${styles$1b.cite}`
51260
51377
  );
51261
51378
  const handleMouseEnter = (e) => {
51262
51379
  const el = e.currentTarget;
@@ -51290,7 +51407,7 @@ const MarkdownDivWithReferences = forwardRef(({ markdown, references, className:
51290
51407
  }, [
51291
51408
  markdown,
51292
51409
  refMap,
51293
- styles$1a.cite,
51410
+ styles$1b.cite,
51294
51411
  setPositionEl,
51295
51412
  setCurrentRef,
51296
51413
  setShowingRefPopover
@@ -51321,7 +51438,7 @@ const MarkdownDivWithReferences = forwardRef(({ markdown, references, className:
51321
51438
  });
51322
51439
  const popoverKey = (ref2) => `markdown-ref-popover-${ref2.id}`;
51323
51440
  const content = "_content_13ihw_1";
51324
- const styles$18 = {
51441
+ const styles$19 = {
51325
51442
  content
51326
51443
  };
51327
51444
  forwardRef(
@@ -51330,7 +51447,7 @@ forwardRef(
51330
51447
  "pre",
51331
51448
  {
51332
51449
  ref: ref2,
51333
- className: clsx(styles$18.content, "text-size-smaller", className2),
51450
+ className: clsx(styles$19.content, "text-size-smaller", className2),
51334
51451
  style: style2,
51335
51452
  children: text2
51336
51453
  }
@@ -51392,24 +51509,24 @@ const parsedJson = (text2) => {
51392
51509
  return void 0;
51393
51510
  };
51394
51511
  const contentData = "_contentData_1sd1z_1";
51395
- const styles$17 = {
51512
+ const styles$18 = {
51396
51513
  contentData
51397
51514
  };
51398
51515
  const webSearch = "_webSearch_1376z_1";
51399
51516
  const query$1 = "_query_1376z_8";
51400
- const styles$16 = {
51517
+ const styles$17 = {
51401
51518
  webSearch,
51402
51519
  query: query$1
51403
51520
  };
51404
51521
  const WebSearch = ({ query: query2 }) => {
51405
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$16.webSearch, "text-size-smaller"), children: [
51522
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$17.webSearch, "text-size-smaller"), children: [
51406
51523
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-style-label", "text-style-secondary"), children: "Web Search:" }),
51407
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$16.query, "text-size-smallest"), children: query2 })
51524
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx(styles$17.query, "text-size-smallest"), children: query2 })
51408
51525
  ] });
51409
51526
  };
51410
- const result$1 = "_result_1mixg_12";
51411
- const styles$15 = {
51412
- result: result$1
51527
+ const result$2 = "_result_1mixg_12";
51528
+ const styles$16 = {
51529
+ result: result$2
51413
51530
  };
51414
51531
  const WebSearchResults = ({
51415
51532
  results
@@ -51419,7 +51536,7 @@ const WebSearchResults = ({
51419
51536
  "div",
51420
51537
  {
51421
51538
  className: clsx(
51422
- styles$15.label,
51539
+ styles$16.label,
51423
51540
  "text-style-label",
51424
51541
  "text-style-secondary",
51425
51542
  "text-size-smaller"
@@ -51427,10 +51544,10 @@ const WebSearchResults = ({
51427
51544
  children: "Results"
51428
51545
  }
51429
51546
  ),
51430
- /* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx(styles$15.results, "text-size-smaller"), children: results.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
51547
+ /* @__PURE__ */ jsxRuntimeExports.jsx("ol", { className: clsx(styles$16.results, "text-size-smaller"), children: results.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
51431
51548
  "li",
51432
51549
  {
51433
- className: clsx(styles$15.result, "text-style-secondary"),
51550
+ className: clsx(styles$16.result, "text-style-secondary"),
51434
51551
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51435
51552
  "a",
51436
51553
  {
@@ -51454,17 +51571,17 @@ const ContentDataView = ({ id: id2, contentData: contentData2 }) => {
51454
51571
  );
51455
51572
  if (!renderer) {
51456
51573
  const { encrypted_content, ...record } = renderableData;
51457
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$17.contentData), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51574
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$18.contentData), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51458
51575
  RecordTree,
51459
51576
  {
51460
51577
  id: `${id2}-tree`,
51461
51578
  record,
51462
- className: clsx(styles$17.data),
51579
+ className: clsx(styles$18.data),
51463
51580
  defaultExpandLevel: 0
51464
51581
  }
51465
51582
  ) });
51466
51583
  }
51467
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$17.contentData), children: renderer.render(renderableData) });
51584
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$18.contentData), children: renderer.render(renderableData) });
51468
51585
  };
51469
51586
  const webSearchServerToolRenderer = {
51470
51587
  name: "WebSearch",
@@ -51506,7 +51623,7 @@ const serverToolRenderer = {
51506
51623
  {
51507
51624
  id: data2.name || "server-tool",
51508
51625
  record: data2,
51509
- className: clsx(styles$17.data)
51626
+ className: clsx(styles$18.data)
51510
51627
  }
51511
51628
  )
51512
51629
  ] });
@@ -51524,7 +51641,7 @@ const documentFrame = "_documentFrame_1576h_1";
51524
51641
  const documentFrameTitle = "_documentFrameTitle_1576h_9";
51525
51642
  const downloadLink = "_downloadLink_1576h_16";
51526
51643
  const imageDocument = "_imageDocument_1576h_21";
51527
- const styles$14 = {
51644
+ const styles$15 = {
51528
51645
  documentFrame,
51529
51646
  documentFrameTitle,
51530
51647
  downloadLink,
@@ -51539,7 +51656,7 @@ const ContentDocumentView = ({
51539
51656
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ContentDocumentFrame, { document: document2, downloadable: canDownloadFiles, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51540
51657
  "img",
51541
51658
  {
51542
- className: clsx(styles$14.imageDocument),
51659
+ className: clsx(styles$15.imageDocument),
51543
51660
  src: document2.document,
51544
51661
  alt: document2.filename,
51545
51662
  id: id2
@@ -51564,17 +51681,17 @@ const ContentDocumentFrame = ({
51564
51681
  "div",
51565
51682
  {
51566
51683
  className: clsx(
51567
- styles$14.documentFrame,
51684
+ styles$15.documentFrame,
51568
51685
  "text-size-small",
51569
51686
  "text-style-secondary"
51570
51687
  ),
51571
51688
  children: [
51572
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$14.documentFrameTitle), children: [
51689
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$15.documentFrameTitle), children: [
51573
51690
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(iconForMimeType(document2.mime_type)) }),
51574
51691
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: downloadable ? /* @__PURE__ */ jsxRuntimeExports.jsx(
51575
51692
  "a",
51576
51693
  {
51577
- className: clsx(styles$14.downloadLink),
51694
+ className: clsx(styles$15.downloadLink),
51578
51695
  onClick: () => {
51579
51696
  },
51580
51697
  children: document2.filename
@@ -51587,7 +51704,7 @@ const ContentDocumentFrame = ({
51587
51704
  );
51588
51705
  };
51589
51706
  const jsonMessage = "_jsonMessage_oxf8d_1";
51590
- const styles$13 = {
51707
+ const styles$14 = {
51591
51708
  jsonMessage
51592
51709
  };
51593
51710
  const JsonMessageContent = ({
@@ -51600,7 +51717,7 @@ const JsonMessageContent = ({
51600
51717
  {
51601
51718
  id: id2,
51602
51719
  record: json2,
51603
- className: clsx(styles$13.jsonMessage, className2),
51720
+ className: clsx(styles$14.jsonMessage, className2),
51604
51721
  useBorders: false
51605
51722
  }
51606
51723
  );
@@ -51612,7 +51729,7 @@ const decodeHtmlEntities = (text2) => {
51612
51729
  };
51613
51730
  const citations = "_citations_1ggvf_1";
51614
51731
  const citationLink = "_citationLink_1ggvf_9";
51615
- const styles$12 = {
51732
+ const styles$13 = {
51616
51733
  citations,
51617
51734
  citationLink
51618
51735
  };
@@ -51620,7 +51737,7 @@ const MessageCitations = ({ citations: citations2 }) => {
51620
51737
  if (citations2.length === 0) {
51621
51738
  return void 0;
51622
51739
  }
51623
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$12.citations, "text-size-smallest"), children: citations2.map((citation, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
51740
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$13.citations, "text-size-smallest"), children: citations2.map((citation, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
51624
51741
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: index + 1 }),
51625
51742
  /* @__PURE__ */ jsxRuntimeExports.jsx(MessageCitation, { citation })
51626
51743
  ] }, index)) });
@@ -51640,7 +51757,7 @@ const UrlCitation = ({
51640
51757
  href: citation.url,
51641
51758
  target: "_blank",
51642
51759
  rel: "noopener noreferrer",
51643
- className: clsx(styles$12.citationLink),
51760
+ className: clsx(styles$13.citationLink),
51644
51761
  title: citation.cited_text && typeof citation.cited_text === "string" ? `${citation.cited_text}
51645
51762
  ${citation.url}` : citation.url,
51646
51763
  children: children2
@@ -51649,7 +51766,7 @@ ${citation.url}` : citation.url,
51649
51766
  const OtherCitation = ({ children: children2 }) => /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 });
51650
51767
  const contentImage = "_contentImage_8rgix_1";
51651
51768
  const reasoning = "_reasoning_8rgix_6";
51652
- const styles$11 = {
51769
+ const styles$12 = {
51653
51770
  contentImage,
51654
51771
  reasoning
51655
51772
  };
@@ -51660,7 +51777,7 @@ const args = "_args_1792k_22";
51660
51777
  const argLabel = "_argLabel_1792k_31";
51661
51778
  const error$2 = "_error_1792k_35";
51662
51779
  const toolPanel = "_toolPanel_1792k_40";
51663
- const styles$10 = {
51780
+ const styles$11 = {
51664
51781
  mcpToolUse,
51665
51782
  title: title$3,
51666
51783
  titleText,
@@ -51681,23 +51798,23 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
51681
51798
  const titleStr = content2.context ? `${content2.context} — ${content2.name}()` : `${content2.name}()`;
51682
51799
  const listToolsResult = maybeListTools(content2);
51683
51800
  const webSearchResult = maybeWebSearchResult(content2);
51684
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id: id2, className: clsx(styles$10.mcpToolUse, className2), children: [
51801
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { id: id2, className: clsx(styles$11.mcpToolUse, className2), children: [
51685
51802
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
51686
51803
  "div",
51687
51804
  {
51688
51805
  className: clsx(
51689
- styles$10.title,
51806
+ styles$11.title,
51690
51807
  "text-size-small",
51691
51808
  "text-style-secondary"
51692
51809
  ),
51693
51810
  children: [
51694
51811
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.role.tool }),
51695
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$10.titleText, children: titleStr }),
51696
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$10.type, children: content2.type })
51812
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$11.titleText, children: titleStr }),
51813
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.type, children: content2.type })
51697
51814
  ]
51698
51815
  }
51699
51816
  ),
51700
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$10.args, children: [
51817
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$11.args, children: [
51701
51818
  Object.keys(args2).map((key2, index) => {
51702
51819
  const value2 = args2[key2];
51703
51820
  let valueRecord = void 0;
@@ -51716,7 +51833,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
51716
51833
  }),
51717
51834
  webSearchResult ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
51718
51835
  /* @__PURE__ */ jsxRuntimeExports.jsx(LabelDiv, { label: "results" }),
51719
- /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDiv, { children: webSearchResult.result.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$10.result, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51836
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ValueDiv, { children: webSearchResult.result.map((result2, index) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.result, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
51720
51837
  "a",
51721
51838
  {
51722
51839
  href: result2.url,
@@ -51731,7 +51848,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
51731
51848
  {
51732
51849
  id: `${id2}-output`,
51733
51850
  collapse: true,
51734
- className: clsx(styles$10.toolPanel),
51851
+ className: clsx(styles$11.toolPanel),
51735
51852
  children: [
51736
51853
  /* @__PURE__ */ jsxRuntimeExports.jsx(LabelDiv, { label: tool2.name }),
51737
51854
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ValueDiv, { children: [
@@ -51749,7 +51866,7 @@ const McpToolUse = ({ id: id2, content: content2, className: className2 }) => {
51749
51866
  }
51750
51867
  ) })) : void 0
51751
51868
  ] }),
51752
- content2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$10.error, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
51869
+ content2.error ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$11.error, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
51753
51870
  "Error: ",
51754
51871
  content2.error
51755
51872
  ] }) }) : !listToolsResult && !webSearchResult ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id2}-output`, collapse: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -51806,7 +51923,7 @@ const LabelDiv = ({ label: label2 }) => {
51806
51923
  "div",
51807
51924
  {
51808
51925
  className: clsx(
51809
- styles$10.argLabel,
51926
+ styles$11.argLabel,
51810
51927
  "text-style-secondary",
51811
51928
  "text-size-smaller"
51812
51929
  ),
@@ -51821,7 +51938,7 @@ const toolImage = "_toolImage_1wvgr_1";
51821
51938
  const output = "_output_1wvgr_6";
51822
51939
  const textOutput = "_textOutput_1wvgr_10";
51823
51940
  const textCode = "_textCode_1wvgr_18";
51824
- const styles$$ = {
51941
+ const styles$10 = {
51825
51942
  toolImage,
51826
51943
  output,
51827
51944
  textOutput,
@@ -51840,7 +51957,7 @@ const ToolOutput = ({ output: output2, className: className2 }) => {
51840
51957
  } else {
51841
51958
  if (out.image.startsWith("data:")) {
51842
51959
  outputs.push(
51843
- /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: clsx(styles$$.toolImage), src: out.image }, key2)
51960
+ /* @__PURE__ */ jsxRuntimeExports.jsx("img", { className: clsx(styles$10.toolImage), src: out.image }, key2)
51844
51961
  );
51845
51962
  } else {
51846
51963
  outputs.push(/* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(out.image) }, key2));
@@ -51852,14 +51969,14 @@ const ToolOutput = ({ output: output2, className: className2 }) => {
51852
51969
  /* @__PURE__ */ jsxRuntimeExports.jsx(ToolTextOutput, { text: String(output2) }, "tool-output-single")
51853
51970
  );
51854
51971
  }
51855
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.output, className2), children: outputs });
51972
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$10.output, className2), children: outputs });
51856
51973
  };
51857
51974
  const ToolTextOutput = ({ text: text2 }) => {
51858
51975
  if (isJson(text2)) {
51859
51976
  const obj = JSON.parse(text2);
51860
51977
  return /* @__PURE__ */ jsxRuntimeExports.jsx(JsonMessageContent, { id: `1-json`, json: obj });
51861
51978
  }
51862
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$$.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$$.textCode), children: text2.trim() }) });
51979
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$10.textOutput, "tool-output"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("sourceCode", styles$10.textCode), children: text2.trim() }) });
51863
51980
  };
51864
51981
  const isMessageContent = (content2) => {
51865
51982
  return typeof content2 === "object" && content2 !== null && "type" in content2 && typeof content2.type === "string";
@@ -51958,7 +52075,7 @@ const messageRenderers = {
51958
52075
  } else if (!text2) {
51959
52076
  text2 = r2.summary || "Reasoning text not provided.";
51960
52077
  }
51961
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$11.reasoning, "text-size-small"), children: [
52078
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$12.reasoning, "text-size-small"), children: [
51962
52079
  /* @__PURE__ */ jsxRuntimeExports.jsx(
51963
52080
  "div",
51964
52081
  {
@@ -51981,7 +52098,7 @@ const messageRenderers = {
51981
52098
  render: (key2, content2, _isLast, _context) => {
51982
52099
  const c2 = content2;
51983
52100
  if (c2.image.startsWith("data:")) {
51984
- return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$11.contentImage }, key2);
52101
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: c2.image, className: styles$12.contentImage }, key2);
51985
52102
  } else {
51986
52103
  return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: c2.image }, key2);
51987
52104
  }
@@ -52132,10 +52249,10 @@ const ChatMessage = memo$1(
52132
52249
  className: clsx(
52133
52250
  message2.role,
52134
52251
  "text-size-base",
52135
- styles$1b.message,
52136
- message2.role === "system" ? styles$1b.systemRole : void 0,
52137
- message2.role === "user" ? styles$1b.userRole : void 0,
52138
- mouseOver ? styles$1b.hover : void 0
52252
+ styles$1c.message,
52253
+ message2.role === "system" ? styles$1c.systemRole : void 0,
52254
+ message2.role === "user" ? styles$1c.userRole : void 0,
52255
+ mouseOver ? styles$1c.hover : void 0
52139
52256
  ),
52140
52257
  onMouseEnter: () => setMouseOver(true),
52141
52258
  onMouseLeave: () => setMouseOver(false),
@@ -52144,8 +52261,8 @@ const ChatMessage = memo$1(
52144
52261
  "div",
52145
52262
  {
52146
52263
  className: clsx(
52147
- styles$1b.messageGrid,
52148
- message2.role === "tool" ? styles$1b.toolMessageGrid : void 0,
52264
+ styles$1c.messageGrid,
52265
+ message2.role === "tool" ? styles$1c.toolMessageGrid : void 0,
52149
52266
  "text-style-label"
52150
52267
  ),
52151
52268
  children: [
@@ -52156,7 +52273,7 @@ const ChatMessage = memo$1(
52156
52273
  {
52157
52274
  icon: ApplicationIcons.link,
52158
52275
  value: toFullUrl(messageUrl),
52159
- className: clsx(styles$1b.copyLink)
52276
+ className: clsx(styles$1c.copyLink)
52160
52277
  }
52161
52278
  ) : ""
52162
52279
  ]
@@ -52166,8 +52283,8 @@ const ChatMessage = memo$1(
52166
52283
  "div",
52167
52284
  {
52168
52285
  className: clsx(
52169
- styles$1b.messageContents,
52170
- indented2 ? styles$1b.indented : void 0
52286
+ styles$1c.messageContents,
52287
+ indented2 ? styles$1c.indented : void 0
52171
52288
  ),
52172
52289
  children: [
52173
52290
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -52183,7 +52300,7 @@ const ChatMessage = memo$1(
52183
52300
  LabeledValue,
52184
52301
  {
52185
52302
  label: "Metadata",
52186
- className: clsx(styles$1b.metadataLabel, "text-size-smaller"),
52303
+ className: clsx(styles$1c.metadataLabel, "text-size-smaller"),
52187
52304
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
52188
52305
  RecordTree,
52189
52306
  {
@@ -52211,7 +52328,7 @@ const last = "_last_17ltx_33";
52211
52328
  const label$4 = "_label_17ltx_40";
52212
52329
  const highlight = "_highlight_17ltx_44";
52213
52330
  const bottomMargin = "_bottomMargin_17ltx_48";
52214
- const styles$_ = {
52331
+ const styles$$ = {
52215
52332
  grid: grid$2,
52216
52333
  number,
52217
52334
  user,
@@ -52650,7 +52767,7 @@ const extractInput = (args2, inputDescriptor) => {
52650
52767
  const sourcePanel = "_sourcePanel_bat6y_1";
52651
52768
  const simple = "_simple_bat6y_6";
52652
52769
  const code$2 = "_code_bat6y_11";
52653
- const styles$Z = {
52770
+ const styles$_ = {
52654
52771
  sourcePanel,
52655
52772
  simple,
52656
52773
  code: code$2
@@ -52669,8 +52786,8 @@ const SourceCodePanel = ({
52669
52786
  "pre",
52670
52787
  {
52671
52788
  className: clsx(
52672
- styles$Z.sourcePanel,
52673
- simple2 ? styles$Z.simple : "",
52789
+ styles$_.sourcePanel,
52790
+ simple2 ? styles$_.simple : "",
52674
52791
  className2
52675
52792
  ),
52676
52793
  style: style2,
@@ -52678,7 +52795,7 @@ const SourceCodePanel = ({
52678
52795
  "code",
52679
52796
  {
52680
52797
  id: id2,
52681
- className: clsx("source-code", styles$Z.code, `language-${language}`),
52798
+ className: clsx("source-code", styles$_.code, `language-${language}`),
52682
52799
  children: code2
52683
52800
  }
52684
52801
  )
@@ -52702,12 +52819,12 @@ const AnswerToolCallView = (props) => {
52702
52819
  );
52703
52820
  };
52704
52821
  const toolCallView = "_toolCallView_x6cus_1";
52705
- const styles$Y = {
52822
+ const styles$Z = {
52706
52823
  toolCallView
52707
52824
  };
52708
52825
  const todoList = "_todoList_1t8rx_1";
52709
52826
  const inProgress = "_inProgress_1t8rx_9";
52710
- const styles$X = {
52827
+ const styles$Y = {
52711
52828
  todoList,
52712
52829
  inProgress
52713
52830
  };
@@ -52727,7 +52844,7 @@ const toToolTodos = (obj) => {
52727
52844
  };
52728
52845
  const TodoWriteInput = ({ contents: contents2, parentRef }) => {
52729
52846
  const todoItems = toToolTodos(contents2);
52730
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: clsx(styles$X.todoList), children: todoItems.map((todo) => {
52847
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: parentRef, className: clsx(styles$Y.todoList), children: todoItems.map((todo) => {
52731
52848
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
52732
52849
  /* @__PURE__ */ jsxRuntimeExports.jsx(
52733
52850
  "i",
@@ -52742,9 +52859,9 @@ const TodoWriteInput = ({ contents: contents2, parentRef }) => {
52742
52859
  "span",
52743
52860
  {
52744
52861
  className: clsx(
52745
- styles$X.todoItem,
52862
+ styles$Y.todoItem,
52746
52863
  "text-size-smallest",
52747
- todo.status === "in_progress" ? styles$X.inProgress : void 0
52864
+ todo.status === "in_progress" ? styles$Y.inProgress : void 0
52748
52865
  ),
52749
52866
  children: todo.content
52750
52867
  }
@@ -52755,7 +52872,7 @@ const TodoWriteInput = ({ contents: contents2, parentRef }) => {
52755
52872
  const outputPre = "_outputPre_1jznn_1";
52756
52873
  const toolView = "_toolView_1jznn_7";
52757
52874
  const outputCode = "_outputCode_1jznn_15";
52758
- const styles$W = {
52875
+ const styles$X = {
52759
52876
  outputPre,
52760
52877
  toolView,
52761
52878
  outputCode
@@ -52772,7 +52889,7 @@ const ToolInput = (props) => {
52772
52889
  {
52773
52890
  markdown: toolCallView2.content,
52774
52891
  ref: sourceCodeRef,
52775
- className: clsx("tool-output", styles$W.toolView, className2)
52892
+ className: clsx("tool-output", styles$X.toolView, className2)
52776
52893
  }
52777
52894
  );
52778
52895
  } else {
@@ -52802,8 +52919,8 @@ const RenderTool = ({
52802
52919
  {
52803
52920
  className: clsx(
52804
52921
  "tool-output",
52805
- styles$W.outputPre,
52806
- styles$W.bottomMargin,
52922
+ styles$X.outputPre,
52923
+ styles$X.bottomMargin,
52807
52924
  className2
52808
52925
  ),
52809
52926
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -52813,7 +52930,7 @@ const RenderTool = ({
52813
52930
  "source-code",
52814
52931
  "sourceCode",
52815
52932
  contentType ? `language-${contentType}` : void 0,
52816
- styles$W.outputCode
52933
+ styles$X.outputCode
52817
52934
  ),
52818
52935
  children: formattedContent
52819
52936
  }
@@ -52824,16 +52941,16 @@ const RenderTool = ({
52824
52941
  const image = "_image_1vcac_1";
52825
52942
  const toolTitle = "_toolTitle_1vcac_6";
52826
52943
  const description = "_description_1vcac_10";
52827
- const styles$V = {
52944
+ const styles$W = {
52828
52945
  image,
52829
52946
  toolTitle,
52830
52947
  description
52831
52948
  };
52832
52949
  const ToolTitle = ({ title: title2, description: description2 }) => {
52833
52950
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
52834
- /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$V.image) }),
52835
- /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$V.toolTitle), children: title2 }),
52836
- description2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: clsx(styles$V.description, "text-size-smallest"), children: [
52951
+ /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx("bi", "bi-tools", styles$W.image) }),
52952
+ /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-small", styles$W.toolTitle), children: title2 }),
52953
+ description2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: clsx(styles$W.description, "text-size-smallest"), children: [
52837
52954
  "- ",
52838
52955
  description2
52839
52956
  ] }) : void 0
@@ -52895,7 +53012,7 @@ const ToolCallView = ({
52895
53012
  }
52896
53013
  const contents2 = mode !== "compact" ? input2 : input2 || functionCall;
52897
53014
  const context = defaultContext();
52898
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Y.toolCallView), children: [
53015
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Z.toolCallView), children: [
52899
53016
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
52900
53017
  mode !== "compact" && (!view || view.title) ? /* @__PURE__ */ jsxRuntimeExports.jsx(
52901
53018
  ToolTitle,
@@ -53027,7 +53144,7 @@ const ChatMessageRow = ({
53027
53144
  }
53028
53145
  }
53029
53146
  if (useLabels) {
53030
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$_.grid, className2), children: views.map((view, idx) => {
53147
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$$.grid, className2), children: views.map((view, idx) => {
53031
53148
  const label2 = viewLabels[idx];
53032
53149
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
53033
53150
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -53036,8 +53153,8 @@ const ChatMessageRow = ({
53036
53153
  className: clsx(
53037
53154
  "text-size-smaller",
53038
53155
  "text-style-secondary",
53039
- styles$_.number,
53040
- styles$_.label
53156
+ styles$$.number,
53157
+ styles$$.label
53041
53158
  ),
53042
53159
  children: label2
53043
53160
  }
@@ -53046,11 +53163,11 @@ const ChatMessageRow = ({
53046
53163
  "div",
53047
53164
  {
53048
53165
  className: clsx(
53049
- styles$_.container,
53050
- highlightUserMessage && resolvedMessage.message.role === "user" ? styles$_.user : void 0,
53051
- idx === 0 ? styles$_.first : void 0,
53052
- idx === views.length - 1 ? styles$_.last : void 0,
53053
- highlightLabeled && label2?.trim() ? styles$_.highlight : void 0
53166
+ styles$$.container,
53167
+ highlightUserMessage && resolvedMessage.message.role === "user" ? styles$$.user : void 0,
53168
+ idx === 0 ? styles$$.first : void 0,
53169
+ idx === views.length - 1 ? styles$$.last : void 0,
53170
+ highlightLabeled && label2?.trim() ? styles$$.highlight : void 0
53054
53171
  ),
53055
53172
  children: view
53056
53173
  }
@@ -53063,13 +53180,13 @@ const ChatMessageRow = ({
53063
53180
  "div",
53064
53181
  {
53065
53182
  className: clsx(
53066
- styles$_.container,
53067
- idx === 0 ? styles$_.first : void 0,
53068
- idx === views.length - 1 ? styles$_.last : void 0,
53069
- idx === views.length - 1 ? styles$_.bottomMargin : void 0,
53183
+ styles$$.container,
53184
+ idx === 0 ? styles$$.first : void 0,
53185
+ idx === views.length - 1 ? styles$$.last : void 0,
53186
+ idx === views.length - 1 ? styles$$.bottomMargin : void 0,
53070
53187
  className2,
53071
- styles$_.simple,
53072
- highlightUserMessage && resolvedMessage.message.role === "user" ? styles$_.user : void 0
53188
+ styles$$.simple,
53189
+ highlightUserMessage && resolvedMessage.message.role === "user" ? styles$$.user : void 0
53073
53190
  ),
53074
53191
  children: view
53075
53192
  }
@@ -53128,7 +53245,7 @@ const resolveToolMessage = (toolMessage) => {
53128
53245
  }
53129
53246
  };
53130
53247
  const ToolCallViewCompact = ({ idx, functionCall }) => {
53131
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { className: clsx(styles$_.codeCompact), children: [
53248
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { className: clsx(styles$$.codeCompact), children: [
53132
53249
  "tool: ",
53133
53250
  functionCall
53134
53251
  ] }) }, `tool-call-${idx}`);
@@ -53332,7 +53449,7 @@ function centerTruncate(str, maxLength = 50) {
53332
53449
  if (str.length <= maxLength) {
53333
53450
  return str;
53334
53451
  }
53335
- const ellipsis2 = "…";
53452
+ const ellipsis2 = " ";
53336
53453
  const availableLength = maxLength - ellipsis2.length;
53337
53454
  if (availableLength <= 0) {
53338
53455
  return ellipsis2;
@@ -53343,9 +53460,12 @@ function centerTruncate(str, maxLength = 50) {
53343
53460
  const end2 = str.slice(-endLength);
53344
53461
  return start2 + ellipsis2 + end2;
53345
53462
  }
53463
+ function formatPercent(value2) {
53464
+ return `${formatPrettyDecimal(value2 * 100, 2)}%`;
53465
+ }
53346
53466
  const grid$1 = "_grid_14885_1";
53347
53467
  const cell = "_cell_14885_8";
53348
- const styles$U = {
53468
+ const styles$V = {
53349
53469
  grid: grid$1,
53350
53470
  cell
53351
53471
  };
@@ -53377,7 +53497,7 @@ const MetaDataGrid = ({
53377
53497
  {
53378
53498
  className: clsx(
53379
53499
  `${baseId}-key`,
53380
- styles$U.cell,
53500
+ styles$V.cell,
53381
53501
  "text-style-label",
53382
53502
  "text-style-secondary",
53383
53503
  fontStyle
@@ -53385,7 +53505,7 @@ const MetaDataGrid = ({
53385
53505
  children: entry2?.name
53386
53506
  }
53387
53507
  ),
53388
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$U.value, `${baseId}-value`, fontStyle), children: entry2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
53508
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$V.value, `${baseId}-value`, fontStyle), children: entry2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
53389
53509
  RenderedContent,
53390
53510
  {
53391
53511
  id: id22,
@@ -53396,7 +53516,7 @@ const MetaDataGrid = ({
53396
53516
  MetaDataGrid,
53397
53517
  {
53398
53518
  id: id22,
53399
- className: clsx(styles$U.nested),
53519
+ className: clsx(styles$V.nested),
53400
53520
  entries: obj,
53401
53521
  size,
53402
53522
  plain,
@@ -53408,7 +53528,7 @@ const MetaDataGrid = ({
53408
53528
  ) })
53409
53529
  ] }, `${baseId}-record-${index}`);
53410
53530
  });
53411
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: id2, className: clsx(className2, styles$U.grid), style: style2, children: entryEls });
53531
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: id2, className: clsx(className2, styles$V.grid), style: style2, children: entryEls });
53412
53532
  };
53413
53533
  const entryRecords = (entries2) => {
53414
53534
  if (!entries2) {
@@ -53426,7 +53546,7 @@ const query = "_query_seqs2_1";
53426
53546
  const summary$3 = "_summary_seqs2_6";
53427
53547
  const preWrap = "_preWrap_seqs2_10";
53428
53548
  const preCompact = "_preCompact_seqs2_15";
53429
- const styles$T = {
53549
+ const styles$U = {
53430
53550
  query,
53431
53551
  summary: summary$3,
53432
53552
  preWrap,
@@ -53552,7 +53672,7 @@ const contentRenderers = (renderObject) => {
53552
53672
  };
53553
53673
  } else {
53554
53674
  return {
53555
- rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$T.preWrap, styles$T.preCompact), children: rendered })
53675
+ rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$U.preWrap, styles$U.preCompact), children: rendered })
53556
53676
  };
53557
53677
  }
53558
53678
  }
@@ -53601,7 +53721,7 @@ const contentRenderers = (renderObject) => {
53601
53721
  render: (_id, entry2, _options) => {
53602
53722
  const results = [];
53603
53723
  results.push(
53604
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$T.query, children: [
53724
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$U.query, children: [
53605
53725
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.search }),
53606
53726
  " ",
53607
53727
  entry2.value.query
@@ -53613,7 +53733,7 @@ const contentRenderers = (renderObject) => {
53613
53733
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: result2.url, children: result2.url }) })
53614
53734
  );
53615
53735
  results.push(
53616
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$T.summary), children: result2.summary })
53736
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller", styles$U.summary), children: result2.summary })
53617
53737
  );
53618
53738
  }
53619
53739
  );
@@ -53629,7 +53749,7 @@ const contentRenderers = (renderObject) => {
53629
53749
  },
53630
53750
  render: (_id, entry2, _options) => {
53631
53751
  return {
53632
- rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$T.preWrap, children: entry2.value })
53752
+ rendered: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$U.preWrap, children: entry2.value })
53633
53753
  };
53634
53754
  }
53635
53755
  },
@@ -53809,8 +53929,8 @@ const RecordTree = ({
53809
53929
  "div",
53810
53930
  {
53811
53931
  className: clsx(
53812
- styles$1e.keyPairContainer,
53813
- index < items.length - 1 && useBorders ? styles$1e.keyPairBordered : void 0,
53932
+ styles$1f.keyPairContainer,
53933
+ index < items.length - 1 && useBorders ? styles$1f.keyPairBordered : void 0,
53814
53934
  "text-size-small"
53815
53935
  ),
53816
53936
  style: {
@@ -53823,7 +53943,7 @@ const RecordTree = ({
53823
53943
  "data-index": index,
53824
53944
  className: clsx(
53825
53945
  kRecordTreeKey,
53826
- styles$1e.key,
53946
+ styles$1f.key,
53827
53947
  "font-monospace",
53828
53948
  "text-style-secondary"
53829
53949
  ),
@@ -53833,16 +53953,16 @@ const RecordTree = ({
53833
53953
  setCollapsed(item2.id, !collapsedIds?.[item2.id]);
53834
53954
  },
53835
53955
  children: [
53836
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: item2.hasChildren ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$1e.pre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
53956
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: item2.hasChildren ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$1f.pre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
53837
53957
  "i",
53838
53958
  {
53839
53959
  className: clsx(
53840
53960
  collapsedIds && collapsedIds[item2.id] ? ApplicationIcons.tree.closed : ApplicationIcons.tree.open,
53841
- styles$1e.treeIcon
53961
+ styles$1f.treeIcon
53842
53962
  )
53843
53963
  }
53844
53964
  ) }) : void 0 }),
53845
- /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: clsx(styles$1e.pre), children: [
53965
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("pre", { className: clsx(styles$1f.pre), children: [
53846
53966
  item2.key,
53847
53967
  ":"
53848
53968
  ] })
@@ -54012,7 +54132,7 @@ const col1_3$1 = "_col1_3_sq96g_12";
54012
54132
  const col3$1 = "_col3_sq96g_16";
54013
54133
  const separator$3 = "_separator_sq96g_20";
54014
54134
  const padded = "_padded_sq96g_26";
54015
- const styles$S = {
54135
+ const styles$T = {
54016
54136
  wrapper: wrapper$1,
54017
54137
  col2: col2$1,
54018
54138
  col1_3: col1_3$1,
@@ -54074,14 +54194,14 @@ const ModelUsagePanel = ({ usage, className: className2 }) => {
54074
54194
  value: usage.total_tokens,
54075
54195
  secondary: false
54076
54196
  });
54077
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$S.wrapper, className2), children: rows.map((row2, idx) => {
54197
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$T.wrapper, className2), children: rows.map((row2, idx) => {
54078
54198
  if (row2.label === "---") {
54079
54199
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
54080
54200
  "div",
54081
54201
  {
54082
54202
  className: clsx(
54083
- styles$S.separator,
54084
- row2.padded ? styles$S.padded : void 0
54203
+ styles$T.separator,
54204
+ row2.padded ? styles$T.padded : void 0
54085
54205
  )
54086
54206
  },
54087
54207
  `$usage-sep-${idx}`
@@ -54094,12 +54214,12 @@ const ModelUsagePanel = ({ usage, className: className2 }) => {
54094
54214
  className: clsx(
54095
54215
  "text-style-label",
54096
54216
  "text-style-secondary",
54097
- row2.secondary ? styles$S.col2 : styles$S.col1_3
54217
+ row2.secondary ? styles$T.col2 : styles$T.col1_3
54098
54218
  ),
54099
54219
  children: row2.label
54100
54220
  }
54101
54221
  ),
54102
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$S.col3, children: row2.value ? formatNumber(row2.value) : "" })
54222
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$T.col3, children: row2.value ? formatNumber(row2.value) : "" })
54103
54223
  ] }, `$usage-row-${idx}`);
54104
54224
  }
54105
54225
  }) });
@@ -54109,7 +54229,7 @@ const tableTokens = "_tableTokens_z217i_5";
54109
54229
  const tableH = "_tableH_z217i_9";
54110
54230
  const model = "_model_z217i_14";
54111
54231
  const cellContents = "_cellContents_z217i_18";
54112
- const styles$R = {
54232
+ const styles$S = {
54113
54233
  table,
54114
54234
  tableTokens,
54115
54235
  tableH,
@@ -54124,7 +54244,7 @@ const TokenTable = ({ className: className2, children: children2 }) => {
54124
54244
  "table",
54125
54245
  "table-sm",
54126
54246
  "text-size-smaller",
54127
- styles$R.table,
54247
+ styles$S.table,
54128
54248
  className2
54129
54249
  ),
54130
54250
  children: children2
@@ -54141,7 +54261,7 @@ const TokenHeader = () => {
54141
54261
  colSpan: 3,
54142
54262
  className: clsx(
54143
54263
  "card-subheading",
54144
- styles$R.tableTokens,
54264
+ styles$S.tableTokens,
54145
54265
  "text-size-small",
54146
54266
  "text-style-label",
54147
54267
  "text-style-secondary"
@@ -54156,7 +54276,7 @@ const TokenHeader = () => {
54156
54276
  "th",
54157
54277
  {
54158
54278
  className: clsx(
54159
- styles$R.tableH,
54279
+ styles$S.tableH,
54160
54280
  "text-sixe-small",
54161
54281
  "text-style-label",
54162
54282
  "text-style-secondary"
@@ -54168,7 +54288,7 @@ const TokenHeader = () => {
54168
54288
  "th",
54169
54289
  {
54170
54290
  className: clsx(
54171
- styles$R.tableH,
54291
+ styles$S.tableH,
54172
54292
  "text-sixe-small",
54173
54293
  "text-style-label",
54174
54294
  "text-style-secondary"
@@ -54181,8 +54301,8 @@ const TokenHeader = () => {
54181
54301
  };
54182
54302
  const TokenRow = ({ model: model2, usage }) => {
54183
54303
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("tr", { children: [
54184
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$R.model, styles$R.cellContents), children: model2 }) }),
54185
- /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage, className: clsx(styles$R.cellContents) }) })
54304
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$S.model, styles$S.cellContents), children: model2 }) }),
54305
+ /* @__PURE__ */ jsxRuntimeExports.jsx("td", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage, className: clsx(styles$S.cellContents) }) })
54186
54306
  ] });
54187
54307
  };
54188
54308
  const ModelTokenTable = ({
@@ -54201,12 +54321,12 @@ const ModelTokenTable = ({
54201
54321
  };
54202
54322
  const scanInfo = "_scanInfo_76qrl_1";
54203
54323
  const container$d = "_container_76qrl_7";
54204
- const styles$Q = {
54324
+ const styles$R = {
54205
54325
  scanInfo,
54206
54326
  container: container$d
54207
54327
  };
54208
54328
  const InfoPanel = ({ result: result2 }) => {
54209
- return result2 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Q.container), children: [
54329
+ return result2 && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$R.container), children: [
54210
54330
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
54211
54331
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardHeader, { label: "Scanner Info", type: "modern" }),
54212
54332
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ScannerInfoPanel, { result: result2 }) })
@@ -54234,7 +54354,7 @@ const InfoPanel = ({ result: result2 }) => {
54234
54354
  };
54235
54355
  const ScannerInfoPanel = ({ result: result2 }) => {
54236
54356
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small"), children: [
54237
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$Q.scanInfo), children: [
54357
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$R.scanInfo), children: [
54238
54358
  /* @__PURE__ */ jsxRuntimeExports.jsx(LabeledValue, { label: "Name", children: result2?.scannerName }),
54239
54359
  result2?.scannerFile && result2.scannerFile !== null && /* @__PURE__ */ jsxRuntimeExports.jsx(LabeledValue, { label: "File", children: result2?.scannerFile }),
54240
54360
  (result2?.scanTotalTokens || 0) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(LabeledValue, { label: "Tokens", children: result2?.scanTotalTokens ? formatNumber(result2.scanTotalTokens) : "" })
@@ -54250,7 +54370,7 @@ const ScannerInfoPanel = ({ result: result2 }) => {
54250
54370
  ] });
54251
54371
  };
54252
54372
  const progressContainer = "_progressContainer_1cjjr_1";
54253
- const styles$P = {
54373
+ const styles$Q = {
54254
54374
  progressContainer
54255
54375
  };
54256
54376
  const container$c = "_container_4p85e_2";
@@ -54262,7 +54382,7 @@ const dot = "_dot_4p85e_8";
54262
54382
  const subtle = "_subtle_4p85e_36";
54263
54383
  const primary = "_primary_4p85e_40";
54264
54384
  const visuallyHidden = "_visuallyHidden_4p85e_59";
54265
- const styles$O = {
54385
+ const styles$P = {
54266
54386
  container: container$c,
54267
54387
  dotsContainer,
54268
54388
  small,
@@ -54284,24 +54404,24 @@ const PulsingDots = ({
54284
54404
  "div",
54285
54405
  {
54286
54406
  className: clsx(
54287
- styles$O.container,
54288
- size === "small" ? styles$O.small : size === "medium" ? styles$O.medium : styles$O.large,
54407
+ styles$P.container,
54408
+ size === "small" ? styles$P.small : size === "medium" ? styles$P.medium : styles$P.large,
54289
54409
  className2
54290
54410
  ),
54291
54411
  role: "status",
54292
54412
  children: [
54293
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$O.dotsContainer, children: Array.from({ length: dotsCount }, (_, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
54413
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$P.dotsContainer, children: Array.from({ length: dotsCount }, (_, index) => /* @__PURE__ */ jsxRuntimeExports.jsx(
54294
54414
  "div",
54295
54415
  {
54296
54416
  className: clsx(
54297
- styles$O.dot,
54298
- subtle2 ? styles$O.subtle : styles$O.primary
54417
+ styles$P.dot,
54418
+ subtle2 ? styles$P.subtle : styles$P.primary
54299
54419
  ),
54300
54420
  style: { animationDelay: `${index * 0.2}s` }
54301
54421
  },
54302
54422
  `dot-${index}`
54303
54423
  )) }),
54304
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$O.visuallyHidden, children: text2 })
54424
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$P.visuallyHidden, children: text2 })
54305
54425
  ]
54306
54426
  }
54307
54427
  );
@@ -54435,7 +54555,7 @@ const LiveVirtualList = ({
54435
54555
  return unregister;
54436
54556
  }, [id2, registerVirtualList, searchInData]);
54437
54557
  const Footer3 = () => {
54438
- return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$P.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
54558
+ return showProgress ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$Q.progressContainer), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0;
54439
54559
  };
54440
54560
  useEffect(() => {
54441
54561
  const parent = scrollRef?.current;
@@ -54508,7 +54628,7 @@ const LiveVirtualList = ({
54508
54628
  );
54509
54629
  };
54510
54630
  const item$1 = "_item_5fj0m_6";
54511
- const styles$N = {
54631
+ const styles$O = {
54512
54632
  item: item$1
54513
54633
  };
54514
54634
  const ChatViewVirtualList = memo$1(
@@ -54652,7 +54772,7 @@ const ChatViewVirtualListComponent = memo$1(
54652
54772
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
54653
54773
  "div",
54654
54774
  {
54655
- className: clsx(styles$N.item),
54775
+ className: clsx(styles$O.item),
54656
54776
  "data-index": props["data-index"],
54657
54777
  "data-item-group-index": props["data-item-group-index"],
54658
54778
  "data-item-index": props["data-item-index"],
@@ -54680,10 +54800,10 @@ const ChatViewVirtualListComponent = memo$1(
54680
54800
  );
54681
54801
  }
54682
54802
  );
54683
- const styles$M = {};
54803
+ const styles$N = {};
54684
54804
  const title$2 = "_title_19l1b_1";
54685
54805
  const contents = "_contents_19l1b_8";
54686
- const styles$L = {
54806
+ const styles$M = {
54687
54807
  title: title$2,
54688
54808
  contents
54689
54809
  };
@@ -54693,12 +54813,12 @@ const EventRow = ({
54693
54813
  className: className2,
54694
54814
  children: children2
54695
54815
  }) => {
54696
- const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$L.title, className2), children: [
54816
+ const contentEl = title2 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-small", styles$M.title, className2), children: [
54697
54817
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: icon2 || ApplicationIcons.metadata }),
54698
54818
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: title2 }),
54699
54819
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: children2 })
54700
54820
  ] }) : "";
54701
- const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$L.contents), children: contentEl });
54821
+ const card2 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("card", styles$M.contents), children: contentEl });
54702
54822
  return card2;
54703
54823
  };
54704
54824
  const ApprovalEventView = ({
@@ -54796,7 +54916,7 @@ class EventNode {
54796
54916
  }
54797
54917
  }
54798
54918
  const tab = "_tab_1je38_1";
54799
- const styles$K = {
54919
+ const styles$L = {
54800
54920
  tab
54801
54921
  };
54802
54922
  const EventNav = ({
@@ -54821,7 +54941,7 @@ const EventNav = ({
54821
54941
  active ? "active " : "",
54822
54942
  "text-style-label",
54823
54943
  "text-size-small",
54824
- styles$K.tab
54944
+ styles$L.tab
54825
54945
  ),
54826
54946
  onClick: handleClick,
54827
54947
  children: title2
@@ -54829,7 +54949,7 @@ const EventNav = ({
54829
54949
  ) });
54830
54950
  };
54831
54951
  const navs$1 = "_navs_1vm6p_1";
54832
- const styles$J = {
54952
+ const styles$K = {
54833
54953
  navs: navs$1
54834
54954
  };
54835
54955
  const EventNavs = ({
@@ -54840,7 +54960,7 @@ const EventNavs = ({
54840
54960
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
54841
54961
  "ul",
54842
54962
  {
54843
- className: clsx("nav", "nav-pills", styles$J.navs),
54963
+ className: clsx("nav", "nav-pills", styles$K.navs),
54844
54964
  role: "tablist",
54845
54965
  "aria-orientation": "horizontal",
54846
54966
  children: navs2.map((nav2) => {
@@ -54867,7 +54987,7 @@ const hover = "_hover_1nn7f_41";
54867
54987
  const root$2 = "_root_1nn7f_45";
54868
54988
  const bottomDongle = "_bottomDongle_1nn7f_50";
54869
54989
  const dongleIcon = "_dongleIcon_1nn7f_67";
54870
- const styles$I = {
54990
+ const styles$J = {
54871
54991
  label: label$3,
54872
54992
  navs,
54873
54993
  card,
@@ -54931,7 +55051,7 @@ const EventPanel = ({
54931
55051
  "div",
54932
55052
  {
54933
55053
  title: subTitle2,
54934
- className: clsx("text-size-small", mouseOver ? styles$I.hover : ""),
55054
+ className: clsx("text-size-small", mouseOver ? styles$J.hover : ""),
54935
55055
  style: {
54936
55056
  display: "grid",
54937
55057
  gridTemplateColumns: gridColumns.join(" "),
@@ -54971,12 +55091,12 @@ const EventPanel = ({
54971
55091
  /* @__PURE__ */ jsxRuntimeExports.jsx(
54972
55092
  "div",
54973
55093
  {
54974
- className: clsx("text-style-secondary", styles$I.label),
55094
+ className: clsx("text-style-secondary", styles$J.label),
54975
55095
  onClick: toggleCollapse,
54976
55096
  children: collapsed ? text2 : ""
54977
55097
  }
54978
55098
  ),
54979
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$I.navs, children: isCollapsible && collapsibleContent && collapsed ? "" : filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
55099
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$J.navs, children: isCollapsible && collapsibleContent && collapsed ? "" : filteredArrChildren && filteredArrChildren.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
54980
55100
  EventNavs,
54981
55101
  {
54982
55102
  navs: filteredArrChildren.map((child, index) => {
@@ -55001,8 +55121,8 @@ const EventPanel = ({
55001
55121
  id: `event-panel-${eventNodeId}`,
55002
55122
  className: clsx(
55003
55123
  className2,
55004
- styles$I.card,
55005
- depth === 0 ? styles$I.root : void 0
55124
+ styles$J.card,
55125
+ depth === 0 ? styles$J.root : void 0
55006
55126
  ),
55007
55127
  children: [
55008
55128
  titleEl,
@@ -55011,8 +55131,8 @@ const EventPanel = ({
55011
55131
  {
55012
55132
  className: clsx(
55013
55133
  "tab-content",
55014
- styles$I.cardContent,
55015
- isCollapsible && collapsed && collapsibleContent ? styles$I.hidden : void 0
55134
+ styles$J.cardContent,
55135
+ isCollapsible && collapsed && collapsibleContent ? styles$J.hidden : void 0
55016
55136
  ),
55017
55137
  children: filteredArrChildren?.map((child, index) => {
55018
55138
  const id2 = pillId(index);
@@ -55032,7 +55152,7 @@ const EventPanel = ({
55032
55152
  isCollapsible && useBottomDongle ? /* @__PURE__ */ jsxRuntimeExports.jsxs(
55033
55153
  "div",
55034
55154
  {
55035
- className: clsx(styles$I.bottomDongle, "text-size-smallest"),
55155
+ className: clsx(styles$J.bottomDongle, "text-size-smallest"),
55036
55156
  onClick: toggleCollapse,
55037
55157
  children: [
55038
55158
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -55040,7 +55160,7 @@ const EventPanel = ({
55040
55160
  {
55041
55161
  className: clsx(
55042
55162
  collapsed ? ApplicationIcons.chevron.right : ApplicationIcons.chevron.down,
55043
- styles$I.dongleIcon
55163
+ styles$J.dongleIcon
55044
55164
  )
55045
55165
  }
55046
55166
  ),
@@ -55088,7 +55208,7 @@ const ErrorEventView = ({
55088
55208
  );
55089
55209
  };
55090
55210
  const panel = "_panel_vz394_1";
55091
- const styles$H = {
55211
+ const styles$I = {
55092
55212
  panel
55093
55213
  };
55094
55214
  const InfoEventView = ({
@@ -55103,12 +55223,12 @@ const InfoEventView = ({
55103
55223
  RenderedText,
55104
55224
  {
55105
55225
  markdown: event.data,
55106
- className: clsx(styles$H.panel, "text-size-base")
55226
+ className: clsx(styles$I.panel, "text-size-base")
55107
55227
  }
55108
55228
  )
55109
55229
  );
55110
55230
  } else {
55111
- panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$H.panel }));
55231
+ panels.push(/* @__PURE__ */ jsxRuntimeExports.jsx(JSONPanel, { data: event.data, className: styles$I.panel }));
55112
55232
  }
55113
55233
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
55114
55234
  EventPanel,
@@ -55148,7 +55268,7 @@ const InputEventView = ({
55148
55268
  );
55149
55269
  };
55150
55270
  const grid = "_grid_1eq5o_1";
55151
- const styles$G = {
55271
+ const styles$H = {
55152
55272
  grid
55153
55273
  };
55154
55274
  const LoggerEventView = ({
@@ -55163,7 +55283,7 @@ const LoggerEventView = ({
55163
55283
  className: className2,
55164
55284
  title: event.message.level,
55165
55285
  icon: ApplicationIcons.logging[event.message.level.toLowerCase()] || ApplicationIcons.info,
55166
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$G.grid), children: [
55286
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-base", styles$H.grid), children: [
55167
55287
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: obj !== void 0 && obj !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: obj }) : event.message.message }),
55168
55288
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("text-size-smaller", "text-style-secondary"), children: [
55169
55289
  event.message.filename,
@@ -55177,7 +55297,7 @@ const LoggerEventView = ({
55177
55297
  const container$b = "_container_1ww70_1";
55178
55298
  const titleRow = "_titleRow_1ww70_5";
55179
55299
  const title$1 = "_title_1ww70_5";
55180
- const styles$F = {
55300
+ const styles$G = {
55181
55301
  container: container$b,
55182
55302
  titleRow,
55183
55303
  title: title$1
@@ -55188,11 +55308,11 @@ const EventSection = ({
55188
55308
  copyContent,
55189
55309
  className: className2
55190
55310
  }) => {
55191
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$F.container, className2), children: [
55192
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$F.titleRow), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
55311
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$G.container, className2), children: [
55312
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$G.titleRow), children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
55193
55313
  "div",
55194
55314
  {
55195
- className: clsx("text-size-small", "text-style-label", styles$F.title),
55315
+ className: clsx("text-size-small", "text-style-label", styles$G.title),
55196
55316
  children: [
55197
55317
  title2,
55198
55318
  copyContent ? /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, { value: copyContent, ariaLabel: "Copy to clipboard" }) : null
@@ -55208,7 +55328,7 @@ const col1_3 = "_col1_3_45f60_12";
55208
55328
  const col3 = "_col3_45f60_16";
55209
55329
  const separator$2 = "_separator_45f60_20";
55210
55330
  const topMargin = "_topMargin_45f60_26";
55211
- const styles$E = {
55331
+ const styles$F = {
55212
55332
  wrapper,
55213
55333
  col2,
55214
55334
  col1_3,
@@ -55276,9 +55396,9 @@ const EventTimingPanel = ({
55276
55396
  });
55277
55397
  }
55278
55398
  }
55279
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$E.wrapper), children: rows.map((row2, idx) => {
55399
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-small", styles$F.wrapper), children: rows.map((row2, idx) => {
55280
55400
  if (row2.label === "---") {
55281
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.separator }, `$usage-sep-${idx}`);
55401
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$F.separator }, `$usage-sep-${idx}`);
55282
55402
  } else {
55283
55403
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
55284
55404
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -55287,13 +55407,13 @@ const EventTimingPanel = ({
55287
55407
  className: clsx(
55288
55408
  "text-style-label",
55289
55409
  "text-style-secondary",
55290
- row2.secondary ? styles$E.col2 : styles$E.col1_3,
55291
- row2.topMargin ? styles$E.topMargin : void 0
55410
+ row2.secondary ? styles$F.col2 : styles$F.col1_3,
55411
+ row2.topMargin ? styles$F.topMargin : void 0
55292
55412
  ),
55293
55413
  children: row2.label
55294
55414
  }
55295
55415
  ),
55296
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$E.col3, children: row2.value ? row2.value : "" })
55416
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$F.col3, children: row2.value ? row2.value : "" })
55297
55417
  ] }, `$usage-row-${idx}`);
55298
55418
  }
55299
55419
  }) });
@@ -55325,7 +55445,7 @@ const code$1 = "_code_e0l2n_22";
55325
55445
  const progress$1 = "_progress_e0l2n_34";
55326
55446
  const toolConfig = "_toolConfig_e0l2n_38";
55327
55447
  const toolChoice = "_toolChoice_e0l2n_46";
55328
- const styles$D = {
55448
+ const styles$E = {
55329
55449
  container: container$a,
55330
55450
  all,
55331
55451
  tableSelection,
@@ -55371,7 +55491,7 @@ const ModelEventView = ({
55371
55491
  subTitle: formatTiming(event.timestamp, event.working_start),
55372
55492
  icon: ApplicationIcons.model,
55373
55493
  children: [
55374
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$D.container, children: [
55494
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$E.container, children: [
55375
55495
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55376
55496
  ChatView,
55377
55497
  {
@@ -55382,20 +55502,20 @@ const ModelEventView = ({
55382
55502
  allowLinking: false
55383
55503
  }
55384
55504
  ),
55385
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$D.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
55505
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$E.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
55386
55506
  ] }),
55387
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$D.container, children: [
55388
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$D.all, children: [
55507
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "All", className: styles$E.container, children: [
55508
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$E.all, children: [
55389
55509
  Object.keys(entries2).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
55390
55510
  EventSection,
55391
55511
  {
55392
55512
  title: "Configuration",
55393
- className: styles$D.tableSelection,
55513
+ className: styles$E.tableSelection,
55394
55514
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(MetaDataGrid, { entries: entries2, plain: true })
55395
55515
  }
55396
55516
  ),
55397
- /* @__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 }),
55398
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$D.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55517
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Usage", className: styles$E.tableSelection, children: event.output.usage !== null ? /* @__PURE__ */ jsxRuntimeExports.jsx(ModelUsagePanel, { usage: event.output.usage }) : void 0 }),
55518
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Timing", className: styles$E.tableSelection, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55399
55519
  EventTimingPanel,
55400
55520
  {
55401
55521
  timestamp: event.timestamp,
@@ -55415,13 +55535,13 @@ const ModelEventView = ({
55415
55535
  }
55416
55536
  ) })
55417
55537
  ] }),
55418
- event.tools.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Tools", className: styles$D.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools, toolChoice: event.tool_choice }) }),
55538
+ event.tools.length > 1 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Tools", className: styles$E.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolsConfig, { tools: event.tools, toolChoice: event.tool_choice }) }),
55419
55539
  event.call ? /* @__PURE__ */ jsxRuntimeExports.jsx(
55420
55540
  APIView,
55421
55541
  {
55422
55542
  "data-name": "API",
55423
55543
  call: event.call,
55424
- className: styles$D.container
55544
+ className: styles$E.container
55425
55545
  }
55426
55546
  ) : ""
55427
55547
  ]
@@ -55449,11 +55569,11 @@ const APICodeCell = ({ id: id2, sourceCode }) => {
55449
55569
  if (!sourceCode) {
55450
55570
  return null;
55451
55571
  }
55452
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: sourceCodeRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$D.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55572
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: sourceCodeRef, className: clsx("model-call"), children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$E.codePre), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55453
55573
  "code",
55454
55574
  {
55455
55575
  id: id2,
55456
- className: clsx("language-json", styles$D.code, "text-size-small"),
55576
+ className: clsx("language-json", styles$E.code, "text-size-small"),
55457
55577
  children: sourceCode
55458
55578
  }
55459
55579
  ) }) });
@@ -55466,8 +55586,8 @@ const ToolsConfig = ({ tools: tools2, toolChoice: toolChoice2 }) => {
55466
55586
  ] }, `${tool2.name}-${idx}`);
55467
55587
  });
55468
55588
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
55469
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$D.toolConfig, "text-size-small"), children: toolEls }),
55470
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$D.toolChoice, "text-size-small"), children: [
55589
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$E.toolConfig, "text-size-small"), children: toolEls }),
55590
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$E.toolChoice, "text-size-small"), children: [
55471
55591
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Tool Choice" }),
55472
55592
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ToolChoiceView, { toolChoice: toolChoice2 }) })
55473
55593
  ] })
@@ -55496,7 +55616,7 @@ const code = "_code_1a3fk_5";
55496
55616
  const sample = "_sample_1a3fk_10";
55497
55617
  const section$1 = "_section_1a3fk_14";
55498
55618
  const metadata = "_metadata_1a3fk_21";
55499
- const styles$C = {
55619
+ const styles$D = {
55500
55620
  noMargin,
55501
55621
  code,
55502
55622
  sample,
@@ -55513,13 +55633,13 @@ const SampleInitEventView = ({
55513
55633
  if (event.sample.files && Object.keys(event.sample.files).length > 0) {
55514
55634
  sections.push(
55515
55635
  /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Files", children: Object.keys(event.sample.files).map((file) => {
55516
- return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$C.noMargin, children: file }, `sample-init-file-${file}`);
55636
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$D.noMargin, children: file }, `sample-init-file-${file}`);
55517
55637
  }) }, `event-${eventNode.id}`)
55518
55638
  );
55519
55639
  }
55520
55640
  if (event.sample.setup) {
55521
55641
  sections.push(
55522
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$C.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `${eventNode.id}-section-setup`)
55642
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Setup", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: styles$D.code, children: /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: "sourceCode", children: event.sample.setup }) }) }, `${eventNode.id}-section-setup`)
55523
55643
  );
55524
55644
  }
55525
55645
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -55532,7 +55652,7 @@ const SampleInitEventView = ({
55532
55652
  icon: ApplicationIcons.sample,
55533
55653
  subTitle: formatDateTime(new Date(event.timestamp)),
55534
55654
  children: [
55535
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$C.sample, children: [
55655
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Sample", className: styles$D.sample, children: [
55536
55656
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55537
55657
  ChatView,
55538
55658
  {
@@ -55548,7 +55668,7 @@ const SampleInitEventView = ({
55548
55668
  choice
55549
55669
  ] }, `$choice-{choice}`);
55550
55670
  }) : "",
55551
- sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$C.section, children: sections }) : "",
55671
+ sections.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$D.section, children: sections }) : "",
55552
55672
  event.sample.target ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Target", children: toArray(event.sample.target).map((target) => {
55553
55673
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-base"), children: target }, target);
55554
55674
  }) }) : void 0
@@ -55558,7 +55678,7 @@ const SampleInitEventView = ({
55558
55678
  MetaDataGrid,
55559
55679
  {
55560
55680
  "data-name": "Metadata",
55561
- className: styles$C.metadata,
55681
+ className: styles$D.metadata,
55562
55682
  entries: event.sample.metadata
55563
55683
  }
55564
55684
  ) : ""
@@ -55618,13 +55738,13 @@ const SampleLimitEventView = ({
55618
55738
  };
55619
55739
  const twoColumn = "_twoColumn_1irga_9";
55620
55740
  const exec = "_exec_1irga_15";
55621
- const result = "_result_1irga_19";
55741
+ const result$1 = "_result_1irga_19";
55622
55742
  const fileLabel = "_fileLabel_1irga_23";
55623
55743
  const wrapPre = "_wrapPre_1irga_28";
55624
- const styles$B = {
55744
+ const styles$C = {
55625
55745
  twoColumn,
55626
55746
  exec,
55627
- result,
55747
+ result: result$1,
55628
55748
  fileLabel,
55629
55749
  wrapPre
55630
55750
  };
@@ -55655,10 +55775,10 @@ const ExecView = ({ id: id2, event }) => {
55655
55775
  const input2 = event.input;
55656
55776
  const result2 = event.result;
55657
55777
  const output2 = event.output ? event.output.trim() : void 0;
55658
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$B.exec), children: [
55659
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$B.twoColumn), children: [
55660
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$B.wrapPre), children: cmd }),
55661
- /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$B.wrapPre), children: input2 !== null ? input2?.trim() : void 0 }),
55778
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$C.exec), children: [
55779
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Command`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$C.twoColumn), children: [
55780
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$C.wrapPre), children: cmd }),
55781
+ /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$C.wrapPre), children: input2 !== null ? input2?.trim() : void 0 }),
55662
55782
  options !== null && Object.keys(options).length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: `Options`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55663
55783
  MetaDataGrid,
55664
55784
  {
@@ -55675,7 +55795,7 @@ const ExecView = ({ id: id2, event }) => {
55675
55795
  entry: { name: "sandbox_output", value: output2 }
55676
55796
  }
55677
55797
  ) }) : void 0,
55678
- result2 !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$B.result, "text-size-base"), children: [
55798
+ result2 !== 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$C.result, "text-size-base"), children: [
55679
55799
  "(exited with code ",
55680
55800
  result2,
55681
55801
  ")"
@@ -55701,7 +55821,7 @@ const WriteFileView = ({ id: id2, event }) => {
55701
55821
  };
55702
55822
  const FileView = ({ id: id2, file, contents: contents2 }) => {
55703
55823
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
55704
- /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$B.fileLabel), children: file }) }),
55824
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "File", children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$C.fileLabel), children: file }) }),
55705
55825
  contents2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(EventSection, { title: "Contents", children: /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandablePanel, { id: `${id2}-file`, collapse: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { children: contents2 }) }) }) : void 0
55706
55826
  ] });
55707
55827
  };
@@ -55711,7 +55831,7 @@ const separator$1 = "_separator_io1r0_13";
55711
55831
  const unchanged = "_unchanged_io1r0_22";
55712
55832
  const section = "_section_io1r0_27";
55713
55833
  const spacer = "_spacer_io1r0_31";
55714
- const styles$A = {
55834
+ const styles$B = {
55715
55835
  container: container$9,
55716
55836
  wrappingContent: wrappingContent$1,
55717
55837
  separator: separator$1,
@@ -55722,7 +55842,7 @@ const styles$A = {
55722
55842
  const explanation$2 = "_explanation_1k2k0_1";
55723
55843
  const wrappingContent = "_wrappingContent_1k2k0_8";
55724
55844
  const separator = "_separator_1k2k0_13";
55725
- const styles$z = {
55845
+ const styles$A = {
55726
55846
  explanation: explanation$2,
55727
55847
  wrappingContent,
55728
55848
  separator
@@ -55744,29 +55864,29 @@ const ScoreEventView = ({
55744
55864
  icon: ApplicationIcons.scorer,
55745
55865
  collapsibleContent: true,
55746
55866
  children: [
55747
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$z.explanation), children: [
55867
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Explanation", className: clsx(styles$A.explanation), children: [
55748
55868
  event.target ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
55749
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
55869
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55750
55870
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Target" }),
55751
55871
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: resolvedTarget || "" }) })
55752
55872
  ] }) : "",
55753
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
55873
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55754
55874
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
55755
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.score.answer || "" }) }),
55756
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
55875
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.score.answer || "" }) }),
55876
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55757
55877
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
55758
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.score.explanation || "" }) }),
55759
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) }),
55878
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.score.explanation || "" }) }),
55879
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55760
55880
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Score" }),
55761
55881
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.score.value) }),
55762
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.separator) })
55882
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) })
55763
55883
  ] }),
55764
55884
  event.score.metadata ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Metadata", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55765
55885
  RecordTree,
55766
55886
  {
55767
55887
  id: `${eventNode.id}-score-metadata`,
55768
55888
  record: event.score.metadata,
55769
- className: styles$z.metadataTree,
55889
+ className: styles$A.metadataTree,
55770
55890
  defaultExpandLevel: 0
55771
55891
  }
55772
55892
  ) }) : void 0
@@ -55807,46 +55927,46 @@ const ScoreEditEventView = ({
55807
55927
  className: clsx(
55808
55928
  "text-style-label",
55809
55929
  "text-style-secondary",
55810
- styles$A.section
55930
+ styles$B.section
55811
55931
  ),
55812
55932
  children: "Updated Values"
55813
55933
  }
55814
55934
  ),
55815
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.container), children: [
55935
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$B.container), children: [
55816
55936
  event.edit.value ? /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
55817
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55937
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55818
55938
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Value" }),
55819
55939
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderScore(event.edit.value) })
55820
55940
  ] }) : "",
55821
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55941
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55822
55942
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Answer" }),
55823
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: event.edit.answer === kUnchangedSentinel ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$A.unchanged), children: "[unchanged]" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.answer || "" }) }),
55824
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55943
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.wrappingContent), children: event.edit.answer === kUnchangedSentinel ? /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: clsx(styles$B.unchanged), children: "[unchanged]" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.answer || "" }) }),
55944
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55825
55945
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Explanation" }),
55826
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.explanation || "" }) })
55946
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.explanation || "" }) })
55827
55947
  ] }),
55828
- event.edit.provenance ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$A.container), children: [
55948
+ event.edit.provenance ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$B.container), children: [
55829
55949
  /* @__PURE__ */ jsxRuntimeExports.jsx(
55830
55950
  "div",
55831
55951
  {
55832
55952
  className: clsx(
55833
55953
  "text-style-label",
55834
55954
  "text-style-secondary",
55835
- styles$A.section
55955
+ styles$B.section
55836
55956
  ),
55837
55957
  children: "Provenance"
55838
55958
  }
55839
55959
  ),
55840
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.spacer) }),
55841
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55960
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.spacer) }),
55961
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55842
55962
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Author" }),
55843
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.provenance.author }) }),
55844
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55963
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.provenance.author }) }),
55964
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55845
55965
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Reason" }),
55846
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.provenance.reason || "" }) }),
55847
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.separator) }),
55966
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(RenderedText, { markdown: event.edit.provenance.reason || "" }) }),
55967
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.separator) }),
55848
55968
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-style-label", children: "Time" }),
55849
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$A.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55969
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$B.wrappingContent), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
55850
55970
  RenderedText,
55851
55971
  {
55852
55972
  markdown: formatDateTime(new Date(event.edit.provenance.timestamp)) || ""
@@ -55858,7 +55978,7 @@ const ScoreEditEventView = ({
55858
55978
  {
55859
55979
  id: `${eventNode.id}-score-metadata`,
55860
55980
  record: event.edit.metadata || {},
55861
- className: styles$A.metadataTree,
55981
+ className: styles$B.metadataTree,
55862
55982
  defaultExpandLevel: 0
55863
55983
  }
55864
55984
  ) }) : void 0
@@ -63627,7 +63747,7 @@ const lightboxContent = "_lightboxContent_1mvg8_33";
63627
63747
  const lightboxButtonCloseWrapper = "_lightboxButtonCloseWrapper_1mvg8_45";
63628
63748
  const lightboxButtonClose = "_lightboxButtonClose_1mvg8_45";
63629
63749
  const lightboxPreviewButton = "_lightboxPreviewButton_1mvg8_63";
63630
- const styles$y = {
63750
+ const styles$z = {
63631
63751
  carouselThumbs,
63632
63752
  carouselThumb,
63633
63753
  carouselPlayIcon,
@@ -63696,12 +63816,12 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63696
63816
  [openLightbox]
63697
63817
  );
63698
63818
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx("lightbox-carousel-container"), children: [
63699
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.carouselThumbs), children: slides.map((slide, index) => {
63819
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.carouselThumbs), children: slides.map((slide, index) => {
63700
63820
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
63701
63821
  "div",
63702
63822
  {
63703
63823
  "data-index": index,
63704
- className: clsx(styles$y.carouselThumb),
63824
+ className: clsx(styles$z.carouselThumb),
63705
63825
  onClick: handleThumbClick,
63706
63826
  children: [
63707
63827
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: slide.label }),
@@ -63710,7 +63830,7 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63710
63830
  {
63711
63831
  className: clsx(
63712
63832
  ApplicationIcons.play,
63713
- styles$y.carouselPlayIcon
63833
+ styles$z.carouselPlayIcon
63714
63834
  )
63715
63835
  }
63716
63836
  ) })
@@ -63722,12 +63842,12 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63722
63842
  showOverlay && /* @__PURE__ */ jsxRuntimeExports.jsxs(
63723
63843
  "div",
63724
63844
  {
63725
- className: clsx(styles$y.lightboxOverlay, isOpen ? "open" : "closed"),
63845
+ className: clsx(styles$z.lightboxOverlay, isOpen ? "open" : "closed"),
63726
63846
  children: [
63727
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63847
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$z.lightboxButtonCloseWrapper), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
63728
63848
  "button",
63729
63849
  {
63730
- className: styles$y.lightboxButtonClose,
63850
+ className: styles$z.lightboxButtonClose,
63731
63851
  onClick: closeLightbox,
63732
63852
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.close })
63733
63853
  }
@@ -63735,7 +63855,7 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63735
63855
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
63736
63856
  "button",
63737
63857
  {
63738
- className: clsx(styles$y.lightboxPreviewButton, "prev"),
63858
+ className: clsx(styles$z.lightboxPreviewButton, "prev"),
63739
63859
  onClick: showPrev,
63740
63860
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.previous })
63741
63861
  }
@@ -63743,7 +63863,7 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63743
63863
  slides.length > 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
63744
63864
  "button",
63745
63865
  {
63746
- className: clsx(styles$y.lightboxPreviewButton, "next"),
63866
+ className: clsx(styles$z.lightboxPreviewButton, "next"),
63747
63867
  onClick: showNext,
63748
63868
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.next })
63749
63869
  }
@@ -63751,7 +63871,7 @@ const LightboxCarousel = ({ id: id2, slides }) => {
63751
63871
  /* @__PURE__ */ jsxRuntimeExports.jsx(
63752
63872
  "div",
63753
63873
  {
63754
- className: clsx(styles$y.lightboxContent, isOpen ? "open" : "closed"),
63874
+ className: clsx(styles$z.lightboxContent, isOpen ? "open" : "closed"),
63755
63875
  children: slides[currentIndex || 0]?.render()
63756
63876
  },
63757
63877
  `carousel-slide-${currentIndex}`
@@ -63862,7 +63982,7 @@ const extractSize = (value2, label2, defaultValue) => {
63862
63982
  const toolsGrid = "_toolsGrid_1qqm2_1";
63863
63983
  const tools = "_tools_1qqm2_1";
63864
63984
  const tool = "_tool_1qqm2_1";
63865
- const styles$x = {
63985
+ const styles$y = {
63866
63986
  toolsGrid,
63867
63987
  tools,
63868
63988
  tool
@@ -64035,7 +64155,7 @@ const renderTools = (changes, resolvedState) => {
64035
64155
  toolsInfo["Tools"] = /* @__PURE__ */ jsxRuntimeExports.jsx(Tools, { toolDefinitions: filtered });
64036
64156
  }
64037
64157
  }
64038
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$x.tools), children: Object.keys(toolsInfo).map((key2) => {
64158
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$y.tools), children: Object.keys(toolsInfo).map((key2) => {
64039
64159
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
64040
64160
  /* @__PURE__ */ jsxRuntimeExports.jsx(
64041
64161
  "div",
@@ -64090,7 +64210,7 @@ const StoreSpecificRenderableTypes = [
64090
64210
  human_baseline_session
64091
64211
  ];
64092
64212
  const Tools = ({ toolDefinitions }) => {
64093
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$x.toolsGrid, children: toolDefinitions.map((toolDefinition, idx) => {
64213
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$y.toolsGrid, children: toolDefinitions.map((toolDefinition, idx) => {
64094
64214
  const toolName = toolDefinition.name;
64095
64215
  const toolArgs = toolDefinition.parameters?.properties ? Object.keys(toolDefinition.parameters.properties) : [];
64096
64216
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -64105,11 +64225,11 @@ const Tools = ({ toolDefinitions }) => {
64105
64225
  };
64106
64226
  const Tool = ({ toolName, toolArgs }) => {
64107
64227
  const functionCall = toolArgs && toolArgs.length > 0 ? `${toolName}(${toolArgs.join(", ")})` : toolName;
64108
- return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$x.tool), children: functionCall });
64228
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { className: clsx("text-size-smallest", styles$y.tool), children: functionCall });
64109
64229
  };
64110
64230
  const diff = "_diff_eobja_1";
64111
64231
  const summary$2 = "_summary_eobja_6";
64112
- const styles$w = {
64232
+ const styles$x = {
64113
64233
  diff,
64114
64234
  summary: summary$2
64115
64235
  };
@@ -64155,14 +64275,14 @@ const StateEventView = ({
64155
64275
  text: !changePreview ? summary2 : void 0,
64156
64276
  collapsibleContent: true,
64157
64277
  children: [
64158
- changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$w.summary), children: changePreview }) : void 0,
64278
+ changePreview ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-name": "Summary", className: clsx(styles$x.summary), children: changePreview }) : void 0,
64159
64279
  /* @__PURE__ */ jsxRuntimeExports.jsx(
64160
64280
  StateDiffView,
64161
64281
  {
64162
64282
  before,
64163
64283
  after,
64164
64284
  "data-name": "Diff",
64165
- className: clsx(styles$w.diff)
64285
+ className: clsx(styles$x.diff)
64166
64286
  }
64167
64287
  )
64168
64288
  ]
@@ -64495,7 +64615,7 @@ const summary$1 = "_summary_ac4z2_1";
64495
64615
  const summaryRendered = "_summaryRendered_ac4z2_6";
64496
64616
  const subtaskSummary = "_subtaskSummary_ac4z2_10";
64497
64617
  const subtaskLabel = "_subtaskLabel_ac4z2_17";
64498
- const styles$v = {
64618
+ const styles$w = {
64499
64619
  summary: summary$1,
64500
64620
  summaryRendered,
64501
64621
  subtaskSummary,
@@ -64510,9 +64630,9 @@ const SubtaskEventView = ({
64510
64630
  const body = [];
64511
64631
  if (event.type === "fork") {
64512
64632
  body.push(
64513
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$v.summary), children: [
64633
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { title: "Summary", className: clsx(styles$w.summary), children: [
64514
64634
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label"), children: "Inputs" }),
64515
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$v.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) })
64635
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$w.summaryRendered), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: event.input }) })
64516
64636
  ] })
64517
64637
  );
64518
64638
  } else {
@@ -64548,12 +64668,12 @@ const SubtaskEventView = ({
64548
64668
  };
64549
64669
  const SubtaskSummary = ({ input: input2, result: result2 }) => {
64550
64670
  const output2 = typeof result2 === "object" ? result2 : { result: result2 };
64551
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$v.subtaskSummary), children: [
64671
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$w.subtaskSummary), children: [
64552
64672
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-size-small"), children: "Input" }),
64553
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$v.subtaskLabel) }),
64673
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-large", styles$w.subtaskLabel) }),
64554
64674
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-size-small"), children: "Output" }),
64555
64675
  input2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: input2 }) : void 0,
64556
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$v.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
64676
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-title-secondary", styles$w.subtaskLabel), children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: ApplicationIcons.arrows.right }) }),
64557
64677
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Rendered, { values: output2 }) })
64558
64678
  ] });
64559
64679
  };
@@ -64578,7 +64698,7 @@ const None = () => {
64578
64698
  const summary = "_summary_1qsnv_1";
64579
64699
  const approval = "_approval_1qsnv_6";
64580
64700
  const progress = "_progress_1qsnv_12";
64581
- const styles$u = {
64701
+ const styles$v = {
64582
64702
  summary,
64583
64703
  approval,
64584
64704
  progress
@@ -64617,7 +64737,7 @@ const ToolEventView = ({
64617
64737
  icon: ApplicationIcons.solvers.use_tools,
64618
64738
  childIds: children2.map((child) => child.id),
64619
64739
  collapseControl: "bottom",
64620
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$u.summary, children: [
64740
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-name": "Summary", className: styles$v.summary, children: [
64621
64741
  /* @__PURE__ */ jsxRuntimeExports.jsx(
64622
64742
  ToolCallView,
64623
64743
  {
@@ -64645,10 +64765,10 @@ const ToolEventView = ({
64645
64765
  ApprovalEventView,
64646
64766
  {
64647
64767
  eventNode: approvalNode,
64648
- className: styles$u.approval
64768
+ className: styles$v.approval
64649
64769
  }
64650
64770
  ) : "",
64651
- event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$u.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
64771
+ event.pending ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$v.progress), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PulsingDots, { subtle: false, size: "medium" }) }) : void 0
64652
64772
  ] })
64653
64773
  }
64654
64774
  );
@@ -64657,7 +64777,7 @@ const node = "_node_1r858_1";
64657
64777
  const attached = "_attached_1r858_5";
64658
64778
  const attachedParent = "_attachedParent_1r858_9";
64659
64779
  const attachedChild = "_attachedChild_1r858_16";
64660
- const styles$t = {
64780
+ const styles$u = {
64661
64781
  node,
64662
64782
  attached,
64663
64783
  attachedParent,
@@ -64707,23 +64827,23 @@ const TranscriptVirtualListComponent = ({
64707
64827
  );
64708
64828
  const renderRow = useCallback(
64709
64829
  (index, item2) => {
64710
- const paddingClass = index === 0 ? styles$t.first : void 0;
64830
+ const paddingClass = index === 0 ? styles$u.first : void 0;
64711
64831
  const previousIndex = index - 1;
64712
64832
  const nextIndex2 = index + 1;
64713
64833
  const previous = previousIndex > 0 && previousIndex <= eventNodes.length ? eventNodes[previousIndex] : void 0;
64714
64834
  const next = nextIndex2 < eventNodes.length ? eventNodes[nextIndex2] : void 0;
64715
64835
  const attached2 = item2.event.event === "tool" && (previous?.event.event === "tool" || previous?.event.event === "model");
64716
64836
  const attachedParent2 = item2.event.event === "model" && next?.event.event === "tool";
64717
- const attachedClass = attached2 ? styles$t.attached : void 0;
64718
- const attachedChildClass = attached2 ? styles$t.attachedChild : void 0;
64719
- const attachedParentClass = attachedParent2 ? styles$t.attachedParent : void 0;
64837
+ const attachedClass = attached2 ? styles$u.attached : void 0;
64838
+ const attachedChildClass = attached2 ? styles$u.attachedChild : void 0;
64839
+ const attachedParentClass = attachedParent2 ? styles$u.attachedParent : void 0;
64720
64840
  const hasToolEvents = hasToolEventsAtCurrentDepth(index);
64721
64841
  const context = hasToolEvents ? contextWithToolEvents : contextWithoutToolEvents;
64722
64842
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
64723
64843
  "div",
64724
64844
  {
64725
64845
  id: item2.id,
64726
- className: clsx(styles$t.node, paddingClass, attachedClass),
64846
+ className: clsx(styles$u.node, paddingClass, attachedClass),
64727
64847
  style: {
64728
64848
  paddingLeft: `${item2.depth <= 1 ? item2.depth * 0.7 : (0.7 + item2.depth - 1) * 1}em`,
64729
64849
  paddingRight: `${item2.depth === 0 ? void 0 : ".7em"} `
@@ -65333,13 +65453,13 @@ const TranscriptView = ({
65333
65453
  eventNodes: flattenedNodes,
65334
65454
  scrollRef,
65335
65455
  offsetTop: 10,
65336
- className: styles$M.listContainer,
65456
+ className: styles$N.listContainer,
65337
65457
  initialEventId
65338
65458
  }
65339
65459
  );
65340
65460
  };
65341
65461
  const container$8 = "_container_kyylo_1";
65342
- const styles$s = {
65462
+ const styles$t = {
65343
65463
  container: container$8
65344
65464
  };
65345
65465
  const InputPanel = ({ result: result2 }) => {
@@ -65348,7 +65468,7 @@ const InputPanel = ({ result: result2 }) => {
65348
65468
  const initialMessageId = searchParams.get("message");
65349
65469
  const initialEventId = searchParams.get("event");
65350
65470
  const highlightLabeled = useStore((state) => state.highlightLabeled);
65351
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: scrollRef, className: clsx(styles$s.container), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
65471
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: scrollRef, className: clsx(styles$t.container), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
65352
65472
  InputRenderer,
65353
65473
  {
65354
65474
  result: result2,
@@ -65612,6 +65732,23 @@ const Explanation = ({ result: result2 }) => {
65612
65732
  }
65613
65733
  );
65614
65734
  };
65735
+ const result = "_result_f18wg_1";
65736
+ const styles$s = {
65737
+ result,
65738
+ "true": "_true_f18wg_12",
65739
+ "false": "_false_f18wg_17"
65740
+ };
65741
+ const ValidationResult = ({ result: result2 }) => {
65742
+ if (typeof result2 === "boolean") {
65743
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { value: result2 });
65744
+ } else if (typeof result2 === "object") {
65745
+ const entries2 = Object.entries(result2);
65746
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$s.validationTable), children: entries2.map(([_key, value2]) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { value: value2 }) })) });
65747
+ }
65748
+ };
65749
+ const Result = ({ value: value2 }) => {
65750
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(value2 ? styles$s.true : styles$s.false, styles$s.result), children: value2 ? /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.check) }) : /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.x) }) });
65751
+ };
65615
65752
  const printArray = (arr, size = 50) => {
65616
65753
  const envelope = ["[", "]"];
65617
65754
  const ellipsis2 = "…";
@@ -65726,21 +65863,26 @@ function isArrayValue(result2) {
65726
65863
  function isObjectValue(result2) {
65727
65864
  return result2.valueType === "object";
65728
65865
  }
65729
- const boolean = "_boolean_xgip4_1";
65730
- const valueTable = "_valueTable_xgip4_24";
65731
- const inline = "_inline_xgip4_31";
65732
- const valueValue = "_valueValue_xgip4_31";
65733
- const value = "_value_xgip4_24";
65866
+ const boolean = "_boolean_1uivt_1";
65867
+ const valueTable = "_valueTable_1uivt_24";
65868
+ const inline = "_inline_1uivt_31";
65869
+ const valueValue = "_valueValue_1uivt_31";
65870
+ const value = "_value_1uivt_24";
65734
65871
  const styles$r = {
65735
65872
  boolean,
65736
- "true": "_true_xgip4_12",
65737
- "false": "_false_xgip4_18",
65873
+ "true": "_true_1uivt_12",
65874
+ "false": "_false_1uivt_18",
65738
65875
  valueTable,
65739
65876
  inline,
65740
65877
  valueValue,
65741
65878
  value
65742
65879
  };
65743
- const Value = ({ result: result2, style: style2 }) => {
65880
+ const Value = ({
65881
+ result: result2,
65882
+ style: style2,
65883
+ maxTableSize = 5,
65884
+ interactive = false
65885
+ }) => {
65744
65886
  const params = useParams();
65745
65887
  const buildUrl = useMemo(() => {
65746
65888
  if (!result2?.uuid) {
@@ -65771,11 +65913,17 @@ const Value = ({ result: result2, style: style2 }) => {
65771
65913
  } else if (isNullValue(result2)) {
65772
65914
  return /* @__PURE__ */ jsxRuntimeExports.jsx("code", { children: "null" });
65773
65915
  } else if (isArrayValue(result2)) {
65774
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("code", { children: [
65775
- "[Array($",
65776
- result2.value.length,
65777
- ")]"
65778
- ] });
65916
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
65917
+ ValueList2,
65918
+ {
65919
+ value: result2.value,
65920
+ result: result2,
65921
+ buildUrl,
65922
+ style: style2,
65923
+ maxListSize: maxTableSize,
65924
+ interactive
65925
+ }
65926
+ );
65779
65927
  } else if (isObjectValue(result2)) {
65780
65928
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
65781
65929
  ValueTable,
@@ -65783,17 +65931,58 @@ const Value = ({ result: result2, style: style2 }) => {
65783
65931
  value: result2.value,
65784
65932
  result: result2,
65785
65933
  buildUrl,
65786
- style: style2
65934
+ style: style2,
65935
+ maxTableSize,
65936
+ interactive
65787
65937
  }
65788
65938
  );
65789
65939
  } else {
65790
65940
  return "Unknown value type";
65791
65941
  }
65792
65942
  };
65793
- const ValueTable = ({ value: value2, result: result2, buildUrl, style: style2 }) => {
65794
- const maxRows = 5;
65943
+ const ValueList2 = ({ value: value2, result: result2, maxListSize, interactive, buildUrl, style: style2 }) => {
65944
+ const itemsToDisplay = value2.slice(0, maxListSize);
65945
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
65946
+ "div",
65947
+ {
65948
+ className: clsx(
65949
+ styles$r.valueTable,
65950
+ style2 === "inline" ? styles$r.inline : styles$r.block
65951
+ ),
65952
+ children: itemsToDisplay.map((item2, index) => {
65953
+ const displayValue = renderValue(
65954
+ index,
65955
+ item2,
65956
+ result2,
65957
+ buildUrl,
65958
+ interactive
65959
+ );
65960
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
65961
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
65962
+ "div",
65963
+ {
65964
+ className: clsx(
65965
+ styles$r.valueKey,
65966
+ "text-style-label",
65967
+ "text-style-secondary",
65968
+ "text-size-smallest"
65969
+ ),
65970
+ children: [
65971
+ "[",
65972
+ index,
65973
+ "]"
65974
+ ]
65975
+ }
65976
+ ),
65977
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$r.valueValue), children: displayValue })
65978
+ ] }, `value-table-row-${index}`);
65979
+ })
65980
+ }
65981
+ );
65982
+ };
65983
+ const ValueTable = ({ value: value2, result: result2, maxTableSize, interactive, buildUrl, style: style2 }) => {
65795
65984
  const keys2 = Object.keys(value2);
65796
- const keysToDisplay = keys2.slice(0, maxRows);
65985
+ const keysToDisplay = keys2.slice(0, maxTableSize);
65797
65986
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
65798
65987
  "div",
65799
65988
  {
@@ -65801,11 +65990,13 @@ const ValueTable = ({ value: value2, result: result2, buildUrl, style: style2 })
65801
65990
  styles$r.valueTable,
65802
65991
  style2 === "inline" ? styles$r.inline : styles$r.block
65803
65992
  ),
65804
- children: keysToDisplay.map((key2) => {
65993
+ children: keysToDisplay.map((key2, index) => {
65805
65994
  const displayValue = renderValue(
65995
+ index,
65806
65996
  value2[key2],
65807
65997
  result2,
65808
- buildUrl
65998
+ buildUrl,
65999
+ interactive
65809
66000
  );
65810
66001
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
65811
66002
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -65826,7 +66017,7 @@ const ValueTable = ({ value: value2, result: result2, buildUrl, style: style2 })
65826
66017
  }
65827
66018
  );
65828
66019
  };
65829
- const renderValue = (val, result2, buildUrl) => {
66020
+ const renderValue = (index, val, result2, buildUrl, interactive) => {
65830
66021
  if (typeof val === "string") {
65831
66022
  const refs = toMarkdownRefs(
65832
66023
  result2,
@@ -65848,16 +66039,28 @@ const renderValue = (val, result2, buildUrl) => {
65848
66039
  } else if (Array.isArray(val)) {
65849
66040
  return printArray(val, 25);
65850
66041
  } else if (typeof val === "object") {
65851
- return printObject(val, 35);
66042
+ return !interactive ? printObject(val, 35) : /* @__PURE__ */ jsxRuntimeExports.jsx(
66043
+ RecordTree,
66044
+ {
66045
+ id: `value-record-${result2.uuid}-${index}`,
66046
+ record: val
66047
+ }
66048
+ );
65852
66049
  } else {
65853
66050
  return "Unknown value type";
65854
66051
  }
65855
66052
  };
65856
- const container$7 = "_container_1cyb4_1";
65857
- const explanation$1 = "_explanation_1cyb4_9";
66053
+ const container$7 = "_container_15a30_1";
66054
+ const explanation$1 = "_explanation_15a30_9";
66055
+ const values = "_values_15a30_20";
66056
+ const validation = "_validation_15a30_26";
66057
+ const validationLabel = "_validationLabel_15a30_32";
65858
66058
  const styles$q = {
65859
66059
  container: container$7,
65860
- explanation: explanation$1
66060
+ explanation: explanation$1,
66061
+ values,
66062
+ validation,
66063
+ validationLabel
65861
66064
  };
65862
66065
  const ResultPanel = ({ result: result2 }) => {
65863
66066
  const messages2 = useMemo(() => {
@@ -65879,12 +66082,40 @@ const ResultPanel = ({ result: result2 }) => {
65879
66082
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: result2.label })
65880
66083
  ] }),
65881
66084
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Value" }),
65882
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: result2.valueType === "object" ? /* @__PURE__ */ jsxRuntimeExports.jsx(
65883
- MetaDataGrid,
66085
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
66086
+ "div",
65884
66087
  {
65885
- entries: result2.value
66088
+ className: clsx(
66089
+ result2.validationResult !== void 0 ? styles$q.values : void 0
66090
+ ),
66091
+ children: [
66092
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
66093
+ Value,
66094
+ {
66095
+ result: result2,
66096
+ style: "block",
66097
+ maxTableSize: 1e3,
66098
+ interactive: true
66099
+ }
66100
+ ),
66101
+ result2.validationResult !== void 0 ? /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$q.validation), children: [
66102
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
66103
+ "div",
66104
+ {
66105
+ className: clsx(
66106
+ "text-style-label",
66107
+ "text-style-secondary",
66108
+ "text-size-smallest",
66109
+ styles$q.validationLabel
66110
+ ),
66111
+ children: "Validation"
66112
+ }
66113
+ ),
66114
+ /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationResult, { result: result2.validationResult })
66115
+ ] }) : void 0
66116
+ ]
65886
66117
  }
65887
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(Value, { result: result2, style: "block" }) }),
66118
+ ),
65888
66119
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Explanation" }),
65889
66120
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Explanation, { result: result2 }) }),
65890
66121
  result2.metadata && Object.keys(result2.metadata).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -71159,14 +71390,14 @@ var UserComponentFactory = class extends BeanStub {
71159
71390
  jsComp = this.agCompUtils?.adaptFunction(type, jsComp);
71160
71391
  }
71161
71392
  if (!jsComp && !fwComp) {
71162
- const { validation } = this.beans;
71393
+ const { validation: validation2 } = this.beans;
71163
71394
  if (mandatory && (compName !== defaultName || !defaultName)) {
71164
71395
  if (compName) {
71165
- if (!validation?.isProvidedUserComp(compName)) {
71396
+ if (!validation2?.isProvidedUserComp(compName)) {
71166
71397
  _error(50, { compName });
71167
71398
  }
71168
71399
  } else if (defaultName) {
71169
- if (!validation) {
71400
+ if (!validation2) {
71170
71401
  _error(260, {
71171
71402
  ...this.gos.getModuleErrorParams(),
71172
71403
  propName: name2,
@@ -71176,7 +71407,7 @@ var UserComponentFactory = class extends BeanStub {
71176
71407
  } else {
71177
71408
  _error(216, { name: name2 });
71178
71409
  }
71179
- } else if (defaultName && !validation) {
71410
+ } else if (defaultName && !validation2) {
71180
71411
  _error(146, { comp: defaultName });
71181
71412
  }
71182
71413
  return;
@@ -95130,10 +95361,10 @@ var GridOptionsService = class extends BeanStub {
95130
95361
  }) {
95131
95362
  const changeSet = { id: changeSetId++, properties: [] };
95132
95363
  const events = [];
95133
- const { gridOptions, validation } = this;
95364
+ const { gridOptions, validation: validation2 } = this;
95134
95365
  for (const key2 of Object.keys(options)) {
95135
95366
  const value2 = GlobalGridOptions.applyGlobalGridOption(key2, options[key2]);
95136
- validation?.warnOnInitialPropertyUpdate(source2, key2);
95367
+ validation2?.warnOnInitialPropertyUpdate(source2, key2);
95137
95368
  const shouldForce = force || typeof value2 === "object" && source2 === "api";
95138
95369
  const previousValue = gridOptions[key2];
95139
95370
  if (shouldForce || previousValue !== value2) {
@@ -96465,12 +96696,12 @@ var EditCellValidationModel = class {
96465
96696
  }
96466
96697
  return !!this.getCellValidation(position);
96467
96698
  }
96468
- setCellValidation(position, validation) {
96699
+ setCellValidation(position, validation2) {
96469
96700
  const { rowNode, column: column2 } = position;
96470
96701
  if (!this.cellValidations.has(rowNode)) {
96471
96702
  this.cellValidations.set(rowNode, /* @__PURE__ */ new Map());
96472
96703
  }
96473
- this.cellValidations.get(rowNode).set(column2, validation);
96704
+ this.cellValidations.get(rowNode).set(column2, validation2);
96474
96705
  }
96475
96706
  clearCellValidation(position) {
96476
96707
  const { rowNode, column: column2 } = position;
@@ -112409,8 +112640,8 @@ var BaseEditStrategy = class extends BeanStub {
112409
112640
  const results = { all: [], pass: [], fail: [] };
112410
112641
  for (const cell2 of editingCells) {
112411
112642
  results.all.push(cell2);
112412
- const validation = this.model.getCellValidationModel().getCellValidation(cell2);
112413
- if ((validation?.errorMessages?.length ?? 0) > 0) {
112643
+ const validation2 = this.model.getCellValidationModel().getCellValidation(cell2);
112644
+ if ((validation2?.errorMessages?.length ?? 0) > 0) {
112414
112645
  results.fail.push(cell2);
112415
112646
  continue;
112416
112647
  }
@@ -123815,6 +124046,28 @@ const ScanInfo = () => {
123815
124046
  ] });
123816
124047
  };
123817
124048
  const ScanInfoCard = ({ selectedStatus, className: className2 }) => {
124049
+ const record = {
124050
+ ID: selectedStatus.spec.scan_id,
124051
+ Name: selectedStatus.spec.scan_name
124052
+ };
124053
+ if (selectedStatus.spec.scan_args) {
124054
+ record["Args"] = selectedStatus.spec.scan_args;
124055
+ }
124056
+ if (selectedStatus.spec.scan_file) {
124057
+ record["Source File"] = selectedStatus.spec.scan_file;
124058
+ }
124059
+ if (selectedStatus.spec.revision?.origin) {
124060
+ record["Origin"] = selectedStatus.spec.revision?.origin;
124061
+ }
124062
+ if (selectedStatus.spec.revision?.commit) {
124063
+ record["Commit"] = selectedStatus.spec.revision?.commit;
124064
+ }
124065
+ if (selectedStatus.spec.packages) {
124066
+ record["Packages"] = selectedStatus.spec.packages;
124067
+ }
124068
+ if (selectedStatus.spec.options) {
124069
+ record["Options"] = selectedStatus.spec.options;
124070
+ }
123818
124071
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
123819
124072
  InfoCard,
123820
124073
  {
@@ -123824,17 +124077,7 @@ const ScanInfoCard = ({ selectedStatus, className: className2 }) => {
123824
124077
  MetaDataGrid,
123825
124078
  {
123826
124079
  className: "text-size-small",
123827
- entries: {
123828
- ID: selectedStatus.spec.scan_id,
123829
- Name: selectedStatus.spec.scan_name,
123830
- Args: selectedStatus.spec.scan_args,
123831
- "Source File": selectedStatus.spec.scan_file,
123832
- Origin: selectedStatus.spec.revision.origin,
123833
- Commit: selectedStatus.spec.revision.commit,
123834
- Packages: selectedStatus.spec.packages,
123835
- Options: selectedStatus.spec.options,
123836
- Timestamp: formatDateTime(new Date(selectedStatus.spec.timestamp))
123837
- }
124080
+ entries: record
123838
124081
  },
123839
124082
  `plan-md-task`
123840
124083
  )
@@ -123845,7 +124088,7 @@ const ScanMetadataCard = ({
123845
124088
  selectedStatus,
123846
124089
  className: className2
123847
124090
  }) => {
123848
- if (Object.keys(selectedStatus.spec.metadata).length === 0) {
124091
+ if (!selectedStatus.spec.metadata || Object.keys(selectedStatus.spec.metadata).length === 0) {
123849
124092
  return null;
123850
124093
  }
123851
124094
  return /* @__PURE__ */ jsxRuntimeExports.jsx(InfoCard, { title: "Metadata", className: className2, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RecordTree, { id: "scan-metadata", record: selectedStatus.spec.metadata }) });
@@ -123854,7 +124097,7 @@ const TranscriptsInfoCard = ({
123854
124097
  selectedStatus,
123855
124098
  className: className2
123856
124099
  }) => {
123857
- const fieldsDict = selectedStatus.spec.transcripts.fields.reduce(
124100
+ const fieldsDict = selectedStatus.spec.transcripts?.fields.reduce(
123858
124101
  (acc, curr) => {
123859
124102
  const name2 = curr["name"];
123860
124103
  const type = curr["type"];
@@ -123870,8 +124113,8 @@ const TranscriptsInfoCard = ({
123870
124113
  {
123871
124114
  className: "text-size-small",
123872
124115
  entries: {
123873
- Type: selectedStatus.spec.transcripts.type,
123874
- Count: selectedStatus.spec.transcripts.count,
124116
+ Type: selectedStatus.spec.transcripts?.type,
124117
+ Count: selectedStatus.spec.transcripts?.count,
123875
124118
  Fields: fieldsDict
123876
124119
  }
123877
124120
  },
@@ -123899,6 +124142,22 @@ const InfoCard = ({ title: title2, className: className2, children: children2 })
123899
124142
  /* @__PURE__ */ jsxRuntimeExports.jsx(CardBody, { children: children2 })
123900
124143
  ] });
123901
124144
  };
124145
+ const ScanDataframeWrapTextButton = () => {
124146
+ const wrapText = useStore((state) => state.dataframeWrapText);
124147
+ const setWrapText = useStore((state) => state.setDataframeWrapText);
124148
+ const toggleWrapText = useCallback(() => {
124149
+ setWrapText(!wrapText);
124150
+ }, [wrapText, setWrapText]);
124151
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
124152
+ ToolButton,
124153
+ {
124154
+ icon: ApplicationIcons.wrap,
124155
+ label: "Wrap Text",
124156
+ onClick: toggleWrapText,
124157
+ latched: wrapText
124158
+ }
124159
+ );
124160
+ };
123902
124161
  const flex$1 = "_flex_1kye9_1";
123903
124162
  const label$1 = "_label_1kye9_5";
123904
124163
  const styles$e = {
@@ -123971,7 +124230,8 @@ const ScanResultsGroup = ({
123971
124230
  const groupByOpts = [
123972
124231
  { label: "Source", value: "source" },
123973
124232
  { label: "Label", value: "label" },
123974
- { label: "Id", value: "id" }
124233
+ { label: "Id", value: "id" },
124234
+ { label: "Epoch", value: "epoch" }
123975
124235
  ].filter((opt2) => options.includes(toVal(opt2.value)));
123976
124236
  if (groupByOpts.length === 0) {
123977
124237
  return null;
@@ -124013,11 +124273,13 @@ const toVal = (v) => {
124013
124273
  return "label";
124014
124274
  } else if (v === "id") {
124015
124275
  return "id";
124276
+ } else if (v === "epoch") {
124277
+ return "epoch";
124016
124278
  } else {
124017
124279
  return "none";
124018
124280
  }
124019
124281
  };
124020
- const gridWrapper = "_gridWrapper_yeano_1";
124282
+ const gridWrapper = "_gridWrapper_bykj9_1";
124021
124283
  const styles$c = {
124022
124284
  gridWrapper
124023
124285
  };
@@ -124027,8 +124289,11 @@ const DataframeView = ({
124027
124289
  columnTable,
124028
124290
  sortedColumns,
124029
124291
  onRowDoubleClicked,
124292
+ onVisibleRowCountChanged,
124030
124293
  options,
124031
- enableKeyboardNavigation = true
124294
+ enableKeyboardNavigation = true,
124295
+ showRowNumbers = false,
124296
+ wrapText = false
124032
124297
  }) => {
124033
124298
  const selectedDataframeRow = useStore((state) => state.selectedResultRow) || 0;
124034
124299
  const setSelectedDataframeRow = useStore(
@@ -124042,7 +124307,7 @@ const DataframeView = ({
124042
124307
  }, [gridStates]);
124043
124308
  const { columnDefs, rowData } = useMemo(() => {
124044
124309
  const columnNames = sortedColumns || columnTable?.columnNames() || [];
124045
- const columnDefs2 = columnTable ? columnNames.map((name2) => {
124310
+ const dataColumnDefs = columnTable ? columnNames.map((name2) => {
124046
124311
  const col = columnTable.column(name2);
124047
124312
  if (!col) {
124048
124313
  return void 0;
@@ -124064,15 +124329,55 @@ const DataframeView = ({
124064
124329
  filter: true,
124065
124330
  resizable: true,
124066
124331
  tooltipField: name2,
124067
- maxWidth: 400,
124332
+ maxWidth: 800,
124068
124333
  cellDataType: typeof sampleValue === "boolean" ? false : void 0,
124069
124334
  hide: !columnNames?.includes(name2) || false,
124070
- valueFormatter
124335
+ valueFormatter,
124336
+ wrapText,
124337
+ autoHeight: wrapText
124071
124338
  };
124072
124339
  }).filter((c2) => c2 !== void 0) : [];
124340
+ const columnDefs2 = showRowNumbers ? [
124341
+ {
124342
+ headerName: "",
124343
+ valueGetter: (params) => {
124344
+ return params.node?.rowIndex !== void 0 && params.node?.rowIndex !== null ? params.node.rowIndex + 1 : "";
124345
+ },
124346
+ sortable: false,
124347
+ filter: false,
124348
+ resizable: false,
124349
+ width: 60,
124350
+ maxWidth: 60,
124351
+ minWidth: 60,
124352
+ pinned: "left",
124353
+ suppressMovable: true,
124354
+ cellClass: "row-number-cell",
124355
+ cellStyle: {
124356
+ textAlign: "right",
124357
+ paddingRight: "12px"
124358
+ },
124359
+ onCellClicked: (params) => {
124360
+ if (params.data && onRowDoubleClicked) {
124361
+ if (params.rowIndex !== null && params.rowIndex !== void 0) {
124362
+ setSelectedDataframeRow(params.rowIndex);
124363
+ }
124364
+ onRowDoubleClicked(params.data);
124365
+ }
124366
+ }
124367
+ },
124368
+ ...dataColumnDefs
124369
+ ] : dataColumnDefs;
124073
124370
  const rowData2 = columnTable?.objects();
124074
124371
  return { columnDefs: columnDefs2, rowData: rowData2 };
124075
- }, [columnTable, sortedColumns, options]);
124372
+ }, [
124373
+ columnTable,
124374
+ sortedColumns,
124375
+ options,
124376
+ showRowNumbers,
124377
+ wrapText,
124378
+ onRowDoubleClicked,
124379
+ setSelectedDataframeRow
124380
+ ]);
124076
124381
  const gridRef = useRef(null);
124077
124382
  useEffect(() => {
124078
124383
  if (gridRef.current?.api && selectedDataframeRow >= 0) {
@@ -124150,6 +124455,13 @@ const DataframeView = ({
124150
124455
  handlePrevious,
124151
124456
  handleEnter
124152
124457
  ]);
124458
+ const updateVisibleRowCount = useCallback(
124459
+ (api) => {
124460
+ const displayedRowCount = api.getDisplayedRowCount();
124461
+ onVisibleRowCountChanged?.(displayedRowCount);
124462
+ },
124463
+ [onVisibleRowCountChanged]
124464
+ );
124153
124465
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$c.gridWrapper, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
124154
124466
  AgGridReact,
124155
124467
  {
@@ -124168,9 +124480,16 @@ const DataframeView = ({
124168
124480
  theme: themeBalham,
124169
124481
  enableCellTextSelection: true,
124170
124482
  initialState: gridState,
124483
+ onFirstDataRendered: (e) => {
124484
+ e.api.sizeColumnsToFit();
124485
+ updateVisibleRowCount(e.api);
124486
+ },
124171
124487
  onStateUpdated: (e) => {
124172
124488
  setGridState(GRID_STATE_NAME, e.state);
124173
124489
  },
124490
+ onFilterChanged: (e) => {
124491
+ updateVisibleRowCount(e.api);
124492
+ },
124174
124493
  autoSizeStrategy: {
124175
124494
  type: "fitCellContents"
124176
124495
  },
@@ -124197,6 +124516,7 @@ const ScanResultsHeader = ({
124197
124516
  const hasExplanation = gridDescriptor.columns.includes("explanation");
124198
124517
  const hasLabel = gridDescriptor.columns.includes("label");
124199
124518
  const hasError = gridDescriptor.columns.includes("error");
124519
+ const hasValidations = gridDescriptor.columns.includes("validations");
124200
124520
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
124201
124521
  "div",
124202
124522
  {
@@ -124213,6 +124533,7 @@ const ScanResultsHeader = ({
124213
124533
  hasExplanation && /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeader, { label: "Explanation" }),
124214
124534
  hasLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeader, { label: "Label" }),
124215
124535
  /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeader, { label: "Value", className: clsx(styles$b.value) }),
124536
+ hasValidations && /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeader, { label: "Validation" }),
124216
124537
  hasError && /* @__PURE__ */ jsxRuntimeExports.jsx(ColumnHeader, { label: "Error" })
124217
124538
  ]
124218
124539
  }
@@ -124356,6 +124677,7 @@ const ScanResultsRowComponent = ({
124356
124677
  const hasExplanation = gridDescriptor.columns.includes("explanation");
124357
124678
  const hasLabel = gridDescriptor.columns.includes("label");
124358
124679
  const hasErrors = gridDescriptor.columns.includes("error");
124680
+ const hasValidations = gridDescriptor.columns.includes("validations");
124359
124681
  const grid2 = /* @__PURE__ */ jsxRuntimeExports.jsxs(
124360
124682
  "div",
124361
124683
  {
@@ -124374,8 +124696,20 @@ const ScanResultsRowComponent = ({
124374
124696
  children: [
124375
124697
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$6.id, "text-size-smaller"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Identifier, { result: entry2 }) }),
124376
124698
  hasExplanation && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$6.explanation, "text-size-smaller"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Explanation, { result: entry2 }) }),
124377
- hasLabel && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$6.label, "text-size-smallest"), children: entry2.label || /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-style-secondary"), children: "—" }) }),
124699
+ hasLabel && /* @__PURE__ */ jsxRuntimeExports.jsx(
124700
+ "div",
124701
+ {
124702
+ className: clsx(
124703
+ styles$6.label,
124704
+ "text-size-smallest",
124705
+ "text-style-label",
124706
+ "text-style-secondary"
124707
+ ),
124708
+ children: entry2.label || /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: clsx("text-style-secondary"), children: "—" })
124709
+ }
124710
+ ),
124378
124711
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$6.value, "text-size-smaller"), children: !entry2.scanError && /* @__PURE__ */ jsxRuntimeExports.jsx(Value, { result: entry2, style: "inline" }) }),
124712
+ hasValidations && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-size-smaller"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationResult, { result: entry2.validationResult }) }),
124379
124713
  hasErrors && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$6.error, "text-size-smallest"), children: entry2.scanError && /* @__PURE__ */ jsxRuntimeExports.jsx(
124380
124714
  Error$1,
124381
124715
  {
@@ -124411,6 +124745,9 @@ const ScanResultsList = ({
124411
124745
  const setVisibleScannerResults = useStore(
124412
124746
  (state) => state.setVisibleScannerResults
124413
124747
  );
124748
+ const setVisibleScannerResultsCount = useStore(
124749
+ (state) => state.setVisibleScannerResultsCount
124750
+ );
124414
124751
  const setSelectedScanResult = useStore(
124415
124752
  (state) => state.setSelectedScanResult
124416
124753
  );
@@ -124463,16 +124800,22 @@ const ScanResultsList = ({
124463
124800
  }
124464
124801
  const groups = /* @__PURE__ */ new Map();
124465
124802
  for (const item2 of filteredSummaries) {
124466
- const groupKey = groupResultsBy === "source" ? basename(resultLog(item2) || "") || "Unknown" : groupResultsBy === "label" ? item2.label || "Unlabeled" : resultIdentifierStr(item2) || "Unknown";
124803
+ const groupKey = groupResultsBy === "source" ? basename(resultLog(item2) || "") || "Unknown" : groupResultsBy === "label" ? item2.label || "Unlabeled" : groupResultsBy === "epoch" ? item2.transcriptMetadata.epoch : resultIdentifierStr(item2) || "Unknown";
124467
124804
  if (!groups.has(groupKey)) {
124468
124805
  groups.set(groupKey, []);
124469
124806
  }
124470
124807
  groups.get(groupKey)?.push(item2);
124471
124808
  }
124472
- const sortedGroupKeys = Array.from(groups.keys()).sort();
124809
+ const sortedGroupKeys = Array.from(groups.keys()).sort((a2, b) => {
124810
+ if (typeof a2 === "number" && typeof b === "number") {
124811
+ return a2 - b;
124812
+ }
124813
+ return String(a2).localeCompare(String(b));
124814
+ });
124473
124815
  const result2 = [];
124474
124816
  for (const groupKey of sortedGroupKeys) {
124475
- result2.push({ type: "group", label: groupKey });
124817
+ const label2 = groupResultsBy === "epoch" ? `Epoch ${groupKey}` : String(groupKey);
124818
+ result2.push({ type: "group", label: label2 });
124476
124819
  result2.push(...groups.get(groupKey) || []);
124477
124820
  }
124478
124821
  return result2;
@@ -124571,7 +124914,12 @@ const ScanResultsList = ({
124571
124914
  }, [filteredSummaries, selectedScanResult, setSelectedScanResult]);
124572
124915
  useEffect(() => {
124573
124916
  setVisibleScannerResults(filteredSummaries);
124574
- }, [filteredSummaries, setVisibleScannerResults]);
124917
+ setVisibleScannerResultsCount(filteredSummaries.length);
124918
+ }, [
124919
+ filteredSummaries,
124920
+ setVisibleScannerResults,
124921
+ setVisibleScannerResultsCount
124922
+ ]);
124575
124923
  const selectedItemIndex = useMemo(() => {
124576
124924
  if (selectedScanResult) {
124577
124925
  const selectedIndex = filteredSummaries.findIndex(
@@ -124670,6 +125018,12 @@ const sortByColumns = (a2, b, sortColumns2) => {
124670
125018
  comparison = errorA.localeCompare(errorB);
124671
125019
  break;
124672
125020
  }
125021
+ case "validation": {
125022
+ const validationA = a2.validationResult ? 1 : 0;
125023
+ const validationB = b.validationResult ? 1 : 0;
125024
+ comparison = validationA - validationB;
125025
+ break;
125026
+ }
124673
125027
  default:
124674
125028
  continue;
124675
125029
  }
@@ -124701,13 +125055,27 @@ const optimalColumnLayout = (scannerSummaries) => {
124701
125055
  return Math.max(max2, resultIdentifier(s).id.length);
124702
125056
  }, 0);
124703
125057
  gridColParts.push(
124704
- `minmax(${Math.min(Math.max(maxlabelLen * 4, 50), 250)}px, 1fr)`
125058
+ `minmax(${Math.min(Math.max(maxlabelLen * 5, 75), 250)}px, 1fr)`
124705
125059
  );
124706
125060
  }
124707
125061
  columns2.push("value");
124708
125062
  const hasValueObjs = scannerSummaries.some((s) => s.valueType === "object");
124709
125063
  if (hasValueObjs) {
124710
- gridColParts.push("5fr");
125064
+ const obj = scannerSummaries[0]?.value;
125065
+ if (obj && typeof obj === "object" && !Array.isArray(obj)) {
125066
+ const maxKeyLen = Object.keys(obj).reduce((max2, key2) => {
125067
+ return Math.max(max2, key2.length);
125068
+ }, 0);
125069
+ const maxValueLen = Object.values(obj).reduce((max2, val) => {
125070
+ const valStr = val !== void 0 && val !== null ? String(val) : "";
125071
+ return Math.max(max2, valStr.length);
125072
+ }, 0);
125073
+ gridColParts.push(
125074
+ `minmax(${Math.min(Math.max((maxKeyLen + maxValueLen) * 10, 135), 400)}px, 2fr)`
125075
+ );
125076
+ } else {
125077
+ gridColParts.push("3fr");
125078
+ }
124711
125079
  } else {
124712
125080
  const maxValueLen = scannerSummaries.reduce((max2, s) => {
124713
125081
  if (s.valueType === "array") {
@@ -124725,6 +125093,13 @@ const optimalColumnLayout = (scannerSummaries) => {
124725
125093
  `minmax(${Math.min(Math.max(maxValueLen * 4, 50), 300)}px, 1fr)`
124726
125094
  );
124727
125095
  }
125096
+ const hasValidations = scannerSummaries.some(
125097
+ (s) => s.validationResult !== void 0
125098
+ );
125099
+ if (hasValidations) {
125100
+ columns2.push("validations");
125101
+ gridColParts.push("1fr");
125102
+ }
124728
125103
  const hasErrors = scannerSummaries.some((s) => !!s.scanError);
124729
125104
  if (hasErrors) {
124730
125105
  const maxErrorLen = scannerSummaries.reduce((max2, s) => {
@@ -124765,6 +125140,10 @@ const ScanResultsBody = () => {
124765
125140
  const isLoading = useStore((state) => state.loading);
124766
125141
  const hasScanner = (columnTable?.numRows() || 0) > 0;
124767
125142
  const error2 = useStore((state) => state.scopedErrors["dataframe"]);
125143
+ const dataframeWrapText = useStore((state) => state.dataframeWrapText);
125144
+ const setVisibleScannerResultsCount = useStore(
125145
+ (state) => state.setVisibleScannerResultsCount
125146
+ );
124768
125147
  const navigate = useNavigate();
124769
125148
  const params = useParams();
124770
125149
  const [searchParams] = useSearchParams();
@@ -124788,15 +125167,19 @@ const ScanResultsBody = () => {
124788
125167
  selectedResultsView === kSegmentDataframe && /* @__PURE__ */ jsxRuntimeExports.jsx(
124789
125168
  DataframeView,
124790
125169
  {
125170
+ options: { maxStrLen: 1024 },
124791
125171
  columnTable,
124792
125172
  sortedColumns,
125173
+ showRowNumbers: true,
125174
+ wrapText: dataframeWrapText,
124793
125175
  onRowDoubleClicked: (row2) => {
124794
125176
  const uuid = row2.uuid;
124795
125177
  if (uuid) {
124796
125178
  const route = scanResultRoute(scanPath, uuid, searchParams);
124797
125179
  void navigate(route);
124798
125180
  }
124799
- }
125181
+ },
125182
+ onVisibleRowCountChanged: setVisibleScannerResultsCount
124800
125183
  }
124801
125184
  )
124802
125185
  ] }),
@@ -124823,19 +125206,21 @@ const sortColumns = (a2, b) => {
124823
125206
  return indexA - indexB;
124824
125207
  }
124825
125208
  };
124826
- const container$2 = "_container_cnarm_1";
124827
- const entry = "_entry_cnarm_5";
124828
- const selected = "_selected_cnarm_9";
124829
- const titleBlock = "_titleBlock_cnarm_13";
124830
- const subTitle = "_subTitle_cnarm_17";
124831
- const title = "_title_cnarm_13";
125209
+ const container$2 = "_container_1a0yr_1";
125210
+ const entry = "_entry_1a0yr_5";
125211
+ const selected = "_selected_1a0yr_9";
125212
+ const titleBlock = "_titleBlock_1a0yr_13";
125213
+ const subTitle = "_subTitle_1a0yr_17";
125214
+ const title = "_title_1a0yr_13";
125215
+ const validationTable = "_validationTable_1a0yr_36";
124832
125216
  const styles$4 = {
124833
125217
  container: container$2,
124834
125218
  entry,
124835
125219
  selected,
124836
125220
  titleBlock,
124837
125221
  subTitle,
124838
- title
125222
+ title,
125223
+ validationTable
124839
125224
  };
124840
125225
  const ScanResultsOutline = () => {
124841
125226
  const selectedStatus = useStore((state) => state.selectedScanStatus);
@@ -124891,7 +125276,7 @@ const ScanResultsRow = ({
124891
125276
  /* @__PURE__ */ jsxRuntimeExports.jsx(
124892
125277
  LabeledValue,
124893
125278
  {
124894
- label: "Results",
125279
+ label: "Positive Results",
124895
125280
  layout: "row",
124896
125281
  className: clsx("text-size-smallest"),
124897
125282
  children: entry2.results
@@ -124906,13 +125291,13 @@ const ScanResultsRow = ({
124906
125291
  children: entry2.errors
124907
125292
  }
124908
125293
  ),
124909
- !!entry2.validations && /* @__PURE__ */ jsxRuntimeExports.jsx(
125294
+ entry2.validations !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
124910
125295
  LabeledValue,
124911
125296
  {
124912
125297
  label: "Validations",
124913
- layout: "row",
125298
+ layout: typeof entry2.validations === "number" ? "row" : "column",
124914
125299
  className: clsx("text-size-smallest"),
124915
- children: entry2.validations
125300
+ children: typeof entry2.validations === "number" ? formatPercent(entry2.validations) : /* @__PURE__ */ jsxRuntimeExports.jsx(ValidationTable, { validations: entry2.validations })
124916
125301
  }
124917
125302
  )
124918
125303
  ]
@@ -124935,6 +125320,7 @@ const toEntries = (status) => {
124935
125320
  formattedParams.push(`${key2}=${JSON.stringify(value2)}`);
124936
125321
  }
124937
125322
  }
125323
+ const validations = summary2?.validations ? resolveValidations(summary2.validations) : void 0;
124938
125324
  entries2.push({
124939
125325
  icon: ApplicationIcons.scorer,
124940
125326
  title: scanner,
@@ -124942,11 +125328,45 @@ const toEntries = (status) => {
124942
125328
  scans: summary2?.scans || 0,
124943
125329
  tokens: summary2?.tokens,
124944
125330
  errors: summary2?.errors,
124945
- params: formattedParams
125331
+ params: formattedParams,
125332
+ validations
124946
125333
  });
124947
125334
  }
124948
125335
  return entries2;
124949
125336
  };
125337
+ const resolveValidations = (validations) => {
125338
+ if (validations.length === 0) {
125339
+ return void 0;
125340
+ }
125341
+ const first2 = validations[0];
125342
+ if (typeof first2 === "boolean") {
125343
+ const correct = validations.reduce((count2, v) => count2 + (v ? 1 : 0), 0);
125344
+ const total = validations.length;
125345
+ return correct / total;
125346
+ } else {
125347
+ const counts = {};
125348
+ const total = validations.length;
125349
+ for (const validation2 of validations) {
125350
+ if (typeof validation2 === "object") {
125351
+ for (const [key2, value2] of Object.entries(validation2)) {
125352
+ if (value2) {
125353
+ counts[key2] = (counts[key2] || 0) + 1;
125354
+ }
125355
+ }
125356
+ }
125357
+ }
125358
+ for (const key2 of Object.keys(counts)) {
125359
+ counts[key2] = (counts[key2] || 0) / total;
125360
+ }
125361
+ return counts;
125362
+ }
125363
+ };
125364
+ const ValidationTable = ({ validations }) => {
125365
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.validationTable), children: Object.entries(validations).map(([key2, value2]) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
125366
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.validationKey), children: key2 }),
125367
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$4.validationValue), children: formatPercent(value2) })
125368
+ ] }, key2)) });
125369
+ };
124950
125370
  const container$1 = "_container_1db6h_1";
124951
125371
  const footer = "_footer_1db6h_8";
124952
125372
  const styles$3 = {
@@ -124954,7 +125374,9 @@ const styles$3 = {
124954
125374
  footer
124955
125375
  };
124956
125376
  const ScanResultsPanel = () => {
124957
- const visibleItems = useStore((state) => state.visibleScannerResults);
125377
+ const visibleItemsCount = useStore(
125378
+ (state) => state.visibleScannerResultsCount
125379
+ );
124958
125380
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$3.container), children: [
124959
125381
  /* @__PURE__ */ jsxRuntimeExports.jsx(ScanResultsOutline, {}),
124960
125382
  /* @__PURE__ */ jsxRuntimeExports.jsx(ScanResultsBody, {}),
@@ -124963,7 +125385,7 @@ const ScanResultsPanel = () => {
124963
125385
  {
124964
125386
  id: "",
124965
125387
  className: styles$3.footer,
124966
- itemCount: visibleItems.length,
125388
+ itemCount: visibleItemsCount,
124967
125389
  paginated: false,
124968
125390
  labels: {
124969
125391
  singular: "result",
@@ -125110,6 +125532,8 @@ const ScannerPanelBody = () => {
125110
125532
  const hasManyLogs = logCount > 1;
125111
125533
  const idStrs = visibleScannerResults.map((summary2) => resultIdentifierStr(summary2)).filter((id2) => id2 !== void 0);
125112
125534
  const hasRepeatedIds = idStrs.length !== new Set(idStrs).size;
125535
+ const epochStrs = visibleScannerResults.map((summary2) => summary2.transcriptMetadata.epoch).filter((e) => e !== void 0);
125536
+ const hasEpochs = new Set(epochStrs).size > 1;
125113
125537
  const options = [];
125114
125538
  if (hasLabel) {
125115
125539
  options.push("label");
@@ -125120,6 +125544,9 @@ const ScannerPanelBody = () => {
125120
125544
  if (hasRepeatedIds) {
125121
125545
  options.push("id");
125122
125546
  }
125547
+ if (hasEpochs) {
125548
+ options.push("epoch");
125549
+ }
125123
125550
  return options;
125124
125551
  }, [selectedScanner, visibleScannerResults]);
125125
125552
  const tools2 = [];
@@ -125130,6 +125557,9 @@ const ScannerPanelBody = () => {
125130
125557
  if (selectedResultsView === kSegmentList) {
125131
125558
  tools2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(ScanResultsFilter, {}, "scan-results-filtering"));
125132
125559
  }
125560
+ if (selectedResultsView === kSegmentDataframe) {
125561
+ tools2.push(/* @__PURE__ */ jsxRuntimeExports.jsx(ScanDataframeWrapTextButton, {}));
125562
+ }
125133
125563
  if (selectedResultsView === kSegmentList && groupOptions.length > 0) {
125134
125564
  tools2.push(
125135
125565
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -125242,7 +125672,7 @@ const ScannerPanelTitle = () => {
125242
125672
  const errorCount = selectedStatus?.errors.length || 0;
125243
125673
  const status = selectedStatus === void 0 ? "" : selectedStatus.complete ? "Complete" : "Incomplete";
125244
125674
  const scanJobName = selectedStatus?.spec.scan_name === "job" ? "scan" : selectedStatus?.spec.scan_name;
125245
- const transcriptCount = selectedStatus?.spec.transcripts.count || 0;
125675
+ const transcriptCount = selectedStatus?.spec.transcripts?.count || 0;
125246
125676
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles.scanTitleView), children: [
125247
125677
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles.leftColumn), children: [
125248
125678
  /* @__PURE__ */ jsxRuntimeExports.jsxs("h1", { children: [