@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
@@ -0,0 +1,812 @@
1
+ import { TANSTACK_QUERY_AGENT_PLUGIN_ID, tanstackQueryToolDefinitions } from './src/shared/agent-tools.js';
2
+ export { TANSTACK_QUERY_AGENT_PLUGIN_ID, tanstackQueryToolDefinitions };
3
+ export declare const tanstackQueryTools: {
4
+ readonly getCacheSummary: import("@rozenite/agent-shared").AgentToolDescriptor<undefined, import("./src/shared/agent-tools.js").TanStackQueryCacheSummary>;
5
+ readonly getOnlineStatus: import("@rozenite/agent-shared").AgentToolDescriptor<undefined, import("./src/shared/agent-tools.js").TanStackQueryGetOnlineStatusResult>;
6
+ readonly setOnlineStatus: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentOnlineStatusInput, import("./src/shared/agent-tools.js").TanStackQuerySetOnlineStatusResult>;
7
+ readonly listQueries: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentPaginationInput, import("./src/shared/agent-tools.js").TanStackQueryListQueriesResult>;
8
+ readonly getQueryDetails: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryHashInput, import("./src/shared/agent-tools.js").TanStackQueryGetQueryDetailsResult>;
9
+ readonly refetchQuery: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryHashInput, {
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
+ readonly setQueryLoading: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryToggleInput, {
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
+ readonly setQueryError: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryToggleInput, {
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
+ readonly invalidateQuery: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryHashInput, {
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
+ readonly resetQuery: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryHashInput, {
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
+ readonly removeQuery: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentQueryHashInput, {
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
+ readonly clearQueryCache: import("@rozenite/agent-shared").AgentToolDescriptor<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
+ readonly listMutations: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentPaginationInput, import("./src/shared/agent-tools.js").TanStackQueryListMutationsResult>;
710
+ readonly getMutationDetails: import("@rozenite/agent-shared").AgentToolDescriptor<import("./src/shared/agent-tools.js").TanStackQueryAgentMutationIdInput, import("./src/shared/agent-tools.js").TanStackQueryGetMutationDetailsResult>;
711
+ readonly clearMutationCache: import("@rozenite/agent-shared").AgentToolDescriptor<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
+ };
812
+ export type { TanStackQueryActionResult, TanStackQueryAgentMutationIdInput, TanStackQueryAgentOnlineStatusInput, TanStackQueryAgentPaginationInput, TanStackQueryAgentQueryHashInput, TanStackQueryAgentQueryToggleInput, TanStackQueryAgentSafeValue, TanStackQueryCacheSummary, TanStackQueryClearMutationCacheArgs, TanStackQueryClearMutationCacheResult, TanStackQueryClearQueryCacheArgs, TanStackQueryClearQueryCacheResult, TanStackQueryGetCacheSummaryArgs, TanStackQueryGetCacheSummaryResult, TanStackQueryGetMutationDetailsArgs, TanStackQueryGetMutationDetailsResult, TanStackQueryGetOnlineStatusArgs, TanStackQueryGetOnlineStatusResult, TanStackQueryGetQueryDetailsArgs, TanStackQueryGetQueryDetailsResult, TanStackQueryInvalidateQueryArgs, TanStackQueryListMutationsArgs, TanStackQueryListMutationsResult, TanStackQueryListQueriesArgs, TanStackQueryListQueriesResult, TanStackQueryMutationOptionsSummary, TanStackQueryMutationSummary, TanStackQueryObserverOptionsSummary, TanStackQueryPage, TanStackQueryQuerySummary, TanStackQueryRefetchQueryArgs, TanStackQueryRemoveQueryArgs, TanStackQueryResetQueryArgs, TanStackQuerySetOnlineStatusArgs, TanStackQuerySetOnlineStatusResult, TanStackQuerySetQueryErrorArgs, TanStackQuerySetQueryLoadingArgs, } from './src/shared/agent-tools.js';