agentv 4.4.0 → 4.4.1

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.
@@ -24,7 +24,7 @@ import {
24
24
  validateFileReferences,
25
25
  validateTargetsFile,
26
26
  writeArtifactsFromResults
27
- } from "./chunk-BAYNXTX6.js";
27
+ } from "./chunk-VYZQMN57.js";
28
28
  import {
29
29
  DEFAULT_CATEGORY,
30
30
  PASS_THRESHOLD,
@@ -4223,7 +4223,7 @@ var evalRunCommand = command({
4223
4223
  },
4224
4224
  handler: async (args) => {
4225
4225
  if (args.evalPaths.length === 0 && process.stdin.isTTY) {
4226
- const { launchInteractiveWizard } = await import("./interactive-YNSOO2BS.js");
4226
+ const { launchInteractiveWizard } = await import("./interactive-VJP2AEPT.js");
4227
4227
  await launchInteractiveWizard();
4228
4228
  return;
4229
4229
  }
@@ -6768,6 +6768,43 @@ function createApp(results, resultDir, cwd, sourceFile, options) {
6768
6768
  return c3.json({ error: err2.message }, 400);
6769
6769
  }
6770
6770
  });
6771
+ app2.get("/api/projects/all-runs", (c3) => {
6772
+ const registry = loadProjectRegistry();
6773
+ const allRuns = [];
6774
+ for (const p of registry.projects) {
6775
+ try {
6776
+ const metas = listResultFiles(p.path);
6777
+ for (const m of metas) {
6778
+ let target;
6779
+ let experiment;
6780
+ try {
6781
+ const records = loadLightweightResults(m.path);
6782
+ if (records.length > 0) {
6783
+ target = records[0].target;
6784
+ experiment = records[0].experiment;
6785
+ }
6786
+ } catch {
6787
+ }
6788
+ allRuns.push({
6789
+ filename: m.filename,
6790
+ path: m.path,
6791
+ timestamp: m.timestamp,
6792
+ test_count: m.testCount,
6793
+ pass_rate: m.passRate,
6794
+ avg_score: m.avgScore,
6795
+ size_bytes: m.sizeBytes,
6796
+ ...target && { target },
6797
+ ...experiment && { experiment },
6798
+ project_id: p.id,
6799
+ project_name: p.name
6800
+ });
6801
+ }
6802
+ } catch {
6803
+ }
6804
+ }
6805
+ allRuns.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
6806
+ return c3.json({ runs: allRuns });
6807
+ });
6771
6808
  app2.get("/api/config", (c3) => handleConfig(c3, defaultCtx));
6772
6809
  app2.get("/api/runs", (c3) => handleRuns(c3, defaultCtx));
6773
6810
  app2.get("/api/runs/:filename", (c3) => handleRunDetail(c3, defaultCtx));
@@ -8614,4 +8651,4 @@ export {
8614
8651
  preprocessArgv,
8615
8652
  runCli
8616
8653
  };
8617
- //# sourceMappingURL=chunk-YORCRL4G.js.map
8654
+ //# sourceMappingURL=chunk-4WMLJHW5.js.map