@metrevals/inspect-log-viewer 0.3.152-beta.1764620293 → 0.3.152-beta.20251202095613

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 +1 @@
1
- {"version":3,"file":"samplesDescriptor.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/descriptor/samplesDescriptor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG3E,OAAO,EACL,cAAc,EACd,YAAY,EAEZ,gBAAgB,EAChB,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,aAAa,GAAG,SAAS,CAAC;IACtE,wBAAwB,EAAE,CACxB,MAAM,EAAE,eAAe,KACpB,gBAAgB,GAAG,SAAS,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,UAAU,EAAE,EACpB,UAAU,aAAa,EAAE,KACxB,cAAc,GAAG,SA8PnB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,SAAS,aAAa,EAAE,EACxB,gBAAgB,cAAc,EAC9B,gBAAgB,UAAU,EAAE,KAC3B,iBAAiB,GAAG,SAsItB,CAAC"}
1
+ {"version":3,"file":"samplesDescriptor.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/descriptor/samplesDescriptor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI3E,OAAO,EACL,cAAc,EACd,YAAY,EAEZ,gBAAgB,EAChB,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,aAAa,GAAG,SAAS,CAAC;IACtE,wBAAwB,EAAE,CACxB,MAAM,EAAE,eAAe,KACpB,gBAAgB,GAAG,SAAS,CAAC;CACnC;AAED,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,UAAU,EAAE,EACpB,UAAU,aAAa,EAAE,KACxB,cAAc,GAAG,SA8PnB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,SAAS,aAAa,EAAE,EACxB,gBAAgB,cAAc,EAC9B,gBAAgB,UAAU,EAAE,KAC3B,iBAAiB,GAAG,SAsItB,CAAC"}
package/lib/index.js CHANGED
@@ -11305,7 +11305,7 @@ const createImpl = (createState) => {
11305
11305
  return useBoundStore;
11306
11306
  };
11307
11307
  const create$2 = ((createState) => createImpl);
11308
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "library", "PROD": true, "SSR": false };
11308
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "library", "PROD": true, "SSR": false, "VITE_API_BASE_URL": "https://api.inspect-ai.internal.metr.org", "VITE_OIDC_AUDIENCE": "https://model-poking-3", "VITE_OIDC_CLIENT_ID": "0oa1wxy3qxaHOoGxG1d8", "VITE_OIDC_ISSUER": "https://metr.okta.com/oauth2/aus1ww3m0x41jKp3L1d8", "VITE_OIDC_TOKEN_PATH": "v1/token" };
11309
11309
  const trackedConnections = /* @__PURE__ */ new Map();
11310
11310
  const getTrackedConnectionState = (name2) => {
11311
11311
  const api2 = trackedConnections.get(name2);
@@ -18252,6 +18252,15 @@ function formatDuration(start2, end2) {
18252
18252
  const durationSec = durationMs / 1e3;
18253
18253
  return formatTime$1(durationSec);
18254
18254
  }
18255
+ const errorType = (message2) => {
18256
+ if (!message2) {
18257
+ return "Error";
18258
+ }
18259
+ if (message2.includes("(")) {
18260
+ return message2.split("(")[0];
18261
+ }
18262
+ return "Error";
18263
+ };
18255
18264
  const circle$1 = "_circle_qymy9_1";
18256
18265
  const green$1 = "_green_qymy9_12";
18257
18266
  const red$1 = "_red_qymy9_18";
@@ -99567,7 +99576,7 @@ const createSamplesDescriptor = (samples, evalDescriptor, selectedScores) => {
99567
99576
  selectedScores.forEach((scoreLabel, index) => {
99568
99577
  const score2 = evalDescriptor.score(current2, scoreLabel);
99569
99578
  const scoreValue = score2?.value;
99570
- const scoreText = scoreValue ? String(scoreValue) : current2.error ? String(current2.error) : "";
99579
+ const scoreText = scoreValue ? String(scoreValue) : current2.error ? errorType(current2.error) : "";
99571
99580
  const currentSize = Math.max(
99572
99581
  scoreText.length,
99573
99582
  scoreLabel.name.length
@@ -105152,7 +105161,7 @@ const ViewerOptionsPopover = ({
105152
105161
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.fullWidth, styles$1s.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1s.logDir, children: logDir2 }) }),
105153
105162
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
105154
105163
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
105155
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.151-27-g7a39cfb8f" }),
105164
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.151-9-g7a3aeac3c" }),
105156
105165
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
105157
105166
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
105158
105167
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
@@ -111910,15 +111919,6 @@ const styles$U = {
111910
111919
  iconSmall: iconSmall$1,
111911
111920
  lineBase
111912
111921
  };
111913
- const errorType = (message2) => {
111914
- if (!message2) {
111915
- return "Error";
111916
- }
111917
- if (message2.includes("(")) {
111918
- return message2.split("(")[0];
111919
- }
111920
- return "Error";
111921
- };
111922
111922
  const FlatSampleError = ({ message: message2 }) => {
111923
111923
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$U.flatBody), children: [
111924
111924
  /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: clsx(ApplicationIcons.error, styles$U.iconSmall) }),