@@ -31,7 +31,7 @@ import {
3131 wrapToolWithBeforeToolCallHook ,
3232} from "./agent-tools.before-tool-call.js" ;
3333import {
34- consumeToolExecutionStarted ,
34+ consumeTrackedToolExecutionStarted ,
3535 peekTrackedToolExecutionStarted ,
3636 resetAdjustedParamsByToolCallIdForTests ,
3737} from "./agent-tools.before-tool-call.state.js" ;
@@ -133,7 +133,7 @@ describe("before_tool_call hook integration", () => {
133133 extensionContext ,
134134 ) ;
135135 expect ( peekTrackedToolExecutionStarted ( "call-1" ) ) . toBe ( true ) ;
136- expect ( consumeToolExecutionStarted ( "call-1" ) ) . toBe ( true ) ;
136+ expect ( consumeTrackedToolExecutionStarted ( "call-1" ) ) . toBe ( true ) ;
137137 expect ( peekTrackedToolExecutionStarted ( "call-1" ) ) . toBeUndefined ( ) ;
138138 } ) ;
139139
@@ -225,11 +225,11 @@ describe("before_tool_call hook integration", () => {
225225 } ,
226226 } ) ;
227227 expect ( execute ) . not . toHaveBeenCalled ( ) ;
228- expect ( consumeToolExecutionStarted ( "call-3" ) ) . toBe ( false ) ;
228+ expect ( consumeTrackedToolExecutionStarted ( "call-3" ) ) . toBe ( false ) ;
229229 } ) ;
230230
231231 it ( "does not enter the tool body when a slow hook settles after cancellation" , async ( ) => {
232- let releaseHook = ( ) => undefined ;
232+ let releaseHook : ( ) => void = ( ) => { } ;
233233 const hookGate = new Promise < void > ( ( resolve ) => {
234234 releaseHook = resolve ;
235235 } ) ;
@@ -251,7 +251,7 @@ describe("before_tool_call hook integration", () => {
251251
252252 await expect ( result ) . rejects . toThrow ( "tool timed out" ) ;
253253 expect ( execute ) . not . toHaveBeenCalled ( ) ;
254- expect ( consumeToolExecutionStarted ( "call-late-abort" ) ) . toBe ( false ) ;
254+ expect ( consumeTrackedToolExecutionStarted ( "call-late-abort" ) ) . toBe ( false ) ;
255255 } ) ;
256256
257257 it ( "does not execute lower-priority hooks after block=true" , async ( ) => {
0 commit comments