agentv 4.21.0 → 4.22.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.
- package/dist/{artifact-writer-E775664W.js → artifact-writer-S7S6K3XA.js} +4 -4
- package/dist/{chunk-ERSBQAGK.js → chunk-4YZDPAGZ.js} +29 -7
- package/dist/{chunk-ERSBQAGK.js.map → chunk-4YZDPAGZ.js.map} +1 -1
- package/dist/{chunk-GPGX24OI.js → chunk-5QF7PKZ4.js} +76 -73
- package/dist/chunk-5QF7PKZ4.js.map +1 -0
- package/dist/{chunk-27VT2KU2.js → chunk-762UZSGR.js} +69 -2
- package/dist/chunk-762UZSGR.js.map +1 -0
- package/dist/{chunk-FZUNMXBT.js → chunk-CM2AVQAM.js} +3 -3
- package/dist/{chunk-LPSUVXHV.js → chunk-GMMIWIBF.js} +29 -18
- package/dist/{chunk-LPSUVXHV.js.map → chunk-GMMIWIBF.js.map} +1 -1
- package/dist/cli.js +5 -5
- package/dist/{dist-RSAA3T6F.js → dist-6LNJDZAI.js} +9 -3
- package/dist/index.js +5 -5
- package/dist/{interactive-RLMRNXXD.js → interactive-7LC5WFP3.js} +5 -7
- package/dist/{interactive-RLMRNXXD.js.map → interactive-7LC5WFP3.js.map} +1 -1
- package/dist/{ts-eval-loader-HPIPE72C-GDYGJVIA.js → ts-eval-loader-PA4YFM5D-2DKQQQOZ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-27VT2KU2.js.map +0 -1
- package/dist/chunk-GPGX24OI.js.map +0 -1
- /package/dist/{artifact-writer-E775664W.js.map → artifact-writer-S7S6K3XA.js.map} +0 -0
- /package/dist/{chunk-FZUNMXBT.js.map → chunk-CM2AVQAM.js.map} +0 -0
- /package/dist/{dist-RSAA3T6F.js.map → dist-6LNJDZAI.js.map} +0 -0
- /package/dist/{ts-eval-loader-HPIPE72C-GDYGJVIA.js.map → ts-eval-loader-PA4YFM5D-2DKQQQOZ.js.map} +0 -0
|
@@ -44,15 +44,15 @@ import {
|
|
|
44
44
|
validateFileReferences,
|
|
45
45
|
validateTargetsFile,
|
|
46
46
|
validateWorkspacePaths
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5QF7PKZ4.js";
|
|
48
48
|
import {
|
|
49
49
|
RESULT_INDEX_FILENAME,
|
|
50
50
|
aggregateRunDir,
|
|
51
51
|
buildDefaultRunDir,
|
|
52
52
|
resolveRunManifestPath,
|
|
53
|
-
toSnakeCaseDeep,
|
|
53
|
+
toSnakeCaseDeep as toSnakeCaseDeep2,
|
|
54
54
|
writeArtifactsFromResults
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CM2AVQAM.js";
|
|
56
56
|
import {
|
|
57
57
|
DEFAULT_CATEGORY,
|
|
58
58
|
addBenchmark,
|
|
@@ -66,11 +66,12 @@ import {
|
|
|
66
66
|
parseCodexSession,
|
|
67
67
|
readTranscriptFile,
|
|
68
68
|
removeBenchmark,
|
|
69
|
+
runBeforeSessionHook,
|
|
69
70
|
scanRepoDeps,
|
|
70
71
|
toTranscriptJsonLines,
|
|
71
72
|
transpileEvalYamlFile,
|
|
72
73
|
trimBaselineResult
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-762UZSGR.js";
|
|
74
75
|
import {
|
|
75
76
|
DEFAULT_THRESHOLD,
|
|
76
77
|
createBuiltinRegistry,
|
|
@@ -98,8 +99,8 @@ import {
|
|
|
98
99
|
runRegexAssertion,
|
|
99
100
|
runStartsWithAssertion,
|
|
100
101
|
toCamelCaseDeep,
|
|
101
|
-
toSnakeCaseDeep
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
toSnakeCaseDeep
|
|
103
|
+
} from "./chunk-4YZDPAGZ.js";
|
|
103
104
|
import {
|
|
104
105
|
__commonJS,
|
|
105
106
|
__require,
|
|
@@ -859,6 +860,9 @@ var require_src = __commonJS({
|
|
|
859
860
|
}
|
|
860
861
|
});
|
|
861
862
|
|
|
863
|
+
// src/index.ts
|
|
864
|
+
import path26 from "node:path";
|
|
865
|
+
|
|
862
866
|
// ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
863
867
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
864
868
|
var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
@@ -3149,7 +3153,7 @@ var compareCommand = command({
|
|
|
3149
3153
|
const results2 = loadJsonlResults(results[1]);
|
|
3150
3154
|
const comparison = compareResults(results1, results2, effectiveThreshold);
|
|
3151
3155
|
if (outputFormat === "json") {
|
|
3152
|
-
console.log(JSON.stringify(
|
|
3156
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(comparison), null, 2));
|
|
3153
3157
|
} else {
|
|
3154
3158
|
console.log(formatTable(comparison, results[0], results[1]));
|
|
3155
3159
|
}
|
|
@@ -3195,7 +3199,7 @@ var compareCommand = command({
|
|
|
3195
3199
|
}
|
|
3196
3200
|
const comparison = compareResults(baselineResults, candidateResults, effectiveThreshold);
|
|
3197
3201
|
if (outputFormat === "json") {
|
|
3198
|
-
console.log(JSON.stringify(
|
|
3202
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(comparison), null, 2));
|
|
3199
3203
|
} else {
|
|
3200
3204
|
console.log(formatTable(comparison, baseline, candidate));
|
|
3201
3205
|
}
|
|
@@ -3204,7 +3208,7 @@ var compareCommand = command({
|
|
|
3204
3208
|
} else {
|
|
3205
3209
|
const matrixOutput = compareMatrix(groups, effectiveThreshold);
|
|
3206
3210
|
if (outputFormat === "json") {
|
|
3207
|
-
console.log(JSON.stringify(
|
|
3211
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(matrixOutput), null, 2));
|
|
3208
3212
|
} else {
|
|
3209
3213
|
console.log(formatMatrix(matrixOutput, baseline));
|
|
3210
3214
|
}
|
|
@@ -3991,7 +3995,7 @@ var evalRunCommand = command({
|
|
|
3991
3995
|
},
|
|
3992
3996
|
handler: async (args) => {
|
|
3993
3997
|
if (args.evalPaths.length === 0 && process.stdin.isTTY) {
|
|
3994
|
-
const { launchInteractiveWizard } = await import("./interactive-
|
|
3998
|
+
const { launchInteractiveWizard } = await import("./interactive-7LC5WFP3.js");
|
|
3995
3999
|
await launchInteractiveWizard();
|
|
3996
4000
|
return;
|
|
3997
4001
|
}
|
|
@@ -5014,7 +5018,7 @@ var traceListCommand = command({
|
|
|
5014
5018
|
try {
|
|
5015
5019
|
const metas = listResultFiles(cwd, limit);
|
|
5016
5020
|
if (outputFormat === "json") {
|
|
5017
|
-
console.log(JSON.stringify(
|
|
5021
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(metas), null, 2));
|
|
5018
5022
|
} else {
|
|
5019
5023
|
console.log(formatListTable(metas));
|
|
5020
5024
|
}
|
|
@@ -5473,7 +5477,7 @@ var inspectSearchCommand = command({
|
|
|
5473
5477
|
allMatches.push(...fileMatches);
|
|
5474
5478
|
}
|
|
5475
5479
|
if (format === "json") {
|
|
5476
|
-
console.log(JSON.stringify(
|
|
5480
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(allMatches), null, 2));
|
|
5477
5481
|
} else {
|
|
5478
5482
|
console.log(formatSearchResults(allMatches, pattern));
|
|
5479
5483
|
}
|
|
@@ -5897,7 +5901,7 @@ var traceStatsCommand = command({
|
|
|
5897
5901
|
const groups = groupResults(results, groupBy2);
|
|
5898
5902
|
if (outputFormat === "json") {
|
|
5899
5903
|
const statsJson = computeStatsJson(groups, file);
|
|
5900
|
-
console.log(JSON.stringify(
|
|
5904
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(statsJson), null, 2));
|
|
5901
5905
|
} else {
|
|
5902
5906
|
console.log(formatStatsTable(groups, file));
|
|
5903
5907
|
}
|
|
@@ -11265,7 +11269,7 @@ var trendCommand = command({
|
|
|
11265
11269
|
failOnDegrading
|
|
11266
11270
|
});
|
|
11267
11271
|
if (outputFormat === "json") {
|
|
11268
|
-
console.log(JSON.stringify(
|
|
11272
|
+
console.log(JSON.stringify(toSnakeCaseDeep2(output), null, 2));
|
|
11269
11273
|
} else {
|
|
11270
11274
|
console.log(formatTrendTable(output));
|
|
11271
11275
|
}
|
|
@@ -11303,7 +11307,7 @@ var trimCommand = command({
|
|
|
11303
11307
|
const record = JSON.parse(line);
|
|
11304
11308
|
const camel = toCamelCaseDeep(record);
|
|
11305
11309
|
const trimmed = trimBaselineResult(camel);
|
|
11306
|
-
const snake =
|
|
11310
|
+
const snake = toSnakeCaseDeep(trimmed);
|
|
11307
11311
|
return JSON.stringify(snake);
|
|
11308
11312
|
});
|
|
11309
11313
|
const output = `${trimmedLines.join("\n")}
|
|
@@ -11800,8 +11804,8 @@ var CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
|
11800
11804
|
var CONFIG_DIR = getAgentvConfigDir();
|
|
11801
11805
|
var CACHE_FILE = "version-check.json";
|
|
11802
11806
|
var NPM_REGISTRY_URL = "https://registry.npmjs.org/agentv/latest";
|
|
11803
|
-
async function getCachedUpdateInfo(
|
|
11804
|
-
const filePath =
|
|
11807
|
+
async function getCachedUpdateInfo(path27) {
|
|
11808
|
+
const filePath = path27 ?? join5(CONFIG_DIR, CACHE_FILE);
|
|
11805
11809
|
try {
|
|
11806
11810
|
const raw = await readFile8(filePath, "utf-8");
|
|
11807
11811
|
const data = JSON.parse(raw);
|
|
@@ -11954,6 +11958,13 @@ ${updateNotice}
|
|
|
11954
11958
|
updateNotice = n;
|
|
11955
11959
|
});
|
|
11956
11960
|
const processedArgv = preprocessArgv(argv);
|
|
11961
|
+
const cwd = process.cwd();
|
|
11962
|
+
const repoRoot = await findRepoRoot(cwd);
|
|
11963
|
+
const sessionConfig = await loadConfig(path26.join(cwd, "_"), repoRoot);
|
|
11964
|
+
const beforeSessionCommand = sessionConfig?.hooks?.before_session;
|
|
11965
|
+
if (beforeSessionCommand) {
|
|
11966
|
+
runBeforeSessionHook(beforeSessionCommand);
|
|
11967
|
+
}
|
|
11957
11968
|
await run(binary(app), processedArgv);
|
|
11958
11969
|
}
|
|
11959
11970
|
|
|
@@ -11962,4 +11973,4 @@ export {
|
|
|
11962
11973
|
preprocessArgv,
|
|
11963
11974
|
runCli
|
|
11964
11975
|
};
|
|
11965
|
-
//# sourceMappingURL=chunk-
|
|
11976
|
+
//# sourceMappingURL=chunk-GMMIWIBF.js.map
|