@metrevals/inspect-log-viewer 0.3.165-beta.20260125222538 → 0.3.166-beta.20260127142322

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.
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
- import { ModelUsage, ModelUsage2 } from '../../@types/log';
2
+ import { ModelUsage, ModelUsage2, ModelUsage3 } from '../../@types/log';
3
3
  interface ModelTokenTableProps {
4
- model_usage: ModelUsage | ModelUsage2;
4
+ model_usage: ModelUsage | ModelUsage2 | ModelUsage3;
5
5
  className?: string | string[];
6
6
  }
7
7
  export declare const ModelTokenTable: FC<ModelTokenTableProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"ModelTokenTable.d.ts","sourceRoot":"","sources":["../../../src/app/usage/ModelTokenTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG3D,UAAU,oBAAoB;IAC5B,WAAW,EAAE,UAAU,GAAG,WAAW,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAcpD,CAAC"}
1
+ {"version":3,"file":"ModelTokenTable.d.ts","sourceRoot":"","sources":["../../../src/app/usage/ModelTokenTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGxE,UAAU,oBAAoB;IAC5B,WAAW,EAAE,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAiBpD,CAAC"}
package/lib/index.js CHANGED
@@ -105817,7 +105817,7 @@ const ViewerOptionsPopover = ({
105817
105817
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1i.fullWidth, styles$1i.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1i.logDir, children: logDir2 }) }),
105818
105818
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1i.spacer) }),
105819
105819
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
105820
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.164-4-g49a00d78d" }),
105820
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.165-5-gbcf1f15ec" }),
105821
105821
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
105822
105822
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
105823
105823
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1i.spacer) }),
@@ -165549,6 +165549,9 @@ const ModelTokenTable = ({
165549
165549
  model_usage,
165550
165550
  className: className2
165551
165551
  }) => {
165552
+ if (!model_usage) {
165553
+ return null;
165554
+ }
165552
165555
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(TokenTable$1, { className: className2, children: [
165553
165556
  /* @__PURE__ */ jsxRuntimeExports.jsx(TokenHeader, {}),
165554
165557
  /* @__PURE__ */ jsxRuntimeExports.jsx("tbody", { children: Object.keys(model_usage).map((key2) => {