@metrevals/inspect-log-viewer 0.3.144-beta.1762224374 → 0.3.146-beta.1763066620
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/LogListFooter.d.ts.map +1 -1
- package/lib/app/samples/chat/MessageContent.d.ts.map +1 -1
- package/lib/client/api/static-http/fetch.d.ts +1 -1
- package/lib/client/api/static-http/fetch.d.ts.map +1 -1
- package/lib/index.js +57 -26
- package/lib/index.js.map +1 -1
- package/lib/state/sync/replicationService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogListFooter.d.ts","sourceRoot":"","sources":["../../../src/app/log-list/LogListFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtC,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"LogListFooter.d.ts","sourceRoot":"","sources":["../../../src/app/log-list/LogListFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKtC,UAAU,kBAAkB;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA6DhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/MessageContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,KAAK,aAAa,GACd,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,cAAc,CAAC;AAInB,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;AAEpD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,KACf,OAAO,IAAI,aAOb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoDlD,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageContent.d.ts","sourceRoot":"","sources":["../../../../src/app/samples/chat/MessageContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKpD,KAAK,aAAa,GACd,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,WAAW,GACX,WAAW,GACX,cAAc,CAAC;AAInB,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;AAEpD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,KACf,OAAO,IAAI,aAOb,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAoDlD,CAAC;AAkRF,MAAM,MAAM,gBAAgB,CAAC,IAAI,EAAE,IAAI,SAAS,WAAW,IAAI,IAAI,SAAS,GAAG,GAC3E,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAChB,KAAK,CAAC"}
|
|
@@ -14,7 +14,7 @@ export declare const fetchManifest: (log_dir: string) => Promise<LogFilesFetchRe
|
|
|
14
14
|
/**
|
|
15
15
|
* Fetches a file, parsing its content and returning the result.
|
|
16
16
|
*/
|
|
17
|
-
export declare const fetchJsonFile: <T>(file: string) => Promise<T | undefined>;
|
|
17
|
+
export declare const fetchJsonFile: <T>(file: string, handleError?: (response: Response) => boolean) => Promise<T | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* Joins multiple URI segments into a single URI string.
|
|
20
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../src/client/api/static-http/fetch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE9D;;GAEG;AACH,wBAAsB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,OAAO,KAC5C,OAAO,CAAC,CAAC,GAAG,SAAS,CAQvB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,GAAG,MAAM,CAIrD"}
|
package/lib/index.js
CHANGED
|
@@ -17020,27 +17020,41 @@ class ReplicationService {
|
|
|
17020
17020
|
}
|
|
17021
17021
|
const staticList = logFiles.length > 0 && mtime === 0;
|
|
17022
17022
|
if (staticList) {
|
|
17023
|
-
this.
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17023
|
+
const serverLogs = await this._api.get_logs(0, 0);
|
|
17024
|
+
if (serverLogs.files.length !== logFiles.length) {
|
|
17025
|
+
for (const file of logFiles) {
|
|
17026
|
+
this._database?.clearCacheForFile(file.name);
|
|
17027
|
+
}
|
|
17028
|
+
this._applicationContext?.setLogHandles(serverLogs.files);
|
|
17029
|
+
this.queueLogDetails(serverLogs.files);
|
|
17030
|
+
this.queueLogPreviews(serverLogs.files);
|
|
17031
|
+
if (progress2) {
|
|
17032
|
+
this._applicationContext.setLoading(false);
|
|
17033
|
+
}
|
|
17034
|
+
return serverLogs.files;
|
|
17035
|
+
} else {
|
|
17036
|
+
this._applicationContext?.setLogHandles(logFiles);
|
|
17037
|
+
const previewTasks2 = [];
|
|
17038
|
+
const previews2 = await this._database.findMissingPreviews(logFiles);
|
|
17039
|
+
for (const p of previews2) {
|
|
17040
|
+
if (!previewTasks2.find((t2) => t2.name === p.name)) {
|
|
17041
|
+
previewTasks2.push(p);
|
|
17042
|
+
}
|
|
17029
17043
|
}
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17044
|
+
this.queueLogPreviews(previewTasks2);
|
|
17045
|
+
const detailTasks2 = [];
|
|
17046
|
+
const details2 = await this._database.findMissingDetails(logFiles);
|
|
17047
|
+
for (const d of details2) {
|
|
17048
|
+
if (!detailTasks2.find((t2) => t2.name === d.name)) {
|
|
17049
|
+
detailTasks2.push(d);
|
|
17050
|
+
}
|
|
17037
17051
|
}
|
|
17052
|
+
this.queueLogDetails(detailTasks2);
|
|
17053
|
+
if (progress2) {
|
|
17054
|
+
this._applicationContext.setLoading(false);
|
|
17055
|
+
}
|
|
17056
|
+
return logFiles;
|
|
17038
17057
|
}
|
|
17039
|
-
this.queueLogDetails(detailTasks2);
|
|
17040
|
-
if (progress2) {
|
|
17041
|
-
this._applicationContext.setLoading(false);
|
|
17042
|
-
}
|
|
17043
|
-
return logFiles;
|
|
17044
17058
|
}
|
|
17045
17059
|
const response = await this._api.get_logs(mtime, clientFileCount);
|
|
17046
17060
|
const updatedLogs = response.files;
|
|
@@ -96008,10 +96022,14 @@ const fetchManifest = async (log_dir) => {
|
|
|
96008
96022
|
);
|
|
96009
96023
|
return logs;
|
|
96010
96024
|
};
|
|
96011
|
-
const fetchJsonFile = async (file) => {
|
|
96012
|
-
return fetchFile(
|
|
96013
|
-
|
|
96014
|
-
|
|
96025
|
+
const fetchJsonFile = async (file, handleError2) => {
|
|
96026
|
+
return fetchFile(
|
|
96027
|
+
file,
|
|
96028
|
+
async (text2) => {
|
|
96029
|
+
return await asyncJsonParse(text2);
|
|
96030
|
+
},
|
|
96031
|
+
handleError2
|
|
96032
|
+
);
|
|
96015
96033
|
};
|
|
96016
96034
|
function joinURI(...segments2) {
|
|
96017
96035
|
return segments2.map((segment2) => segment2.replace(/(^\/+|\/+$)/g, "")).join("/");
|
|
@@ -96073,7 +96091,14 @@ function staticHttpApiForLog(logInfo) {
|
|
|
96073
96091
|
dirSegments.push(dir);
|
|
96074
96092
|
}
|
|
96075
96093
|
return await fetchJsonFile(
|
|
96076
|
-
joinURI(...dirSegments, "eval-set.json")
|
|
96094
|
+
joinURI(...dirSegments, "eval-set.json"),
|
|
96095
|
+
(response) => {
|
|
96096
|
+
if (response.status === 404) {
|
|
96097
|
+
return true;
|
|
96098
|
+
} else {
|
|
96099
|
+
return false;
|
|
96100
|
+
}
|
|
96101
|
+
}
|
|
96077
96102
|
);
|
|
96078
96103
|
},
|
|
96079
96104
|
log_message: async (log_file, message2) => {
|
|
@@ -97213,11 +97238,18 @@ const messageRenderers = {
|
|
|
97213
97238
|
reasoning: {
|
|
97214
97239
|
render: (key2, content2, isLast, _context) => {
|
|
97215
97240
|
const r2 = content2;
|
|
97241
|
+
let title2 = "Reasoning";
|
|
97216
97242
|
let text2 = r2.reasoning;
|
|
97217
97243
|
if (r2.redacted) {
|
|
97218
97244
|
text2 = r2.summary || "Reasoning encrypted by model provider.";
|
|
97245
|
+
if (r2.summary) {
|
|
97246
|
+
title2 = "Reasoning (Summary)";
|
|
97247
|
+
}
|
|
97219
97248
|
} else if (!text2) {
|
|
97220
97249
|
text2 = r2.summary || "Reasoning text not provided.";
|
|
97250
|
+
if (r2.summary) {
|
|
97251
|
+
title2 = "Reasoning (Summary)";
|
|
97252
|
+
}
|
|
97221
97253
|
}
|
|
97222
97254
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: clsx(styles$1F.reasoning, "text-size-small"), children: [
|
|
97223
97255
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -97228,7 +97260,7 @@ const messageRenderers = {
|
|
|
97228
97260
|
"text-style-secondary",
|
|
97229
97261
|
isLast ? "no-last-para-padding" : ""
|
|
97230
97262
|
),
|
|
97231
|
-
children:
|
|
97263
|
+
children: title2
|
|
97232
97264
|
}
|
|
97233
97265
|
),
|
|
97234
97266
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ExpandablePanel, { id: `${key2}-reasoning`, collapse: true, children: [
|
|
@@ -104365,7 +104397,7 @@ const ViewerOptionsPopover = ({
|
|
|
104365
104397
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.fullWidth, styles$1q.fullWidthPadded), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1q.logDir, children: logDir2 }) }),
|
|
104366
104398
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
104367
104399
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Version" }),
|
|
104368
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.
|
|
104400
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: "0.3.145-9-gdeec1b7a8" }),
|
|
104369
104401
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx("text-style-label", "text-style-secondary"), children: "Schema" }),
|
|
104370
104402
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(), children: DB_VERSION }),
|
|
104371
104403
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(styles$1q.spacer) }),
|
|
@@ -108560,7 +108592,6 @@ const LogListFooter = ({
|
|
|
108560
108592
|
progressBar
|
|
108561
108593
|
}) => {
|
|
108562
108594
|
const { page, itemsPerPage } = usePagination(id, pagesize || itemCount);
|
|
108563
|
-
console.log({ progressBar });
|
|
108564
108595
|
const effectiveItemCount = filteredCount ?? itemCount;
|
|
108565
108596
|
const currentPage = page || 0;
|
|
108566
108597
|
const pageItemCount = Math.min(
|