(
event: AIDevtoolsEvent<AIDevtoolsToolFixture>,
)
| 627 | } |
| 628 | |
| 629 | private async handleToolFixtureApply( |
| 630 | event: AIDevtoolsEvent<AIDevtoolsToolFixture>, |
| 631 | ): Promise<void> { |
| 632 | const fixture = event.payload |
| 633 | if (!this.matchesFixtureTarget(fixture)) { |
| 634 | return |
| 635 | } |
| 636 | |
| 637 | await this.options.applyToolFixture?.(fixture) |
| 638 | } |
| 639 | |
| 640 | private matchesFixtureTarget(fixture: AIDevtoolsToolFixture): boolean { |
| 641 | if (!fixture.hookId && !fixture.threadId) { |
no test coverage detected