File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ async function parseHookInput<T>(): Promise<T> {
143143 return JSON . parse ( text ) as T ;
144144}
145145
146- async function main ( args : string [ ] ) : Promise < number > {
146+ async function main ( ) : Promise < number > {
147147 try {
148148 const input = await parseHookInput < StopHookInput > ( ) ;
149149 const state = loadState ( ) ;
@@ -159,9 +159,9 @@ async function main(args: string[]): Promise<number> {
159159 const turnsSinceLastRun = state . turnsSinceLastRun + turnIncrement ;
160160 const now = Date . now ( ) ;
161161
162- const trialEnabled =
163- args . includes ( "--trial" ) ||
164- parseBoolean ( readEnvValue ( "CONTINUAL_LEARNING_TRIAL_MODE" , "CONTINUOUS_LEARNING_TRIAL_MODE" ) ) ;
162+ const trialEnabled = parseBoolean (
163+ readEnvValue ( "CONTINUAL_LEARNING_TRIAL_MODE" , "CONTINUOUS_LEARNING_TRIAL_MODE" )
164+ ) ;
165165 if ( trialEnabled && countedTurn && state . trialStartedAtMs === null ) {
166166 state . trialStartedAtMs = now ;
167167 }
@@ -243,5 +243,5 @@ async function main(args: string[]): Promise<number> {
243243 }
244244}
245245
246- const exitCode = await main ( process . argv . slice ( 2 ) ) ;
246+ const exitCode = await main ( ) ;
247247process . exit ( exitCode ) ;
Original file line number Diff line number Diff line change 33 "hooks" : {
44 "stop" : [
55 {
6- "command" : " bun run ./hooks/continual-learning-stop.ts --trial "
6+ "command" : " bun run ./hooks/continual-learning-stop.ts"
77 }
88 ]
99 }
You can’t perform that action at this time.
0 commit comments