@meridianlabs/log-viewer 0.3.273 → 0.3.276
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/AnsiDisplayRich-302CIkEj.js +1431 -0
- package/lib/AnsiDisplayRich-302CIkEj.js.map +1 -0
- package/lib/ToolButton-BmBvTvKO.js +124 -0
- package/lib/ToolButton-BmBvTvKO.js.map +1 -0
- package/lib/e2e/content-trust.spec.d.ts +2 -0
- package/lib/e2e/content-trust.spec.d.ts.map +1 -0
- package/lib/e2e/fixtures/log-list-scenario.d.ts +1 -0
- package/lib/e2e/fixtures/log-list-scenario.d.ts.map +1 -1
- package/lib/e2e/fixtures/serve-eval-file.d.ts +20 -0
- package/lib/e2e/fixtures/serve-eval-file.d.ts.map +1 -0
- package/lib/e2e/sample-activity.spec.d.ts +10 -0
- package/lib/e2e/sample-activity.spec.d.ts.map +1 -0
- package/lib/index.js +16620 -31058
- package/lib/index.js.map +1 -1
- package/lib/markdownPipeline-BeMkkZRz.js +8575 -0
- package/lib/markdownPipeline-BeMkkZRz.js.map +1 -0
- package/lib/markdownText-z5R6PHwt.js +105 -0
- package/lib/markdownText-z5R6PHwt.js.map +1 -0
- package/lib/prismHighlighter-D-PZtkPX.js +1927 -0
- package/lib/prismHighlighter-D-PZtkPX.js.map +1 -0
- package/lib/rolldown-runtime-B-lAHAz2.js +37 -0
- package/lib/src/app/App.d.ts.map +1 -1
- package/lib/src/app/flow/FlowPanel.d.ts.map +1 -1
- package/lib/src/app/log-view/tabs/InfoTab.d.ts +1 -0
- package/lib/src/app/log-view/tabs/InfoTab.d.ts.map +1 -1
- package/lib/src/app/log-view/tabs/JsonTab.d.ts +1 -1
- package/lib/src/app/log-view/tabs/ModelsTab.d.ts +1 -0
- package/lib/src/app/log-view/tabs/ModelsTab.d.ts.map +1 -1
- package/lib/src/app/log-view/tabs/SamplesTab.d.ts +1 -1
- package/lib/src/app/log-view/tabs/TaskTab.d.ts +1 -0
- package/lib/src/app/log-view/tabs/TaskTab.d.ts.map +1 -1
- package/lib/src/app/log-view/tabs/timeline/TimelineTab.d.ts +1 -0
- package/lib/src/app/log-view/tabs/timeline/TimelineTab.d.ts.map +1 -1
- package/lib/src/app/log-view/title-view/ScoreGrid.d.ts.map +1 -1
- package/lib/src/app/routing/AppRouter.d.ts.map +1 -1
- package/lib/src/app/samples/SampleDisplay.d.ts.map +1 -1
- package/lib/src/app/samples/SampleSummaryView.d.ts.map +1 -1
- package/lib/src/app/samples/event/SampleEventView.d.ts.map +1 -1
- package/lib/src/app/samples/print/SamplePrintView.d.ts.map +1 -1
- package/lib/src/app/samples/status/status.d.ts +1 -1
- package/lib/src/app/shared/contentTrust.d.ts +14 -0
- package/lib/src/app/shared/contentTrust.d.ts.map +1 -0
- package/lib/src/app/shared/samples-grid/cells.d.ts.map +1 -1
- package/lib/src/app_config/appConfig.d.ts +3 -0
- package/lib/src/app_config/appConfig.d.ts.map +1 -1
- package/lib/src/app_config/resolveBackend.d.ts.map +1 -1
- package/lib/src/components/CodePanel.d.ts.map +1 -1
- package/lib/src/constants.d.ts +1 -0
- package/lib/src/constants.d.ts.map +1 -1
- package/lib/src/log_data/sampleSummaries.d.ts.map +1 -1
- package/lib/src/state/hooks.d.ts +1 -0
- package/lib/src/state/hooks.d.ts.map +1 -1
- package/lib/src-s8Cexy_j.js +9977 -0
- package/lib/src-s8Cexy_j.js.map +1 -0
- package/lib/styles/index.css +2220 -965
- package/lib/type-CI-Mc4Kw.js +29 -0
- package/lib/type-CI-Mc4Kw.js.map +1 -0
- package/package.json +11 -11
- package/lib/src/utils/markdown.d.ts +0 -16
- package/lib/src/utils/markdown.d.ts.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region ../../packages/util/src/type.ts
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a given value is numeric.
|
|
4
|
+
*/ var isNumeric = (n) => {
|
|
5
|
+
return !isNaN(parseFloat(String(n))) && isFinite(Number(n));
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Ensures the value is an array
|
|
9
|
+
*
|
|
10
|
+
* @param {*} val - The value to ensure is an array.
|
|
11
|
+
* @returns {Array} - an Array
|
|
12
|
+
*/ var toArray = (val) => {
|
|
13
|
+
if (Array.isArray(val)) return val;
|
|
14
|
+
else return [val];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Narrows a `T | ReadonlyArray<T>` union, which `Array.isArray` cannot do on
|
|
18
|
+
* its own — its signature only knows about mutable arrays. Unsound if `T` is
|
|
19
|
+
* itself an array type.
|
|
20
|
+
*/ var isReadonlyArray = (value) => Array.isArray(value);
|
|
21
|
+
/**
|
|
22
|
+
* Checks if a given value is a Record.
|
|
23
|
+
*/ var isRecord = (value) => {
|
|
24
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { toArray as i, isReadonlyArray as n, isRecord as r, isNumeric as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=type-CI-Mc4Kw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-CI-Mc4Kw.js","names":["isNumeric","n","isNaN","parseFloat","String","isFinite","Number","toArray","val","Array","isArray","isReadonlyArray","value","isRecord"],"sources":["../../../packages/util/src/type.ts"],"sourcesContent":["/**\n * Checks if a given value is numeric.\n */\nexport const isNumeric = (n: unknown): boolean => {\n return !isNaN(parseFloat(String(n))) && isFinite(Number(n));\n};\n\n/**\n * Ensures the value is an array\n *\n * @param {*} val - The value to ensure is an array.\n * @returns {Array} - an Array\n */\nexport const toArray = <T>(val: T | T[]): Array<T> => {\n if (Array.isArray(val)) {\n return val;\n } else {\n return [val];\n }\n};\n\n/**\n * Narrows a `T | ReadonlyArray<T>` union, which `Array.isArray` cannot do on\n * its own — its signature only knows about mutable arrays. Unsound if `T` is\n * itself an array type.\n */\nexport const isReadonlyArray = <T>(\n value: T | ReadonlyArray<T>\n): value is ReadonlyArray<T> => Array.isArray(value);\n\n/**\n * Checks if a given value is a Record.\n */\nexport const isRecord = (value: unknown): value is Record<string, unknown> => {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n"],"mappings":";;;GAGA,IAAaA,aAAaC,MAAAA;CACxB,OAAO,CAACC,MAAMC,WAAWC,OAAOH,CAAAA,CAAAA,CAAAA,KAAQI,SAASC,OAAOL,CAAAA,CAAAA;AAC1D;;;;;;GAQA,IAAaM,WAAcC,QAAAA;CACzB,IAAIC,MAAMC,QAAQF,GAAAA,GAChB,OAAOA;MAEP,OAAO,CAACA,GAAI;AAEhB;;;;;GAOA,IAAaG,mBACXC,UAC8BH,MAAMC,QAAQE,KAAAA;;;GAK9C,IAAaC,YAAYD,UAAAA;CACvB,OAAO,OAAOA,UAAU,YAAYA,UAAU,QAAQ,CAACH,MAAMC,QAAQE,KAAAA;AACvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meridianlabs/log-viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.276",
|
|
4
4
|
"description": "Log viewer for inspect_ai logs.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@playwright/test": "^1.63.0",
|
|
54
54
|
"@swc/core": "^1.16.2",
|
|
55
55
|
"@tanstack/react-devtools": "^0.10.12",
|
|
56
|
-
"@tanstack/react-query-devtools": "^5.
|
|
56
|
+
"@tanstack/react-query-devtools": "^5.103.2",
|
|
57
57
|
"@testing-library/dom": "^10.4.2",
|
|
58
58
|
"@testing-library/jest-dom": "^7.0.1",
|
|
59
59
|
"@testing-library/react": "^16.3.3",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@tsmono/vitest-config": "workspace:*",
|
|
70
70
|
"@tsmono/zustand-devtools": "workspace:*",
|
|
71
71
|
"@types/bootstrap": "^5.2.11",
|
|
72
|
-
"@types/node": "^26.
|
|
72
|
+
"@types/node": "^26.6.2",
|
|
73
73
|
"@types/prismjs": "^1.26.5",
|
|
74
74
|
"@types/react": "^19.3.0",
|
|
75
75
|
"@types/react-dom": "^19.3.0",
|
|
@@ -84,21 +84,21 @@
|
|
|
84
84
|
"msw": "^2.15.0",
|
|
85
85
|
"picocolors": "^1.1.1",
|
|
86
86
|
"postcss": "^8.5.28",
|
|
87
|
-
"prettier": "^3.9.
|
|
87
|
+
"prettier": "^3.9.8",
|
|
88
88
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
89
|
-
"typescript-eslint": "^8.70.
|
|
89
|
+
"typescript-eslint": "^8.70.1",
|
|
90
90
|
"vite": "^8.3.0",
|
|
91
|
-
"vite-plugin-dts": "^5.1.
|
|
92
|
-
"vitest": "^5.0.
|
|
91
|
+
"vite-plugin-dts": "^5.1.1",
|
|
92
|
+
"vitest": "^5.0.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@codemirror/autocomplete": "^6.20.3",
|
|
96
96
|
"@codemirror/language": "^6.12.4",
|
|
97
97
|
"@codemirror/lint": "^6.9.7",
|
|
98
|
-
"@codemirror/state": "^6.7.
|
|
99
|
-
"@codemirror/view": "^6.43.
|
|
98
|
+
"@codemirror/state": "^6.7.5",
|
|
99
|
+
"@codemirror/view": "^6.43.12",
|
|
100
100
|
"@lezer/highlight": "^1.2.2",
|
|
101
|
-
"@tanstack/react-query": "^5.
|
|
101
|
+
"@tanstack/react-query": "^5.103.2",
|
|
102
102
|
"@tanstack/react-table": "^9.1.2",
|
|
103
103
|
"@tanstack/react-virtual": "^3.14.13",
|
|
104
104
|
"@vscode-elements/react-elements": "^2.4.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"prismjs": "^1.30.0",
|
|
118
118
|
"react": "^19.3.0",
|
|
119
119
|
"react-dom": "^19.3.0",
|
|
120
|
-
"react-router": "^8.
|
|
120
|
+
"react-router": "^8.4.0",
|
|
121
121
|
"use-sync-external-store": "^1.7.0",
|
|
122
122
|
"zustand": "^5.0.15"
|
|
123
123
|
},
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Truncates markdown text to a target length while preserving markdown syntax
|
|
3
|
-
* and avoiding word breaks.
|
|
4
|
-
*
|
|
5
|
-
* @param markdown - The markdown string to truncate
|
|
6
|
-
* @param maxLength - Maximum character length for the output (default 250)
|
|
7
|
-
* @param ellipsis - String to append when text is truncated (default "...")
|
|
8
|
-
* @returns Truncated markdown string with ellipsis if needed
|
|
9
|
-
*/
|
|
10
|
-
export declare function truncateMarkdown(markdown: string, maxLength?: number, ellipsis?: string): string;
|
|
11
|
-
/**
|
|
12
|
-
* Simple markdown truncation that falls back to basic string slicing
|
|
13
|
-
* This is a faster alternative when markdown parsing isn't critical
|
|
14
|
-
*/
|
|
15
|
-
export declare function simpleMarkdownTruncate(markdown: string, maxLength?: number, ellipsis?: string): string;
|
|
16
|
-
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/utils/markdown.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,SAAS,GAAE,MAAY,EACvB,QAAQ,GAAE,MAAc,GACvB,MAAM,CAoFR;AAiKD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,MAAM,EAChB,SAAS,GAAE,MAAY,EACvB,QAAQ,GAAE,MAAc,GACvB,MAAM,CAgBR"}
|