MCPcopy Index your code
hub / github.com/TanStack/ai / handleToolFixtureApply

Method handleToolFixtureApply

packages/ai-client/src/devtools.ts:629–638  ·  view source on GitHub ↗
(
    event: AIDevtoolsEvent<AIDevtoolsToolFixture>,
  )

Source from the content-addressed store, hash-verified

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) {

Callers 1

activateMethod · 0.95

Calls 1

matchesFixtureTargetMethod · 0.95

Tested by

no test coverage detected