@metrevals/inspect-log-viewer 0.3.151-beta.1764377998 → 0.3.151
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/app/log-list/LogsPanel.d.ts.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +29 -16
- package/lib/index.js.map +1 -1
- package/lib/styles/index.css +21 -21
- package/lib/utils/uri.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsPanel.d.ts","sourceRoot":"","sources":["../../../src/app/log-list/LogsPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAA6C,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAkB3C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAaxE,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AACxD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,UAAU,cAAc;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAqPxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,GAAG,SAAS,EAC5B,UAAU,CAAC,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC,EAAE,KAC1D,CAAC,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"LogsPanel.d.ts","sourceRoot":"","sources":["../../../src/app/log-list/LogsPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAA6C,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAkB3C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAaxE,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AACxD,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,UAAU,cAAc;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAqPxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,GAAG,SAAS,EAC5B,UAAU,CAAC,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC,EAAE,KAC1D,CAAC,WAAW,GAAG,aAAa,GAAG,eAAe,CAAC,EAkFjD,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { App } from './app/App';
|
|
|
2
2
|
export { clientApi } from './client/api/client-api';
|
|
3
3
|
export { default as simpleHttpApi } from './client/api/static-http/api-static-http.ts';
|
|
4
4
|
export { viewServerApi as createViewServerApi } from './client/api/view-server/api-view-server.ts';
|
|
5
|
-
export type { Capabilities, ClientAPI, LogViewAPI } from './client/api/types';
|
|
5
|
+
export type { Capabilities, ClientAPI, LogViewAPI, LogRoot, LogHandle, LogFilesResponse, LogContents, LogPreview, PendingSampleResponse, SampleDataResponse, } from './client/api/types';
|
|
6
|
+
export type { EvalSet } from './@types/log';
|
|
6
7
|
export { initializeStore } from './state/store';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAGnG,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAGnG,YAAY,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -15790,7 +15790,7 @@ const primaryMetric = (evalResults) => {
|
|
|
15790
15790
|
};
|
|
15791
15791
|
const directoryRelativeUrl = (file, dir) => {
|
|
15792
15792
|
if (!dir) {
|
|
15793
|
-
return
|
|
15793
|
+
return uriEncodePathSegments(file);
|
|
15794
15794
|
}
|
|
15795
15795
|
const normalizedFile = file.replace(/\\/g, "/");
|
|
15796
15796
|
const normalizedLogDir = dir.replace(/\\/g, "/");
|
|
@@ -15803,7 +15803,11 @@ const directoryRelativeUrl = (file, dir) => {
|
|
|
15803
15803
|
);
|
|
15804
15804
|
return encodedSegments.join("/");
|
|
15805
15805
|
}
|
|
15806
|
-
return
|
|
15806
|
+
return uriEncodePathSegments(normalizedFile);
|
|
15807
|
+
};
|
|
15808
|
+
const uriEncodePathSegments = (path) => {
|
|
15809
|
+
const segments2 = path.split("/");
|
|
15810
|
+
return segments2.map((segment2) => encodeURIComponent(segment2)).join("/");
|
|
15807
15811
|
};
|
|
15808
15812
|
const join = (file, dir) => {
|
|
15809
15813
|
if (!dir) {
|
|
@@ -15812,6 +15816,9 @@ const join = (file, dir) => {
|
|
|
15812
15816
|
const normalizedFile = file.replace(/\\/g, "/");
|
|
15813
15817
|
const normalizedLogDir = dir.replace(/\\/g, "/");
|
|
15814
15818
|
const dirWithSlash = normalizedLogDir.endsWith("/") ? normalizedLogDir : normalizedLogDir + "/";
|
|
15819
|
+
if (normalizedFile.startsWith(dirWithSlash)) {
|
|
15820
|
+
return normalizedFile;
|
|
15821
|
+
}
|
|
15815
15822
|
return dirWithSlash + normalizedFile;
|
|
15816
15823
|
};
|
|
15817
15824
|
function encodePathParts(url) {
|
|
@@ -105145,7 +105152,7 @@ const ViewerOptionsPopover = ({
|
|
|
105145
105152
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.fullWidth, styles$1s.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1s.logDir, children: logDir2 }) }),
|
|
105146
105153
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
|
|
105147
105154
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
105148
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
105155
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.151-27-g7a39cfb8f" }),
|
|
105149
105156
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
105150
105157
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
105151
105158
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1s.spacer) }),
|
|
@@ -108487,19 +108494,19 @@ function useReactTable(options2) {
|
|
|
108487
108494
|
}));
|
|
108488
108495
|
return tableRef.current;
|
|
108489
108496
|
}
|
|
108490
|
-
const gridContainer = "
|
|
108491
|
-
const grid$8 = "
|
|
108492
|
-
const headerRow = "
|
|
108493
|
-
const headerCell = "
|
|
108494
|
-
const sortable = "
|
|
108495
|
-
const sortIndicator = "
|
|
108496
|
-
const resizer = "
|
|
108497
|
-
const isResizing = "
|
|
108498
|
-
const bodyContainer$1 = "
|
|
108499
|
-
const bodyRow = "
|
|
108500
|
-
const selectedRow = "
|
|
108501
|
-
const bodyCell = "
|
|
108502
|
-
const emptyMessage = "
|
|
108497
|
+
const gridContainer = "_gridContainer_55y8l_1";
|
|
108498
|
+
const grid$8 = "_grid_55y8l_1";
|
|
108499
|
+
const headerRow = "_headerRow_55y8l_16";
|
|
108500
|
+
const headerCell = "_headerCell_55y8l_27";
|
|
108501
|
+
const sortable = "_sortable_55y8l_47";
|
|
108502
|
+
const sortIndicator = "_sortIndicator_55y8l_56";
|
|
108503
|
+
const resizer = "_resizer_55y8l_63";
|
|
108504
|
+
const isResizing = "_isResizing_55y8l_79";
|
|
108505
|
+
const bodyContainer$1 = "_bodyContainer_55y8l_88";
|
|
108506
|
+
const bodyRow = "_bodyRow_55y8l_96";
|
|
108507
|
+
const selectedRow = "_selectedRow_55y8l_111";
|
|
108508
|
+
const bodyCell = "_bodyCell_55y8l_121";
|
|
108509
|
+
const emptyMessage = "_emptyMessage_55y8l_133";
|
|
108503
108510
|
const styles$1p = {
|
|
108504
108511
|
gridContainer,
|
|
108505
108512
|
grid: grid$8,
|
|
@@ -109640,6 +109647,12 @@ const collapseLogItems = (evalSet, logItems) => {
|
|
|
109640
109647
|
if (!evalSet) {
|
|
109641
109648
|
return logItems;
|
|
109642
109649
|
}
|
|
109650
|
+
const running = logItems.some(
|
|
109651
|
+
(l) => l.type === "file" && l.logPreview?.status === "started"
|
|
109652
|
+
);
|
|
109653
|
+
if (!running) {
|
|
109654
|
+
return logItems;
|
|
109655
|
+
}
|
|
109643
109656
|
const taskIdToItems = /* @__PURE__ */ new Map();
|
|
109644
109657
|
for (const item2 of logItems) {
|
|
109645
109658
|
if (item2.type === "file" && item2.log.task_id) {
|