* Perform a full fixtures reset: clear the fixtures array, journal, video/fal * generation state, and the interaction/event-id counters, then zero the * `aimock_fixtures_loaded` gauge. Shared by `/reset/fixtures` and the * deprecated `/reset` alias.
( fixtures: Fixture[], journal: Journal, videoStates: VideoStateMap, openRouterVideoJobs: OpenRouterVideoJobMap, veoVideoJobs: VeoVideoJobMap, grokVideoJobs: GrokVideoJobMap, defaults: HandlerDefaults, )
| 252 | * deprecated `/reset` alias. |
| 253 | */ |
| 254 | function performFixturesReset( |
| 255 | fixtures: Fixture[], |
| 256 | journal: Journal, |
| 257 | videoStates: VideoStateMap, |
| 258 | openRouterVideoJobs: OpenRouterVideoJobMap, |
| 259 | veoVideoJobs: VeoVideoJobMap, |
| 260 | grokVideoJobs: GrokVideoJobMap, |
| 261 | defaults: HandlerDefaults, |
| 262 | ): void { |
| 263 | fixtures.length = 0; |
| 264 | journal.clear(); |
| 265 | videoStates.clear(); |
| 266 | openRouterVideoJobs.clear(); |
| 267 | veoVideoJobs.clear(); |
| 268 | grokVideoJobs.clear(); |
| 269 | falJobs.clear(); |
| 270 | falQueueStates.clear(); |
| 271 | resetInteractionCounter(); |
| 272 | resetEventIdCounter(); |
| 273 | if (defaults.registry) { |
| 274 | defaults.registry.setGauge("aimock_fixtures_loaded", {}, fixtures.length); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | /** |
| 279 | * Handle requests under `/__aimock/`. Returns `true` if the request was |
no test coverage detected
searching dependent graphs…