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

Method handleRequestState

packages/ai-client/src/devtools.ts:612–627  ·  view source on GitHub ↗
(
    event: AIDevtoolsEvent<{ targetHookId?: string }>,
  )

Source from the content-addressed store, hash-verified

610 }
611
612 private handleRequestState(
613 event: AIDevtoolsEvent<{ targetHookId?: string }>,
614 ): void {
615 if (this.disposed || this.superseded) {
616 return
617 }
618
619 const targetHookId = event.payload.targetHookId
620 if (targetHookId && targetHookId !== this.options.hookId) {
621 return
622 }
623
624 this.emitRegistered()
625 this.emitToolsRegistered()
626 this.emitSnapshot()
627 }
628
629 private async handleToolFixtureApply(
630 event: AIDevtoolsEvent<AIDevtoolsToolFixture>,

Callers 1

activateMethod · 0.95

Calls 3

emitRegisteredMethod · 0.95
emitToolsRegisteredMethod · 0.95
emitSnapshotMethod · 0.95

Tested by

no test coverage detected