@rozenite/tanstack-query-plugin 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/devtools/assets/{CXEL7IU7-BWccRGN3.js → CXEL7IU7-D2MCp9XC.js} +1 -1
  3. package/dist/devtools/assets/{tanstack-query-CbF_imft.js → tanstack-query-Bk8rHBM2.js} +12 -12
  4. package/dist/devtools/tanstack-query.html +1 -1
  5. package/dist/react-native/cjs/package.json +3 -0
  6. package/dist/react-native/cjs/react-native.js +12 -0
  7. package/dist/react-native/cjs/src/react-native/agent/tanstack-query-agent.js +376 -0
  8. package/dist/react-native/cjs/src/react-native/agent/useTanStackQueryAgentTools.js +98 -0
  9. package/dist/react-native/cjs/src/react-native/devtools-actions.js +161 -0
  10. package/dist/react-native/cjs/src/react-native/useHandleDevToolsMessages.js +26 -0
  11. package/dist/react-native/cjs/src/react-native/useHandleInitialData.js +26 -0
  12. package/dist/react-native/cjs/src/react-native/useSyncTanStackCache.js +203 -0
  13. package/dist/react-native/cjs/src/react-native/useTanStackQueryDevTools.js +20 -0
  14. package/dist/react-native/cjs/src/shared/agent-tools.js +197 -0
  15. package/dist/react-native/cjs/src/shared/dehydrate.js +35 -0
  16. package/dist/react-native/cjs/src/shared/messaging.js +2 -0
  17. package/dist/react-native/cjs/src/shared/types.js +2 -0
  18. package/dist/react-native/cjs/src/shared/useSyncOnlineStatus.js +23 -0
  19. package/dist/react-native/package.json +3 -0
  20. package/dist/react-native/react-native.d.ts +1 -0
  21. package/dist/react-native/react-native.js +10 -0
  22. package/dist/{sdk/index.d.ts → react-native/src/react-native/agent/tanstack-query-agent.d.ts} +2105 -1939
  23. package/dist/react-native/src/react-native/agent/tanstack-query-agent.js +370 -0
  24. package/dist/react-native/src/react-native/agent/useTanStackQueryAgentTools.d.ts +2 -0
  25. package/dist/react-native/src/react-native/agent/useTanStackQueryAgentTools.js +94 -0
  26. package/dist/react-native/src/react-native/devtools-actions.d.ts +115 -0
  27. package/dist/react-native/src/react-native/devtools-actions.js +157 -0
  28. package/dist/react-native/src/react-native/useHandleDevToolsMessages.d.ts +3 -0
  29. package/dist/react-native/src/react-native/useHandleDevToolsMessages.js +22 -0
  30. package/dist/react-native/src/react-native/useHandleInitialData.d.ts +3 -0
  31. package/dist/react-native/src/react-native/useHandleInitialData.js +22 -0
  32. package/dist/react-native/src/react-native/useSyncTanStackCache.d.ts +3 -0
  33. package/dist/react-native/src/react-native/useSyncTanStackCache.js +196 -0
  34. package/dist/react-native/src/react-native/useTanStackQueryDevTools.d.ts +2 -0
  35. package/dist/react-native/src/react-native/useTanStackQueryDevTools.js +16 -0
  36. package/dist/react-native/src/shared/agent-tools.d.ts +967 -0
  37. package/dist/react-native/src/shared/agent-tools.js +194 -0
  38. package/dist/react-native/src/shared/dehydrate.d.ts +6 -0
  39. package/dist/react-native/src/shared/dehydrate.js +28 -0
  40. package/dist/react-native/src/shared/messaging.d.ts +44 -0
  41. package/dist/react-native/src/shared/messaging.js +1 -0
  42. package/dist/react-native/src/shared/types.d.ts +25 -0
  43. package/dist/react-native/src/shared/types.js +1 -0
  44. package/dist/react-native/src/shared/useSyncOnlineStatus.d.ts +2 -0
  45. package/dist/react-native/src/shared/useSyncOnlineStatus.js +19 -0
  46. package/dist/rozenite.json +1 -1
  47. package/dist/sdk/package.json +3 -0
  48. package/dist/sdk/sdk.d.ts +812 -0
  49. package/dist/sdk/sdk.js +8 -0
  50. package/dist/sdk/src/react-native/devtools-actions.d.ts +115 -0
  51. package/dist/sdk/src/react-native/devtools-actions.js +161 -0
  52. package/dist/sdk/src/shared/agent-tools.d.ts +967 -0
  53. package/dist/sdk/src/shared/agent-tools.js +197 -0
  54. package/dist/sdk/src/shared/types.d.ts +25 -0
  55. package/dist/sdk/src/shared/types.js +2 -0
  56. package/package.json +18 -18
  57. package/react-native.ts +8 -1
  58. package/rozenite.config.ts +1 -0
  59. package/src/__tests__/release-bundle.test.ts +32 -0
  60. package/tsconfig.json +1 -3
  61. package/dist/react-native/chunks/useTanStackQueryDevTools.require.cjs +0 -1
  62. package/dist/react-native/chunks/useTanStackQueryDevTools.require.js +0 -895
  63. package/dist/react-native/index.cjs +0 -1
  64. package/dist/react-native/index.d.ts +0 -7
  65. package/dist/react-native/index.js +0 -6
  66. package/dist/sdk/index.cjs +0 -1
  67. package/dist/sdk/index.js +0 -199
