agentv 4.34.1-next.1 → 4.35.0

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.
@@ -14,8 +14,8 @@ import {
14
14
  writeArtifactsFromResults,
15
15
  writeInitialBenchmarkArtifact,
16
16
  writePerTestArtifacts
17
- } from "./chunk-GPRZ7XSC.js";
18
- import "./chunk-KP4SPQ2M.js";
17
+ } from "./chunk-KJGYL3M3.js";
18
+ import "./chunk-KNF3AGCI.js";
19
19
  import "./chunk-QOBQ5XYF.js";
20
20
  import "./chunk-BPGJ4HBU.js";
21
21
  import "./chunk-6QEIZ33V.js";
@@ -38,4 +38,4 @@ export {
38
38
  writeInitialBenchmarkArtifact,
39
39
  writePerTestArtifacts
40
40
  };
41
- //# sourceMappingURL=artifact-writer-UWZX5JKX.js.map
41
+ //# sourceMappingURL=artifact-writer-G57MG52C.js.map
@@ -53,7 +53,7 @@ import {
53
53
  validateTargetsFile,
54
54
  validateWorkspacePaths,
55
55
  writeRunTags
56
- } from "./chunk-HRN7BFMP.js";
56
+ } from "./chunk-Q6LNXSP2.js";
57
57
  import {
58
58
  RESULT_INDEX_FILENAME,
59
59
  aggregateRunDir,
@@ -65,7 +65,7 @@ import {
65
65
  resolveRunManifestPath,
66
66
  toSnakeCaseDeep as toSnakeCaseDeep2,
67
67
  writeArtifactsFromResults
68
- } from "./chunk-GPRZ7XSC.js";
68
+ } from "./chunk-KJGYL3M3.js";
69
69
  import {
70
70
  DEFAULT_CATEGORY,
71
71
  addProject,
@@ -86,7 +86,7 @@ import {
86
86
  touchProject,
87
87
  transpileEvalYamlFile,
88
88
  trimBaselineResult
89
- } from "./chunk-KP4SPQ2M.js";
89
+ } from "./chunk-KNF3AGCI.js";
90
90
  import {
91
91
  DEFAULT_THRESHOLD,
92
92
  createBuiltinRegistry,
@@ -4585,7 +4585,7 @@ var evalRunCommand = command({
4585
4585
  },
4586
4586
  handler: async (args) => {
4587
4587
  if (args.evalPaths.length === 0 && process.stdin.isTTY) {
4588
- const { launchInteractiveWizard } = await import("./interactive-VQPUNWH2.js");
4588
+ const { launchInteractiveWizard } = await import("./interactive-GFD5XV35.js");
4589
4589
  await launchInteractiveWizard();
4590
4590
  return;
4591
4591
  }
@@ -12163,6 +12163,16 @@ function parseRunPageLimit(limitParam) {
12163
12163
  function hasUsableTimestamp(timestamp) {
12164
12164
  return !!timestamp && timestamp !== "unknown" && !Number.isNaN(new Date(timestamp).getTime());
12165
12165
  }
12166
+ function compareRunsByTimestampDesc(a, b) {
12167
+ const aTime = hasUsableTimestamp(a.timestamp) ? new Date(a.timestamp).getTime() : null;
12168
+ const bTime = hasUsableTimestamp(b.timestamp) ? new Date(b.timestamp).getTime() : null;
12169
+ if (aTime !== null && bTime !== null && aTime !== bTime) {
12170
+ return bTime - aTime;
12171
+ }
12172
+ if (aTime !== null && bTime === null) return -1;
12173
+ if (aTime === null && bTime !== null) return 1;
12174
+ return b.filename.localeCompare(a.filename);
12175
+ }
12166
12176
  function isExecutionErrorResult(result) {
12167
12177
  return result.executionStatus === "execution_error";
12168
12178
  }
@@ -12269,6 +12279,7 @@ async function handleRuns(c4, { searchDir, agentvDir, projectId }) {
12269
12279
  };
12270
12280
  })
12271
12281
  );
12282
+ runs.sort(compareRunsByTimestampDesc);
12272
12283
  const page = paginateRuns(runs, cursor, limit);
12273
12284
  return c4.json({
12274
12285
  runs: page.runs,
@@ -13101,7 +13112,7 @@ function createApp(results, resultDir, cwd, sourceFile, options) {
13101
13112
  } catch {
13102
13113
  }
13103
13114
  }
13104
- allRuns.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
13115
+ allRuns.sort(compareRunsByTimestampDesc);
13105
13116
  return c4.json({ runs: allRuns });
13106
13117
  });
13107
13118
  app2.delete("/api/projects/:projectId", (c4) => {
@@ -15415,4 +15426,4 @@ export {
15415
15426
  preprocessArgv,
15416
15427
  runCli
15417
15428
  };
15418
- //# sourceMappingURL=chunk-4Y6LH2Q5.js.map
15429
+ //# sourceMappingURL=chunk-6NMAI6I6.js.map