agentv 4.10.0 → 4.11.2-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-XOSNETAV.js → chunk-BAUNAXHT.js} +1 -1
- package/dist/chunk-BPGJ4HBU.js +183 -0
- package/dist/chunk-BPGJ4HBU.js.map +1 -0
- package/dist/{chunk-KF6BABQ5.js → chunk-DHWFLK6T.js} +1090 -303
- package/dist/chunk-DHWFLK6T.js.map +1 -0
- package/dist/{chunk-SE73HJZG.js → chunk-FQGY6QXQ.js} +780 -346
- package/dist/chunk-FQGY6QXQ.js.map +1 -0
- package/dist/chunk-NPVGBFF6.js +151 -0
- package/dist/chunk-NPVGBFF6.js.map +1 -0
- package/dist/{chunk-VA64NETD.js → chunk-YLVQNF23.js} +1120 -731
- package/dist/chunk-YLVQNF23.js.map +1 -0
- package/dist/cli.js +6 -4
- package/dist/cli.js.map +1 -1
- package/dist/{dist-XDNB4WDT.js → dist-HNSXNRVK.js} +36 -3
- package/dist/docker-workspace-RPPXBT27-B4AQHVWA.js +11 -0
- package/dist/{esm-CZAWIY6F.js → esm-UYZ3HJBU.js} +2 -2
- package/dist/esm-UYZ3HJBU.js.map +1 -0
- package/dist/exec-AR6JUUN5-6MBPURPR.js +11 -0
- package/dist/exec-AR6JUUN5-6MBPURPR.js.map +1 -0
- package/dist/index.js +6 -4
- package/dist/{interactive-SNKK6VCV.js → interactive-OPHUF2UP.js} +6 -4
- package/dist/{interactive-SNKK6VCV.js.map → interactive-OPHUF2UP.js.map} +1 -1
- package/dist/{src-ML4D2MC2.js → src-PXDA7QIS.js} +2 -2
- package/dist/studio/assets/index-Bi-KHfNm.js +65 -0
- package/dist/studio/assets/index-D_j-w4UO.css +1 -0
- package/dist/studio/assets/{index-DcwjOyrk.js → index-VyDFrnoK.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-KF6BABQ5.js.map +0 -1
- package/dist/chunk-SE73HJZG.js.map +0 -1
- package/dist/chunk-VA64NETD.js.map +0 -1
- package/dist/studio/assets/index-DHxVz6M9.css +0 -1
- package/dist/studio/assets/index-Y5InSvcS.js +0 -65
- /package/dist/{chunk-XOSNETAV.js.map → chunk-BAUNAXHT.js.map} +0 -0
- /package/dist/{dist-XDNB4WDT.js.map → dist-HNSXNRVK.js.map} +0 -0
- /package/dist/{esm-CZAWIY6F.js.map → docker-workspace-RPPXBT27-B4AQHVWA.js.map} +0 -0
- /package/dist/{src-ML4D2MC2.js.map → src-PXDA7QIS.js.map} +0 -0
package/dist/cli.js
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
runCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YLVQNF23.js";
|
|
6
|
+
import "./chunk-DHWFLK6T.js";
|
|
7
|
+
import "./chunk-FQGY6QXQ.js";
|
|
8
8
|
import "./chunk-QOBQ5XYF.js";
|
|
9
|
+
import "./chunk-NPVGBFF6.js";
|
|
9
10
|
import "./chunk-HQDCIXVH.js";
|
|
10
|
-
import "./chunk-ZKO2LGRR.js";
|
|
11
11
|
import "./chunk-LRULMAAA.js";
|
|
12
|
+
import "./chunk-BPGJ4HBU.js";
|
|
13
|
+
import "./chunk-ZKO2LGRR.js";
|
|
12
14
|
import "./chunk-5H446C7X.js";
|
|
13
15
|
|
|
14
16
|
// src/cli.ts
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCli } from './index.js';\n\nrunCli()\n .then(() => {\n process.exit(0);\n })\n .catch((error) => {\n if (error instanceof Error) {\n console.error(`Error: ${error.message}`);\n if (process.env.DEBUG) {\n console.error(error.stack);\n }\n } else {\n console.error(error);\n }\n process.exit(1);\n });\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCli } from './index.js';\n\nrunCli()\n .then(() => {\n process.exit(0);\n })\n .catch((error) => {\n if (error instanceof Error) {\n console.error(`Error: ${error.message}`);\n if (process.env.DEBUG) {\n console.error(error.stack);\n }\n } else {\n console.error(error);\n }\n process.exit(1);\n });\n"],"mappings":";;;;;;;;;;;;;;;;AAGA,OAAO,EACJ,KAAK,MAAM;AACV,UAAQ,KAAK,CAAC;AAChB,CAAC,EACA,MAAM,CAAC,UAAU;AAChB,MAAI,iBAAiB,OAAO;AAC1B,YAAQ,MAAM,UAAU,MAAM,OAAO,EAAE;AACvC,QAAI,QAAQ,IAAI,OAAO;AACrB,cAAQ,MAAM,MAAM,KAAK;AAAA,IAC3B;AAAA,EACF,OAAO;AACL,YAAQ,MAAM,KAAK;AAAA,EACrB;AACA,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":[]}
|
|
@@ -42,9 +42,11 @@ import {
|
|
|
42
42
|
buildSearchRoots,
|
|
43
43
|
calculateRubricScore,
|
|
44
44
|
captureFileChanges,
|
|
45
|
+
checkoutResultsRepoBranch,
|
|
45
46
|
clampScore,
|
|
46
47
|
cleanupEvalWorkspaces,
|
|
47
48
|
cleanupWorkspace,
|
|
49
|
+
commitAndPushResultsBranch,
|
|
48
50
|
computeTraceSummary,
|
|
49
51
|
computeWorkspaceFingerprint,
|
|
50
52
|
consumeClaudeLogEntries,
|
|
@@ -55,6 +57,7 @@ import {
|
|
|
55
57
|
createAgentKernel,
|
|
56
58
|
createBuiltinProviderRegistry,
|
|
57
59
|
createBuiltinRegistry,
|
|
60
|
+
createDraftResultsPr,
|
|
58
61
|
createProvider,
|
|
59
62
|
createTempWorkspace,
|
|
60
63
|
deepEqual,
|
|
@@ -62,6 +65,7 @@ import {
|
|
|
62
65
|
deriveCategory,
|
|
63
66
|
deriveProjectId,
|
|
64
67
|
detectFormat,
|
|
68
|
+
directorySizeBytes,
|
|
65
69
|
discoverAssertions,
|
|
66
70
|
discoverClaudeSessions,
|
|
67
71
|
discoverCodexSessions,
|
|
@@ -69,6 +73,7 @@ import {
|
|
|
69
73
|
discoverGraders,
|
|
70
74
|
discoverProjects,
|
|
71
75
|
discoverProviders,
|
|
76
|
+
ensureResultsRepoClone,
|
|
72
77
|
ensureVSCodeSubagents,
|
|
73
78
|
evaluate,
|
|
74
79
|
executeScript,
|
|
@@ -93,6 +98,8 @@ import {
|
|
|
93
98
|
getOutputFilenames,
|
|
94
99
|
getProject,
|
|
95
100
|
getProjectsRegistryPath,
|
|
101
|
+
getResultsRepoCachePaths,
|
|
102
|
+
getResultsRepoStatus,
|
|
96
103
|
getSubagentsRoot,
|
|
97
104
|
getTextContent,
|
|
98
105
|
getTraceStateRoot,
|
|
@@ -122,12 +129,15 @@ import {
|
|
|
122
129
|
mergeExecutionMetrics,
|
|
123
130
|
negateScore,
|
|
124
131
|
normalizeLineEndings,
|
|
132
|
+
normalizeResultsExportConfig,
|
|
125
133
|
parseAgentSkillsEvals,
|
|
126
134
|
parseClaudeSession,
|
|
127
135
|
parseCodexSession,
|
|
128
136
|
parseCopilotEvents,
|
|
129
137
|
parseJsonFromText,
|
|
130
138
|
parseJsonSafe,
|
|
139
|
+
prepareResultsRepoBranch,
|
|
140
|
+
pushResultsRepoBranch,
|
|
131
141
|
readJsonFile,
|
|
132
142
|
readTargetDefinitions,
|
|
133
143
|
readTestSuiteMetadata,
|
|
@@ -138,6 +148,8 @@ import {
|
|
|
138
148
|
resolveAndCreateProvider,
|
|
139
149
|
resolveDelegatedTargetDefinition,
|
|
140
150
|
resolveFileReference,
|
|
151
|
+
resolveResultsRepoRunsDir,
|
|
152
|
+
resolveResultsRepoUrl,
|
|
141
153
|
resolveTargetDefinition,
|
|
142
154
|
resolveWorkspaceTemplate,
|
|
143
155
|
rubricEvaluationSchema,
|
|
@@ -159,12 +171,14 @@ import {
|
|
|
159
171
|
scoreToVerdict,
|
|
160
172
|
shouldEnableCache,
|
|
161
173
|
shouldSkipCacheForTemperature,
|
|
174
|
+
stageResultsArtifacts,
|
|
162
175
|
subscribeToClaudeLogEntries,
|
|
163
176
|
subscribeToCodexLogEntries,
|
|
164
177
|
subscribeToCopilotCliLogEntries,
|
|
165
178
|
subscribeToCopilotSdkLogEntries,
|
|
166
179
|
subscribeToPiLogEntries,
|
|
167
180
|
substituteVariables,
|
|
181
|
+
syncResultsRepo,
|
|
168
182
|
toCamelCaseDeep,
|
|
169
183
|
toSnakeCaseDeep,
|
|
170
184
|
toTranscriptJsonLine,
|
|
@@ -173,13 +187,17 @@ import {
|
|
|
173
187
|
transpileEvalYaml,
|
|
174
188
|
transpileEvalYamlFile,
|
|
175
189
|
trimBaselineResult
|
|
176
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-FQGY6QXQ.js";
|
|
177
191
|
import {
|
|
178
192
|
OtlpJsonFileExporter
|
|
179
193
|
} from "./chunk-QOBQ5XYF.js";
|
|
194
|
+
import "./chunk-NPVGBFF6.js";
|
|
180
195
|
import "./chunk-HQDCIXVH.js";
|
|
181
|
-
import "./chunk-ZKO2LGRR.js";
|
|
182
196
|
import "./chunk-LRULMAAA.js";
|
|
197
|
+
import {
|
|
198
|
+
DockerWorkspaceProvider
|
|
199
|
+
} from "./chunk-BPGJ4HBU.js";
|
|
200
|
+
import "./chunk-ZKO2LGRR.js";
|
|
183
201
|
import "./chunk-5H446C7X.js";
|
|
184
202
|
export {
|
|
185
203
|
COMMON_TARGET_SETTINGS,
|
|
@@ -192,6 +210,7 @@ export {
|
|
|
192
210
|
DEFAULT_EXPLORATION_TOOLS,
|
|
193
211
|
DEFAULT_THRESHOLD,
|
|
194
212
|
DeterministicAssertionEvaluator,
|
|
213
|
+
DockerWorkspaceProvider,
|
|
195
214
|
EvaluatorRegistry,
|
|
196
215
|
ExecutionMetricsEvaluator,
|
|
197
216
|
FieldAccuracyEvaluator,
|
|
@@ -227,9 +246,11 @@ export {
|
|
|
227
246
|
buildSearchRoots,
|
|
228
247
|
calculateRubricScore,
|
|
229
248
|
captureFileChanges,
|
|
249
|
+
checkoutResultsRepoBranch,
|
|
230
250
|
clampScore,
|
|
231
251
|
cleanupEvalWorkspaces,
|
|
232
252
|
cleanupWorkspace,
|
|
253
|
+
commitAndPushResultsBranch,
|
|
233
254
|
computeTraceSummary,
|
|
234
255
|
computeWorkspaceFingerprint,
|
|
235
256
|
consumeClaudeLogEntries,
|
|
@@ -240,6 +261,7 @@ export {
|
|
|
240
261
|
createAgentKernel,
|
|
241
262
|
createBuiltinProviderRegistry,
|
|
242
263
|
createBuiltinRegistry,
|
|
264
|
+
createDraftResultsPr,
|
|
243
265
|
createProvider,
|
|
244
266
|
createTempWorkspace,
|
|
245
267
|
deepEqual,
|
|
@@ -247,6 +269,7 @@ export {
|
|
|
247
269
|
deriveCategory,
|
|
248
270
|
deriveProjectId,
|
|
249
271
|
detectFormat,
|
|
272
|
+
directorySizeBytes,
|
|
250
273
|
discoverAssertions,
|
|
251
274
|
discoverClaudeSessions,
|
|
252
275
|
discoverCodexSessions,
|
|
@@ -255,6 +278,7 @@ export {
|
|
|
255
278
|
discoverGraders as discoverJudges,
|
|
256
279
|
discoverProjects,
|
|
257
280
|
discoverProviders,
|
|
281
|
+
ensureResultsRepoClone,
|
|
258
282
|
ensureVSCodeSubagents,
|
|
259
283
|
evaluate,
|
|
260
284
|
executeScript,
|
|
@@ -279,6 +303,8 @@ export {
|
|
|
279
303
|
getOutputFilenames,
|
|
280
304
|
getProject,
|
|
281
305
|
getProjectsRegistryPath,
|
|
306
|
+
getResultsRepoCachePaths,
|
|
307
|
+
getResultsRepoStatus,
|
|
282
308
|
getSubagentsRoot,
|
|
283
309
|
getTextContent,
|
|
284
310
|
getTraceStateRoot,
|
|
@@ -308,12 +334,15 @@ export {
|
|
|
308
334
|
mergeExecutionMetrics,
|
|
309
335
|
negateScore,
|
|
310
336
|
normalizeLineEndings,
|
|
337
|
+
normalizeResultsExportConfig,
|
|
311
338
|
parseAgentSkillsEvals,
|
|
312
339
|
parseClaudeSession,
|
|
313
340
|
parseCodexSession,
|
|
314
341
|
parseCopilotEvents,
|
|
315
342
|
parseJsonFromText,
|
|
316
343
|
parseJsonSafe,
|
|
344
|
+
prepareResultsRepoBranch,
|
|
345
|
+
pushResultsRepoBranch,
|
|
317
346
|
readJsonFile,
|
|
318
347
|
readTargetDefinitions,
|
|
319
348
|
readTestSuiteMetadata,
|
|
@@ -324,6 +353,8 @@ export {
|
|
|
324
353
|
resolveAndCreateProvider,
|
|
325
354
|
resolveDelegatedTargetDefinition,
|
|
326
355
|
resolveFileReference,
|
|
356
|
+
resolveResultsRepoRunsDir,
|
|
357
|
+
resolveResultsRepoUrl,
|
|
327
358
|
resolveTargetDefinition,
|
|
328
359
|
resolveWorkspaceTemplate,
|
|
329
360
|
rubricEvaluationSchema,
|
|
@@ -345,12 +376,14 @@ export {
|
|
|
345
376
|
scoreToVerdict,
|
|
346
377
|
shouldEnableCache,
|
|
347
378
|
shouldSkipCacheForTemperature,
|
|
379
|
+
stageResultsArtifacts,
|
|
348
380
|
subscribeToClaudeLogEntries,
|
|
349
381
|
subscribeToCodexLogEntries,
|
|
350
382
|
subscribeToCopilotCliLogEntries,
|
|
351
383
|
subscribeToCopilotSdkLogEntries,
|
|
352
384
|
subscribeToPiLogEntries,
|
|
353
385
|
substituteVariables,
|
|
386
|
+
syncResultsRepo,
|
|
354
387
|
toCamelCaseDeep,
|
|
355
388
|
toSnakeCaseDeep,
|
|
356
389
|
toTranscriptJsonLine,
|
|
@@ -360,4 +393,4 @@ export {
|
|
|
360
393
|
transpileEvalYamlFile,
|
|
361
394
|
trimBaselineResult
|
|
362
395
|
};
|
|
363
|
-
//# sourceMappingURL=dist-
|
|
396
|
+
//# sourceMappingURL=dist-HNSXNRVK.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
DefaultCommandExecutor,
|
|
4
|
+
DockerWorkspaceProvider
|
|
5
|
+
} from "./chunk-BPGJ4HBU.js";
|
|
6
|
+
import "./chunk-5H446C7X.js";
|
|
7
|
+
export {
|
|
8
|
+
DefaultCommandExecutor,
|
|
9
|
+
DockerWorkspaceProvider
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=docker-workspace-RPPXBT27-B4AQHVWA.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
processDetector,
|
|
12
12
|
resourceFromAttributes,
|
|
13
13
|
serviceInstanceIdDetector
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BAUNAXHT.js";
|
|
15
15
|
import "./chunk-SR4I5KET.js";
|
|
16
16
|
import "./chunk-VQ2ZO7XJ.js";
|
|
17
17
|
import "./chunk-LRULMAAA.js";
|
|
@@ -29,4 +29,4 @@ export {
|
|
|
29
29
|
resourceFromAttributes,
|
|
30
30
|
serviceInstanceIdDetector
|
|
31
31
|
};
|
|
32
|
-
//# sourceMappingURL=esm-
|
|
32
|
+
//# sourceMappingURL=esm-UYZ3HJBU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
execFileWithStdin,
|
|
4
|
+
execShellWithStdin
|
|
5
|
+
} from "./chunk-NPVGBFF6.js";
|
|
6
|
+
import "./chunk-5H446C7X.js";
|
|
7
|
+
export {
|
|
8
|
+
execFileWithStdin,
|
|
9
|
+
execShellWithStdin
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=exec-AR6JUUN5-6MBPURPR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.js
CHANGED
|
@@ -3,13 +3,15 @@ import {
|
|
|
3
3
|
app,
|
|
4
4
|
preprocessArgv,
|
|
5
5
|
runCli
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YLVQNF23.js";
|
|
7
|
+
import "./chunk-DHWFLK6T.js";
|
|
8
|
+
import "./chunk-FQGY6QXQ.js";
|
|
9
9
|
import "./chunk-QOBQ5XYF.js";
|
|
10
|
+
import "./chunk-NPVGBFF6.js";
|
|
10
11
|
import "./chunk-HQDCIXVH.js";
|
|
11
|
-
import "./chunk-ZKO2LGRR.js";
|
|
12
12
|
import "./chunk-LRULMAAA.js";
|
|
13
|
+
import "./chunk-BPGJ4HBU.js";
|
|
14
|
+
import "./chunk-ZKO2LGRR.js";
|
|
13
15
|
import "./chunk-5H446C7X.js";
|
|
14
16
|
export {
|
|
15
17
|
app,
|
|
@@ -7,16 +7,18 @@ import {
|
|
|
7
7
|
findRepoRoot,
|
|
8
8
|
getCategories,
|
|
9
9
|
runEvalCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DHWFLK6T.js";
|
|
11
11
|
import {
|
|
12
12
|
getAgentvHome,
|
|
13
13
|
listTargetNames,
|
|
14
14
|
readTargetDefinitions
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FQGY6QXQ.js";
|
|
16
16
|
import "./chunk-QOBQ5XYF.js";
|
|
17
|
+
import "./chunk-NPVGBFF6.js";
|
|
17
18
|
import "./chunk-HQDCIXVH.js";
|
|
18
|
-
import "./chunk-ZKO2LGRR.js";
|
|
19
19
|
import "./chunk-LRULMAAA.js";
|
|
20
|
+
import "./chunk-BPGJ4HBU.js";
|
|
21
|
+
import "./chunk-ZKO2LGRR.js";
|
|
20
22
|
import "./chunk-5H446C7X.js";
|
|
21
23
|
|
|
22
24
|
// src/commands/eval/interactive.ts
|
|
@@ -326,4 +328,4 @@ ${ANSI_DIM}Retrying execution errors...${ANSI_RESET}
|
|
|
326
328
|
export {
|
|
327
329
|
launchInteractiveWizard
|
|
328
330
|
};
|
|
329
|
-
//# sourceMappingURL=interactive-
|
|
331
|
+
//# sourceMappingURL=interactive-OPHUF2UP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/eval/interactive.ts","../src/commands/eval/last-config.ts"],"sourcesContent":["import path from 'node:path';\nimport { listTargetNames, readTargetDefinitions } from '@agentv/core';\nimport { checkbox, confirm, number, search, select } from '@inquirer/prompts';\n\nimport { TARGET_FILE_CANDIDATES, fileExists } from '../../utils/targets.js';\nimport {\n type DiscoveredEvalFile,\n discoverEvalFiles,\n filterByCategory,\n getCategories,\n} from './discover.js';\nimport { type LastConfig, loadLastConfig, saveLastConfig } from './last-config.js';\nimport { runEvalCommand } from './run-eval.js';\nimport { findRepoRoot } from './shared.js';\n\nconst ANSI_BOLD = '\\x1b[1m';\nconst ANSI_DIM = '\\x1b[2m';\nconst ANSI_CYAN = '\\x1b[36m';\nconst ANSI_GREEN = '\\x1b[32m';\nconst ANSI_RESET = '\\x1b[0m';\n\nexport interface InteractiveConfig {\n readonly evalPaths: readonly string[];\n readonly target: string;\n readonly workers: number;\n readonly dryRun: boolean;\n readonly cache: boolean;\n}\n\n/**\n * Launch the interactive wizard when `agentv eval` is called with no arguments.\n */\nexport async function launchInteractiveWizard(): Promise<void> {\n const cwd = process.cwd();\n\n console.log(`\\n${ANSI_BOLD}${ANSI_CYAN}AgentV Interactive Mode${ANSI_RESET}\\n`);\n\n const lastConfig = await loadLastConfig();\n const action = await promptMainMenu(lastConfig);\n\n if (action === 'exit') {\n return;\n }\n\n if (action === 'rerun' && lastConfig) {\n console.log(`\\n${ANSI_DIM}Rerunning last configuration...${ANSI_RESET}\\n`);\n await executeConfig({\n evalPaths: lastConfig.evalPaths,\n target: lastConfig.target,\n workers: lastConfig.workers,\n dryRun: lastConfig.dryRun,\n cache: lastConfig.cache,\n });\n return;\n }\n\n // Run new evaluation flow\n const config = await promptNewEvaluation(cwd);\n if (!config) {\n return;\n }\n\n // Review & confirm\n const confirmed = await promptReviewAndConfirm(config, cwd);\n if (!confirmed) {\n return;\n }\n\n // Save last config\n await saveLastConfig({\n timestamp: new Date().toISOString(),\n cwd,\n evalPaths: config.evalPaths,\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n });\n\n await executeConfig(config);\n}\n\nasync function promptMainMenu(\n lastConfig: LastConfig | undefined,\n): Promise<'new' | 'rerun' | 'exit'> {\n type MenuChoice = 'new' | 'rerun' | 'exit';\n const choices: Array<{ name: string; value: MenuChoice; description?: string }> = [];\n\n if (lastConfig) {\n const evalCount = lastConfig.evalPaths.length;\n choices.push({\n name: '🔄 Rerun last config',\n value: 'rerun',\n description: `${evalCount} eval file(s), target: ${lastConfig.target}`,\n });\n }\n\n choices.push({ name: '🚀 Run new evaluation', value: 'new' }, { name: '✕ Exit', value: 'exit' });\n\n return select<MenuChoice>({\n message: 'What would you like to do?',\n choices,\n });\n}\n\nasync function promptNewEvaluation(cwd: string): Promise<InteractiveConfig | undefined> {\n // Step 1: Discover eval files\n console.log(`\\n${ANSI_DIM}Scanning for eval files...${ANSI_RESET}`);\n const allFiles = await discoverEvalFiles(cwd);\n\n if (allFiles.length === 0) {\n console.log(\n '\\n⚠ No eval files found in the current directory.\\n' +\n ' Place .yaml or .jsonl eval files in your project, or use:\\n' +\n ' agentv eval <path-to-eval.yaml>\\n',\n );\n return undefined;\n }\n\n console.log(`${ANSI_DIM}Found ${allFiles.length} eval file(s)${ANSI_RESET}\\n`);\n\n // Step 2: Select eval files (optionally filter by category first)\n const selectedFiles = await promptEvalSelection(allFiles);\n if (selectedFiles.length === 0) {\n console.log('\\nNo eval files selected.');\n return undefined;\n }\n\n // Step 3: Select target\n const target = await promptTargetSelection(cwd, selectedFiles[0].path);\n\n // Step 4: Advanced options\n const advanced = await promptAdvancedOptions();\n\n return {\n evalPaths: selectedFiles.map((f) => f.path),\n target,\n ...advanced,\n };\n}\n\nasync function promptEvalSelection(\n allFiles: readonly DiscoveredEvalFile[],\n): Promise<DiscoveredEvalFile[]> {\n const categories = getCategories(allFiles);\n\n // If only one category or few files, skip category selection\n let filesToSelect: readonly DiscoveredEvalFile[];\n\n if (categories.length > 1) {\n const selectedCategory = await search<string>({\n message: 'Select a category (type to search)',\n source: async (term) => {\n const filtered = term\n ? categories.filter((c) => c.toLowerCase().includes(term.toLowerCase()))\n : categories;\n return [\n { name: '(all categories)', value: '__all__' },\n ...filtered.map((c) => {\n const count = filterByCategory(allFiles, c).length;\n return { name: `${c} (${count} file${count > 1 ? 's' : ''})`, value: c };\n }),\n ];\n },\n });\n\n filesToSelect =\n selectedCategory === '__all__' ? allFiles : filterByCategory(allFiles, selectedCategory);\n } else {\n filesToSelect = allFiles;\n }\n\n return checkbox<DiscoveredEvalFile>({\n message: 'Select eval files to run (space to toggle, enter to confirm)',\n choices: filesToSelect.map((f) => ({\n name: f.relativePath,\n value: f,\n checked: filesToSelect.length <= 5, // auto-select if few files\n })),\n required: true,\n });\n}\n\nasync function promptTargetSelection(cwd: string, firstEvalPath: string): Promise<string> {\n const repoRoot = await findRepoRoot(cwd);\n\n // Try to find targets.yaml — search near the eval file first, then cwd/repoRoot\n const targetsPath = await findTargetsFile(cwd, repoRoot, firstEvalPath);\n\n if (!targetsPath) {\n console.log(`${ANSI_DIM}No targets.yaml found. Using default target.${ANSI_RESET}`);\n return 'default';\n }\n\n const definitions = await readTargetDefinitions(targetsPath);\n const targetNames = listTargetNames(definitions);\n\n if (targetNames.length === 0) {\n return 'default';\n }\n\n if (targetNames.length === 1) {\n console.log(`${ANSI_DIM}Using target: ${targetNames[0]}${ANSI_RESET}`);\n return targetNames[0];\n }\n\n return search<string>({\n message: 'Select a target (type to search)',\n source: async (term) => {\n const filtered = term\n ? targetNames.filter((t) => t.toLowerCase().includes(term.toLowerCase()))\n : targetNames;\n return filtered.map((t) => {\n const def = definitions.find((d) => d.name === t);\n return {\n name: t,\n value: t,\n description: def ? `provider: ${def.provider}` : undefined,\n };\n });\n },\n });\n}\n\nasync function findTargetsFile(\n cwd: string,\n repoRoot: string,\n evalFilePath?: string,\n): Promise<string | undefined> {\n // Build directory chain: eval file dir → cwd → repoRoot (mirrors discoverTargetsFile)\n const dirsToSearch: string[] = [];\n\n if (evalFilePath) {\n const evalDir = path.dirname(evalFilePath);\n if (!dirsToSearch.includes(evalDir)) {\n dirsToSearch.push(evalDir);\n }\n }\n\n if (!dirsToSearch.includes(cwd)) {\n dirsToSearch.push(cwd);\n }\n\n if (repoRoot !== cwd && !dirsToSearch.includes(repoRoot)) {\n dirsToSearch.push(repoRoot);\n }\n\n for (const dir of dirsToSearch) {\n for (const candidate of TARGET_FILE_CANDIDATES) {\n const fullPath = `${dir}/${candidate}`;\n if (await fileExists(fullPath)) {\n return fullPath;\n }\n }\n }\n\n return undefined;\n}\n\nasync function promptAdvancedOptions(): Promise<{\n workers: number;\n dryRun: boolean;\n cache: boolean;\n}> {\n const customize = await confirm({\n message: 'Configure advanced options?',\n default: false,\n });\n\n if (!customize) {\n return { workers: 3, dryRun: false, cache: false };\n }\n\n const workers =\n (await number({\n message: 'Number of parallel workers (1-50)',\n default: 3,\n min: 1,\n max: 50,\n })) ?? 3;\n\n const dryRun = await confirm({\n message: 'Enable dry-run mode (mock responses)?',\n default: false,\n });\n\n const cache = await confirm({\n message: 'Enable response cache?',\n default: false,\n });\n\n return { workers, dryRun, cache };\n}\n\nasync function promptReviewAndConfirm(config: InteractiveConfig, cwd: string): Promise<boolean> {\n const evalDisplay = config.evalPaths\n .map((p) => {\n const rel = p.startsWith(cwd) ? p.slice(cwd.length + 1) : p;\n return ` ${rel}`;\n })\n .join('\\n');\n\n console.log(`\\n${ANSI_BOLD}Review Configuration${ANSI_RESET}`);\n console.log(`${ANSI_DIM}${'─'.repeat(40)}${ANSI_RESET}`);\n console.log(`${ANSI_GREEN}Eval files:${ANSI_RESET}\\n${evalDisplay}`);\n console.log(`${ANSI_GREEN}Target:${ANSI_RESET} ${config.target}`);\n console.log(`${ANSI_GREEN}Workers:${ANSI_RESET} ${config.workers}`);\n console.log(`${ANSI_GREEN}Dry run:${ANSI_RESET} ${config.dryRun ? 'yes' : 'no'}`);\n console.log(`${ANSI_GREEN}Cache:${ANSI_RESET} ${config.cache ? 'yes' : 'no'}`);\n console.log(`${ANSI_DIM}${'─'.repeat(40)}${ANSI_RESET}`);\n\n return confirm({\n message: 'Run evaluation with this configuration?',\n default: true,\n });\n}\n\nasync function executeConfig(config: InteractiveConfig): Promise<void> {\n const rawOptions: Record<string, unknown> = {\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n outputFormat: 'jsonl',\n dryRunDelay: 0,\n dryRunDelayMin: 0,\n dryRunDelayMax: 0,\n agentTimeout: 120,\n maxRetries: 2,\n verbose: false,\n keepWorkspaces: false,\n cleanupWorkspaces: false,\n trace: false,\n };\n\n const result = await runEvalCommand({\n testFiles: [...config.evalPaths],\n rawOptions,\n });\n\n // Prompt to retry errors when execution errors were detected in a TTY\n if (result && result.executionErrorCount > 0 && process.stdin.isTTY) {\n await promptRetryErrors(config, result.outputPath);\n }\n}\n\nasync function promptRetryErrors(config: InteractiveConfig, outputPath: string): Promise<void> {\n const shouldRetry = await confirm({\n message: `Retry ${ANSI_BOLD}execution errors${ANSI_RESET} from this run?`,\n default: true,\n });\n\n if (!shouldRetry) {\n return;\n }\n\n console.log(`\\n${ANSI_DIM}Retrying execution errors...${ANSI_RESET}\\n`);\n\n const rawOptions: Record<string, unknown> = {\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n outputFormat: 'jsonl',\n retryErrors: outputPath,\n out: outputPath,\n dryRunDelay: 0,\n dryRunDelayMin: 0,\n dryRunDelayMax: 0,\n agentTimeout: 120,\n maxRetries: 2,\n verbose: false,\n keepWorkspaces: false,\n cleanupWorkspaces: false,\n trace: false,\n };\n\n const retryResult = await runEvalCommand({\n testFiles: [...config.evalPaths],\n rawOptions,\n });\n\n // Allow chained retries if there are still errors\n if (retryResult && retryResult.executionErrorCount > 0 && process.stdin.isTTY) {\n await promptRetryErrors(config, retryResult.outputPath);\n }\n}\n","import { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport path from 'node:path';\nimport { getAgentvHome } from '@agentv/core';\n\nconst AGENTV_DIR = getAgentvHome();\nconst LAST_CONFIG_PATH = path.join(AGENTV_DIR, 'last-config.json');\n\nexport interface LastConfig {\n readonly timestamp: string;\n readonly cwd: string;\n readonly evalPaths: readonly string[];\n readonly target: string;\n readonly workers: number;\n readonly dryRun: boolean;\n readonly cache: boolean;\n}\n\nexport async function loadLastConfig(): Promise<LastConfig | undefined> {\n try {\n const content = await readFile(LAST_CONFIG_PATH, 'utf-8');\n return JSON.parse(content) as LastConfig;\n } catch {\n return undefined;\n }\n}\n\nexport async function saveLastConfig(config: LastConfig): Promise<void> {\n await mkdir(AGENTV_DIR, { recursive: true });\n await writeFile(LAST_CONFIG_PATH, JSON.stringify(config, null, 2), 'utf-8');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,WAAU;AAEjB,SAAS,UAAU,SAAS,QAAQ,QAAQ,cAAc;;;ACF1D,SAAS,OAAO,UAAU,iBAAiB;AAC3C,OAAO,UAAU;AAGjB,IAAM,aAAa,cAAc;AACjC,IAAM,mBAAmB,KAAK,KAAK,YAAY,kBAAkB;AAYjE,eAAsB,iBAAkD;AACtE,MAAI;AACF,UAAM,UAAU,MAAM,SAAS,kBAAkB,OAAO;AACxD,WAAO,KAAK,MAAM,OAAO;AAAA,EAC3B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,eAAsB,eAAe,QAAmC;AACtE,QAAM,MAAM,YAAY,EAAE,WAAW,KAAK,CAAC;AAC3C,QAAM,UAAU,kBAAkB,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,OAAO;AAC5E;;;ADdA,IAAM,YAAY;AAClB,IAAM,WAAW;AACjB,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ClC,WAAW,CAAC,GAAG,OAAO,SAAS;AAAA,IAC/B;AAAA,EACF,CAAC;AAGD,MAAI,UAAU,OAAO,sBAAsB,KAAK,QAAQ,MAAM,OAAO;AACnE,UAAM,kBAAkB,QAAQ,OAAO,UAAU;AAAA,EACnD;AACF;AAEA,eAAe,kBAAkB,QAA2B,YAAmC;AAC7F,QAAM,cAAc,MAAM,QAAQ;AAAA,IAChC,SAAS,SAAS,SAAS,mBAAmB,UAAU;AAAA,IACxD,SAAS;AAAA,EACX,CAAC;AAED,MAAI,CAAC,aAAa;AAChB;AAAA,EACF;AAEA,UAAQ,IAAI;AAAA,EAAK,QAAQ,+BAA+B,UAAU;AAAA,CAAI;AAEtE,QAAM,aAAsC;AAAA,IAC1C,QAAQ,OAAO;AAAA,IACf,SAAS,OAAO;AAAA,IAChB,QAAQ,OAAO;AAAA,IACf,OAAO,OAAO;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,IACb,KAAK;AAAA,IACL,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,OAAO;AAAA,EACT;AAEA,QAAM,cAAc,MAAM,eAAe;AAAA,IACvC,WAAW,CAAC,GAAG,OAAO,SAAS;AAAA,IAC/B;AAAA,EACF,CAAC;AAGD,MAAI,eAAe,YAAY,sBAAsB,KAAK,QAAQ,MAAM,OAAO;AAC7E,UAAM,kBAAkB,QAAQ,YAAY,UAAU;AAAA,EACxD;AACF;","names":["path","path"]}
|
|
1
|
+
{"version":3,"sources":["../src/commands/eval/interactive.ts","../src/commands/eval/last-config.ts"],"sourcesContent":["import path from 'node:path';\nimport { listTargetNames, readTargetDefinitions } from '@agentv/core';\nimport { checkbox, confirm, number, search, select } from '@inquirer/prompts';\n\nimport { TARGET_FILE_CANDIDATES, fileExists } from '../../utils/targets.js';\nimport {\n type DiscoveredEvalFile,\n discoverEvalFiles,\n filterByCategory,\n getCategories,\n} from './discover.js';\nimport { type LastConfig, loadLastConfig, saveLastConfig } from './last-config.js';\nimport { runEvalCommand } from './run-eval.js';\nimport { findRepoRoot } from './shared.js';\n\nconst ANSI_BOLD = '\\x1b[1m';\nconst ANSI_DIM = '\\x1b[2m';\nconst ANSI_CYAN = '\\x1b[36m';\nconst ANSI_GREEN = '\\x1b[32m';\nconst ANSI_RESET = '\\x1b[0m';\n\nexport interface InteractiveConfig {\n readonly evalPaths: readonly string[];\n readonly target: string;\n readonly workers: number;\n readonly dryRun: boolean;\n readonly cache: boolean;\n}\n\n/**\n * Launch the interactive wizard when `agentv eval` is called with no arguments.\n */\nexport async function launchInteractiveWizard(): Promise<void> {\n const cwd = process.cwd();\n\n console.log(`\\n${ANSI_BOLD}${ANSI_CYAN}AgentV Interactive Mode${ANSI_RESET}\\n`);\n\n const lastConfig = await loadLastConfig();\n const action = await promptMainMenu(lastConfig);\n\n if (action === 'exit') {\n return;\n }\n\n if (action === 'rerun' && lastConfig) {\n console.log(`\\n${ANSI_DIM}Rerunning last configuration...${ANSI_RESET}\\n`);\n await executeConfig({\n evalPaths: lastConfig.evalPaths,\n target: lastConfig.target,\n workers: lastConfig.workers,\n dryRun: lastConfig.dryRun,\n cache: lastConfig.cache,\n });\n return;\n }\n\n // Run new evaluation flow\n const config = await promptNewEvaluation(cwd);\n if (!config) {\n return;\n }\n\n // Review & confirm\n const confirmed = await promptReviewAndConfirm(config, cwd);\n if (!confirmed) {\n return;\n }\n\n // Save last config\n await saveLastConfig({\n timestamp: new Date().toISOString(),\n cwd,\n evalPaths: config.evalPaths,\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n });\n\n await executeConfig(config);\n}\n\nasync function promptMainMenu(\n lastConfig: LastConfig | undefined,\n): Promise<'new' | 'rerun' | 'exit'> {\n type MenuChoice = 'new' | 'rerun' | 'exit';\n const choices: Array<{ name: string; value: MenuChoice; description?: string }> = [];\n\n if (lastConfig) {\n const evalCount = lastConfig.evalPaths.length;\n choices.push({\n name: '🔄 Rerun last config',\n value: 'rerun',\n description: `${evalCount} eval file(s), target: ${lastConfig.target}`,\n });\n }\n\n choices.push({ name: '🚀 Run new evaluation', value: 'new' }, { name: '✕ Exit', value: 'exit' });\n\n return select<MenuChoice>({\n message: 'What would you like to do?',\n choices,\n });\n}\n\nasync function promptNewEvaluation(cwd: string): Promise<InteractiveConfig | undefined> {\n // Step 1: Discover eval files\n console.log(`\\n${ANSI_DIM}Scanning for eval files...${ANSI_RESET}`);\n const allFiles = await discoverEvalFiles(cwd);\n\n if (allFiles.length === 0) {\n console.log(\n '\\n⚠ No eval files found in the current directory.\\n' +\n ' Place .yaml or .jsonl eval files in your project, or use:\\n' +\n ' agentv eval <path-to-eval.yaml>\\n',\n );\n return undefined;\n }\n\n console.log(`${ANSI_DIM}Found ${allFiles.length} eval file(s)${ANSI_RESET}\\n`);\n\n // Step 2: Select eval files (optionally filter by category first)\n const selectedFiles = await promptEvalSelection(allFiles);\n if (selectedFiles.length === 0) {\n console.log('\\nNo eval files selected.');\n return undefined;\n }\n\n // Step 3: Select target\n const target = await promptTargetSelection(cwd, selectedFiles[0].path);\n\n // Step 4: Advanced options\n const advanced = await promptAdvancedOptions();\n\n return {\n evalPaths: selectedFiles.map((f) => f.path),\n target,\n ...advanced,\n };\n}\n\nasync function promptEvalSelection(\n allFiles: readonly DiscoveredEvalFile[],\n): Promise<DiscoveredEvalFile[]> {\n const categories = getCategories(allFiles);\n\n // If only one category or few files, skip category selection\n let filesToSelect: readonly DiscoveredEvalFile[];\n\n if (categories.length > 1) {\n const selectedCategory = await search<string>({\n message: 'Select a category (type to search)',\n source: async (term) => {\n const filtered = term\n ? categories.filter((c) => c.toLowerCase().includes(term.toLowerCase()))\n : categories;\n return [\n { name: '(all categories)', value: '__all__' },\n ...filtered.map((c) => {\n const count = filterByCategory(allFiles, c).length;\n return { name: `${c} (${count} file${count > 1 ? 's' : ''})`, value: c };\n }),\n ];\n },\n });\n\n filesToSelect =\n selectedCategory === '__all__' ? allFiles : filterByCategory(allFiles, selectedCategory);\n } else {\n filesToSelect = allFiles;\n }\n\n return checkbox<DiscoveredEvalFile>({\n message: 'Select eval files to run (space to toggle, enter to confirm)',\n choices: filesToSelect.map((f) => ({\n name: f.relativePath,\n value: f,\n checked: filesToSelect.length <= 5, // auto-select if few files\n })),\n required: true,\n });\n}\n\nasync function promptTargetSelection(cwd: string, firstEvalPath: string): Promise<string> {\n const repoRoot = await findRepoRoot(cwd);\n\n // Try to find targets.yaml — search near the eval file first, then cwd/repoRoot\n const targetsPath = await findTargetsFile(cwd, repoRoot, firstEvalPath);\n\n if (!targetsPath) {\n console.log(`${ANSI_DIM}No targets.yaml found. Using default target.${ANSI_RESET}`);\n return 'default';\n }\n\n const definitions = await readTargetDefinitions(targetsPath);\n const targetNames = listTargetNames(definitions);\n\n if (targetNames.length === 0) {\n return 'default';\n }\n\n if (targetNames.length === 1) {\n console.log(`${ANSI_DIM}Using target: ${targetNames[0]}${ANSI_RESET}`);\n return targetNames[0];\n }\n\n return search<string>({\n message: 'Select a target (type to search)',\n source: async (term) => {\n const filtered = term\n ? targetNames.filter((t) => t.toLowerCase().includes(term.toLowerCase()))\n : targetNames;\n return filtered.map((t) => {\n const def = definitions.find((d) => d.name === t);\n return {\n name: t,\n value: t,\n description: def ? `provider: ${def.provider}` : undefined,\n };\n });\n },\n });\n}\n\nasync function findTargetsFile(\n cwd: string,\n repoRoot: string,\n evalFilePath?: string,\n): Promise<string | undefined> {\n // Build directory chain: eval file dir → cwd → repoRoot (mirrors discoverTargetsFile)\n const dirsToSearch: string[] = [];\n\n if (evalFilePath) {\n const evalDir = path.dirname(evalFilePath);\n if (!dirsToSearch.includes(evalDir)) {\n dirsToSearch.push(evalDir);\n }\n }\n\n if (!dirsToSearch.includes(cwd)) {\n dirsToSearch.push(cwd);\n }\n\n if (repoRoot !== cwd && !dirsToSearch.includes(repoRoot)) {\n dirsToSearch.push(repoRoot);\n }\n\n for (const dir of dirsToSearch) {\n for (const candidate of TARGET_FILE_CANDIDATES) {\n const fullPath = `${dir}/${candidate}`;\n if (await fileExists(fullPath)) {\n return fullPath;\n }\n }\n }\n\n return undefined;\n}\n\nasync function promptAdvancedOptions(): Promise<{\n workers: number;\n dryRun: boolean;\n cache: boolean;\n}> {\n const customize = await confirm({\n message: 'Configure advanced options?',\n default: false,\n });\n\n if (!customize) {\n return { workers: 3, dryRun: false, cache: false };\n }\n\n const workers =\n (await number({\n message: 'Number of parallel workers (1-50)',\n default: 3,\n min: 1,\n max: 50,\n })) ?? 3;\n\n const dryRun = await confirm({\n message: 'Enable dry-run mode (mock responses)?',\n default: false,\n });\n\n const cache = await confirm({\n message: 'Enable response cache?',\n default: false,\n });\n\n return { workers, dryRun, cache };\n}\n\nasync function promptReviewAndConfirm(config: InteractiveConfig, cwd: string): Promise<boolean> {\n const evalDisplay = config.evalPaths\n .map((p) => {\n const rel = p.startsWith(cwd) ? p.slice(cwd.length + 1) : p;\n return ` ${rel}`;\n })\n .join('\\n');\n\n console.log(`\\n${ANSI_BOLD}Review Configuration${ANSI_RESET}`);\n console.log(`${ANSI_DIM}${'─'.repeat(40)}${ANSI_RESET}`);\n console.log(`${ANSI_GREEN}Eval files:${ANSI_RESET}\\n${evalDisplay}`);\n console.log(`${ANSI_GREEN}Target:${ANSI_RESET} ${config.target}`);\n console.log(`${ANSI_GREEN}Workers:${ANSI_RESET} ${config.workers}`);\n console.log(`${ANSI_GREEN}Dry run:${ANSI_RESET} ${config.dryRun ? 'yes' : 'no'}`);\n console.log(`${ANSI_GREEN}Cache:${ANSI_RESET} ${config.cache ? 'yes' : 'no'}`);\n console.log(`${ANSI_DIM}${'─'.repeat(40)}${ANSI_RESET}`);\n\n return confirm({\n message: 'Run evaluation with this configuration?',\n default: true,\n });\n}\n\nasync function executeConfig(config: InteractiveConfig): Promise<void> {\n const rawOptions: Record<string, unknown> = {\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n outputFormat: 'jsonl',\n dryRunDelay: 0,\n dryRunDelayMin: 0,\n dryRunDelayMax: 0,\n agentTimeout: 120,\n maxRetries: 2,\n verbose: false,\n keepWorkspaces: false,\n cleanupWorkspaces: false,\n trace: false,\n };\n\n const result = await runEvalCommand({\n testFiles: [...config.evalPaths],\n rawOptions,\n });\n\n // Prompt to retry errors when execution errors were detected in a TTY\n if (result && result.executionErrorCount > 0 && process.stdin.isTTY) {\n await promptRetryErrors(config, result.outputPath);\n }\n}\n\nasync function promptRetryErrors(config: InteractiveConfig, outputPath: string): Promise<void> {\n const shouldRetry = await confirm({\n message: `Retry ${ANSI_BOLD}execution errors${ANSI_RESET} from this run?`,\n default: true,\n });\n\n if (!shouldRetry) {\n return;\n }\n\n console.log(`\\n${ANSI_DIM}Retrying execution errors...${ANSI_RESET}\\n`);\n\n const rawOptions: Record<string, unknown> = {\n target: config.target,\n workers: config.workers,\n dryRun: config.dryRun,\n cache: config.cache,\n outputFormat: 'jsonl',\n retryErrors: outputPath,\n out: outputPath,\n dryRunDelay: 0,\n dryRunDelayMin: 0,\n dryRunDelayMax: 0,\n agentTimeout: 120,\n maxRetries: 2,\n verbose: false,\n keepWorkspaces: false,\n cleanupWorkspaces: false,\n trace: false,\n };\n\n const retryResult = await runEvalCommand({\n testFiles: [...config.evalPaths],\n rawOptions,\n });\n\n // Allow chained retries if there are still errors\n if (retryResult && retryResult.executionErrorCount > 0 && process.stdin.isTTY) {\n await promptRetryErrors(config, retryResult.outputPath);\n }\n}\n","import { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport path from 'node:path';\nimport { getAgentvHome } from '@agentv/core';\n\nconst AGENTV_DIR = getAgentvHome();\nconst LAST_CONFIG_PATH = path.join(AGENTV_DIR, 'last-config.json');\n\nexport interface LastConfig {\n readonly timestamp: string;\n readonly cwd: string;\n readonly evalPaths: readonly string[];\n readonly target: string;\n readonly workers: number;\n readonly dryRun: boolean;\n readonly cache: boolean;\n}\n\nexport async function loadLastConfig(): Promise<LastConfig | undefined> {\n try {\n const content = await readFile(LAST_CONFIG_PATH, 'utf-8');\n return JSON.parse(content) as LastConfig;\n } catch {\n return undefined;\n }\n}\n\nexport async function saveLastConfig(config: LastConfig): Promise<void> {\n await mkdir(AGENTV_DIR, { recursive: true });\n await writeFile(LAST_CONFIG_PATH, JSON.stringify(config, null, 2), 'utf-8');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,WAAU;AAEjB,SAAS,UAAU,SAAS,QAAQ,QAAQ,cAAc;;;ACF1D,SAAS,OAAO,UAAU,iBAAiB;AAC3C,OAAO,UAAU;AAGjB,IAAM,aAAa,cAAc;AACjC,IAAM,mBAAmB,KAAK,KAAK,YAAY,kBAAkB;AAYjE,eAAsB,iBAAkD;AACtE,MAAI;AACF,UAAM,UAAU,MAAM,SAAS,kBAAkB,OAAO;AACxD,WAAO,KAAK,MAAM,OAAO;AAAA,EAC3B,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,eAAsB,eAAe,QAAmC;AACtE,QAAM,MAAM,YAAY,EAAE,WAAW,KAAK,CAAC;AAC3C,QAAM,UAAU,kBAAkB,KAAK,UAAU,QAAQ,MAAM,CAAC,GAAG,OAAO;AAC5E;;;ADdA,IAAM,YAAY;AAClB,IAAM,WAAW;AACjB,IAAM,YAAY;AAClB,IAAM,aAAa;AACnB,IAAM,aAAa;AAanB,eAAsB,0BAAyC;AAC7D,QAAM,MAAM,QAAQ,IAAI;AAExB,UAAQ,IAAI;AAAA,EAAK,SAAS,GAAG,SAAS,0BAA0B,UAAU;AAAA,CAAI;AAE9E,QAAM,aAAa,MAAM,eAAe;AACxC,QAAM,SAAS,MAAM,eAAe,UAAU;AAE9C,MAAI,WAAW,QAAQ;AACrB;AAAA,EACF;AAEA,MAAI,WAAW,WAAW,YAAY;AACpC,YAAQ,IAAI;AAAA,EAAK,QAAQ,kCAAkC,UAAU;AAAA,CAAI;AACz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A,EAAK,QAAQ,+BAA+B,UAAU;AAAA,CAAI;AAEtE,QAAM,aAAsC;AAAA,IAC1C,QAAQ,OAAO;AAAA,IACf,SAAS,OAAO;AAAA,IAChB,QAAQ,OAAO;AAAA,IACf,OAAO,OAAO;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,IACb,KAAK;AAAA,IACL,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,OAAO;AAAA,EACT;AAEA,QAAM,cAAc,MAAM,eAAe;AAAA,IACvC,WAAW,CAAC,GAAG,OAAO,SAAS;AAAA,IAC/B;AAAA,EACF,CAAC;AAGD,MAAI,eAAe,YAAY,sBAAsB,KAAK,QAAQ,MAAM,OAAO;AAC7E,UAAM,kBAAkB,QAAQ,YAAY,UAAU;AAAA,EACxD;AACF;","names":["path","path"]}
|
|
@@ -2,7 +2,7 @@ import { createRequire } from 'node:module'; const require = createRequire(impor
|
|
|
2
2
|
import {
|
|
3
3
|
defaultResource,
|
|
4
4
|
init_esm as init_esm4
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BAUNAXHT.js";
|
|
6
6
|
import {
|
|
7
7
|
BindOnceFuture,
|
|
8
8
|
ExportResultCode,
|
|
@@ -1730,4 +1730,4 @@ var require_src2 = __commonJS({
|
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
export default require_src2();
|
|
1733
|
-
//# sourceMappingURL=src-
|
|
1733
|
+
//# sourceMappingURL=src-PXDA7QIS.js.map
|