@rozenite/tanstack-query-plugin 1.5.0 → 1.6.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.
- package/CHANGELOG.md +19 -0
- package/README.md +22 -0
- package/dist/rozenite.json +1 -1
- package/dist/src/react-native/agent/__tests__/tanstack-query-agent.test.d.ts +1 -0
- package/dist/src/react-native/agent/tanstack-query-agent.d.ts +1000 -0
- package/dist/src/react-native/agent/useTanStackQueryAgentTools.d.ts +2 -0
- package/dist/src/react-native/devtools-actions.d.ts +103 -0
- package/dist/useTanStackQueryDevTools.cjs +1 -1
- package/dist/useTanStackQueryDevTools.js +755 -205
- package/package.json +5 -4
- package/src/react-native/agent/__tests__/tanstack-query-agent.test.ts +508 -0
- package/src/react-native/agent/tanstack-query-agent.ts +750 -0
- package/src/react-native/agent/useTanStackQueryAgentTools.ts +147 -0
- package/src/react-native/devtools-actions.ts +197 -0
- package/src/react-native/useHandleDevToolsMessages.ts +9 -104
- package/src/react-native/useTanStackQueryDevTools.ts +3 -0
- package/tsconfig.json +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @rozenite/tanstack-query-plugin
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#201](https://github.com/callstackincubator/rozenite/pull/201) [`7edeb1d`](https://github.com/callstackincubator/rozenite/commit/7edeb1db05ff22a02fb4ed4662c1f45516170feb) Thanks [@V3RON](https://github.com/V3RON)! - Add agent tools for inspecting queries and mutations and managing TanStack Query caches.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies []:
|
|
12
|
+
- @rozenite/agent-bridge@1.6.0
|
|
13
|
+
- @rozenite/plugin-bridge@1.6.0
|
|
14
|
+
|
|
15
|
+
## 1.5.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies []:
|
|
20
|
+
- @rozenite/plugin-bridge@1.5.1
|
|
21
|
+
|
|
3
22
|
## 1.5.0
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ This plugin was inspired by the excellent work of Austin Johnson and his [react-
|
|
|
17
17
|
- **Query Actions**: Refetch, invalidate, reset, and remove queries
|
|
18
18
|
- **State Manipulation**: Trigger loading states and error conditions for testing
|
|
19
19
|
- **Mutation Tracking**: Monitor mutation states and progress
|
|
20
|
+
- **Agent Tools**: Expose query and mutation inspection plus cache-management tools to coding agents
|
|
20
21
|
- **Bidirectional Communication**: Real-time sync between device and DevTools
|
|
21
22
|
- **Production Safety**: Automatically disabled in production builds
|
|
22
23
|
|
|
@@ -63,6 +64,27 @@ function App() {
|
|
|
63
64
|
|
|
64
65
|
Start your development server and open React Native DevTools. You'll find the "TanStack Query" panel in the DevTools interface.
|
|
65
66
|
|
|
67
|
+
## Agent Tools (LLM Integration)
|
|
68
|
+
|
|
69
|
+
When `useTanStackQueryDevTools(queryClient)` is mounted in development, the plugin also registers agent tools under the `@rozenite/tanstack-query-plugin` domain.
|
|
70
|
+
|
|
71
|
+
Available tools:
|
|
72
|
+
|
|
73
|
+
- `get-cache-summary`
|
|
74
|
+
- `get-online-status`
|
|
75
|
+
- `set-online-status`
|
|
76
|
+
- `list-queries`
|
|
77
|
+
- `get-query-details`
|
|
78
|
+
- `refetch-query`
|
|
79
|
+
- `set-query-loading`
|
|
80
|
+
- `set-query-error`
|
|
81
|
+
- `invalidate-query`
|
|
82
|
+
- `reset-query`
|
|
83
|
+
- `remove-query`
|
|
84
|
+
- `clear-query-cache`
|
|
85
|
+
- `list-mutations`
|
|
86
|
+
- `get-mutation-details`
|
|
87
|
+
- `clear-mutation-cache`
|
|
66
88
|
## Usage
|
|
67
89
|
|
|
68
90
|
### Basic Integration
|
package/dist/rozenite.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@rozenite/tanstack-query-plugin","version":"1.5.
|
|
1
|
+
{"name":"@rozenite/tanstack-query-plugin","version":"1.5.1","description":"TanStack Query for Rozenite.","panels":[{"name":"Tanstack Query","source":"/tanstack-query.html"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|