File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,13 @@ export async function runAgentOnCommit({
108108
109109 const contextFilePaths = new Set < string > ( [
110110 ...commit . supplementalFiles ,
111- ...commit . fileDiffs
112- . filter ( ( fd ) => fd . status !== 'added' )
113- . map ( ( fd ) => fd . path ) ,
111+ ...commit . fileDiffs . map ( ( fd ) => fd . path ) ,
114112 ] )
113+ for ( const { status, path } of commit . fileDiffs ) {
114+ if ( status === 'added' ) {
115+ contextFilePaths . delete ( path )
116+ }
117+ }
115118
116119 for ( const filePath of contextFilePaths ) {
117120 try {
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ import path from 'path'
22import { runGitEvals2 } from './run-git-evals2'
33
44async function main ( ) {
5- console . log ( 'Comparing base and base-lite agents on first 3 commits\n' )
6-
75 const results = await runGitEvals2 ( {
86 evalDataPath : path . join ( __dirname , 'eval-codebuff.json' ) ,
97 agents : [ 'base' , 'base2' ] ,
You can’t perform that action at this time.
0 commit comments