@agentv/core 4.31.3-next.1 → 4.31.4-next.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.
- package/dist/{chunk-A27NE3R7.js → chunk-575K7WRM.js} +3 -3
- package/dist/chunk-575K7WRM.js.map +1 -0
- package/dist/evaluation/validation/index.cjs +1 -0
- package/dist/evaluation/validation/index.cjs.map +1 -1
- package/dist/evaluation/validation/index.js +1 -0
- package/dist/evaluation/validation/index.js.map +1 -1
- package/dist/index.cjs +17 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/dist/{ts-eval-loader-XR6DNOZ3.js → ts-eval-loader-FRQF6KHR.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-A27NE3R7.js.map +0 -1
- /package/dist/{ts-eval-loader-XR6DNOZ3.js.map → ts-eval-loader-FRQF6KHR.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -25546,6 +25546,8 @@ var import_node_path54 = __toESM(require("path"), 1);
|
|
|
25546
25546
|
var import_node_util8 = require("util");
|
|
25547
25547
|
init_paths();
|
|
25548
25548
|
var execFileAsync4 = (0, import_node_util8.promisify)(import_node_child_process12.execFile);
|
|
25549
|
+
var RESULTS_REPO_RESULTS_DIR = ".agentv/results";
|
|
25550
|
+
var RESULTS_REPO_RUNS_DIR = `${RESULTS_REPO_RESULTS_DIR}/runs`;
|
|
25549
25551
|
function sanitizeRepoSlug(repo) {
|
|
25550
25552
|
return repo.trim().replace(/[^A-Za-z0-9._-]+/g, "-");
|
|
25551
25553
|
}
|
|
@@ -25778,7 +25780,7 @@ async function stageResultsArtifacts(params) {
|
|
|
25778
25780
|
}
|
|
25779
25781
|
function resolveResultsRepoRunsDir(config) {
|
|
25780
25782
|
const normalized = normalizeResultsConfig(config);
|
|
25781
|
-
return import_node_path54.default.join(normalized.path, "runs");
|
|
25783
|
+
return import_node_path54.default.join(normalized.path, RESULTS_REPO_RESULTS_DIR, "runs");
|
|
25782
25784
|
}
|
|
25783
25785
|
async function directorySizeBytes(targetPath) {
|
|
25784
25786
|
const entry = await (0, import_promises39.stat)(targetPath);
|
|
@@ -25841,7 +25843,12 @@ async function directPushResults(params) {
|
|
|
25841
25843
|
const repoDir = await ensureResultsRepoClone(normalized);
|
|
25842
25844
|
const baseBranch = await resolveDefaultBranch(repoDir);
|
|
25843
25845
|
await fetchResultsRepo(repoDir);
|
|
25844
|
-
const destinationDir = import_node_path54.default.join(
|
|
25846
|
+
const destinationDir = import_node_path54.default.join(
|
|
25847
|
+
repoDir,
|
|
25848
|
+
RESULTS_REPO_RESULTS_DIR,
|
|
25849
|
+
"runs",
|
|
25850
|
+
params.destinationPath
|
|
25851
|
+
);
|
|
25845
25852
|
await stageResultsArtifacts({
|
|
25846
25853
|
repoDir,
|
|
25847
25854
|
sourceDir: params.sourceDir,
|
|
@@ -25989,9 +25996,12 @@ function parseGitBatchBlobs(output) {
|
|
|
25989
25996
|
return blobs;
|
|
25990
25997
|
}
|
|
25991
25998
|
async function listGitRuns(repoDir, ref = "origin/main") {
|
|
25992
|
-
const { stdout: treeOut } = await runGit(
|
|
25993
|
-
|
|
25994
|
-
|
|
25999
|
+
const { stdout: treeOut } = await runGit(
|
|
26000
|
+
["ls-tree", "-r", "--name-only", ref, RESULTS_REPO_RUNS_DIR],
|
|
26001
|
+
{
|
|
26002
|
+
cwd: repoDir
|
|
26003
|
+
}
|
|
26004
|
+
);
|
|
25995
26005
|
const benchmarkPaths = treeOut.split(/\r?\n/).map((line) => line.trim()).filter((line) => line.endsWith("/benchmark.json"));
|
|
25996
26006
|
if (benchmarkPaths.length === 0) {
|
|
25997
26007
|
return [];
|
|
@@ -26008,7 +26018,7 @@ async function listGitRuns(repoDir, ref = "origin/main") {
|
|
|
26008
26018
|
const benchmarkPath = benchmarkPaths[index];
|
|
26009
26019
|
const benchmark = JSON.parse(blob.content.toString("utf8"));
|
|
26010
26020
|
const runDir = import_node_path54.default.posix.dirname(benchmarkPath);
|
|
26011
|
-
const relativeRunPath = import_node_path54.default.posix.relative(
|
|
26021
|
+
const relativeRunPath = import_node_path54.default.posix.relative(RESULTS_REPO_RUNS_DIR, runDir);
|
|
26012
26022
|
const runId = buildGitRunId(relativeRunPath);
|
|
26013
26023
|
const timestamp = benchmark.metadata?.timestamp?.trim() || import_node_path54.default.posix.basename(runDir);
|
|
26014
26024
|
const targets = benchmark.metadata?.targets ?? [];
|
|
@@ -26034,7 +26044,7 @@ async function listGitRuns(repoDir, ref = "origin/main") {
|
|
|
26034
26044
|
}
|
|
26035
26045
|
async function materializeGitRun(repoDir, relativeRunPath, ref = "origin/main") {
|
|
26036
26046
|
const normalizedRunPath = relativeRunPath.split(import_node_path54.default.sep).join("/");
|
|
26037
|
-
const runTreePath = import_node_path54.default.posix.join(
|
|
26047
|
+
const runTreePath = import_node_path54.default.posix.join(RESULTS_REPO_RUNS_DIR, normalizedRunPath);
|
|
26038
26048
|
const targetRunDir = import_node_path54.default.join(repoDir, ...runTreePath.split("/"));
|
|
26039
26049
|
const { stdout: treeOut } = await runGit(["ls-tree", "-r", "--name-only", ref, runTreePath], {
|
|
26040
26050
|
cwd: repoDir
|