@tangle-network/agent-eval 1.0.11 → 1.0.12
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/CHANGELOG.md +27 -0
- package/dist/analyst/index.js +1 -1
- package/dist/{benchmark-command-Did8Of2O.js → benchmark-command-DZQrxqUL.js} +2 -2
- package/dist/{benchmark-command-Did8Of2O.js.map → benchmark-command-DZQrxqUL.js.map} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/wire/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import { t as renderSearchSummary } from "./search-summary-DedyTdiM.js";
|
|
|
6
6
|
import { l as SEARCH_LEDGER_BATCH_MAX_BYTES, m as SearchRunKindSchema, r as shipSearchLedger, s as hostedTenantFromEnv, t as SearchShipConflictError } from "./search-shipper-pdg4viK7.js";
|
|
7
7
|
import { a as privacyHit, f as harnessSessionRolloutLines, m as appendRolloutLines, n as runRolloutReleaseCli, p as gateReceiptRolloutLines, r as PRIVACY_RULE_NAMES, u as harnessSessionRefs } from "./hf-dataset-DPVQXW5n.js";
|
|
8
8
|
import { t as createChatClient } from "./chat-client-D0me8iwq.js";
|
|
9
|
-
import { t as runAnalystBenchmarkCommand } from "./benchmark-command-
|
|
9
|
+
import { t as runAnalystBenchmarkCommand } from "./benchmark-command-DZQrxqUL.js";
|
|
10
10
|
import { i as buildOpenApi, l as handleVersion, o as runRpcBatch, r as startServerAsync, s as runRpcOnce } from "./server-CPKyf3bz.js";
|
|
11
11
|
import { b as editCreditText, f as landscape, g as surfaceTextEdits, l as metaSearch, m as formatLandscape, n as taskMatrix, o as skillManifold, r as formatSkillManifold, s as renderMetaSearchText, t as tree, v as front, y as editCredit } from "./tree-C2N31CoI.js";
|
|
12
12
|
import { c as discoveryRunRolloutLines, i as analyzeSupervisorRun, n as renderSupervisorRunHeadline, r as renderSupervisorRunMarkdown } from "./render-CFrJ7M0o.js";
|
package/dist/index.js
CHANGED
|
@@ -281,8 +281,19 @@ function percentileNearestRank(values, percentile) {
|
|
|
281
281
|
return nearestRank([...values].sort((a, b) => a - b), percentile);
|
|
282
282
|
}
|
|
283
283
|
function summarizeDistribution(values, options = {}) {
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
if (values.some((value) => !Number.isFinite(value))) throw new ValidationError("summarizeDistribution: samples must be finite");
|
|
285
|
+
const finite = options.lowerBound === void 0 ? values : values.filter((value) => value >= options.lowerBound);
|
|
286
|
+
if (finite.length === 0) return {
|
|
287
|
+
min: NaN,
|
|
288
|
+
p50: NaN,
|
|
289
|
+
p90: NaN,
|
|
290
|
+
p95: NaN,
|
|
291
|
+
p99: NaN,
|
|
292
|
+
max: NaN,
|
|
293
|
+
mean: NaN,
|
|
294
|
+
n: 0,
|
|
295
|
+
values: []
|
|
296
|
+
};
|
|
286
297
|
const sorted = [...finite].sort((a, b) => a - b);
|
|
287
298
|
const n = sorted.length;
|
|
288
299
|
const mean = sorted.reduce((sum, value) => sum + value / n, 0);
|