@@ -1,1939 +1,2105 @@
1
- import { AgentToolContract } from '@rozenite/agent-shared';
2
- import { AgentToolDescriptor } from '@rozenite/agent-shared';
3
- import { FetchStatus } from '@tanstack/react-query';
4
- import { MutationStatus } from '@tanstack/react-query';
5
- import { QueryClient } from '@tanstack/react-query';
6
- import { QueryStatus } from '@tanstack/react-query';
7
-
8
- declare const applyTanStackQueryDevtoolsAction: (queryClient: QueryClient, input: TanStackQueryDevtoolsActionInput) => Promise<{
9
- applied: boolean;
10
- action: "CLEAR_QUERY_CACHE";
11
- cleared: boolean;
12
- queryCountBefore: number;
13
- queryCountAfter: number;
14
- mutationCountBefore?: undefined;
15
- mutationCountAfter?: undefined;
16
- queryHash?: undefined;
17
- } | {
18
- applied: boolean;
19
- action: "CLEAR_MUTATION_CACHE";
20
- cleared: boolean;
21
- mutationCountBefore: number;
22
- mutationCountAfter: number;
23
- queryCountBefore?: undefined;
24
- queryCountAfter?: undefined;
25
- queryHash?: undefined;
26
- } | {
27
- applied: boolean;
28
- action: "SET_QUERY_DATA";
29
- queryHash: string;
30
- cleared?: undefined;
31
- queryCountBefore?: undefined;
32
- queryCountAfter?: undefined;
33
- mutationCountBefore?: undefined;
34
- mutationCountAfter?: undefined;
35
- } | {
36
- applied: boolean;
37
- action: "TRIGGER_ERROR";
38
- queryHash: string;
39
- cleared?: undefined;
40
- queryCountBefore?: undefined;
41
- queryCountAfter?: undefined;
42
- mutationCountBefore?: undefined;
43
- mutationCountAfter?: undefined;
44
- } | {
45
- applied: boolean;
46
- action: "RESTORE_ERROR";
47
- queryHash: string;
48
- cleared?: undefined;
49
- queryCountBefore?: undefined;
50
- queryCountAfter?: undefined;
51
- mutationCountBefore?: undefined;
52
- mutationCountAfter?: undefined;
53
- } | {
54
- applied: boolean;
55
- action: "TRIGGER_LOADING";
56
- queryHash: string;
57
- cleared?: undefined;
58
- queryCountBefore?: undefined;
59
- queryCountAfter?: undefined;
60
- mutationCountBefore?: undefined;
61
- mutationCountAfter?: undefined;
62
- } | {
63
- applied: boolean;
64
- action: "RESTORE_LOADING";
65
- queryHash: string;
66
- cleared?: undefined;
67
- queryCountBefore?: undefined;
68
- queryCountAfter?: undefined;
69
- mutationCountBefore?: undefined;
70
- mutationCountAfter?: undefined;
71
- } | {
72
- applied: boolean;
73
- action: "RESET";
74
- queryHash: string;
75
- cleared?: undefined;
76
- queryCountBefore?: undefined;
77
- queryCountAfter?: undefined;
78
- mutationCountBefore?: undefined;
79
- mutationCountAfter?: undefined;
80
- } | {
81
- applied: boolean;
82
- action: "REMOVE";
83
- queryHash: string;
84
- cleared?: undefined;
85
- queryCountBefore?: undefined;
86
- queryCountAfter?: undefined;
87
- mutationCountBefore?: undefined;
88
- mutationCountAfter?: undefined;
89
- } | {
90
- applied: boolean;
91
- action: "REFETCH";
92
- queryHash: string;
93
- cleared?: undefined;
94
- queryCountBefore?: undefined;
95
- queryCountAfter?: undefined;
96
- mutationCountBefore?: undefined;
97
- mutationCountAfter?: undefined;
98
- } | {
99
- applied: boolean;
100
- action: "INVALIDATE";
101
- queryHash: string;
102
- cleared?: undefined;
103
- queryCountBefore?: undefined;
104
- queryCountAfter?: undefined;
105
- mutationCountBefore?: undefined;
106
- mutationCountAfter?: undefined;
107
- }>;
108
-
109
- declare type CacheScopedActionInput = {
110
- type: 'CLEAR_MUTATION_CACHE' | 'CLEAR_QUERY_CACHE';
111
- queryHash?: string;
112
- };
113
-
114
- declare type DevToolsActionType = 'REFETCH' | 'SET_QUERY_DATA' | 'INVALIDATE' | 'RESET' | 'REMOVE' | 'TRIGGER_ERROR' | 'RESTORE_ERROR' | 'TRIGGER_LOADING' | 'RESTORE_LOADING' | 'CLEAR_MUTATION_CACHE' | 'CLEAR_QUERY_CACHE';
115
-
116
- declare type QueryScopedActionInput = {
117
- type: Exclude<DevToolsActionType, 'CLEAR_MUTATION_CACHE' | 'CLEAR_QUERY_CACHE'>;
118
- queryHash: string;
119
- metadata?: {
120
- data?: unknown;
121
- };
122
- };
123
-
124
- export declare const TANSTACK_QUERY_AGENT_PLUGIN_ID = "@rozenite/tanstack-query-plugin";
125
-
126
- export declare type TanStackQueryActionResult = Awaited<ReturnType<typeof applyTanStackQueryDevtoolsAction>>;
127
-
128
- export declare type TanStackQueryAgentMutationIdInput = {
129
- mutationId: number;
130
- };
131
-
132
- export declare type TanStackQueryAgentOnlineStatusInput = {
133
- online: boolean;
134
- };
135
-
136
- export declare type TanStackQueryAgentPaginationInput = {
137
- limit?: number;
138
- cursor?: string;
139
- };
140
-
141
- export declare type TanStackQueryAgentQueryHashInput = {
142
- queryHash: string;
143
- };
144
-
145
- export declare type TanStackQueryAgentQueryToggleInput = TanStackQueryAgentQueryHashInput & {
146
- enabled: boolean;
147
- };
148
-
149
- export declare type TanStackQueryAgentSafeValue = null | boolean | number | string | TanStackQueryAgentSafeValue[] | {
150
- [key: string]: TanStackQueryAgentSafeValue;
151
- };
152
-
153
- export declare type TanStackQueryCacheSummary = {
154
- online: boolean;
155
- queries: {
156
- total: number;
157
- active: number;
158
- fetching: number;
159
- pending: number;
160
- success: number;
161
- error: number;
162
- invalidated: number;
163
- };
164
- mutations: {
165
- total: number;
166
- pending: number;
167
- success: number;
168
- error: number;
169
- paused: number;
170
- };
171
- };
172
-
173
- export declare type TanStackQueryClearMutationCacheArgs = undefined;
174
-
175
- export declare type TanStackQueryClearMutationCacheResult = TanStackQueryActionResult;
176
-
177
- export declare type TanStackQueryClearQueryCacheArgs = undefined;
178
-
179
- export declare type TanStackQueryClearQueryCacheResult = TanStackQueryActionResult;
180
-
181
- declare type TanStackQueryDevtoolsActionInput = QueryScopedActionInput | CacheScopedActionInput;
182
-
183
- export declare type TanStackQueryGetCacheSummaryArgs = undefined;
184
-
185
- export declare type TanStackQueryGetCacheSummaryResult = TanStackQueryCacheSummary;
186
-
187
- export declare type TanStackQueryGetMutationDetailsArgs = TanStackQueryAgentMutationIdInput;
188
-
189
- export declare type TanStackQueryGetMutationDetailsResult = {
190
- summary: TanStackQueryCacheSummary;
191
- mutation: TanStackQueryMutationSummary & {
192
- variables: TanStackQueryAgentSafeValue;
193
- data: TanStackQueryAgentSafeValue;
194
- error: TanStackQueryAgentSafeValue;
195
- context: TanStackQueryAgentSafeValue;
196
- failureReason: TanStackQueryAgentSafeValue;
197
- options: TanStackQueryMutationOptionsSummary;
198
- };
199
- };
200
-
201
- export declare type TanStackQueryGetOnlineStatusArgs = undefined;
202
-
203
- export declare type TanStackQueryGetOnlineStatusResult = {
204
- online: boolean;
205
- };
206
-
207
- export declare type TanStackQueryGetQueryDetailsArgs = TanStackQueryAgentQueryHashInput;
208
-
209
- export declare type TanStackQueryGetQueryDetailsResult = {
210
- summary: TanStackQueryCacheSummary;
211
- query: TanStackQueryQuerySummary & {
212
- data: TanStackQueryAgentSafeValue;
213
- error: TanStackQueryAgentSafeValue;
214
- observers: Array<{
215
- queryHash: string;
216
- options: TanStackQueryObserverOptionsSummary | null;
217
- }>;
218
- };
219
- };
220
-
221
- export declare type TanStackQueryInvalidateQueryArgs = TanStackQueryAgentQueryHashInput;
222
-
223
- export declare type TanStackQueryListMutationsArgs = TanStackQueryAgentPaginationInput;
224
-
225
- export declare type TanStackQueryListMutationsResult = TanStackQueryCacheSummary & {
226
- total: number;
227
- items: TanStackQueryMutationSummary[];
228
- page: TanStackQueryPage;
229
- };
230
-
231
- export declare type TanStackQueryListQueriesArgs = TanStackQueryAgentPaginationInput;
232
-
233
- export declare type TanStackQueryListQueriesResult = TanStackQueryCacheSummary & {
234
- total: number;
235
- items: TanStackQueryQuerySummary[];
236
- page: TanStackQueryPage;
237
- };
238
-
239
- export declare type TanStackQueryMutationOptionsSummary = {
240
- mutationKey: TanStackQueryAgentSafeValue;
241
- networkMode: TanStackQueryAgentSafeValue;
242
- gcTime: TanStackQueryAgentSafeValue;
243
- retry: TanStackQueryAgentSafeValue;
244
- retryDelay: TanStackQueryAgentSafeValue;
245
- meta: TanStackQueryAgentSafeValue;
246
- scope: TanStackQueryAgentSafeValue;
247
- hasMutationFn: boolean;
248
- hasOnMutate: boolean;
249
- hasOnSuccess: boolean;
250
- hasOnError: boolean;
251
- hasOnSettled: boolean;
252
- };
253
-
254
- export declare type TanStackQueryMutationSummary = {
255
- mutationId: number;
256
- mutationKey: TanStackQueryAgentSafeValue;
257
- status: MutationStatus;
258
- isPaused: boolean;
259
- submittedAt: number;
260
- failureCount: number;
261
- hasData: boolean;
262
- hasError: boolean;
263
- };
264
-
265
- export declare type TanStackQueryObserverOptionsSummary = {
266
- enabled: TanStackQueryAgentSafeValue;
267
- networkMode: TanStackQueryAgentSafeValue;
268
- staleTime: TanStackQueryAgentSafeValue;
269
- gcTime: TanStackQueryAgentSafeValue;
270
- retry: TanStackQueryAgentSafeValue;
271
- retryDelay: TanStackQueryAgentSafeValue;
272
- refetchInterval: TanStackQueryAgentSafeValue;
273
- refetchOnMount: TanStackQueryAgentSafeValue;
274
- refetchOnReconnect: TanStackQueryAgentSafeValue;
275
- refetchOnWindowFocus: TanStackQueryAgentSafeValue;
276
- subscribed: TanStackQueryAgentSafeValue;
277
- meta: TanStackQueryAgentSafeValue;
278
- hasQueryFn: boolean;
279
- hasSelect: boolean;
280
- hasPlaceholderData: boolean;
281
- hasInitialData: boolean;
282
- };
283
-
284
- export declare type TanStackQueryPage = {
285
- limit: number;
286
- hasMore: boolean;
287
- nextCursor?: string;
288
- };
289
-
290
- export declare type TanStackQueryQuerySummary = {
291
- queryHash: string;
292
- queryKey: TanStackQueryAgentSafeValue;
293
- status: QueryStatus;
294
- fetchStatus: FetchStatus;
295
- observersCount: number;
296
- isInvalidated: boolean;
297
- dataUpdatedAt: number;
298
- errorUpdatedAt: number;
299
- hasData: boolean;
300
- hasError: boolean;
301
- };
302
-
303
- export declare type TanStackQueryRefetchQueryArgs = TanStackQueryAgentQueryHashInput;
304
-
305
- export declare type TanStackQueryRemoveQueryArgs = TanStackQueryAgentQueryHashInput;
306
-
307
- export declare type TanStackQueryResetQueryArgs = TanStackQueryAgentQueryHashInput;
308
-
309
- export declare type TanStackQuerySetOnlineStatusArgs = TanStackQueryAgentOnlineStatusInput;
310
-
311
- export declare type TanStackQuerySetOnlineStatusResult = {
312
- online: boolean;
313
- };
314
-
315
- export declare type TanStackQuerySetQueryErrorArgs = TanStackQueryAgentQueryToggleInput;
316
-
317
- export declare type TanStackQuerySetQueryLoadingArgs = TanStackQueryAgentQueryToggleInput;
318
-
319
- export declare const tanstackQueryToolDefinitions: {
320
- readonly getCacheSummary: AgentToolContract<undefined, TanStackQueryCacheSummary>;
321
- readonly getOnlineStatus: AgentToolContract<undefined, TanStackQueryGetOnlineStatusResult>;
322
- readonly setOnlineStatus: AgentToolContract<TanStackQueryAgentOnlineStatusInput, TanStackQuerySetOnlineStatusResult>;
323
- readonly listQueries: AgentToolContract<TanStackQueryAgentPaginationInput, TanStackQueryListQueriesResult>;
324
- readonly getQueryDetails: AgentToolContract<TanStackQueryAgentQueryHashInput, TanStackQueryGetQueryDetailsResult>;
325
- readonly refetchQuery: AgentToolContract<TanStackQueryAgentQueryHashInput, {
326
- applied: boolean;
327
- action: "CLEAR_QUERY_CACHE";
328
- cleared: boolean;
329
- queryCountBefore: number;
330
- queryCountAfter: number;
331
- mutationCountBefore?: undefined;
332
- mutationCountAfter?: undefined;
333
- queryHash?: undefined;
334
- } | {
335
- applied: boolean;
336
- action: "CLEAR_MUTATION_CACHE";
337
- cleared: boolean;
338
- mutationCountBefore: number;
339
- mutationCountAfter: number;
340
- queryCountBefore?: undefined;
341
- queryCountAfter?: undefined;
342
- queryHash?: undefined;
343
- } | {
344
- applied: boolean;
345
- action: "SET_QUERY_DATA";
346
- queryHash: string;
347
- cleared?: undefined;
348
- queryCountBefore?: undefined;
349
- queryCountAfter?: undefined;
350
- mutationCountBefore?: undefined;
351
- mutationCountAfter?: undefined;
352
- } | {
353
- applied: boolean;
354
- action: "TRIGGER_ERROR";
355
- queryHash: string;
356
- cleared?: undefined;
357
- queryCountBefore?: undefined;
358
- queryCountAfter?: undefined;
359
- mutationCountBefore?: undefined;
360
- mutationCountAfter?: undefined;
361
- } | {
362
- applied: boolean;
363
- action: "RESTORE_ERROR";
364
- queryHash: string;
365
- cleared?: undefined;
366
- queryCountBefore?: undefined;
367
- queryCountAfter?: undefined;
368
- mutationCountBefore?: undefined;
369
- mutationCountAfter?: undefined;
370
- } | {
371
- applied: boolean;
372
- action: "TRIGGER_LOADING";
373
- queryHash: string;
374
- cleared?: undefined;
375
- queryCountBefore?: undefined;
376
- queryCountAfter?: undefined;
377
- mutationCountBefore?: undefined;
378
- mutationCountAfter?: undefined;
379
- } | {
380
- applied: boolean;
381
- action: "RESTORE_LOADING";
382
- queryHash: string;
383
- cleared?: undefined;
384
- queryCountBefore?: undefined;
385
- queryCountAfter?: undefined;
386
- mutationCountBefore?: undefined;
387
- mutationCountAfter?: undefined;
388
- } | {
389
- applied: boolean;
390
- action: "RESET";
391
- queryHash: string;
392
- cleared?: undefined;
393
- queryCountBefore?: undefined;
394
- queryCountAfter?: undefined;
395
- mutationCountBefore?: undefined;
396
- mutationCountAfter?: undefined;
397
- } | {
398
- applied: boolean;
399
- action: "REMOVE";
400
- queryHash: string;
401
- cleared?: undefined;
402
- queryCountBefore?: undefined;
403
- queryCountAfter?: undefined;
404
- mutationCountBefore?: undefined;
405
- mutationCountAfter?: undefined;
406
- } | {
407
- applied: boolean;
408
- action: "REFETCH";
409
- queryHash: string;
410
- cleared?: undefined;
411
- queryCountBefore?: undefined;
412
- queryCountAfter?: undefined;
413
- mutationCountBefore?: undefined;
414
- mutationCountAfter?: undefined;
415
- } | {
416
- applied: boolean;
417
- action: "INVALIDATE";
418
- queryHash: string;
419
- cleared?: undefined;
420
- queryCountBefore?: undefined;
421
- queryCountAfter?: undefined;
422
- mutationCountBefore?: undefined;
423
- mutationCountAfter?: undefined;
424
- }>;
425
- readonly setQueryLoading: AgentToolContract<TanStackQueryAgentQueryToggleInput, {
426
- applied: boolean;
427
- action: "CLEAR_QUERY_CACHE";
428
- cleared: boolean;
429
- queryCountBefore: number;
430
- queryCountAfter: number;
431
- mutationCountBefore?: undefined;
432
- mutationCountAfter?: undefined;
433
- queryHash?: undefined;
434
- } | {
435
- applied: boolean;
436
- action: "CLEAR_MUTATION_CACHE";
437
- cleared: boolean;
438
- mutationCountBefore: number;
439
- mutationCountAfter: number;
440
- queryCountBefore?: undefined;
441
- queryCountAfter?: undefined;
442
- queryHash?: undefined;
443
- } | {
444
- applied: boolean;
445
- action: "SET_QUERY_DATA";
446
- queryHash: string;
447
- cleared?: undefined;
448
- queryCountBefore?: undefined;
449
- queryCountAfter?: undefined;
450
- mutationCountBefore?: undefined;
451
- mutationCountAfter?: undefined;
452
- } | {
453
- applied: boolean;
454
- action: "TRIGGER_ERROR";
455
- queryHash: string;
456
- cleared?: undefined;
457
- queryCountBefore?: undefined;
458
- queryCountAfter?: undefined;
459
- mutationCountBefore?: undefined;
460
- mutationCountAfter?: undefined;
461
- } | {
462
- applied: boolean;
463
- action: "RESTORE_ERROR";
464
- queryHash: string;
465
- cleared?: undefined;
466
- queryCountBefore?: undefined;
467
- queryCountAfter?: undefined;
468
- mutationCountBefore?: undefined;
469
- mutationCountAfter?: undefined;
470
- } | {
471
- applied: boolean;
472
- action: "TRIGGER_LOADING";
473
- queryHash: string;
474
- cleared?: undefined;
475
- queryCountBefore?: undefined;
476
- queryCountAfter?: undefined;
477
- mutationCountBefore?: undefined;
478
- mutationCountAfter?: undefined;
479
- } | {
480
- applied: boolean;
481
- action: "RESTORE_LOADING";
482
- queryHash: string;
483
- cleared?: undefined;
484
- queryCountBefore?: undefined;
485
- queryCountAfter?: undefined;
486
- mutationCountBefore?: undefined;
487
- mutationCountAfter?: undefined;
488
- } | {
489
- applied: boolean;
490
- action: "RESET";
491
- queryHash: string;
492
- cleared?: undefined;
493
- queryCountBefore?: undefined;
494
- queryCountAfter?: undefined;
495
- mutationCountBefore?: undefined;
496
- mutationCountAfter?: undefined;
497
- } | {
498
- applied: boolean;
499
- action: "REMOVE";
500
- queryHash: string;
501
- cleared?: undefined;
502
- queryCountBefore?: undefined;
503
- queryCountAfter?: undefined;
504
- mutationCountBefore?: undefined;
505
- mutationCountAfter?: undefined;
506
- } | {
507
- applied: boolean;
508
- action: "REFETCH";
509
- queryHash: string;
510
- cleared?: undefined;
511
- queryCountBefore?: undefined;
512
- queryCountAfter?: undefined;
513
- mutationCountBefore?: undefined;
514
- mutationCountAfter?: undefined;
515
- } | {
516
- applied: boolean;
517
- action: "INVALIDATE";
518
- queryHash: string;
519
- cleared?: undefined;
520
- queryCountBefore?: undefined;
521
- queryCountAfter?: undefined;
522
- mutationCountBefore?: undefined;
523
- mutationCountAfter?: undefined;
524
- }>;
525
- readonly setQueryError: AgentToolContract<TanStackQueryAgentQueryToggleInput, {
526
- applied: boolean;
527
- action: "CLEAR_QUERY_CACHE";
528
- cleared: boolean;
529
- queryCountBefore: number;
530
- queryCountAfter: number;
531
- mutationCountBefore?: undefined;
532
- mutationCountAfter?: undefined;
533
- queryHash?: undefined;
534
- } | {
535
- applied: boolean;
536
- action: "CLEAR_MUTATION_CACHE";
537
- cleared: boolean;
538
- mutationCountBefore: number;
539
- mutationCountAfter: number;
540
- queryCountBefore?: undefined;
541
- queryCountAfter?: undefined;
542
- queryHash?: undefined;
543
- } | {
544
- applied: boolean;
545
- action: "SET_QUERY_DATA";
546
- queryHash: string;
547
- cleared?: undefined;
548
- queryCountBefore?: undefined;
549
- queryCountAfter?: undefined;
550
- mutationCountBefore?: undefined;
551
- mutationCountAfter?: undefined;
552
- } | {
553
- applied: boolean;
554
- action: "TRIGGER_ERROR";
555
- queryHash: string;
556
- cleared?: undefined;
557
- queryCountBefore?: undefined;
558
- queryCountAfter?: undefined;
559
- mutationCountBefore?: undefined;
560
- mutationCountAfter?: undefined;
561
- } | {
562
- applied: boolean;
563
- action: "RESTORE_ERROR";
564
- queryHash: string;
565
- cleared?: undefined;
566
- queryCountBefore?: undefined;
567
- queryCountAfter?: undefined;
568
- mutationCountBefore?: undefined;
569
- mutationCountAfter?: undefined;
570
- } | {
571
- applied: boolean;
572
- action: "TRIGGER_LOADING";
573
- queryHash: string;
574
- cleared?: undefined;
575
- queryCountBefore?: undefined;
576
- queryCountAfter?: undefined;
577
- mutationCountBefore?: undefined;
578
- mutationCountAfter?: undefined;
579
- } | {
580
- applied: boolean;
581
- action: "RESTORE_LOADING";
582
- queryHash: string;
583
- cleared?: undefined;
584
- queryCountBefore?: undefined;
585
- queryCountAfter?: undefined;
586
- mutationCountBefore?: undefined;
587
- mutationCountAfter?: undefined;
588
- } | {
589
- applied: boolean;
590
- action: "RESET";
591
- queryHash: string;
592
- cleared?: undefined;
593
- queryCountBefore?: undefined;
594
- queryCountAfter?: undefined;
595
- mutationCountBefore?: undefined;
596
- mutationCountAfter?: undefined;
597
- } | {
598
- applied: boolean;
599
- action: "REMOVE";
600
- queryHash: string;
601
- cleared?: undefined;
602
- queryCountBefore?: undefined;
603
- queryCountAfter?: undefined;
604
- mutationCountBefore?: undefined;
605
- mutationCountAfter?: undefined;
606
- } | {
607
- applied: boolean;
608
- action: "REFETCH";
609
- queryHash: string;
610
- cleared?: undefined;
611
- queryCountBefore?: undefined;
612
- queryCountAfter?: undefined;
613
- mutationCountBefore?: undefined;
614
- mutationCountAfter?: undefined;
615
- } | {
616
- applied: boolean;
617
- action: "INVALIDATE";
618
- queryHash: string;
619
- cleared?: undefined;
620
- queryCountBefore?: undefined;
621
- queryCountAfter?: undefined;
622
- mutationCountBefore?: undefined;
623
- mutationCountAfter?: undefined;
624
- }>;
625
- readonly invalidateQuery: AgentToolContract<TanStackQueryAgentQueryHashInput, {
626
- applied: boolean;
627
- action: "CLEAR_QUERY_CACHE";
628
- cleared: boolean;
629
- queryCountBefore: number;
630
- queryCountAfter: number;
631
- mutationCountBefore?: undefined;
632
- mutationCountAfter?: undefined;
633
- queryHash?: undefined;
634
- } | {
635
- applied: boolean;
636
- action: "CLEAR_MUTATION_CACHE";
637
- cleared: boolean;
638
- mutationCountBefore: number;
639
- mutationCountAfter: number;
640
- queryCountBefore?: undefined;
641
- queryCountAfter?: undefined;
642
- queryHash?: undefined;
643
- } | {
644
- applied: boolean;
645
- action: "SET_QUERY_DATA";
646
- queryHash: string;
647
- cleared?: undefined;
648
- queryCountBefore?: undefined;
649
- queryCountAfter?: undefined;
650
- mutationCountBefore?: undefined;
651
- mutationCountAfter?: undefined;
652
- } | {
653
- applied: boolean;
654
- action: "TRIGGER_ERROR";
655
- queryHash: string;
656
- cleared?: undefined;
657
- queryCountBefore?: undefined;
658
- queryCountAfter?: undefined;
659
- mutationCountBefore?: undefined;
660
- mutationCountAfter?: undefined;
661
- } | {
662
- applied: boolean;
663
- action: "RESTORE_ERROR";
664
- queryHash: string;
665
- cleared?: undefined;
666
- queryCountBefore?: undefined;
667
- queryCountAfter?: undefined;
668
- mutationCountBefore?: undefined;
669
- mutationCountAfter?: undefined;
670
- } | {
671
- applied: boolean;
672
- action: "TRIGGER_LOADING";
673
- queryHash: string;
674
- cleared?: undefined;
675
- queryCountBefore?: undefined;
676
- queryCountAfter?: undefined;
677
- mutationCountBefore?: undefined;
678
- mutationCountAfter?: undefined;
679
- } | {
680
- applied: boolean;
681
- action: "RESTORE_LOADING";
682
- queryHash: string;
683
- cleared?: undefined;
684
- queryCountBefore?: undefined;
685
- queryCountAfter?: undefined;
686
- mutationCountBefore?: undefined;
687
- mutationCountAfter?: undefined;
688
- } | {
689
- applied: boolean;
690
- action: "RESET";
691
- queryHash: string;
692
- cleared?: undefined;
693
- queryCountBefore?: undefined;
694
- queryCountAfter?: undefined;
695
- mutationCountBefore?: undefined;
696
- mutationCountAfter?: undefined;
697
- } | {
698
- applied: boolean;
699
- action: "REMOVE";
700
- queryHash: string;
701
- cleared?: undefined;
702
- queryCountBefore?: undefined;
703
- queryCountAfter?: undefined;
704
- mutationCountBefore?: undefined;
705
- mutationCountAfter?: undefined;
706
- } | {
707
- applied: boolean;
708
- action: "REFETCH";
709
- queryHash: string;
710
- cleared?: undefined;
711
- queryCountBefore?: undefined;
712
- queryCountAfter?: undefined;
713
- mutationCountBefore?: undefined;
714
- mutationCountAfter?: undefined;
715
- } | {
716
- applied: boolean;
717
- action: "INVALIDATE";
718
- queryHash: string;
719
- cleared?: undefined;
720
- queryCountBefore?: undefined;
721
- queryCountAfter?: undefined;
722
- mutationCountBefore?: undefined;
723
- mutationCountAfter?: undefined;
724
- }>;
725
- readonly resetQuery: AgentToolContract<TanStackQueryAgentQueryHashInput, {
726
- applied: boolean;
727
- action: "CLEAR_QUERY_CACHE";
728
- cleared: boolean;
729
- queryCountBefore: number;
730
- queryCountAfter: number;
731
- mutationCountBefore?: undefined;
732
- mutationCountAfter?: undefined;
733
- queryHash?: undefined;
734
- } | {
735
- applied: boolean;
736
- action: "CLEAR_MUTATION_CACHE";
737
- cleared: boolean;
738
- mutationCountBefore: number;
739
- mutationCountAfter: number;
740
- queryCountBefore?: undefined;
741
- queryCountAfter?: undefined;
742
- queryHash?: undefined;
743
- } | {
744
- applied: boolean;
745
- action: "SET_QUERY_DATA";
746
- queryHash: string;
747
- cleared?: undefined;
748
- queryCountBefore?: undefined;
749
- queryCountAfter?: undefined;
750
- mutationCountBefore?: undefined;
751
- mutationCountAfter?: undefined;
752
- } | {
753
- applied: boolean;
754
- action: "TRIGGER_ERROR";
755
- queryHash: string;
756
- cleared?: undefined;
757
- queryCountBefore?: undefined;
758
- queryCountAfter?: undefined;
759
- mutationCountBefore?: undefined;
760
- mutationCountAfter?: undefined;
761
- } | {
762
- applied: boolean;
763
- action: "RESTORE_ERROR";
764
- queryHash: string;
765
- cleared?: undefined;
766
- queryCountBefore?: undefined;
767
- queryCountAfter?: undefined;
768
- mutationCountBefore?: undefined;
769
- mutationCountAfter?: undefined;
770
- } | {
771
- applied: boolean;
772
- action: "TRIGGER_LOADING";
773
- queryHash: string;
774
- cleared?: undefined;
775
- queryCountBefore?: undefined;
776
- queryCountAfter?: undefined;
777
- mutationCountBefore?: undefined;
778
- mutationCountAfter?: undefined;
779
- } | {
780
- applied: boolean;
781
- action: "RESTORE_LOADING";
782
- queryHash: string;
783
- cleared?: undefined;
784
- queryCountBefore?: undefined;
785
- queryCountAfter?: undefined;
786
- mutationCountBefore?: undefined;
787
- mutationCountAfter?: undefined;
788
- } | {
789
- applied: boolean;
790
- action: "RESET";
791
- queryHash: string;
792
- cleared?: undefined;
793
- queryCountBefore?: undefined;
794
- queryCountAfter?: undefined;
795
- mutationCountBefore?: undefined;
796
- mutationCountAfter?: undefined;
797
- } | {
798
- applied: boolean;
799
- action: "REMOVE";
800
- queryHash: string;
801
- cleared?: undefined;
802
- queryCountBefore?: undefined;
803
- queryCountAfter?: undefined;
804
- mutationCountBefore?: undefined;
805
- mutationCountAfter?: undefined;
806
- } | {
807
- applied: boolean;
808
- action: "REFETCH";
809
- queryHash: string;
810
- cleared?: undefined;
811
- queryCountBefore?: undefined;
812
- queryCountAfter?: undefined;
813
- mutationCountBefore?: undefined;
814
- mutationCountAfter?: undefined;
815
- } | {
816
- applied: boolean;
817
- action: "INVALIDATE";
818
- queryHash: string;
819
- cleared?: undefined;
820
- queryCountBefore?: undefined;
821
- queryCountAfter?: undefined;
822
- mutationCountBefore?: undefined;
823
- mutationCountAfter?: undefined;
824
- }>;
825
- readonly removeQuery: AgentToolContract<TanStackQueryAgentQueryHashInput, {
826
- applied: boolean;
827
- action: "CLEAR_QUERY_CACHE";
828
- cleared: boolean;
829
- queryCountBefore: number;
830
- queryCountAfter: number;
831
- mutationCountBefore?: undefined;
832
- mutationCountAfter?: undefined;
833
- queryHash?: undefined;
834
- } | {
835
- applied: boolean;
836
- action: "CLEAR_MUTATION_CACHE";
837
- cleared: boolean;
838
- mutationCountBefore: number;
839
- mutationCountAfter: number;
840
- queryCountBefore?: undefined;
841
- queryCountAfter?: undefined;
842
- queryHash?: undefined;
843
- } | {
844
- applied: boolean;
845
- action: "SET_QUERY_DATA";
846
- queryHash: string;
847
- cleared?: undefined;
848
- queryCountBefore?: undefined;
849
- queryCountAfter?: undefined;
850
- mutationCountBefore?: undefined;
851
- mutationCountAfter?: undefined;
852
- } | {
853
- applied: boolean;
854
- action: "TRIGGER_ERROR";
855
- queryHash: string;
856
- cleared?: undefined;
857
- queryCountBefore?: undefined;
858
- queryCountAfter?: undefined;
859
- mutationCountBefore?: undefined;
860
- mutationCountAfter?: undefined;
861
- } | {
862
- applied: boolean;
863
- action: "RESTORE_ERROR";
864
- queryHash: string;
865
- cleared?: undefined;
866
- queryCountBefore?: undefined;
867
- queryCountAfter?: undefined;
868
- mutationCountBefore?: undefined;
869
- mutationCountAfter?: undefined;
870
- } | {
871
- applied: boolean;
872
- action: "TRIGGER_LOADING";
873
- queryHash: string;
874
- cleared?: undefined;
875
- queryCountBefore?: undefined;
876
- queryCountAfter?: undefined;
877
- mutationCountBefore?: undefined;
878
- mutationCountAfter?: undefined;
879
- } | {
880
- applied: boolean;
881
- action: "RESTORE_LOADING";
882
- queryHash: string;
883
- cleared?: undefined;
884
- queryCountBefore?: undefined;
885
- queryCountAfter?: undefined;
886
- mutationCountBefore?: undefined;
887
- mutationCountAfter?: undefined;
888
- } | {
889
- applied: boolean;
890
- action: "RESET";
891
- queryHash: string;
892
- cleared?: undefined;
893
- queryCountBefore?: undefined;
894
- queryCountAfter?: undefined;
895
- mutationCountBefore?: undefined;
896
- mutationCountAfter?: undefined;
897
- } | {
898
- applied: boolean;
899
- action: "REMOVE";
900
- queryHash: string;
901
- cleared?: undefined;
902
- queryCountBefore?: undefined;
903
- queryCountAfter?: undefined;
904
- mutationCountBefore?: undefined;
905
- mutationCountAfter?: undefined;
906
- } | {
907
- applied: boolean;
908
- action: "REFETCH";
909
- queryHash: string;
910
- cleared?: undefined;
911
- queryCountBefore?: undefined;
912
- queryCountAfter?: undefined;
913
- mutationCountBefore?: undefined;
914
- mutationCountAfter?: undefined;
915
- } | {
916
- applied: boolean;
917
- action: "INVALIDATE";
918
- queryHash: string;
919
- cleared?: undefined;
920
- queryCountBefore?: undefined;
921
- queryCountAfter?: undefined;
922
- mutationCountBefore?: undefined;
923
- mutationCountAfter?: undefined;
924
- }>;
925
- readonly clearQueryCache: AgentToolContract<undefined, {
926
- applied: boolean;
927
- action: "CLEAR_QUERY_CACHE";
928
- cleared: boolean;
929
- queryCountBefore: number;
930
- queryCountAfter: number;
931
- mutationCountBefore?: undefined;
932
- mutationCountAfter?: undefined;
933
- queryHash?: undefined;
934
- } | {
935
- applied: boolean;
936
- action: "CLEAR_MUTATION_CACHE";
937
- cleared: boolean;
938
- mutationCountBefore: number;
939
- mutationCountAfter: number;
940
- queryCountBefore?: undefined;
941
- queryCountAfter?: undefined;
942
- queryHash?: undefined;
943
- } | {
944
- applied: boolean;
945
- action: "SET_QUERY_DATA";
946
- queryHash: string;
947
- cleared?: undefined;
948
- queryCountBefore?: undefined;
949
- queryCountAfter?: undefined;
950
- mutationCountBefore?: undefined;
951
- mutationCountAfter?: undefined;
952
- } | {
953
- applied: boolean;
954
- action: "TRIGGER_ERROR";
955
- queryHash: string;
956
- cleared?: undefined;
957
- queryCountBefore?: undefined;
958
- queryCountAfter?: undefined;
959
- mutationCountBefore?: undefined;
960
- mutationCountAfter?: undefined;
961
- } | {
962
- applied: boolean;
963
- action: "RESTORE_ERROR";
964
- queryHash: string;
965
- cleared?: undefined;
966
- queryCountBefore?: undefined;
967
- queryCountAfter?: undefined;
968
- mutationCountBefore?: undefined;
969
- mutationCountAfter?: undefined;
970
- } | {
971
- applied: boolean;
972
- action: "TRIGGER_LOADING";
973
- queryHash: string;
974
- cleared?: undefined;
975
- queryCountBefore?: undefined;
976
- queryCountAfter?: undefined;
977
- mutationCountBefore?: undefined;
978
- mutationCountAfter?: undefined;
979
- } | {
980
- applied: boolean;
981
- action: "RESTORE_LOADING";
982
- queryHash: string;
983
- cleared?: undefined;
984
- queryCountBefore?: undefined;
985
- queryCountAfter?: undefined;
986
- mutationCountBefore?: undefined;
987
- mutationCountAfter?: undefined;
988
- } | {
989
- applied: boolean;
990
- action: "RESET";
991
- queryHash: string;
992
- cleared?: undefined;
993
- queryCountBefore?: undefined;
994
- queryCountAfter?: undefined;
995
- mutationCountBefore?: undefined;
996
- mutationCountAfter?: undefined;
997
- } | {
998
- applied: boolean;
999
- action: "REMOVE";
1000
- queryHash: string;
1001
- cleared?: undefined;
1002
- queryCountBefore?: undefined;
1003
- queryCountAfter?: undefined;
1004
- mutationCountBefore?: undefined;
1005
- mutationCountAfter?: undefined;
1006
- } | {
1007
- applied: boolean;
1008
- action: "REFETCH";
1009
- queryHash: string;
1010
- cleared?: undefined;
1011
- queryCountBefore?: undefined;
1012
- queryCountAfter?: undefined;
1013
- mutationCountBefore?: undefined;
1014
- mutationCountAfter?: undefined;
1015
- } | {
1016
- applied: boolean;
1017
- action: "INVALIDATE";
1018
- queryHash: string;
1019
- cleared?: undefined;
1020
- queryCountBefore?: undefined;
1021
- queryCountAfter?: undefined;
1022
- mutationCountBefore?: undefined;
1023
- mutationCountAfter?: undefined;
1024
- }>;
1025
- readonly listMutations: AgentToolContract<TanStackQueryAgentPaginationInput, TanStackQueryListMutationsResult>;
1026
- readonly getMutationDetails: AgentToolContract<TanStackQueryAgentMutationIdInput, TanStackQueryGetMutationDetailsResult>;
1027
- readonly clearMutationCache: AgentToolContract<undefined, {
1028
- applied: boolean;
1029
- action: "CLEAR_QUERY_CACHE";
1030
- cleared: boolean;
1031
- queryCountBefore: number;
1032
- queryCountAfter: number;
1033
- mutationCountBefore?: undefined;
1034
- mutationCountAfter?: undefined;
1035
- queryHash?: undefined;
1036
- } | {
1037
- applied: boolean;
1038
- action: "CLEAR_MUTATION_CACHE";
1039
- cleared: boolean;
1040
- mutationCountBefore: number;
1041
- mutationCountAfter: number;
1042
- queryCountBefore?: undefined;
1043
- queryCountAfter?: undefined;
1044
- queryHash?: undefined;
1045
- } | {
1046
- applied: boolean;
1047
- action: "SET_QUERY_DATA";
1048
- queryHash: string;
1049
- cleared?: undefined;
1050
- queryCountBefore?: undefined;
1051
- queryCountAfter?: undefined;
1052
- mutationCountBefore?: undefined;
1053
- mutationCountAfter?: undefined;
1054
- } | {
1055
- applied: boolean;
1056
- action: "TRIGGER_ERROR";
1057
- queryHash: string;
1058
- cleared?: undefined;
1059
- queryCountBefore?: undefined;
1060
- queryCountAfter?: undefined;
1061
- mutationCountBefore?: undefined;
1062
- mutationCountAfter?: undefined;
1063
- } | {
1064
- applied: boolean;
1065
- action: "RESTORE_ERROR";
1066
- queryHash: string;
1067
- cleared?: undefined;
1068
- queryCountBefore?: undefined;
1069
- queryCountAfter?: undefined;
1070
- mutationCountBefore?: undefined;
1071
- mutationCountAfter?: undefined;
1072
- } | {
1073
- applied: boolean;
1074
- action: "TRIGGER_LOADING";
1075
- queryHash: string;
1076
- cleared?: undefined;
1077
- queryCountBefore?: undefined;
1078
- queryCountAfter?: undefined;
1079
- mutationCountBefore?: undefined;
1080
- mutationCountAfter?: undefined;
1081
- } | {
1082
- applied: boolean;
1083
- action: "RESTORE_LOADING";
1084
- queryHash: string;
1085
- cleared?: undefined;
1086
- queryCountBefore?: undefined;
1087
- queryCountAfter?: undefined;
1088
- mutationCountBefore?: undefined;
1089
- mutationCountAfter?: undefined;
1090
- } | {
1091
- applied: boolean;
1092
- action: "RESET";
1093
- queryHash: string;
1094
- cleared?: undefined;
1095
- queryCountBefore?: undefined;
1096
- queryCountAfter?: undefined;
1097
- mutationCountBefore?: undefined;
1098
- mutationCountAfter?: undefined;
1099
- } | {
1100
- applied: boolean;
1101
- action: "REMOVE";
1102
- queryHash: string;
1103
- cleared?: undefined;
1104
- queryCountBefore?: undefined;
1105
- queryCountAfter?: undefined;
1106
- mutationCountBefore?: undefined;
1107
- mutationCountAfter?: undefined;
1108
- } | {
1109
- applied: boolean;
1110
- action: "REFETCH";
1111
- queryHash: string;
1112
- cleared?: undefined;
1113
- queryCountBefore?: undefined;
1114
- queryCountAfter?: undefined;
1115
- mutationCountBefore?: undefined;
1116
- mutationCountAfter?: undefined;
1117
- } | {
1118
- applied: boolean;
1119
- action: "INVALIDATE";
1120
- queryHash: string;
1121
- cleared?: undefined;
1122
- queryCountBefore?: undefined;
1123
- queryCountAfter?: undefined;
1124
- mutationCountBefore?: undefined;
1125
- mutationCountAfter?: undefined;
1126
- }>;
1127
- };
1128
-
1129
- export declare const tanstackQueryTools: {
1130
- readonly getCacheSummary: AgentToolDescriptor<undefined, TanStackQueryCacheSummary>;
1131
- readonly getOnlineStatus: AgentToolDescriptor<undefined, TanStackQueryGetOnlineStatusResult>;
1132
- readonly setOnlineStatus: AgentToolDescriptor<TanStackQueryAgentOnlineStatusInput, TanStackQuerySetOnlineStatusResult>;
1133
- readonly listQueries: AgentToolDescriptor<TanStackQueryAgentPaginationInput, TanStackQueryListQueriesResult>;
1134
- readonly getQueryDetails: AgentToolDescriptor<TanStackQueryAgentQueryHashInput, TanStackQueryGetQueryDetailsResult>;
1135
- readonly refetchQuery: AgentToolDescriptor<TanStackQueryAgentQueryHashInput, {
1136
- applied: boolean;
1137
- action: "CLEAR_QUERY_CACHE";
1138
- cleared: boolean;
1139
- queryCountBefore: number;
1140
- queryCountAfter: number;
1141
- mutationCountBefore?: undefined;
1142
- mutationCountAfter?: undefined;
1143
- queryHash?: undefined;
1144
- } | {
1145
- applied: boolean;
1146
- action: "CLEAR_MUTATION_CACHE";
1147
- cleared: boolean;
1148
- mutationCountBefore: number;
1149
- mutationCountAfter: number;
1150
- queryCountBefore?: undefined;
1151
- queryCountAfter?: undefined;
1152
- queryHash?: undefined;
1153
- } | {
1154
- applied: boolean;
1155
- action: "SET_QUERY_DATA";
1156
- queryHash: string;
1157
- cleared?: undefined;
1158
- queryCountBefore?: undefined;
1159
- queryCountAfter?: undefined;
1160
- mutationCountBefore?: undefined;
1161
- mutationCountAfter?: undefined;
1162
- } | {
1163
- applied: boolean;
1164
- action: "TRIGGER_ERROR";
1165
- queryHash: string;
1166
- cleared?: undefined;
1167
- queryCountBefore?: undefined;
1168
- queryCountAfter?: undefined;
1169
- mutationCountBefore?: undefined;
1170
- mutationCountAfter?: undefined;
1171
- } | {
1172
- applied: boolean;
1173
- action: "RESTORE_ERROR";
1174
- queryHash: string;
1175
- cleared?: undefined;
1176
- queryCountBefore?: undefined;
1177
- queryCountAfter?: undefined;
1178
- mutationCountBefore?: undefined;
1179
- mutationCountAfter?: undefined;
1180
- } | {
1181
- applied: boolean;
1182
- action: "TRIGGER_LOADING";
1183
- queryHash: string;
1184
- cleared?: undefined;
1185
- queryCountBefore?: undefined;
1186
- queryCountAfter?: undefined;
1187
- mutationCountBefore?: undefined;
1188
- mutationCountAfter?: undefined;
1189
- } | {
1190
- applied: boolean;
1191
- action: "RESTORE_LOADING";
1192
- queryHash: string;
1193
- cleared?: undefined;
1194
- queryCountBefore?: undefined;
1195
- queryCountAfter?: undefined;
1196
- mutationCountBefore?: undefined;
1197
- mutationCountAfter?: undefined;
1198
- } | {
1199
- applied: boolean;
1200
- action: "RESET";
1201
- queryHash: string;
1202
- cleared?: undefined;
1203
- queryCountBefore?: undefined;
1204
- queryCountAfter?: undefined;
1205
- mutationCountBefore?: undefined;
1206
- mutationCountAfter?: undefined;
1207
- } | {
1208
- applied: boolean;
1209
- action: "REMOVE";
1210
- queryHash: string;
1211
- cleared?: undefined;
1212
- queryCountBefore?: undefined;
1213
- queryCountAfter?: undefined;
1214
- mutationCountBefore?: undefined;
1215
- mutationCountAfter?: undefined;
1216
- } | {
1217
- applied: boolean;
1218
- action: "REFETCH";
1219
- queryHash: string;
1220
- cleared?: undefined;
1221
- queryCountBefore?: undefined;
1222
- queryCountAfter?: undefined;
1223
- mutationCountBefore?: undefined;
1224
- mutationCountAfter?: undefined;
1225
- } | {
1226
- applied: boolean;
1227
- action: "INVALIDATE";
1228
- queryHash: string;
1229
- cleared?: undefined;
1230
- queryCountBefore?: undefined;
1231
- queryCountAfter?: undefined;
1232
- mutationCountBefore?: undefined;
1233
- mutationCountAfter?: undefined;
1234
- }>;
1235
- readonly setQueryLoading: AgentToolDescriptor<TanStackQueryAgentQueryToggleInput, {
1236
- applied: boolean;
1237
- action: "CLEAR_QUERY_CACHE";
1238
- cleared: boolean;
1239
- queryCountBefore: number;
1240
- queryCountAfter: number;
1241
- mutationCountBefore?: undefined;
1242
- mutationCountAfter?: undefined;
1243
- queryHash?: undefined;
1244
- } | {
1245
- applied: boolean;
1246
- action: "CLEAR_MUTATION_CACHE";
1247
- cleared: boolean;
1248
- mutationCountBefore: number;
1249
- mutationCountAfter: number;
1250
- queryCountBefore?: undefined;
1251
- queryCountAfter?: undefined;
1252
- queryHash?: undefined;
1253
- } | {
1254
- applied: boolean;
1255
- action: "SET_QUERY_DATA";
1256
- queryHash: string;
1257
- cleared?: undefined;
1258
- queryCountBefore?: undefined;
1259
- queryCountAfter?: undefined;
1260
- mutationCountBefore?: undefined;
1261
- mutationCountAfter?: undefined;
1262
- } | {
1263
- applied: boolean;
1264
- action: "TRIGGER_ERROR";
1265
- queryHash: string;
1266
- cleared?: undefined;
1267
- queryCountBefore?: undefined;
1268
- queryCountAfter?: undefined;
1269
- mutationCountBefore?: undefined;
1270
- mutationCountAfter?: undefined;
1271
- } | {
1272
- applied: boolean;
1273
- action: "RESTORE_ERROR";
1274
- queryHash: string;
1275
- cleared?: undefined;
1276
- queryCountBefore?: undefined;
1277
- queryCountAfter?: undefined;
1278
- mutationCountBefore?: undefined;
1279
- mutationCountAfter?: undefined;
1280
- } | {
1281
- applied: boolean;
1282
- action: "TRIGGER_LOADING";
1283
- queryHash: string;
1284
- cleared?: undefined;
1285
- queryCountBefore?: undefined;
1286
- queryCountAfter?: undefined;
1287
- mutationCountBefore?: undefined;
1288
- mutationCountAfter?: undefined;
1289
- } | {
1290
- applied: boolean;
1291
- action: "RESTORE_LOADING";
1292
- queryHash: string;
1293
- cleared?: undefined;
1294
- queryCountBefore?: undefined;
1295
- queryCountAfter?: undefined;
1296
- mutationCountBefore?: undefined;
1297
- mutationCountAfter?: undefined;
1298
- } | {
1299
- applied: boolean;
1300
- action: "RESET";
1301
- queryHash: string;
1302
- cleared?: undefined;
1303
- queryCountBefore?: undefined;
1304
- queryCountAfter?: undefined;
1305
- mutationCountBefore?: undefined;
1306
- mutationCountAfter?: undefined;
1307
- } | {
1308
- applied: boolean;
1309
- action: "REMOVE";
1310
- queryHash: string;
1311
- cleared?: undefined;
1312
- queryCountBefore?: undefined;
1313
- queryCountAfter?: undefined;
1314
- mutationCountBefore?: undefined;
1315
- mutationCountAfter?: undefined;
1316
- } | {
1317
- applied: boolean;
1318
- action: "REFETCH";
1319
- queryHash: string;
1320
- cleared?: undefined;
1321
- queryCountBefore?: undefined;
1322
- queryCountAfter?: undefined;
1323
- mutationCountBefore?: undefined;
1324
- mutationCountAfter?: undefined;
1325
- } | {
1326
- applied: boolean;
1327
- action: "INVALIDATE";
1328
- queryHash: string;
1329
- cleared?: undefined;
1330
- queryCountBefore?: undefined;
1331
- queryCountAfter?: undefined;
1332
- mutationCountBefore?: undefined;
1333
- mutationCountAfter?: undefined;
1334
- }>;
1335
- readonly setQueryError: AgentToolDescriptor<TanStackQueryAgentQueryToggleInput, {
1336
- applied: boolean;
1337
- action: "CLEAR_QUERY_CACHE";
1338
- cleared: boolean;
1339
- queryCountBefore: number;
1340
- queryCountAfter: number;
1341
- mutationCountBefore?: undefined;
1342
- mutationCountAfter?: undefined;
1343
- queryHash?: undefined;
1344
- } | {
1345
- applied: boolean;
1346
- action: "CLEAR_MUTATION_CACHE";
1347
- cleared: boolean;
1348
- mutationCountBefore: number;
1349
- mutationCountAfter: number;
1350
- queryCountBefore?: undefined;
1351
- queryCountAfter?: undefined;
1352
- queryHash?: undefined;
1353
- } | {
1354
- applied: boolean;
1355
- action: "SET_QUERY_DATA";
1356
- queryHash: string;
1357
- cleared?: undefined;
1358
- queryCountBefore?: undefined;
1359
- queryCountAfter?: undefined;
1360
- mutationCountBefore?: undefined;
1361
- mutationCountAfter?: undefined;
1362
- } | {
1363
- applied: boolean;
1364
- action: "TRIGGER_ERROR";
1365
- queryHash: string;
1366
- cleared?: undefined;
1367
- queryCountBefore?: undefined;
1368
- queryCountAfter?: undefined;
1369
- mutationCountBefore?: undefined;
1370
- mutationCountAfter?: undefined;
1371
- } | {
1372
- applied: boolean;
1373
- action: "RESTORE_ERROR";
1374
- queryHash: string;
1375
- cleared?: undefined;
1376
- queryCountBefore?: undefined;
1377
- queryCountAfter?: undefined;
1378
- mutationCountBefore?: undefined;
1379
- mutationCountAfter?: undefined;
1380
- } | {
1381
- applied: boolean;
1382
- action: "TRIGGER_LOADING";
1383
- queryHash: string;
1384
- cleared?: undefined;
1385
- queryCountBefore?: undefined;
1386
- queryCountAfter?: undefined;
1387
- mutationCountBefore?: undefined;
1388
- mutationCountAfter?: undefined;
1389
- } | {
1390
- applied: boolean;
1391
- action: "RESTORE_LOADING";
1392
- queryHash: string;
1393
- cleared?: undefined;
1394
- queryCountBefore?: undefined;
1395
- queryCountAfter?: undefined;
1396
- mutationCountBefore?: undefined;
1397
- mutationCountAfter?: undefined;
1398
- } | {
1399
- applied: boolean;
1400
- action: "RESET";
1401
- queryHash: string;
1402
- cleared?: undefined;
1403
- queryCountBefore?: undefined;
1404
- queryCountAfter?: undefined;
1405
- mutationCountBefore?: undefined;
1406
- mutationCountAfter?: undefined;
1407
- } | {
1408
- applied: boolean;
1409
- action: "REMOVE";
1410
- queryHash: string;
1411
- cleared?: undefined;
1412
- queryCountBefore?: undefined;
1413
- queryCountAfter?: undefined;
1414
- mutationCountBefore?: undefined;
1415
- mutationCountAfter?: undefined;
1416
- } | {
1417
- applied: boolean;
1418
- action: "REFETCH";
1419
- queryHash: string;
1420
- cleared?: undefined;
1421
- queryCountBefore?: undefined;
1422
- queryCountAfter?: undefined;
1423
- mutationCountBefore?: undefined;
1424
- mutationCountAfter?: undefined;
1425
- } | {
1426
- applied: boolean;
1427
- action: "INVALIDATE";
1428
- queryHash: string;
1429
- cleared?: undefined;
1430
- queryCountBefore?: undefined;
1431
- queryCountAfter?: undefined;
1432
- mutationCountBefore?: undefined;
1433
- mutationCountAfter?: undefined;
1434
- }>;
1435
- readonly invalidateQuery: AgentToolDescriptor<TanStackQueryAgentQueryHashInput, {
1436
- applied: boolean;
1437
- action: "CLEAR_QUERY_CACHE";
1438
- cleared: boolean;
1439
- queryCountBefore: number;
1440
- queryCountAfter: number;
1441
- mutationCountBefore?: undefined;
1442
- mutationCountAfter?: undefined;
1443
- queryHash?: undefined;
1444
- } | {
1445
- applied: boolean;
1446
- action: "CLEAR_MUTATION_CACHE";
1447
- cleared: boolean;
1448
- mutationCountBefore: number;
1449
- mutationCountAfter: number;
1450
- queryCountBefore?: undefined;
1451
- queryCountAfter?: undefined;
1452
- queryHash?: undefined;
1453
- } | {
1454
- applied: boolean;
1455
- action: "SET_QUERY_DATA";
1456
- queryHash: string;
1457
- cleared?: undefined;
1458
- queryCountBefore?: undefined;
1459
- queryCountAfter?: undefined;
1460
- mutationCountBefore?: undefined;
1461
- mutationCountAfter?: undefined;
1462
- } | {
1463
- applied: boolean;
1464
- action: "TRIGGER_ERROR";
1465
- queryHash: string;
1466
- cleared?: undefined;
1467
- queryCountBefore?: undefined;
1468
- queryCountAfter?: undefined;
1469
- mutationCountBefore?: undefined;
1470
- mutationCountAfter?: undefined;
1471
- } | {
1472
- applied: boolean;
1473
- action: "RESTORE_ERROR";
1474
- queryHash: string;
1475
- cleared?: undefined;
1476
- queryCountBefore?: undefined;
1477
- queryCountAfter?: undefined;
1478
- mutationCountBefore?: undefined;
1479
- mutationCountAfter?: undefined;
1480
- } | {
1481
- applied: boolean;
1482
- action: "TRIGGER_LOADING";
1483
- queryHash: string;
1484
- cleared?: undefined;
1485
- queryCountBefore?: undefined;
1486
- queryCountAfter?: undefined;
1487
- mutationCountBefore?: undefined;
1488
- mutationCountAfter?: undefined;
1489
- } | {
1490
- applied: boolean;
1491
- action: "RESTORE_LOADING";
1492
- queryHash: string;
1493
- cleared?: undefined;
1494
- queryCountBefore?: undefined;
1495
- queryCountAfter?: undefined;
1496
- mutationCountBefore?: undefined;
1497
- mutationCountAfter?: undefined;
1498
- } | {
1499
- applied: boolean;
1500
- action: "RESET";
1501
- queryHash: string;
1502
- cleared?: undefined;
1503
- queryCountBefore?: undefined;
1504
- queryCountAfter?: undefined;
1505
- mutationCountBefore?: undefined;
1506
- mutationCountAfter?: undefined;
1507
- } | {
1508
- applied: boolean;
1509
- action: "REMOVE";
1510
- queryHash: string;
1511
- cleared?: undefined;
1512
- queryCountBefore?: undefined;
1513
- queryCountAfter?: undefined;
1514
- mutationCountBefore?: undefined;
1515
- mutationCountAfter?: undefined;
1516
- } | {
1517
- applied: boolean;
1518
- action: "REFETCH";
1519
- queryHash: string;
1520
- cleared?: undefined;
1521
- queryCountBefore?: undefined;
1522
- queryCountAfter?: undefined;
1523
- mutationCountBefore?: undefined;
1524
- mutationCountAfter?: undefined;
1525
- } | {
1526
- applied: boolean;
1527
- action: "INVALIDATE";
1528
- queryHash: string;
1529
- cleared?: undefined;
1530
- queryCountBefore?: undefined;
1531
- queryCountAfter?: undefined;
1532
- mutationCountBefore?: undefined;
1533
- mutationCountAfter?: undefined;
1534
- }>;
1535
- readonly resetQuery: AgentToolDescriptor<TanStackQueryAgentQueryHashInput, {
1536
- applied: boolean;
1537
- action: "CLEAR_QUERY_CACHE";
1538
- cleared: boolean;
1539
- queryCountBefore: number;
1540
- queryCountAfter: number;
1541
- mutationCountBefore?: undefined;
1542
- mutationCountAfter?: undefined;
1543
- queryHash?: undefined;
1544
- } | {
1545
- applied: boolean;
1546
- action: "CLEAR_MUTATION_CACHE";
1547
- cleared: boolean;
1548
- mutationCountBefore: number;
1549
- mutationCountAfter: number;
1550
- queryCountBefore?: undefined;
1551
- queryCountAfter?: undefined;
1552
- queryHash?: undefined;
1553
- } | {
1554
- applied: boolean;
1555
- action: "SET_QUERY_DATA";
1556
- queryHash: string;
1557
- cleared?: undefined;
1558
- queryCountBefore?: undefined;
1559
- queryCountAfter?: undefined;
1560
- mutationCountBefore?: undefined;
1561
- mutationCountAfter?: undefined;
1562
- } | {
1563
- applied: boolean;
1564
- action: "TRIGGER_ERROR";
1565
- queryHash: string;
1566
- cleared?: undefined;
1567
- queryCountBefore?: undefined;
1568
- queryCountAfter?: undefined;
1569
- mutationCountBefore?: undefined;
1570
- mutationCountAfter?: undefined;
1571
- } | {
1572
- applied: boolean;
1573
- action: "RESTORE_ERROR";
1574
- queryHash: string;
1575
- cleared?: undefined;
1576
- queryCountBefore?: undefined;
1577
- queryCountAfter?: undefined;
1578
- mutationCountBefore?: undefined;
1579
- mutationCountAfter?: undefined;
1580
- } | {
1581
- applied: boolean;
1582
- action: "TRIGGER_LOADING";
1583
- queryHash: string;
1584
- cleared?: undefined;
1585
- queryCountBefore?: undefined;
1586
- queryCountAfter?: undefined;
1587
- mutationCountBefore?: undefined;
1588
- mutationCountAfter?: undefined;
1589
- } | {
1590
- applied: boolean;
1591
- action: "RESTORE_LOADING";
1592
- queryHash: string;
1593
- cleared?: undefined;
1594
- queryCountBefore?: undefined;
1595
- queryCountAfter?: undefined;
1596
- mutationCountBefore?: undefined;
1597
- mutationCountAfter?: undefined;
1598
- } | {
1599
- applied: boolean;
1600
- action: "RESET";
1601
- queryHash: string;
1602
- cleared?: undefined;
1603
- queryCountBefore?: undefined;
1604
- queryCountAfter?: undefined;
1605
- mutationCountBefore?: undefined;
1606
- mutationCountAfter?: undefined;
1607
- } | {
1608
- applied: boolean;
1609
- action: "REMOVE";
1610
- queryHash: string;
1611
- cleared?: undefined;
1612
- queryCountBefore?: undefined;
1613
- queryCountAfter?: undefined;
1614
- mutationCountBefore?: undefined;
1615
- mutationCountAfter?: undefined;
1616
- } | {
1617
- applied: boolean;
1618
- action: "REFETCH";
1619
- queryHash: string;
1620
- cleared?: undefined;
1621
- queryCountBefore?: undefined;
1622
- queryCountAfter?: undefined;
1623
- mutationCountBefore?: undefined;
1624
- mutationCountAfter?: undefined;
1625
- } | {
1626
- applied: boolean;
1627
- action: "INVALIDATE";
1628
- queryHash: string;
1629
- cleared?: undefined;
1630
- queryCountBefore?: undefined;
1631
- queryCountAfter?: undefined;
1632
- mutationCountBefore?: undefined;
1633
- mutationCountAfter?: undefined;
1634
- }>;
1635
- readonly removeQuery: AgentToolDescriptor<TanStackQueryAgentQueryHashInput, {
1636
- applied: boolean;
1637
- action: "CLEAR_QUERY_CACHE";
1638
- cleared: boolean;
1639
- queryCountBefore: number;
1640
- queryCountAfter: number;
1641
- mutationCountBefore?: undefined;
1642
- mutationCountAfter?: undefined;
1643
- queryHash?: undefined;
1644
- } | {
1645
- applied: boolean;
1646
- action: "CLEAR_MUTATION_CACHE";
1647
- cleared: boolean;
1648
- mutationCountBefore: number;
1649
- mutationCountAfter: number;
1650
- queryCountBefore?: undefined;
1651
- queryCountAfter?: undefined;
1652
- queryHash?: undefined;
1653
- } | {
1654
- applied: boolean;
1655
- action: "SET_QUERY_DATA";
1656
- queryHash: string;
1657
- cleared?: undefined;
1658
- queryCountBefore?: undefined;
1659
- queryCountAfter?: undefined;
1660
- mutationCountBefore?: undefined;
1661
- mutationCountAfter?: undefined;
1662
- } | {
1663
- applied: boolean;
1664
- action: "TRIGGER_ERROR";
1665
- queryHash: string;
1666
- cleared?: undefined;
1667
- queryCountBefore?: undefined;
1668
- queryCountAfter?: undefined;
1669
- mutationCountBefore?: undefined;
1670
- mutationCountAfter?: undefined;
1671
- } | {
1672
- applied: boolean;
1673
- action: "RESTORE_ERROR";
1674
- queryHash: string;
1675
- cleared?: undefined;
1676
- queryCountBefore?: undefined;
1677
- queryCountAfter?: undefined;
1678
- mutationCountBefore?: undefined;
1679
- mutationCountAfter?: undefined;
1680
- } | {
1681
- applied: boolean;
1682
- action: "TRIGGER_LOADING";
1683
- queryHash: string;
1684
- cleared?: undefined;
1685
- queryCountBefore?: undefined;
1686
- queryCountAfter?: undefined;
1687
- mutationCountBefore?: undefined;
1688
- mutationCountAfter?: undefined;
1689
- } | {
1690
- applied: boolean;
1691
- action: "RESTORE_LOADING";
1692
- queryHash: string;
1693
- cleared?: undefined;
1694
- queryCountBefore?: undefined;
1695
- queryCountAfter?: undefined;
1696
- mutationCountBefore?: undefined;
1697
- mutationCountAfter?: undefined;
1698
- } | {
1699
- applied: boolean;
1700
- action: "RESET";
1701
- queryHash: string;
1702
- cleared?: undefined;
1703
- queryCountBefore?: undefined;
1704
- queryCountAfter?: undefined;
1705
- mutationCountBefore?: undefined;
1706
- mutationCountAfter?: undefined;
1707
- } | {
1708
- applied: boolean;
1709
- action: "REMOVE";
1710
- queryHash: string;
1711
- cleared?: undefined;
1712
- queryCountBefore?: undefined;
1713
- queryCountAfter?: undefined;
1714
- mutationCountBefore?: undefined;
1715
- mutationCountAfter?: undefined;
1716
- } | {
1717
- applied: boolean;
1718
- action: "REFETCH";
1719
- queryHash: string;
1720
- cleared?: undefined;
1721
- queryCountBefore?: undefined;
1722
- queryCountAfter?: undefined;
1723
- mutationCountBefore?: undefined;
1724
- mutationCountAfter?: undefined;
1725
- } | {
1726
- applied: boolean;
1727
- action: "INVALIDATE";
1728
- queryHash: string;
1729
- cleared?: undefined;
1730
- queryCountBefore?: undefined;
1731
- queryCountAfter?: undefined;
1732
- mutationCountBefore?: undefined;
1733
- mutationCountAfter?: undefined;
1734
- }>;
1735
- readonly clearQueryCache: AgentToolDescriptor<undefined, {
1736
- applied: boolean;
1737
- action: "CLEAR_QUERY_CACHE";
1738
- cleared: boolean;
1739
- queryCountBefore: number;
1740
- queryCountAfter: number;
1741
- mutationCountBefore?: undefined;
1742
- mutationCountAfter?: undefined;
1743
- queryHash?: undefined;
1744
- } | {
1745
- applied: boolean;
1746
- action: "CLEAR_MUTATION_CACHE";
1747
- cleared: boolean;
1748
- mutationCountBefore: number;
1749
- mutationCountAfter: number;
1750
- queryCountBefore?: undefined;
1751
- queryCountAfter?: undefined;
1752
- queryHash?: undefined;
1753
- } | {
1754
- applied: boolean;
1755
- action: "SET_QUERY_DATA";
1756
- queryHash: string;
1757
- cleared?: undefined;
1758
- queryCountBefore?: undefined;
1759
- queryCountAfter?: undefined;
1760
- mutationCountBefore?: undefined;
1761
- mutationCountAfter?: undefined;
1762
- } | {
1763
- applied: boolean;
1764
- action: "TRIGGER_ERROR";
1765
- queryHash: string;
1766
- cleared?: undefined;
1767
- queryCountBefore?: undefined;
1768
- queryCountAfter?: undefined;
1769
- mutationCountBefore?: undefined;
1770
- mutationCountAfter?: undefined;
1771
- } | {
1772
- applied: boolean;
1773
- action: "RESTORE_ERROR";
1774
- queryHash: string;
1775
- cleared?: undefined;
1776
- queryCountBefore?: undefined;
1777
- queryCountAfter?: undefined;
1778
- mutationCountBefore?: undefined;
1779
- mutationCountAfter?: undefined;
1780
- } | {
1781
- applied: boolean;
1782
- action: "TRIGGER_LOADING";
1783
- queryHash: string;
1784
- cleared?: undefined;
1785
- queryCountBefore?: undefined;
1786
- queryCountAfter?: undefined;
1787
- mutationCountBefore?: undefined;
1788
- mutationCountAfter?: undefined;
1789
- } | {
1790
- applied: boolean;
1791
- action: "RESTORE_LOADING";
1792
- queryHash: string;
1793
- cleared?: undefined;
1794
- queryCountBefore?: undefined;
1795
- queryCountAfter?: undefined;
1796
- mutationCountBefore?: undefined;
1797
- mutationCountAfter?: undefined;
1798
- } | {
1799
- applied: boolean;
1800
- action: "RESET";
1801
- queryHash: string;
1802
- cleared?: undefined;
1803
- queryCountBefore?: undefined;
1804
- queryCountAfter?: undefined;
1805
- mutationCountBefore?: undefined;
1806
- mutationCountAfter?: undefined;
1807
- } | {
1808
- applied: boolean;
1809
- action: "REMOVE";
1810
- queryHash: string;
1811
- cleared?: undefined;
1812
- queryCountBefore?: undefined;
1813
- queryCountAfter?: undefined;
1814
- mutationCountBefore?: undefined;
1815
- mutationCountAfter?: undefined;
1816
- } | {
1817
- applied: boolean;
1818
- action: "REFETCH";
1819
- queryHash: string;
1820
- cleared?: undefined;
1821
- queryCountBefore?: undefined;
1822
- queryCountAfter?: undefined;
1823
- mutationCountBefore?: undefined;
1824
- mutationCountAfter?: undefined;
1825
- } | {
1826
- applied: boolean;
1827
- action: "INVALIDATE";
1828
- queryHash: string;
1829
- cleared?: undefined;
1830
- queryCountBefore?: undefined;
1831
- queryCountAfter?: undefined;
1832
- mutationCountBefore?: undefined;
1833
- mutationCountAfter?: undefined;
1834
- }>;
1835
- readonly listMutations: AgentToolDescriptor<TanStackQueryAgentPaginationInput, TanStackQueryListMutationsResult>;
1836
- readonly getMutationDetails: AgentToolDescriptor<TanStackQueryAgentMutationIdInput, TanStackQueryGetMutationDetailsResult>;
1837
- readonly clearMutationCache: AgentToolDescriptor<undefined, {
1838
- applied: boolean;
1839
- action: "CLEAR_QUERY_CACHE";
1840
- cleared: boolean;
1841
- queryCountBefore: number;
1842
- queryCountAfter: number;
1843
- mutationCountBefore?: undefined;
1844
- mutationCountAfter?: undefined;
1845
- queryHash?: undefined;
1846
- } | {
1847
- applied: boolean;
1848
- action: "CLEAR_MUTATION_CACHE";
1849
- cleared: boolean;
1850
- mutationCountBefore: number;
1851
- mutationCountAfter: number;
1852
- queryCountBefore?: undefined;
1853
- queryCountAfter?: undefined;
1854
- queryHash?: undefined;
1855
- } | {
1856
- applied: boolean;
1857
- action: "SET_QUERY_DATA";
1858
- queryHash: string;
1859
- cleared?: undefined;
1860
- queryCountBefore?: undefined;
1861
- queryCountAfter?: undefined;
1862
- mutationCountBefore?: undefined;
1863
- mutationCountAfter?: undefined;
1864
- } | {
1865
- applied: boolean;
1866
- action: "TRIGGER_ERROR";
1867
- queryHash: string;
1868
- cleared?: undefined;
1869
- queryCountBefore?: undefined;
1870
- queryCountAfter?: undefined;
1871
- mutationCountBefore?: undefined;
1872
- mutationCountAfter?: undefined;
1873
- } | {
1874
- applied: boolean;
1875
- action: "RESTORE_ERROR";
1876
- queryHash: string;
1877
- cleared?: undefined;
1878
- queryCountBefore?: undefined;
1879
- queryCountAfter?: undefined;
1880
- mutationCountBefore?: undefined;
1881
- mutationCountAfter?: undefined;
1882
- } | {
1883
- applied: boolean;
1884
- action: "TRIGGER_LOADING";
1885
- queryHash: string;
1886
- cleared?: undefined;
1887
- queryCountBefore?: undefined;
1888
- queryCountAfter?: undefined;
1889
- mutationCountBefore?: undefined;
1890
- mutationCountAfter?: undefined;
1891
- } | {
1892
- applied: boolean;
1893
- action: "RESTORE_LOADING";
1894
- queryHash: string;
1895
- cleared?: undefined;
1896
- queryCountBefore?: undefined;
1897
- queryCountAfter?: undefined;
1898
- mutationCountBefore?: undefined;
1899
- mutationCountAfter?: undefined;
1900
- } | {
1901
- applied: boolean;
1902
- action: "RESET";
1903
- queryHash: string;
1904
- cleared?: undefined;
1905
- queryCountBefore?: undefined;
1906
- queryCountAfter?: undefined;
1907
- mutationCountBefore?: undefined;
1908
- mutationCountAfter?: undefined;
1909
- } | {
1910
- applied: boolean;
1911
- action: "REMOVE";
1912
- queryHash: string;
1913
- cleared?: undefined;
1914
- queryCountBefore?: undefined;
1915
- queryCountAfter?: undefined;
1916
- mutationCountBefore?: undefined;
1917
- mutationCountAfter?: undefined;
1918
- } | {
1919
- applied: boolean;
1920
- action: "REFETCH";
1921
- queryHash: string;
1922
- cleared?: undefined;
1923
- queryCountBefore?: undefined;
1924
- queryCountAfter?: undefined;
1925
- mutationCountBefore?: undefined;
1926
- mutationCountAfter?: undefined;
1927
- } | {
1928
- applied: boolean;
1929
- action: "INVALIDATE";
1930
- queryHash: string;
1931
- cleared?: undefined;
1932
- queryCountBefore?: undefined;
1933
- queryCountAfter?: undefined;
1934
- mutationCountBefore?: undefined;
1935
- mutationCountAfter?: undefined;
1936
- }>;
1937
- };
1938
-
1939
- export { }
1
+ import type { MutationCacheNotifyEvent, QueryCacheNotifyEvent, QueryClient } from '@tanstack/react-query';
2
+ import { type TanStackQueryAgentMutationIdInput as MutationIdInput, type TanStackQueryAgentOnlineStatusInput as OnlineStatusInput, type TanStackQueryAgentPaginationInput as PaginationInput, type TanStackQueryAgentQueryHashInput as QueryHashInput, type TanStackQueryAgentQueryToggleInput as QueryToggleInput, type TanStackQueryAgentSafeValue as AgentSafeValue, type TanStackQueryMutationOptionsSummary, type TanStackQueryObserverOptionsSummary } from '../../shared/agent-tools';
3
+ export declare const serializeForAgent: (value: unknown, seen?: WeakSet<object>) => AgentSafeValue;
4
+ export declare const getCacheSummaryTool: import("@rozenite/agent-shared").AgentToolContract<undefined, import("../../shared/agent-tools").TanStackQueryCacheSummary>;
5
+ export declare const getOnlineStatusTool: import("@rozenite/agent-shared").AgentToolContract<undefined, import("../../shared/agent-tools").TanStackQueryGetOnlineStatusResult>;
6
+ export declare const setOnlineStatusTool: import("@rozenite/agent-shared").AgentToolContract<OnlineStatusInput, import("../../shared/agent-tools").TanStackQuerySetOnlineStatusResult>;
7
+ export declare const listQueriesTool: import("@rozenite/agent-shared").AgentToolContract<PaginationInput, import("../../shared/agent-tools").TanStackQueryListQueriesResult>;
8
+ export declare const getQueryDetailsTool: import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, import("../../shared/agent-tools").TanStackQueryGetQueryDetailsResult>;
9
+ export declare const refetchQueryTool: import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, {
10
+ applied: boolean;
11
+ action: "CLEAR_QUERY_CACHE";
12
+ cleared: boolean;
13
+ queryCountBefore: number;
14
+ queryCountAfter: number;
15
+ mutationCountBefore?: undefined;
16
+ mutationCountAfter?: undefined;
17
+ queryHash?: undefined;
18
+ } | {
19
+ applied: boolean;
20
+ action: "CLEAR_MUTATION_CACHE";
21
+ cleared: boolean;
22
+ mutationCountBefore: number;
23
+ mutationCountAfter: number;
24
+ queryCountBefore?: undefined;
25
+ queryCountAfter?: undefined;
26
+ queryHash?: undefined;
27
+ } | {
28
+ applied: boolean;
29
+ action: "SET_QUERY_DATA";
30
+ queryHash: string;
31
+ cleared?: undefined;
32
+ queryCountBefore?: undefined;
33
+ queryCountAfter?: undefined;
34
+ mutationCountBefore?: undefined;
35
+ mutationCountAfter?: undefined;
36
+ } | {
37
+ applied: boolean;
38
+ action: "TRIGGER_ERROR";
39
+ queryHash: string;
40
+ cleared?: undefined;
41
+ queryCountBefore?: undefined;
42
+ queryCountAfter?: undefined;
43
+ mutationCountBefore?: undefined;
44
+ mutationCountAfter?: undefined;
45
+ } | {
46
+ applied: boolean;
47
+ action: "RESTORE_ERROR";
48
+ queryHash: string;
49
+ cleared?: undefined;
50
+ queryCountBefore?: undefined;
51
+ queryCountAfter?: undefined;
52
+ mutationCountBefore?: undefined;
53
+ mutationCountAfter?: undefined;
54
+ } | {
55
+ applied: boolean;
56
+ action: "TRIGGER_LOADING";
57
+ queryHash: string;
58
+ cleared?: undefined;
59
+ queryCountBefore?: undefined;
60
+ queryCountAfter?: undefined;
61
+ mutationCountBefore?: undefined;
62
+ mutationCountAfter?: undefined;
63
+ } | {
64
+ applied: boolean;
65
+ action: "RESTORE_LOADING";
66
+ queryHash: string;
67
+ cleared?: undefined;
68
+ queryCountBefore?: undefined;
69
+ queryCountAfter?: undefined;
70
+ mutationCountBefore?: undefined;
71
+ mutationCountAfter?: undefined;
72
+ } | {
73
+ applied: boolean;
74
+ action: "RESET";
75
+ queryHash: string;
76
+ cleared?: undefined;
77
+ queryCountBefore?: undefined;
78
+ queryCountAfter?: undefined;
79
+ mutationCountBefore?: undefined;
80
+ mutationCountAfter?: undefined;
81
+ } | {
82
+ applied: boolean;
83
+ action: "REMOVE";
84
+ queryHash: string;
85
+ cleared?: undefined;
86
+ queryCountBefore?: undefined;
87
+ queryCountAfter?: undefined;
88
+ mutationCountBefore?: undefined;
89
+ mutationCountAfter?: undefined;
90
+ } | {
91
+ applied: boolean;
92
+ action: "REFETCH";
93
+ queryHash: string;
94
+ cleared?: undefined;
95
+ queryCountBefore?: undefined;
96
+ queryCountAfter?: undefined;
97
+ mutationCountBefore?: undefined;
98
+ mutationCountAfter?: undefined;
99
+ } | {
100
+ applied: boolean;
101
+ action: "INVALIDATE";
102
+ queryHash: string;
103
+ cleared?: undefined;
104
+ queryCountBefore?: undefined;
105
+ queryCountAfter?: undefined;
106
+ mutationCountBefore?: undefined;
107
+ mutationCountAfter?: undefined;
108
+ }>;
109
+ export declare const setQueryLoadingTool: import("@rozenite/agent-shared").AgentToolContract<QueryToggleInput, {
110
+ applied: boolean;
111
+ action: "CLEAR_QUERY_CACHE";
112
+ cleared: boolean;
113
+ queryCountBefore: number;
114
+ queryCountAfter: number;
115
+ mutationCountBefore?: undefined;
116
+ mutationCountAfter?: undefined;
117
+ queryHash?: undefined;
118
+ } | {
119
+ applied: boolean;
120
+ action: "CLEAR_MUTATION_CACHE";
121
+ cleared: boolean;
122
+ mutationCountBefore: number;
123
+ mutationCountAfter: number;
124
+ queryCountBefore?: undefined;
125
+ queryCountAfter?: undefined;
126
+ queryHash?: undefined;
127
+ } | {
128
+ applied: boolean;
129
+ action: "SET_QUERY_DATA";
130
+ queryHash: string;
131
+ cleared?: undefined;
132
+ queryCountBefore?: undefined;
133
+ queryCountAfter?: undefined;
134
+ mutationCountBefore?: undefined;
135
+ mutationCountAfter?: undefined;
136
+ } | {
137
+ applied: boolean;
138
+ action: "TRIGGER_ERROR";
139
+ queryHash: string;
140
+ cleared?: undefined;
141
+ queryCountBefore?: undefined;
142
+ queryCountAfter?: undefined;
143
+ mutationCountBefore?: undefined;
144
+ mutationCountAfter?: undefined;
145
+ } | {
146
+ applied: boolean;
147
+ action: "RESTORE_ERROR";
148
+ queryHash: string;
149
+ cleared?: undefined;
150
+ queryCountBefore?: undefined;
151
+ queryCountAfter?: undefined;
152
+ mutationCountBefore?: undefined;
153
+ mutationCountAfter?: undefined;
154
+ } | {
155
+ applied: boolean;
156
+ action: "TRIGGER_LOADING";
157
+ queryHash: string;
158
+ cleared?: undefined;
159
+ queryCountBefore?: undefined;
160
+ queryCountAfter?: undefined;
161
+ mutationCountBefore?: undefined;
162
+ mutationCountAfter?: undefined;
163
+ } | {
164
+ applied: boolean;
165
+ action: "RESTORE_LOADING";
166
+ queryHash: string;
167
+ cleared?: undefined;
168
+ queryCountBefore?: undefined;
169
+ queryCountAfter?: undefined;
170
+ mutationCountBefore?: undefined;
171
+ mutationCountAfter?: undefined;
172
+ } | {
173
+ applied: boolean;
174
+ action: "RESET";
175
+ queryHash: string;
176
+ cleared?: undefined;
177
+ queryCountBefore?: undefined;
178
+ queryCountAfter?: undefined;
179
+ mutationCountBefore?: undefined;
180
+ mutationCountAfter?: undefined;
181
+ } | {
182
+ applied: boolean;
183
+ action: "REMOVE";
184
+ queryHash: string;
185
+ cleared?: undefined;
186
+ queryCountBefore?: undefined;
187
+ queryCountAfter?: undefined;
188
+ mutationCountBefore?: undefined;
189
+ mutationCountAfter?: undefined;
190
+ } | {
191
+ applied: boolean;
192
+ action: "REFETCH";
193
+ queryHash: string;
194
+ cleared?: undefined;
195
+ queryCountBefore?: undefined;
196
+ queryCountAfter?: undefined;
197
+ mutationCountBefore?: undefined;
198
+ mutationCountAfter?: undefined;
199
+ } | {
200
+ applied: boolean;
201
+ action: "INVALIDATE";
202
+ queryHash: string;
203
+ cleared?: undefined;
204
+ queryCountBefore?: undefined;
205
+ queryCountAfter?: undefined;
206
+ mutationCountBefore?: undefined;
207
+ mutationCountAfter?: undefined;
208
+ }>;
209
+ export declare const setQueryErrorTool: import("@rozenite/agent-shared").AgentToolContract<QueryToggleInput, {
210
+ applied: boolean;
211
+ action: "CLEAR_QUERY_CACHE";
212
+ cleared: boolean;
213
+ queryCountBefore: number;
214
+ queryCountAfter: number;
215
+ mutationCountBefore?: undefined;
216
+ mutationCountAfter?: undefined;
217
+ queryHash?: undefined;
218
+ } | {
219
+ applied: boolean;
220
+ action: "CLEAR_MUTATION_CACHE";
221
+ cleared: boolean;
222
+ mutationCountBefore: number;
223
+ mutationCountAfter: number;
224
+ queryCountBefore?: undefined;
225
+ queryCountAfter?: undefined;
226
+ queryHash?: undefined;
227
+ } | {
228
+ applied: boolean;
229
+ action: "SET_QUERY_DATA";
230
+ queryHash: string;
231
+ cleared?: undefined;
232
+ queryCountBefore?: undefined;
233
+ queryCountAfter?: undefined;
234
+ mutationCountBefore?: undefined;
235
+ mutationCountAfter?: undefined;
236
+ } | {
237
+ applied: boolean;
238
+ action: "TRIGGER_ERROR";
239
+ queryHash: string;
240
+ cleared?: undefined;
241
+ queryCountBefore?: undefined;
242
+ queryCountAfter?: undefined;
243
+ mutationCountBefore?: undefined;
244
+ mutationCountAfter?: undefined;
245
+ } | {
246
+ applied: boolean;
247
+ action: "RESTORE_ERROR";
248
+ queryHash: string;
249
+ cleared?: undefined;
250
+ queryCountBefore?: undefined;
251
+ queryCountAfter?: undefined;
252
+ mutationCountBefore?: undefined;
253
+ mutationCountAfter?: undefined;
254
+ } | {
255
+ applied: boolean;
256
+ action: "TRIGGER_LOADING";
257
+ queryHash: string;
258
+ cleared?: undefined;
259
+ queryCountBefore?: undefined;
260
+ queryCountAfter?: undefined;
261
+ mutationCountBefore?: undefined;
262
+ mutationCountAfter?: undefined;
263
+ } | {
264
+ applied: boolean;
265
+ action: "RESTORE_LOADING";
266
+ queryHash: string;
267
+ cleared?: undefined;
268
+ queryCountBefore?: undefined;
269
+ queryCountAfter?: undefined;
270
+ mutationCountBefore?: undefined;
271
+ mutationCountAfter?: undefined;
272
+ } | {
273
+ applied: boolean;
274
+ action: "RESET";
275
+ queryHash: string;
276
+ cleared?: undefined;
277
+ queryCountBefore?: undefined;
278
+ queryCountAfter?: undefined;
279
+ mutationCountBefore?: undefined;
280
+ mutationCountAfter?: undefined;
281
+ } | {
282
+ applied: boolean;
283
+ action: "REMOVE";
284
+ queryHash: string;
285
+ cleared?: undefined;
286
+ queryCountBefore?: undefined;
287
+ queryCountAfter?: undefined;
288
+ mutationCountBefore?: undefined;
289
+ mutationCountAfter?: undefined;
290
+ } | {
291
+ applied: boolean;
292
+ action: "REFETCH";
293
+ queryHash: string;
294
+ cleared?: undefined;
295
+ queryCountBefore?: undefined;
296
+ queryCountAfter?: undefined;
297
+ mutationCountBefore?: undefined;
298
+ mutationCountAfter?: undefined;
299
+ } | {
300
+ applied: boolean;
301
+ action: "INVALIDATE";
302
+ queryHash: string;
303
+ cleared?: undefined;
304
+ queryCountBefore?: undefined;
305
+ queryCountAfter?: undefined;
306
+ mutationCountBefore?: undefined;
307
+ mutationCountAfter?: undefined;
308
+ }>;
309
+ export declare const invalidateQueryTool: import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, {
310
+ applied: boolean;
311
+ action: "CLEAR_QUERY_CACHE";
312
+ cleared: boolean;
313
+ queryCountBefore: number;
314
+ queryCountAfter: number;
315
+ mutationCountBefore?: undefined;
316
+ mutationCountAfter?: undefined;
317
+ queryHash?: undefined;
318
+ } | {
319
+ applied: boolean;
320
+ action: "CLEAR_MUTATION_CACHE";
321
+ cleared: boolean;
322
+ mutationCountBefore: number;
323
+ mutationCountAfter: number;
324
+ queryCountBefore?: undefined;
325
+ queryCountAfter?: undefined;
326
+ queryHash?: undefined;
327
+ } | {
328
+ applied: boolean;
329
+ action: "SET_QUERY_DATA";
330
+ queryHash: string;
331
+ cleared?: undefined;
332
+ queryCountBefore?: undefined;
333
+ queryCountAfter?: undefined;
334
+ mutationCountBefore?: undefined;
335
+ mutationCountAfter?: undefined;
336
+ } | {
337
+ applied: boolean;
338
+ action: "TRIGGER_ERROR";
339
+ queryHash: string;
340
+ cleared?: undefined;
341
+ queryCountBefore?: undefined;
342
+ queryCountAfter?: undefined;
343
+ mutationCountBefore?: undefined;
344
+ mutationCountAfter?: undefined;
345
+ } | {
346
+ applied: boolean;
347
+ action: "RESTORE_ERROR";
348
+ queryHash: string;
349
+ cleared?: undefined;
350
+ queryCountBefore?: undefined;
351
+ queryCountAfter?: undefined;
352
+ mutationCountBefore?: undefined;
353
+ mutationCountAfter?: undefined;
354
+ } | {
355
+ applied: boolean;
356
+ action: "TRIGGER_LOADING";
357
+ queryHash: string;
358
+ cleared?: undefined;
359
+ queryCountBefore?: undefined;
360
+ queryCountAfter?: undefined;
361
+ mutationCountBefore?: undefined;
362
+ mutationCountAfter?: undefined;
363
+ } | {
364
+ applied: boolean;
365
+ action: "RESTORE_LOADING";
366
+ queryHash: string;
367
+ cleared?: undefined;
368
+ queryCountBefore?: undefined;
369
+ queryCountAfter?: undefined;
370
+ mutationCountBefore?: undefined;
371
+ mutationCountAfter?: undefined;
372
+ } | {
373
+ applied: boolean;
374
+ action: "RESET";
375
+ queryHash: string;
376
+ cleared?: undefined;
377
+ queryCountBefore?: undefined;
378
+ queryCountAfter?: undefined;
379
+ mutationCountBefore?: undefined;
380
+ mutationCountAfter?: undefined;
381
+ } | {
382
+ applied: boolean;
383
+ action: "REMOVE";
384
+ queryHash: string;
385
+ cleared?: undefined;
386
+ queryCountBefore?: undefined;
387
+ queryCountAfter?: undefined;
388
+ mutationCountBefore?: undefined;
389
+ mutationCountAfter?: undefined;
390
+ } | {
391
+ applied: boolean;
392
+ action: "REFETCH";
393
+ queryHash: string;
394
+ cleared?: undefined;
395
+ queryCountBefore?: undefined;
396
+ queryCountAfter?: undefined;
397
+ mutationCountBefore?: undefined;
398
+ mutationCountAfter?: undefined;
399
+ } | {
400
+ applied: boolean;
401
+ action: "INVALIDATE";
402
+ queryHash: string;
403
+ cleared?: undefined;
404
+ queryCountBefore?: undefined;
405
+ queryCountAfter?: undefined;
406
+ mutationCountBefore?: undefined;
407
+ mutationCountAfter?: undefined;
408
+ }>;
409
+ export declare const resetQueryTool: import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, {
410
+ applied: boolean;
411
+ action: "CLEAR_QUERY_CACHE";
412
+ cleared: boolean;
413
+ queryCountBefore: number;
414
+ queryCountAfter: number;
415
+ mutationCountBefore?: undefined;
416
+ mutationCountAfter?: undefined;
417
+ queryHash?: undefined;
418
+ } | {
419
+ applied: boolean;
420
+ action: "CLEAR_MUTATION_CACHE";
421
+ cleared: boolean;
422
+ mutationCountBefore: number;
423
+ mutationCountAfter: number;
424
+ queryCountBefore?: undefined;
425
+ queryCountAfter?: undefined;
426
+ queryHash?: undefined;
427
+ } | {
428
+ applied: boolean;
429
+ action: "SET_QUERY_DATA";
430
+ queryHash: string;
431
+ cleared?: undefined;
432
+ queryCountBefore?: undefined;
433
+ queryCountAfter?: undefined;
434
+ mutationCountBefore?: undefined;
435
+ mutationCountAfter?: undefined;
436
+ } | {
437
+ applied: boolean;
438
+ action: "TRIGGER_ERROR";
439
+ queryHash: string;
440
+ cleared?: undefined;
441
+ queryCountBefore?: undefined;
442
+ queryCountAfter?: undefined;
443
+ mutationCountBefore?: undefined;
444
+ mutationCountAfter?: undefined;
445
+ } | {
446
+ applied: boolean;
447
+ action: "RESTORE_ERROR";
448
+ queryHash: string;
449
+ cleared?: undefined;
450
+ queryCountBefore?: undefined;
451
+ queryCountAfter?: undefined;
452
+ mutationCountBefore?: undefined;
453
+ mutationCountAfter?: undefined;
454
+ } | {
455
+ applied: boolean;
456
+ action: "TRIGGER_LOADING";
457
+ queryHash: string;
458
+ cleared?: undefined;
459
+ queryCountBefore?: undefined;
460
+ queryCountAfter?: undefined;
461
+ mutationCountBefore?: undefined;
462
+ mutationCountAfter?: undefined;
463
+ } | {
464
+ applied: boolean;
465
+ action: "RESTORE_LOADING";
466
+ queryHash: string;
467
+ cleared?: undefined;
468
+ queryCountBefore?: undefined;
469
+ queryCountAfter?: undefined;
470
+ mutationCountBefore?: undefined;
471
+ mutationCountAfter?: undefined;
472
+ } | {
473
+ applied: boolean;
474
+ action: "RESET";
475
+ queryHash: string;
476
+ cleared?: undefined;
477
+ queryCountBefore?: undefined;
478
+ queryCountAfter?: undefined;
479
+ mutationCountBefore?: undefined;
480
+ mutationCountAfter?: undefined;
481
+ } | {
482
+ applied: boolean;
483
+ action: "REMOVE";
484
+ queryHash: string;
485
+ cleared?: undefined;
486
+ queryCountBefore?: undefined;
487
+ queryCountAfter?: undefined;
488
+ mutationCountBefore?: undefined;
489
+ mutationCountAfter?: undefined;
490
+ } | {
491
+ applied: boolean;
492
+ action: "REFETCH";
493
+ queryHash: string;
494
+ cleared?: undefined;
495
+ queryCountBefore?: undefined;
496
+ queryCountAfter?: undefined;
497
+ mutationCountBefore?: undefined;
498
+ mutationCountAfter?: undefined;
499
+ } | {
500
+ applied: boolean;
501
+ action: "INVALIDATE";
502
+ queryHash: string;
503
+ cleared?: undefined;
504
+ queryCountBefore?: undefined;
505
+ queryCountAfter?: undefined;
506
+ mutationCountBefore?: undefined;
507
+ mutationCountAfter?: undefined;
508
+ }>;
509
+ export declare const removeQueryTool: import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, {
510
+ applied: boolean;
511
+ action: "CLEAR_QUERY_CACHE";
512
+ cleared: boolean;
513
+ queryCountBefore: number;
514
+ queryCountAfter: number;
515
+ mutationCountBefore?: undefined;
516
+ mutationCountAfter?: undefined;
517
+ queryHash?: undefined;
518
+ } | {
519
+ applied: boolean;
520
+ action: "CLEAR_MUTATION_CACHE";
521
+ cleared: boolean;
522
+ mutationCountBefore: number;
523
+ mutationCountAfter: number;
524
+ queryCountBefore?: undefined;
525
+ queryCountAfter?: undefined;
526
+ queryHash?: undefined;
527
+ } | {
528
+ applied: boolean;
529
+ action: "SET_QUERY_DATA";
530
+ queryHash: string;
531
+ cleared?: undefined;
532
+ queryCountBefore?: undefined;
533
+ queryCountAfter?: undefined;
534
+ mutationCountBefore?: undefined;
535
+ mutationCountAfter?: undefined;
536
+ } | {
537
+ applied: boolean;
538
+ action: "TRIGGER_ERROR";
539
+ queryHash: string;
540
+ cleared?: undefined;
541
+ queryCountBefore?: undefined;
542
+ queryCountAfter?: undefined;
543
+ mutationCountBefore?: undefined;
544
+ mutationCountAfter?: undefined;
545
+ } | {
546
+ applied: boolean;
547
+ action: "RESTORE_ERROR";
548
+ queryHash: string;
549
+ cleared?: undefined;
550
+ queryCountBefore?: undefined;
551
+ queryCountAfter?: undefined;
552
+ mutationCountBefore?: undefined;
553
+ mutationCountAfter?: undefined;
554
+ } | {
555
+ applied: boolean;
556
+ action: "TRIGGER_LOADING";
557
+ queryHash: string;
558
+ cleared?: undefined;
559
+ queryCountBefore?: undefined;
560
+ queryCountAfter?: undefined;
561
+ mutationCountBefore?: undefined;
562
+ mutationCountAfter?: undefined;
563
+ } | {
564
+ applied: boolean;
565
+ action: "RESTORE_LOADING";
566
+ queryHash: string;
567
+ cleared?: undefined;
568
+ queryCountBefore?: undefined;
569
+ queryCountAfter?: undefined;
570
+ mutationCountBefore?: undefined;
571
+ mutationCountAfter?: undefined;
572
+ } | {
573
+ applied: boolean;
574
+ action: "RESET";
575
+ queryHash: string;
576
+ cleared?: undefined;
577
+ queryCountBefore?: undefined;
578
+ queryCountAfter?: undefined;
579
+ mutationCountBefore?: undefined;
580
+ mutationCountAfter?: undefined;
581
+ } | {
582
+ applied: boolean;
583
+ action: "REMOVE";
584
+ queryHash: string;
585
+ cleared?: undefined;
586
+ queryCountBefore?: undefined;
587
+ queryCountAfter?: undefined;
588
+ mutationCountBefore?: undefined;
589
+ mutationCountAfter?: undefined;
590
+ } | {
591
+ applied: boolean;
592
+ action: "REFETCH";
593
+ queryHash: string;
594
+ cleared?: undefined;
595
+ queryCountBefore?: undefined;
596
+ queryCountAfter?: undefined;
597
+ mutationCountBefore?: undefined;
598
+ mutationCountAfter?: undefined;
599
+ } | {
600
+ applied: boolean;
601
+ action: "INVALIDATE";
602
+ queryHash: string;
603
+ cleared?: undefined;
604
+ queryCountBefore?: undefined;
605
+ queryCountAfter?: undefined;
606
+ mutationCountBefore?: undefined;
607
+ mutationCountAfter?: undefined;
608
+ }>;
609
+ export declare const clearQueryCacheTool: import("@rozenite/agent-shared").AgentToolContract<undefined, {
610
+ applied: boolean;
611
+ action: "CLEAR_QUERY_CACHE";
612
+ cleared: boolean;
613
+ queryCountBefore: number;
614
+ queryCountAfter: number;
615
+ mutationCountBefore?: undefined;
616
+ mutationCountAfter?: undefined;
617
+ queryHash?: undefined;
618
+ } | {
619
+ applied: boolean;
620
+ action: "CLEAR_MUTATION_CACHE";
621
+ cleared: boolean;
622
+ mutationCountBefore: number;
623
+ mutationCountAfter: number;
624
+ queryCountBefore?: undefined;
625
+ queryCountAfter?: undefined;
626
+ queryHash?: undefined;
627
+ } | {
628
+ applied: boolean;
629
+ action: "SET_QUERY_DATA";
630
+ queryHash: string;
631
+ cleared?: undefined;
632
+ queryCountBefore?: undefined;
633
+ queryCountAfter?: undefined;
634
+ mutationCountBefore?: undefined;
635
+ mutationCountAfter?: undefined;
636
+ } | {
637
+ applied: boolean;
638
+ action: "TRIGGER_ERROR";
639
+ queryHash: string;
640
+ cleared?: undefined;
641
+ queryCountBefore?: undefined;
642
+ queryCountAfter?: undefined;
643
+ mutationCountBefore?: undefined;
644
+ mutationCountAfter?: undefined;
645
+ } | {
646
+ applied: boolean;
647
+ action: "RESTORE_ERROR";
648
+ queryHash: string;
649
+ cleared?: undefined;
650
+ queryCountBefore?: undefined;
651
+ queryCountAfter?: undefined;
652
+ mutationCountBefore?: undefined;
653
+ mutationCountAfter?: undefined;
654
+ } | {
655
+ applied: boolean;
656
+ action: "TRIGGER_LOADING";
657
+ queryHash: string;
658
+ cleared?: undefined;
659
+ queryCountBefore?: undefined;
660
+ queryCountAfter?: undefined;
661
+ mutationCountBefore?: undefined;
662
+ mutationCountAfter?: undefined;
663
+ } | {
664
+ applied: boolean;
665
+ action: "RESTORE_LOADING";
666
+ queryHash: string;
667
+ cleared?: undefined;
668
+ queryCountBefore?: undefined;
669
+ queryCountAfter?: undefined;
670
+ mutationCountBefore?: undefined;
671
+ mutationCountAfter?: undefined;
672
+ } | {
673
+ applied: boolean;
674
+ action: "RESET";
675
+ queryHash: string;
676
+ cleared?: undefined;
677
+ queryCountBefore?: undefined;
678
+ queryCountAfter?: undefined;
679
+ mutationCountBefore?: undefined;
680
+ mutationCountAfter?: undefined;
681
+ } | {
682
+ applied: boolean;
683
+ action: "REMOVE";
684
+ queryHash: string;
685
+ cleared?: undefined;
686
+ queryCountBefore?: undefined;
687
+ queryCountAfter?: undefined;
688
+ mutationCountBefore?: undefined;
689
+ mutationCountAfter?: undefined;
690
+ } | {
691
+ applied: boolean;
692
+ action: "REFETCH";
693
+ queryHash: string;
694
+ cleared?: undefined;
695
+ queryCountBefore?: undefined;
696
+ queryCountAfter?: undefined;
697
+ mutationCountBefore?: undefined;
698
+ mutationCountAfter?: undefined;
699
+ } | {
700
+ applied: boolean;
701
+ action: "INVALIDATE";
702
+ queryHash: string;
703
+ cleared?: undefined;
704
+ queryCountBefore?: undefined;
705
+ queryCountAfter?: undefined;
706
+ mutationCountBefore?: undefined;
707
+ mutationCountAfter?: undefined;
708
+ }>;
709
+ export declare const listMutationsTool: import("@rozenite/agent-shared").AgentToolContract<PaginationInput, import("../../shared/agent-tools").TanStackQueryListMutationsResult>;
710
+ export declare const getMutationDetailsTool: import("@rozenite/agent-shared").AgentToolContract<MutationIdInput, import("../../shared/agent-tools").TanStackQueryGetMutationDetailsResult>;
711
+ export declare const clearMutationCacheTool: import("@rozenite/agent-shared").AgentToolContract<undefined, {
712
+ applied: boolean;
713
+ action: "CLEAR_QUERY_CACHE";
714
+ cleared: boolean;
715
+ queryCountBefore: number;
716
+ queryCountAfter: number;
717
+ mutationCountBefore?: undefined;
718
+ mutationCountAfter?: undefined;
719
+ queryHash?: undefined;
720
+ } | {
721
+ applied: boolean;
722
+ action: "CLEAR_MUTATION_CACHE";
723
+ cleared: boolean;
724
+ mutationCountBefore: number;
725
+ mutationCountAfter: number;
726
+ queryCountBefore?: undefined;
727
+ queryCountAfter?: undefined;
728
+ queryHash?: undefined;
729
+ } | {
730
+ applied: boolean;
731
+ action: "SET_QUERY_DATA";
732
+ queryHash: string;
733
+ cleared?: undefined;
734
+ queryCountBefore?: undefined;
735
+ queryCountAfter?: undefined;
736
+ mutationCountBefore?: undefined;
737
+ mutationCountAfter?: undefined;
738
+ } | {
739
+ applied: boolean;
740
+ action: "TRIGGER_ERROR";
741
+ queryHash: string;
742
+ cleared?: undefined;
743
+ queryCountBefore?: undefined;
744
+ queryCountAfter?: undefined;
745
+ mutationCountBefore?: undefined;
746
+ mutationCountAfter?: undefined;
747
+ } | {
748
+ applied: boolean;
749
+ action: "RESTORE_ERROR";
750
+ queryHash: string;
751
+ cleared?: undefined;
752
+ queryCountBefore?: undefined;
753
+ queryCountAfter?: undefined;
754
+ mutationCountBefore?: undefined;
755
+ mutationCountAfter?: undefined;
756
+ } | {
757
+ applied: boolean;
758
+ action: "TRIGGER_LOADING";
759
+ queryHash: string;
760
+ cleared?: undefined;
761
+ queryCountBefore?: undefined;
762
+ queryCountAfter?: undefined;
763
+ mutationCountBefore?: undefined;
764
+ mutationCountAfter?: undefined;
765
+ } | {
766
+ applied: boolean;
767
+ action: "RESTORE_LOADING";
768
+ queryHash: string;
769
+ cleared?: undefined;
770
+ queryCountBefore?: undefined;
771
+ queryCountAfter?: undefined;
772
+ mutationCountBefore?: undefined;
773
+ mutationCountAfter?: undefined;
774
+ } | {
775
+ applied: boolean;
776
+ action: "RESET";
777
+ queryHash: string;
778
+ cleared?: undefined;
779
+ queryCountBefore?: undefined;
780
+ queryCountAfter?: undefined;
781
+ mutationCountBefore?: undefined;
782
+ mutationCountAfter?: undefined;
783
+ } | {
784
+ applied: boolean;
785
+ action: "REMOVE";
786
+ queryHash: string;
787
+ cleared?: undefined;
788
+ queryCountBefore?: undefined;
789
+ queryCountAfter?: undefined;
790
+ mutationCountBefore?: undefined;
791
+ mutationCountAfter?: undefined;
792
+ } | {
793
+ applied: boolean;
794
+ action: "REFETCH";
795
+ queryHash: string;
796
+ cleared?: undefined;
797
+ queryCountBefore?: undefined;
798
+ queryCountAfter?: undefined;
799
+ mutationCountBefore?: undefined;
800
+ mutationCountAfter?: undefined;
801
+ } | {
802
+ applied: boolean;
803
+ action: "INVALIDATE";
804
+ queryHash: string;
805
+ cleared?: undefined;
806
+ queryCountBefore?: undefined;
807
+ queryCountAfter?: undefined;
808
+ mutationCountBefore?: undefined;
809
+ mutationCountAfter?: undefined;
810
+ }>;
811
+ export declare const TANSTACK_QUERY_AGENT_TOOLS: (import("@rozenite/agent-shared").AgentToolContract<undefined, import("../../shared/agent-tools").TanStackQueryCacheSummary> | import("@rozenite/agent-shared").AgentToolContract<undefined, import("../../shared/agent-tools").TanStackQueryGetOnlineStatusResult> | import("@rozenite/agent-shared").AgentToolContract<OnlineStatusInput, import("../../shared/agent-tools").TanStackQuerySetOnlineStatusResult> | import("@rozenite/agent-shared").AgentToolContract<PaginationInput, import("../../shared/agent-tools").TanStackQueryListQueriesResult> | import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, import("../../shared/agent-tools").TanStackQueryGetQueryDetailsResult> | import("@rozenite/agent-shared").AgentToolContract<QueryHashInput, {
812
+ applied: boolean;
813
+ action: "CLEAR_QUERY_CACHE";
814
+ cleared: boolean;
815
+ queryCountBefore: number;
816
+ queryCountAfter: number;
817
+ mutationCountBefore?: undefined;
818
+ mutationCountAfter?: undefined;
819
+ queryHash?: undefined;
820
+ } | {
821
+ applied: boolean;
822
+ action: "CLEAR_MUTATION_CACHE";
823
+ cleared: boolean;
824
+ mutationCountBefore: number;
825
+ mutationCountAfter: number;
826
+ queryCountBefore?: undefined;
827
+ queryCountAfter?: undefined;
828
+ queryHash?: undefined;
829
+ } | {
830
+ applied: boolean;
831
+ action: "SET_QUERY_DATA";
832
+ queryHash: string;
833
+ cleared?: undefined;
834
+ queryCountBefore?: undefined;
835
+ queryCountAfter?: undefined;
836
+ mutationCountBefore?: undefined;
837
+ mutationCountAfter?: undefined;
838
+ } | {
839
+ applied: boolean;
840
+ action: "TRIGGER_ERROR";
841
+ queryHash: string;
842
+ cleared?: undefined;
843
+ queryCountBefore?: undefined;
844
+ queryCountAfter?: undefined;
845
+ mutationCountBefore?: undefined;
846
+ mutationCountAfter?: undefined;
847
+ } | {
848
+ applied: boolean;
849
+ action: "RESTORE_ERROR";
850
+ queryHash: string;
851
+ cleared?: undefined;
852
+ queryCountBefore?: undefined;
853
+ queryCountAfter?: undefined;
854
+ mutationCountBefore?: undefined;
855
+ mutationCountAfter?: undefined;
856
+ } | {
857
+ applied: boolean;
858
+ action: "TRIGGER_LOADING";
859
+ queryHash: string;
860
+ cleared?: undefined;
861
+ queryCountBefore?: undefined;
862
+ queryCountAfter?: undefined;
863
+ mutationCountBefore?: undefined;
864
+ mutationCountAfter?: undefined;
865
+ } | {
866
+ applied: boolean;
867
+ action: "RESTORE_LOADING";
868
+ queryHash: string;
869
+ cleared?: undefined;
870
+ queryCountBefore?: undefined;
871
+ queryCountAfter?: undefined;
872
+ mutationCountBefore?: undefined;
873
+ mutationCountAfter?: undefined;
874
+ } | {
875
+ applied: boolean;
876
+ action: "RESET";
877
+ queryHash: string;
878
+ cleared?: undefined;
879
+ queryCountBefore?: undefined;
880
+ queryCountAfter?: undefined;
881
+ mutationCountBefore?: undefined;
882
+ mutationCountAfter?: undefined;
883
+ } | {
884
+ applied: boolean;
885
+ action: "REMOVE";
886
+ queryHash: string;
887
+ cleared?: undefined;
888
+ queryCountBefore?: undefined;
889
+ queryCountAfter?: undefined;
890
+ mutationCountBefore?: undefined;
891
+ mutationCountAfter?: undefined;
892
+ } | {
893
+ applied: boolean;
894
+ action: "REFETCH";
895
+ queryHash: string;
896
+ cleared?: undefined;
897
+ queryCountBefore?: undefined;
898
+ queryCountAfter?: undefined;
899
+ mutationCountBefore?: undefined;
900
+ mutationCountAfter?: undefined;
901
+ } | {
902
+ applied: boolean;
903
+ action: "INVALIDATE";
904
+ queryHash: string;
905
+ cleared?: undefined;
906
+ queryCountBefore?: undefined;
907
+ queryCountAfter?: undefined;
908
+ mutationCountBefore?: undefined;
909
+ mutationCountAfter?: undefined;
910
+ }> | import("@rozenite/agent-shared").AgentToolContract<QueryToggleInput, {
911
+ applied: boolean;
912
+ action: "CLEAR_QUERY_CACHE";
913
+ cleared: boolean;
914
+ queryCountBefore: number;
915
+ queryCountAfter: number;
916
+ mutationCountBefore?: undefined;
917
+ mutationCountAfter?: undefined;
918
+ queryHash?: undefined;
919
+ } | {
920
+ applied: boolean;
921
+ action: "CLEAR_MUTATION_CACHE";
922
+ cleared: boolean;
923
+ mutationCountBefore: number;
924
+ mutationCountAfter: number;
925
+ queryCountBefore?: undefined;
926
+ queryCountAfter?: undefined;
927
+ queryHash?: undefined;
928
+ } | {
929
+ applied: boolean;
930
+ action: "SET_QUERY_DATA";
931
+ queryHash: string;
932
+ cleared?: undefined;
933
+ queryCountBefore?: undefined;
934
+ queryCountAfter?: undefined;
935
+ mutationCountBefore?: undefined;
936
+ mutationCountAfter?: undefined;
937
+ } | {
938
+ applied: boolean;
939
+ action: "TRIGGER_ERROR";
940
+ queryHash: string;
941
+ cleared?: undefined;
942
+ queryCountBefore?: undefined;
943
+ queryCountAfter?: undefined;
944
+ mutationCountBefore?: undefined;
945
+ mutationCountAfter?: undefined;
946
+ } | {
947
+ applied: boolean;
948
+ action: "RESTORE_ERROR";
949
+ queryHash: string;
950
+ cleared?: undefined;
951
+ queryCountBefore?: undefined;
952
+ queryCountAfter?: undefined;
953
+ mutationCountBefore?: undefined;
954
+ mutationCountAfter?: undefined;
955
+ } | {
956
+ applied: boolean;
957
+ action: "TRIGGER_LOADING";
958
+ queryHash: string;
959
+ cleared?: undefined;
960
+ queryCountBefore?: undefined;
961
+ queryCountAfter?: undefined;
962
+ mutationCountBefore?: undefined;
963
+ mutationCountAfter?: undefined;
964
+ } | {
965
+ applied: boolean;
966
+ action: "RESTORE_LOADING";
967
+ queryHash: string;
968
+ cleared?: undefined;
969
+ queryCountBefore?: undefined;
970
+ queryCountAfter?: undefined;
971
+ mutationCountBefore?: undefined;
972
+ mutationCountAfter?: undefined;
973
+ } | {
974
+ applied: boolean;
975
+ action: "RESET";
976
+ queryHash: string;
977
+ cleared?: undefined;
978
+ queryCountBefore?: undefined;
979
+ queryCountAfter?: undefined;
980
+ mutationCountBefore?: undefined;
981
+ mutationCountAfter?: undefined;
982
+ } | {
983
+ applied: boolean;
984
+ action: "REMOVE";
985
+ queryHash: string;
986
+ cleared?: undefined;
987
+ queryCountBefore?: undefined;
988
+ queryCountAfter?: undefined;
989
+ mutationCountBefore?: undefined;
990
+ mutationCountAfter?: undefined;
991
+ } | {
992
+ applied: boolean;
993
+ action: "REFETCH";
994
+ queryHash: string;
995
+ cleared?: undefined;
996
+ queryCountBefore?: undefined;
997
+ queryCountAfter?: undefined;
998
+ mutationCountBefore?: undefined;
999
+ mutationCountAfter?: undefined;
1000
+ } | {
1001
+ applied: boolean;
1002
+ action: "INVALIDATE";
1003
+ queryHash: string;
1004
+ cleared?: undefined;
1005
+ queryCountBefore?: undefined;
1006
+ queryCountAfter?: undefined;
1007
+ mutationCountBefore?: undefined;
1008
+ mutationCountAfter?: undefined;
1009
+ }> | import("@rozenite/agent-shared").AgentToolContract<undefined, {
1010
+ applied: boolean;
1011
+ action: "CLEAR_QUERY_CACHE";
1012
+ cleared: boolean;
1013
+ queryCountBefore: number;
1014
+ queryCountAfter: number;
1015
+ mutationCountBefore?: undefined;
1016
+ mutationCountAfter?: undefined;
1017
+ queryHash?: undefined;
1018
+ } | {
1019
+ applied: boolean;
1020
+ action: "CLEAR_MUTATION_CACHE";
1021
+ cleared: boolean;
1022
+ mutationCountBefore: number;
1023
+ mutationCountAfter: number;
1024
+ queryCountBefore?: undefined;
1025
+ queryCountAfter?: undefined;
1026
+ queryHash?: undefined;
1027
+ } | {
1028
+ applied: boolean;
1029
+ action: "SET_QUERY_DATA";
1030
+ queryHash: string;
1031
+ cleared?: undefined;
1032
+ queryCountBefore?: undefined;
1033
+ queryCountAfter?: undefined;
1034
+ mutationCountBefore?: undefined;
1035
+ mutationCountAfter?: undefined;
1036
+ } | {
1037
+ applied: boolean;
1038
+ action: "TRIGGER_ERROR";
1039
+ queryHash: string;
1040
+ cleared?: undefined;
1041
+ queryCountBefore?: undefined;
1042
+ queryCountAfter?: undefined;
1043
+ mutationCountBefore?: undefined;
1044
+ mutationCountAfter?: undefined;
1045
+ } | {
1046
+ applied: boolean;
1047
+ action: "RESTORE_ERROR";
1048
+ queryHash: string;
1049
+ cleared?: undefined;
1050
+ queryCountBefore?: undefined;
1051
+ queryCountAfter?: undefined;
1052
+ mutationCountBefore?: undefined;
1053
+ mutationCountAfter?: undefined;
1054
+ } | {
1055
+ applied: boolean;
1056
+ action: "TRIGGER_LOADING";
1057
+ queryHash: string;
1058
+ cleared?: undefined;
1059
+ queryCountBefore?: undefined;
1060
+ queryCountAfter?: undefined;
1061
+ mutationCountBefore?: undefined;
1062
+ mutationCountAfter?: undefined;
1063
+ } | {
1064
+ applied: boolean;
1065
+ action: "RESTORE_LOADING";
1066
+ queryHash: string;
1067
+ cleared?: undefined;
1068
+ queryCountBefore?: undefined;
1069
+ queryCountAfter?: undefined;
1070
+ mutationCountBefore?: undefined;
1071
+ mutationCountAfter?: undefined;
1072
+ } | {
1073
+ applied: boolean;
1074
+ action: "RESET";
1075
+ queryHash: string;
1076
+ cleared?: undefined;
1077
+ queryCountBefore?: undefined;
1078
+ queryCountAfter?: undefined;
1079
+ mutationCountBefore?: undefined;
1080
+ mutationCountAfter?: undefined;
1081
+ } | {
1082
+ applied: boolean;
1083
+ action: "REMOVE";
1084
+ queryHash: string;
1085
+ cleared?: undefined;
1086
+ queryCountBefore?: undefined;
1087
+ queryCountAfter?: undefined;
1088
+ mutationCountBefore?: undefined;
1089
+ mutationCountAfter?: undefined;
1090
+ } | {
1091
+ applied: boolean;
1092
+ action: "REFETCH";
1093
+ queryHash: string;
1094
+ cleared?: undefined;
1095
+ queryCountBefore?: undefined;
1096
+ queryCountAfter?: undefined;
1097
+ mutationCountBefore?: undefined;
1098
+ mutationCountAfter?: undefined;
1099
+ } | {
1100
+ applied: boolean;
1101
+ action: "INVALIDATE";
1102
+ queryHash: string;
1103
+ cleared?: undefined;
1104
+ queryCountBefore?: undefined;
1105
+ queryCountAfter?: undefined;
1106
+ mutationCountBefore?: undefined;
1107
+ mutationCountAfter?: undefined;
1108
+ }> | import("@rozenite/agent-shared").AgentToolContract<PaginationInput, import("../../shared/agent-tools").TanStackQueryListMutationsResult> | import("@rozenite/agent-shared").AgentToolContract<MutationIdInput, import("../../shared/agent-tools").TanStackQueryGetMutationDetailsResult>)[];
1109
+ export declare const buildTanStackQueryCacheSummary: (queryClient: QueryClient) => {
1110
+ online: boolean;
1111
+ queries: {
1112
+ total: number;
1113
+ active: number;
1114
+ fetching: number;
1115
+ pending: number;
1116
+ success: number;
1117
+ error: number;
1118
+ invalidated: number;
1119
+ };
1120
+ mutations: {
1121
+ total: number;
1122
+ pending: number;
1123
+ success: number;
1124
+ error: number;
1125
+ paused: number;
1126
+ };
1127
+ };
1128
+ export declare const createTanStackQueryAgentController: (queryClient: QueryClient) => {
1129
+ handleQueryCacheEvent(event: QueryCacheNotifyEvent): void;
1130
+ handleMutationCacheEvent(event: MutationCacheNotifyEvent): void;
1131
+ getCacheSummary(): {
1132
+ online: boolean;
1133
+ queries: {
1134
+ total: number;
1135
+ active: number;
1136
+ fetching: number;
1137
+ pending: number;
1138
+ success: number;
1139
+ error: number;
1140
+ invalidated: number;
1141
+ };
1142
+ mutations: {
1143
+ total: number;
1144
+ pending: number;
1145
+ success: number;
1146
+ error: number;
1147
+ paused: number;
1148
+ };
1149
+ };
1150
+ getOnlineStatus(): {
1151
+ online: boolean;
1152
+ };
1153
+ setOnlineStatus({ online }: OnlineStatusInput): {
1154
+ online: boolean;
1155
+ };
1156
+ listQueries(input?: PaginationInput): {
1157
+ items: {
1158
+ queryHash: string;
1159
+ queryKey: AgentSafeValue;
1160
+ status: import("@tanstack/query-core").QueryStatus;
1161
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
1162
+ observersCount: number;
1163
+ isInvalidated: boolean;
1164
+ dataUpdatedAt: number;
1165
+ errorUpdatedAt: number;
1166
+ hasData: boolean;
1167
+ hasError: boolean;
1168
+ }[];
1169
+ page: {
1170
+ nextCursor?: string | undefined;
1171
+ limit: number;
1172
+ hasMore: boolean;
1173
+ };
1174
+ total: number;
1175
+ online: boolean;
1176
+ queries: {
1177
+ total: number;
1178
+ active: number;
1179
+ fetching: number;
1180
+ pending: number;
1181
+ success: number;
1182
+ error: number;
1183
+ invalidated: number;
1184
+ };
1185
+ mutations: {
1186
+ total: number;
1187
+ pending: number;
1188
+ success: number;
1189
+ error: number;
1190
+ paused: number;
1191
+ };
1192
+ };
1193
+ getQueryDetails({ queryHash }: QueryHashInput): {
1194
+ summary: {
1195
+ online: boolean;
1196
+ queries: {
1197
+ total: number;
1198
+ active: number;
1199
+ fetching: number;
1200
+ pending: number;
1201
+ success: number;
1202
+ error: number;
1203
+ invalidated: number;
1204
+ };
1205
+ mutations: {
1206
+ total: number;
1207
+ pending: number;
1208
+ success: number;
1209
+ error: number;
1210
+ paused: number;
1211
+ };
1212
+ };
1213
+ query: {
1214
+ data: AgentSafeValue;
1215
+ error: AgentSafeValue;
1216
+ observers: {
1217
+ queryHash: string;
1218
+ options: TanStackQueryObserverOptionsSummary | null;
1219
+ }[];
1220
+ queryHash: string;
1221
+ queryKey: AgentSafeValue;
1222
+ status: import("@tanstack/query-core").QueryStatus;
1223
+ fetchStatus: import("@tanstack/query-core").FetchStatus;
1224
+ observersCount: number;
1225
+ isInvalidated: boolean;
1226
+ dataUpdatedAt: number;
1227
+ errorUpdatedAt: number;
1228
+ hasData: boolean;
1229
+ hasError: boolean;
1230
+ };
1231
+ };
1232
+ refetchQuery({ queryHash }: QueryHashInput): Promise<{
1233
+ applied: boolean;
1234
+ action: "CLEAR_QUERY_CACHE";
1235
+ cleared: boolean;
1236
+ queryCountBefore: number;
1237
+ queryCountAfter: number;
1238
+ mutationCountBefore?: undefined;
1239
+ mutationCountAfter?: undefined;
1240
+ queryHash?: undefined;
1241
+ } | {
1242
+ applied: boolean;
1243
+ action: "CLEAR_MUTATION_CACHE";
1244
+ cleared: boolean;
1245
+ mutationCountBefore: number;
1246
+ mutationCountAfter: number;
1247
+ queryCountBefore?: undefined;
1248
+ queryCountAfter?: undefined;
1249
+ queryHash?: undefined;
1250
+ } | {
1251
+ applied: boolean;
1252
+ action: "SET_QUERY_DATA";
1253
+ queryHash: string;
1254
+ cleared?: undefined;
1255
+ queryCountBefore?: undefined;
1256
+ queryCountAfter?: undefined;
1257
+ mutationCountBefore?: undefined;
1258
+ mutationCountAfter?: undefined;
1259
+ } | {
1260
+ applied: boolean;
1261
+ action: "TRIGGER_ERROR";
1262
+ queryHash: string;
1263
+ cleared?: undefined;
1264
+ queryCountBefore?: undefined;
1265
+ queryCountAfter?: undefined;
1266
+ mutationCountBefore?: undefined;
1267
+ mutationCountAfter?: undefined;
1268
+ } | {
1269
+ applied: boolean;
1270
+ action: "RESTORE_ERROR";
1271
+ queryHash: string;
1272
+ cleared?: undefined;
1273
+ queryCountBefore?: undefined;
1274
+ queryCountAfter?: undefined;
1275
+ mutationCountBefore?: undefined;
1276
+ mutationCountAfter?: undefined;
1277
+ } | {
1278
+ applied: boolean;
1279
+ action: "TRIGGER_LOADING";
1280
+ queryHash: string;
1281
+ cleared?: undefined;
1282
+ queryCountBefore?: undefined;
1283
+ queryCountAfter?: undefined;
1284
+ mutationCountBefore?: undefined;
1285
+ mutationCountAfter?: undefined;
1286
+ } | {
1287
+ applied: boolean;
1288
+ action: "RESTORE_LOADING";
1289
+ queryHash: string;
1290
+ cleared?: undefined;
1291
+ queryCountBefore?: undefined;
1292
+ queryCountAfter?: undefined;
1293
+ mutationCountBefore?: undefined;
1294
+ mutationCountAfter?: undefined;
1295
+ } | {
1296
+ applied: boolean;
1297
+ action: "RESET";
1298
+ queryHash: string;
1299
+ cleared?: undefined;
1300
+ queryCountBefore?: undefined;
1301
+ queryCountAfter?: undefined;
1302
+ mutationCountBefore?: undefined;
1303
+ mutationCountAfter?: undefined;
1304
+ } | {
1305
+ applied: boolean;
1306
+ action: "REMOVE";
1307
+ queryHash: string;
1308
+ cleared?: undefined;
1309
+ queryCountBefore?: undefined;
1310
+ queryCountAfter?: undefined;
1311
+ mutationCountBefore?: undefined;
1312
+ mutationCountAfter?: undefined;
1313
+ } | {
1314
+ applied: boolean;
1315
+ action: "REFETCH";
1316
+ queryHash: string;
1317
+ cleared?: undefined;
1318
+ queryCountBefore?: undefined;
1319
+ queryCountAfter?: undefined;
1320
+ mutationCountBefore?: undefined;
1321
+ mutationCountAfter?: undefined;
1322
+ } | {
1323
+ applied: boolean;
1324
+ action: "INVALIDATE";
1325
+ queryHash: string;
1326
+ cleared?: undefined;
1327
+ queryCountBefore?: undefined;
1328
+ queryCountAfter?: undefined;
1329
+ mutationCountBefore?: undefined;
1330
+ mutationCountAfter?: undefined;
1331
+ }>;
1332
+ setQueryLoading({ queryHash, enabled }: QueryToggleInput): Promise<{
1333
+ applied: boolean;
1334
+ action: "CLEAR_QUERY_CACHE";
1335
+ cleared: boolean;
1336
+ queryCountBefore: number;
1337
+ queryCountAfter: number;
1338
+ mutationCountBefore?: undefined;
1339
+ mutationCountAfter?: undefined;
1340
+ queryHash?: undefined;
1341
+ } | {
1342
+ applied: boolean;
1343
+ action: "CLEAR_MUTATION_CACHE";
1344
+ cleared: boolean;
1345
+ mutationCountBefore: number;
1346
+ mutationCountAfter: number;
1347
+ queryCountBefore?: undefined;
1348
+ queryCountAfter?: undefined;
1349
+ queryHash?: undefined;
1350
+ } | {
1351
+ applied: boolean;
1352
+ action: "SET_QUERY_DATA";
1353
+ queryHash: string;
1354
+ cleared?: undefined;
1355
+ queryCountBefore?: undefined;
1356
+ queryCountAfter?: undefined;
1357
+ mutationCountBefore?: undefined;
1358
+ mutationCountAfter?: undefined;
1359
+ } | {
1360
+ applied: boolean;
1361
+ action: "TRIGGER_ERROR";
1362
+ queryHash: string;
1363
+ cleared?: undefined;
1364
+ queryCountBefore?: undefined;
1365
+ queryCountAfter?: undefined;
1366
+ mutationCountBefore?: undefined;
1367
+ mutationCountAfter?: undefined;
1368
+ } | {
1369
+ applied: boolean;
1370
+ action: "RESTORE_ERROR";
1371
+ queryHash: string;
1372
+ cleared?: undefined;
1373
+ queryCountBefore?: undefined;
1374
+ queryCountAfter?: undefined;
1375
+ mutationCountBefore?: undefined;
1376
+ mutationCountAfter?: undefined;
1377
+ } | {
1378
+ applied: boolean;
1379
+ action: "TRIGGER_LOADING";
1380
+ queryHash: string;
1381
+ cleared?: undefined;
1382
+ queryCountBefore?: undefined;
1383
+ queryCountAfter?: undefined;
1384
+ mutationCountBefore?: undefined;
1385
+ mutationCountAfter?: undefined;
1386
+ } | {
1387
+ applied: boolean;
1388
+ action: "RESTORE_LOADING";
1389
+ queryHash: string;
1390
+ cleared?: undefined;
1391
+ queryCountBefore?: undefined;
1392
+ queryCountAfter?: undefined;
1393
+ mutationCountBefore?: undefined;
1394
+ mutationCountAfter?: undefined;
1395
+ } | {
1396
+ applied: boolean;
1397
+ action: "RESET";
1398
+ queryHash: string;
1399
+ cleared?: undefined;
1400
+ queryCountBefore?: undefined;
1401
+ queryCountAfter?: undefined;
1402
+ mutationCountBefore?: undefined;
1403
+ mutationCountAfter?: undefined;
1404
+ } | {
1405
+ applied: boolean;
1406
+ action: "REMOVE";
1407
+ queryHash: string;
1408
+ cleared?: undefined;
1409
+ queryCountBefore?: undefined;
1410
+ queryCountAfter?: undefined;
1411
+ mutationCountBefore?: undefined;
1412
+ mutationCountAfter?: undefined;
1413
+ } | {
1414
+ applied: boolean;
1415
+ action: "REFETCH";
1416
+ queryHash: string;
1417
+ cleared?: undefined;
1418
+ queryCountBefore?: undefined;
1419
+ queryCountAfter?: undefined;
1420
+ mutationCountBefore?: undefined;
1421
+ mutationCountAfter?: undefined;
1422
+ } | {
1423
+ applied: boolean;
1424
+ action: "INVALIDATE";
1425
+ queryHash: string;
1426
+ cleared?: undefined;
1427
+ queryCountBefore?: undefined;
1428
+ queryCountAfter?: undefined;
1429
+ mutationCountBefore?: undefined;
1430
+ mutationCountAfter?: undefined;
1431
+ }>;
1432
+ setQueryError({ queryHash, enabled }: QueryToggleInput): Promise<{
1433
+ applied: boolean;
1434
+ action: "CLEAR_QUERY_CACHE";
1435
+ cleared: boolean;
1436
+ queryCountBefore: number;
1437
+ queryCountAfter: number;
1438
+ mutationCountBefore?: undefined;
1439
+ mutationCountAfter?: undefined;
1440
+ queryHash?: undefined;
1441
+ } | {
1442
+ applied: boolean;
1443
+ action: "CLEAR_MUTATION_CACHE";
1444
+ cleared: boolean;
1445
+ mutationCountBefore: number;
1446
+ mutationCountAfter: number;
1447
+ queryCountBefore?: undefined;
1448
+ queryCountAfter?: undefined;
1449
+ queryHash?: undefined;
1450
+ } | {
1451
+ applied: boolean;
1452
+ action: "SET_QUERY_DATA";
1453
+ queryHash: string;
1454
+ cleared?: undefined;
1455
+ queryCountBefore?: undefined;
1456
+ queryCountAfter?: undefined;
1457
+ mutationCountBefore?: undefined;
1458
+ mutationCountAfter?: undefined;
1459
+ } | {
1460
+ applied: boolean;
1461
+ action: "TRIGGER_ERROR";
1462
+ queryHash: string;
1463
+ cleared?: undefined;
1464
+ queryCountBefore?: undefined;
1465
+ queryCountAfter?: undefined;
1466
+ mutationCountBefore?: undefined;
1467
+ mutationCountAfter?: undefined;
1468
+ } | {
1469
+ applied: boolean;
1470
+ action: "RESTORE_ERROR";
1471
+ queryHash: string;
1472
+ cleared?: undefined;
1473
+ queryCountBefore?: undefined;
1474
+ queryCountAfter?: undefined;
1475
+ mutationCountBefore?: undefined;
1476
+ mutationCountAfter?: undefined;
1477
+ } | {
1478
+ applied: boolean;
1479
+ action: "TRIGGER_LOADING";
1480
+ queryHash: string;
1481
+ cleared?: undefined;
1482
+ queryCountBefore?: undefined;
1483
+ queryCountAfter?: undefined;
1484
+ mutationCountBefore?: undefined;
1485
+ mutationCountAfter?: undefined;
1486
+ } | {
1487
+ applied: boolean;
1488
+ action: "RESTORE_LOADING";
1489
+ queryHash: string;
1490
+ cleared?: undefined;
1491
+ queryCountBefore?: undefined;
1492
+ queryCountAfter?: undefined;
1493
+ mutationCountBefore?: undefined;
1494
+ mutationCountAfter?: undefined;
1495
+ } | {
1496
+ applied: boolean;
1497
+ action: "RESET";
1498
+ queryHash: string;
1499
+ cleared?: undefined;
1500
+ queryCountBefore?: undefined;
1501
+ queryCountAfter?: undefined;
1502
+ mutationCountBefore?: undefined;
1503
+ mutationCountAfter?: undefined;
1504
+ } | {
1505
+ applied: boolean;
1506
+ action: "REMOVE";
1507
+ queryHash: string;
1508
+ cleared?: undefined;
1509
+ queryCountBefore?: undefined;
1510
+ queryCountAfter?: undefined;
1511
+ mutationCountBefore?: undefined;
1512
+ mutationCountAfter?: undefined;
1513
+ } | {
1514
+ applied: boolean;
1515
+ action: "REFETCH";
1516
+ queryHash: string;
1517
+ cleared?: undefined;
1518
+ queryCountBefore?: undefined;
1519
+ queryCountAfter?: undefined;
1520
+ mutationCountBefore?: undefined;
1521
+ mutationCountAfter?: undefined;
1522
+ } | {
1523
+ applied: boolean;
1524
+ action: "INVALIDATE";
1525
+ queryHash: string;
1526
+ cleared?: undefined;
1527
+ queryCountBefore?: undefined;
1528
+ queryCountAfter?: undefined;
1529
+ mutationCountBefore?: undefined;
1530
+ mutationCountAfter?: undefined;
1531
+ }>;
1532
+ invalidateQuery({ queryHash }: QueryHashInput): Promise<{
1533
+ applied: boolean;
1534
+ action: "CLEAR_QUERY_CACHE";
1535
+ cleared: boolean;
1536
+ queryCountBefore: number;
1537
+ queryCountAfter: number;
1538
+ mutationCountBefore?: undefined;
1539
+ mutationCountAfter?: undefined;
1540
+ queryHash?: undefined;
1541
+ } | {
1542
+ applied: boolean;
1543
+ action: "CLEAR_MUTATION_CACHE";
1544
+ cleared: boolean;
1545
+ mutationCountBefore: number;
1546
+ mutationCountAfter: number;
1547
+ queryCountBefore?: undefined;
1548
+ queryCountAfter?: undefined;
1549
+ queryHash?: undefined;
1550
+ } | {
1551
+ applied: boolean;
1552
+ action: "SET_QUERY_DATA";
1553
+ queryHash: string;
1554
+ cleared?: undefined;
1555
+ queryCountBefore?: undefined;
1556
+ queryCountAfter?: undefined;
1557
+ mutationCountBefore?: undefined;
1558
+ mutationCountAfter?: undefined;
1559
+ } | {
1560
+ applied: boolean;
1561
+ action: "TRIGGER_ERROR";
1562
+ queryHash: string;
1563
+ cleared?: undefined;
1564
+ queryCountBefore?: undefined;
1565
+ queryCountAfter?: undefined;
1566
+ mutationCountBefore?: undefined;
1567
+ mutationCountAfter?: undefined;
1568
+ } | {
1569
+ applied: boolean;
1570
+ action: "RESTORE_ERROR";
1571
+ queryHash: string;
1572
+ cleared?: undefined;
1573
+ queryCountBefore?: undefined;
1574
+ queryCountAfter?: undefined;
1575
+ mutationCountBefore?: undefined;
1576
+ mutationCountAfter?: undefined;
1577
+ } | {
1578
+ applied: boolean;
1579
+ action: "TRIGGER_LOADING";
1580
+ queryHash: string;
1581
+ cleared?: undefined;
1582
+ queryCountBefore?: undefined;
1583
+ queryCountAfter?: undefined;
1584
+ mutationCountBefore?: undefined;
1585
+ mutationCountAfter?: undefined;
1586
+ } | {
1587
+ applied: boolean;
1588
+ action: "RESTORE_LOADING";
1589
+ queryHash: string;
1590
+ cleared?: undefined;
1591
+ queryCountBefore?: undefined;
1592
+ queryCountAfter?: undefined;
1593
+ mutationCountBefore?: undefined;
1594
+ mutationCountAfter?: undefined;
1595
+ } | {
1596
+ applied: boolean;
1597
+ action: "RESET";
1598
+ queryHash: string;
1599
+ cleared?: undefined;
1600
+ queryCountBefore?: undefined;
1601
+ queryCountAfter?: undefined;
1602
+ mutationCountBefore?: undefined;
1603
+ mutationCountAfter?: undefined;
1604
+ } | {
1605
+ applied: boolean;
1606
+ action: "REMOVE";
1607
+ queryHash: string;
1608
+ cleared?: undefined;
1609
+ queryCountBefore?: undefined;
1610
+ queryCountAfter?: undefined;
1611
+ mutationCountBefore?: undefined;
1612
+ mutationCountAfter?: undefined;
1613
+ } | {
1614
+ applied: boolean;
1615
+ action: "REFETCH";
1616
+ queryHash: string;
1617
+ cleared?: undefined;
1618
+ queryCountBefore?: undefined;
1619
+ queryCountAfter?: undefined;
1620
+ mutationCountBefore?: undefined;
1621
+ mutationCountAfter?: undefined;
1622
+ } | {
1623
+ applied: boolean;
1624
+ action: "INVALIDATE";
1625
+ queryHash: string;
1626
+ cleared?: undefined;
1627
+ queryCountBefore?: undefined;
1628
+ queryCountAfter?: undefined;
1629
+ mutationCountBefore?: undefined;
1630
+ mutationCountAfter?: undefined;
1631
+ }>;
1632
+ resetQuery({ queryHash }: QueryHashInput): Promise<{
1633
+ applied: boolean;
1634
+ action: "CLEAR_QUERY_CACHE";
1635
+ cleared: boolean;
1636
+ queryCountBefore: number;
1637
+ queryCountAfter: number;
1638
+ mutationCountBefore?: undefined;
1639
+ mutationCountAfter?: undefined;
1640
+ queryHash?: undefined;
1641
+ } | {
1642
+ applied: boolean;
1643
+ action: "CLEAR_MUTATION_CACHE";
1644
+ cleared: boolean;
1645
+ mutationCountBefore: number;
1646
+ mutationCountAfter: number;
1647
+ queryCountBefore?: undefined;
1648
+ queryCountAfter?: undefined;
1649
+ queryHash?: undefined;
1650
+ } | {
1651
+ applied: boolean;
1652
+ action: "SET_QUERY_DATA";
1653
+ queryHash: string;
1654
+ cleared?: undefined;
1655
+ queryCountBefore?: undefined;
1656
+ queryCountAfter?: undefined;
1657
+ mutationCountBefore?: undefined;
1658
+ mutationCountAfter?: undefined;
1659
+ } | {
1660
+ applied: boolean;
1661
+ action: "TRIGGER_ERROR";
1662
+ queryHash: string;
1663
+ cleared?: undefined;
1664
+ queryCountBefore?: undefined;
1665
+ queryCountAfter?: undefined;
1666
+ mutationCountBefore?: undefined;
1667
+ mutationCountAfter?: undefined;
1668
+ } | {
1669
+ applied: boolean;
1670
+ action: "RESTORE_ERROR";
1671
+ queryHash: string;
1672
+ cleared?: undefined;
1673
+ queryCountBefore?: undefined;
1674
+ queryCountAfter?: undefined;
1675
+ mutationCountBefore?: undefined;
1676
+ mutationCountAfter?: undefined;
1677
+ } | {
1678
+ applied: boolean;
1679
+ action: "TRIGGER_LOADING";
1680
+ queryHash: string;
1681
+ cleared?: undefined;
1682
+ queryCountBefore?: undefined;
1683
+ queryCountAfter?: undefined;
1684
+ mutationCountBefore?: undefined;
1685
+ mutationCountAfter?: undefined;
1686
+ } | {
1687
+ applied: boolean;
1688
+ action: "RESTORE_LOADING";
1689
+ queryHash: string;
1690
+ cleared?: undefined;
1691
+ queryCountBefore?: undefined;
1692
+ queryCountAfter?: undefined;
1693
+ mutationCountBefore?: undefined;
1694
+ mutationCountAfter?: undefined;
1695
+ } | {
1696
+ applied: boolean;
1697
+ action: "RESET";
1698
+ queryHash: string;
1699
+ cleared?: undefined;
1700
+ queryCountBefore?: undefined;
1701
+ queryCountAfter?: undefined;
1702
+ mutationCountBefore?: undefined;
1703
+ mutationCountAfter?: undefined;
1704
+ } | {
1705
+ applied: boolean;
1706
+ action: "REMOVE";
1707
+ queryHash: string;
1708
+ cleared?: undefined;
1709
+ queryCountBefore?: undefined;
1710
+ queryCountAfter?: undefined;
1711
+ mutationCountBefore?: undefined;
1712
+ mutationCountAfter?: undefined;
1713
+ } | {
1714
+ applied: boolean;
1715
+ action: "REFETCH";
1716
+ queryHash: string;
1717
+ cleared?: undefined;
1718
+ queryCountBefore?: undefined;
1719
+ queryCountAfter?: undefined;
1720
+ mutationCountBefore?: undefined;
1721
+ mutationCountAfter?: undefined;
1722
+ } | {
1723
+ applied: boolean;
1724
+ action: "INVALIDATE";
1725
+ queryHash: string;
1726
+ cleared?: undefined;
1727
+ queryCountBefore?: undefined;
1728
+ queryCountAfter?: undefined;
1729
+ mutationCountBefore?: undefined;
1730
+ mutationCountAfter?: undefined;
1731
+ }>;
1732
+ removeQuery({ queryHash }: QueryHashInput): Promise<{
1733
+ applied: boolean;
1734
+ action: "CLEAR_QUERY_CACHE";
1735
+ cleared: boolean;
1736
+ queryCountBefore: number;
1737
+ queryCountAfter: number;
1738
+ mutationCountBefore?: undefined;
1739
+ mutationCountAfter?: undefined;
1740
+ queryHash?: undefined;
1741
+ } | {
1742
+ applied: boolean;
1743
+ action: "CLEAR_MUTATION_CACHE";
1744
+ cleared: boolean;
1745
+ mutationCountBefore: number;
1746
+ mutationCountAfter: number;
1747
+ queryCountBefore?: undefined;
1748
+ queryCountAfter?: undefined;
1749
+ queryHash?: undefined;
1750
+ } | {
1751
+ applied: boolean;
1752
+ action: "SET_QUERY_DATA";
1753
+ queryHash: string;
1754
+ cleared?: undefined;
1755
+ queryCountBefore?: undefined;
1756
+ queryCountAfter?: undefined;
1757
+ mutationCountBefore?: undefined;
1758
+ mutationCountAfter?: undefined;
1759
+ } | {
1760
+ applied: boolean;
1761
+ action: "TRIGGER_ERROR";
1762
+ queryHash: string;
1763
+ cleared?: undefined;
1764
+ queryCountBefore?: undefined;
1765
+ queryCountAfter?: undefined;
1766
+ mutationCountBefore?: undefined;
1767
+ mutationCountAfter?: undefined;
1768
+ } | {
1769
+ applied: boolean;
1770
+ action: "RESTORE_ERROR";
1771
+ queryHash: string;
1772
+ cleared?: undefined;
1773
+ queryCountBefore?: undefined;
1774
+ queryCountAfter?: undefined;
1775
+ mutationCountBefore?: undefined;
1776
+ mutationCountAfter?: undefined;
1777
+ } | {
1778
+ applied: boolean;
1779
+ action: "TRIGGER_LOADING";
1780
+ queryHash: string;
1781
+ cleared?: undefined;
1782
+ queryCountBefore?: undefined;
1783
+ queryCountAfter?: undefined;
1784
+ mutationCountBefore?: undefined;
1785
+ mutationCountAfter?: undefined;
1786
+ } | {
1787
+ applied: boolean;
1788
+ action: "RESTORE_LOADING";
1789
+ queryHash: string;
1790
+ cleared?: undefined;
1791
+ queryCountBefore?: undefined;
1792
+ queryCountAfter?: undefined;
1793
+ mutationCountBefore?: undefined;
1794
+ mutationCountAfter?: undefined;
1795
+ } | {
1796
+ applied: boolean;
1797
+ action: "RESET";
1798
+ queryHash: string;
1799
+ cleared?: undefined;
1800
+ queryCountBefore?: undefined;
1801
+ queryCountAfter?: undefined;
1802
+ mutationCountBefore?: undefined;
1803
+ mutationCountAfter?: undefined;
1804
+ } | {
1805
+ applied: boolean;
1806
+ action: "REMOVE";
1807
+ queryHash: string;
1808
+ cleared?: undefined;
1809
+ queryCountBefore?: undefined;
1810
+ queryCountAfter?: undefined;
1811
+ mutationCountBefore?: undefined;
1812
+ mutationCountAfter?: undefined;
1813
+ } | {
1814
+ applied: boolean;
1815
+ action: "REFETCH";
1816
+ queryHash: string;
1817
+ cleared?: undefined;
1818
+ queryCountBefore?: undefined;
1819
+ queryCountAfter?: undefined;
1820
+ mutationCountBefore?: undefined;
1821
+ mutationCountAfter?: undefined;
1822
+ } | {
1823
+ applied: boolean;
1824
+ action: "INVALIDATE";
1825
+ queryHash: string;
1826
+ cleared?: undefined;
1827
+ queryCountBefore?: undefined;
1828
+ queryCountAfter?: undefined;
1829
+ mutationCountBefore?: undefined;
1830
+ mutationCountAfter?: undefined;
1831
+ }>;
1832
+ clearQueryCache(): Promise<{
1833
+ applied: boolean;
1834
+ action: "CLEAR_QUERY_CACHE";
1835
+ cleared: boolean;
1836
+ queryCountBefore: number;
1837
+ queryCountAfter: number;
1838
+ mutationCountBefore?: undefined;
1839
+ mutationCountAfter?: undefined;
1840
+ queryHash?: undefined;
1841
+ } | {
1842
+ applied: boolean;
1843
+ action: "CLEAR_MUTATION_CACHE";
1844
+ cleared: boolean;
1845
+ mutationCountBefore: number;
1846
+ mutationCountAfter: number;
1847
+ queryCountBefore?: undefined;
1848
+ queryCountAfter?: undefined;
1849
+ queryHash?: undefined;
1850
+ } | {
1851
+ applied: boolean;
1852
+ action: "SET_QUERY_DATA";
1853
+ queryHash: string;
1854
+ cleared?: undefined;
1855
+ queryCountBefore?: undefined;
1856
+ queryCountAfter?: undefined;
1857
+ mutationCountBefore?: undefined;
1858
+ mutationCountAfter?: undefined;
1859
+ } | {
1860
+ applied: boolean;
1861
+ action: "TRIGGER_ERROR";
1862
+ queryHash: string;
1863
+ cleared?: undefined;
1864
+ queryCountBefore?: undefined;
1865
+ queryCountAfter?: undefined;
1866
+ mutationCountBefore?: undefined;
1867
+ mutationCountAfter?: undefined;
1868
+ } | {
1869
+ applied: boolean;
1870
+ action: "RESTORE_ERROR";
1871
+ queryHash: string;
1872
+ cleared?: undefined;
1873
+ queryCountBefore?: undefined;
1874
+ queryCountAfter?: undefined;
1875
+ mutationCountBefore?: undefined;
1876
+ mutationCountAfter?: undefined;
1877
+ } | {
1878
+ applied: boolean;
1879
+ action: "TRIGGER_LOADING";
1880
+ queryHash: string;
1881
+ cleared?: undefined;
1882
+ queryCountBefore?: undefined;
1883
+ queryCountAfter?: undefined;
1884
+ mutationCountBefore?: undefined;
1885
+ mutationCountAfter?: undefined;
1886
+ } | {
1887
+ applied: boolean;
1888
+ action: "RESTORE_LOADING";
1889
+ queryHash: string;
1890
+ cleared?: undefined;
1891
+ queryCountBefore?: undefined;
1892
+ queryCountAfter?: undefined;
1893
+ mutationCountBefore?: undefined;
1894
+ mutationCountAfter?: undefined;
1895
+ } | {
1896
+ applied: boolean;
1897
+ action: "RESET";
1898
+ queryHash: string;
1899
+ cleared?: undefined;
1900
+ queryCountBefore?: undefined;
1901
+ queryCountAfter?: undefined;
1902
+ mutationCountBefore?: undefined;
1903
+ mutationCountAfter?: undefined;
1904
+ } | {
1905
+ applied: boolean;
1906
+ action: "REMOVE";
1907
+ queryHash: string;
1908
+ cleared?: undefined;
1909
+ queryCountBefore?: undefined;
1910
+ queryCountAfter?: undefined;
1911
+ mutationCountBefore?: undefined;
1912
+ mutationCountAfter?: undefined;
1913
+ } | {
1914
+ applied: boolean;
1915
+ action: "REFETCH";
1916
+ queryHash: string;
1917
+ cleared?: undefined;
1918
+ queryCountBefore?: undefined;
1919
+ queryCountAfter?: undefined;
1920
+ mutationCountBefore?: undefined;
1921
+ mutationCountAfter?: undefined;
1922
+ } | {
1923
+ applied: boolean;
1924
+ action: "INVALIDATE";
1925
+ queryHash: string;
1926
+ cleared?: undefined;
1927
+ queryCountBefore?: undefined;
1928
+ queryCountAfter?: undefined;
1929
+ mutationCountBefore?: undefined;
1930
+ mutationCountAfter?: undefined;
1931
+ }>;
1932
+ listMutations(input?: PaginationInput): {
1933
+ items: {
1934
+ mutationId: number;
1935
+ mutationKey: AgentSafeValue;
1936
+ status: import("@tanstack/query-core").MutationStatus;
1937
+ isPaused: boolean;
1938
+ submittedAt: number;
1939
+ failureCount: number;
1940
+ hasData: boolean;
1941
+ hasError: boolean;
1942
+ }[];
1943
+ page: {
1944
+ nextCursor?: string | undefined;
1945
+ limit: number;
1946
+ hasMore: boolean;
1947
+ };
1948
+ total: number;
1949
+ online: boolean;
1950
+ queries: {
1951
+ total: number;
1952
+ active: number;
1953
+ fetching: number;
1954
+ pending: number;
1955
+ success: number;
1956
+ error: number;
1957
+ invalidated: number;
1958
+ };
1959
+ mutations: {
1960
+ total: number;
1961
+ pending: number;
1962
+ success: number;
1963
+ error: number;
1964
+ paused: number;
1965
+ };
1966
+ };
1967
+ getMutationDetails({ mutationId }: MutationIdInput): {
1968
+ summary: {
1969
+ online: boolean;
1970
+ queries: {
1971
+ total: number;
1972
+ active: number;
1973
+ fetching: number;
1974
+ pending: number;
1975
+ success: number;
1976
+ error: number;
1977
+ invalidated: number;
1978
+ };
1979
+ mutations: {
1980
+ total: number;
1981
+ pending: number;
1982
+ success: number;
1983
+ error: number;
1984
+ paused: number;
1985
+ };
1986
+ };
1987
+ mutation: {
1988
+ variables: AgentSafeValue;
1989
+ data: AgentSafeValue;
1990
+ error: AgentSafeValue;
1991
+ context: AgentSafeValue;
1992
+ failureReason: AgentSafeValue;
1993
+ options: TanStackQueryMutationOptionsSummary;
1994
+ mutationId: number;
1995
+ mutationKey: AgentSafeValue;
1996
+ status: import("@tanstack/query-core").MutationStatus;
1997
+ isPaused: boolean;
1998
+ submittedAt: number;
1999
+ failureCount: number;
2000
+ hasData: boolean;
2001
+ hasError: boolean;
2002
+ };
2003
+ };
2004
+ clearMutationCache(): Promise<{
2005
+ applied: boolean;
2006
+ action: "CLEAR_QUERY_CACHE";
2007
+ cleared: boolean;
2008
+ queryCountBefore: number;
2009
+ queryCountAfter: number;
2010
+ mutationCountBefore?: undefined;
2011
+ mutationCountAfter?: undefined;
2012
+ queryHash?: undefined;
2013
+ } | {
2014
+ applied: boolean;
2015
+ action: "CLEAR_MUTATION_CACHE";
2016
+ cleared: boolean;
2017
+ mutationCountBefore: number;
2018
+ mutationCountAfter: number;
2019
+ queryCountBefore?: undefined;
2020
+ queryCountAfter?: undefined;
2021
+ queryHash?: undefined;
2022
+ } | {
2023
+ applied: boolean;
2024
+ action: "SET_QUERY_DATA";
2025
+ queryHash: string;
2026
+ cleared?: undefined;
2027
+ queryCountBefore?: undefined;
2028
+ queryCountAfter?: undefined;
2029
+ mutationCountBefore?: undefined;
2030
+ mutationCountAfter?: undefined;
2031
+ } | {
2032
+ applied: boolean;
2033
+ action: "TRIGGER_ERROR";
2034
+ queryHash: string;
2035
+ cleared?: undefined;
2036
+ queryCountBefore?: undefined;
2037
+ queryCountAfter?: undefined;
2038
+ mutationCountBefore?: undefined;
2039
+ mutationCountAfter?: undefined;
2040
+ } | {
2041
+ applied: boolean;
2042
+ action: "RESTORE_ERROR";
2043
+ queryHash: string;
2044
+ cleared?: undefined;
2045
+ queryCountBefore?: undefined;
2046
+ queryCountAfter?: undefined;
2047
+ mutationCountBefore?: undefined;
2048
+ mutationCountAfter?: undefined;
2049
+ } | {
2050
+ applied: boolean;
2051
+ action: "TRIGGER_LOADING";
2052
+ queryHash: string;
2053
+ cleared?: undefined;
2054
+ queryCountBefore?: undefined;
2055
+ queryCountAfter?: undefined;
2056
+ mutationCountBefore?: undefined;
2057
+ mutationCountAfter?: undefined;
2058
+ } | {
2059
+ applied: boolean;
2060
+ action: "RESTORE_LOADING";
2061
+ queryHash: string;
2062
+ cleared?: undefined;
2063
+ queryCountBefore?: undefined;
2064
+ queryCountAfter?: undefined;
2065
+ mutationCountBefore?: undefined;
2066
+ mutationCountAfter?: undefined;
2067
+ } | {
2068
+ applied: boolean;
2069
+ action: "RESET";
2070
+ queryHash: string;
2071
+ cleared?: undefined;
2072
+ queryCountBefore?: undefined;
2073
+ queryCountAfter?: undefined;
2074
+ mutationCountBefore?: undefined;
2075
+ mutationCountAfter?: undefined;
2076
+ } | {
2077
+ applied: boolean;
2078
+ action: "REMOVE";
2079
+ queryHash: string;
2080
+ cleared?: undefined;
2081
+ queryCountBefore?: undefined;
2082
+ queryCountAfter?: undefined;
2083
+ mutationCountBefore?: undefined;
2084
+ mutationCountAfter?: undefined;
2085
+ } | {
2086
+ applied: boolean;
2087
+ action: "REFETCH";
2088
+ queryHash: string;
2089
+ cleared?: undefined;
2090
+ queryCountBefore?: undefined;
2091
+ queryCountAfter?: undefined;
2092
+ mutationCountBefore?: undefined;
2093
+ mutationCountAfter?: undefined;
2094
+ } | {
2095
+ applied: boolean;
2096
+ action: "INVALIDATE";
2097
+ queryHash: string;
2098
+ cleared?: undefined;
2099
+ queryCountBefore?: undefined;
2100
+ queryCountAfter?: undefined;
2101
+ mutationCountBefore?: undefined;
2102
+ mutationCountAfter?: undefined;
2103
+ }>;
2104
+ };
2105
+ export type TanStackQueryAgentController = ReturnType<typeof createTanStackQueryAgentController>;