@parhelia/benchmark 0.4.12884 → 0.4.12903
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/LICENSE +1 -1
- package/dist/index.js +1 -1
- package/dist/safetyViolations.d.ts.map +1 -1
- package/dist/safetyViolations.js +2 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./types";
|
|
|
6
6
|
export function configureBenchmark(configuration) {
|
|
7
7
|
if (configuration.settings.groups.some(g => g.panels.some(p => p.id === "model-benchmark")))
|
|
8
8
|
return configuration;
|
|
9
|
-
const panel = { id: "model-benchmark", title: "Model Benchmark", subtitle: "Compare models on isolated
|
|
9
|
+
const panel = { id: "model-benchmark", title: "Model Benchmark", subtitle: "Compare models on isolated content editing tasks", icon: _jsx(Gauge, { strokeWidth: 1 }), content: _jsx(BenchmarkPanel, {}), requiresAdministrator: true, requiresModule: "benchmark" };
|
|
10
10
|
const groups = configuration.settings.groups.map(g => ({ ...g, panels: [...g.panels] }));
|
|
11
11
|
const ai = groups.find(g => g.title === "AI");
|
|
12
12
|
if (ai) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safetyViolations.d.ts","sourceRoot":"","sources":["../src/safetyViolations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,mBAAmB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE5F,gHAAgH;AAChH,MAAM,MAAM,eAAe,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACrG,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,UAAU,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"safetyViolations.d.ts","sourceRoot":"","sources":["../src/safetyViolations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgC,mBAAmB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAE5F,gHAAgH;AAChH,MAAM,MAAM,eAAe,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AACrG,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,UAAU,EAAE,eAAe,EAAE,CAAA;CAAE,CAAC;AAIhG,+EAA+E;AAC/E,eAAO,MAAM,SAAS,SAAU,MAAM,WAAoC,CAAC;AAmB3E;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,SAAS,GAAG,eAAe,EAAE,CAkB7F;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,mBAAmB,EAAE,GAAG,oBAAoB,EAAE,CAMzF"}
|
package/dist/safetyViolations.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { parseAudit, parseGraderReport, parseJson } from "./format";
|
|
2
|
-
|
|
2
|
+
// mastermerge16: the per-run copy folder under any root of the store (its content or media tree).
|
|
3
|
+
const runCopyRoot = /^\/(?:[^/]+\/)*?Parhelia Benchmark Runs\/[0-9a-f]{32}\//i;
|
|
3
4
|
/** Drops the per-run copy root so the path starts at the task's own folder. */
|
|
4
5
|
export const shortPath = (path) => path.replace(runCopyRoot, "…/");
|
|
5
6
|
const normalizeId = (value) => value.trim().replace(/[{}]/g, "").toLowerCase();
|