Commit 0b373c7
authored
feat: SQLite agent tools, web-ready storage, and Rozenite for Web docs (#228)
## Summary
This PR adds SQLite agent tooling, improves how official plugins behave
on web, refreshes documentation for [Rozenite for
Web](https://rozenite.dev/docs/rozenite-for-web), and replaces the
playground webpack web screen with plugin-focused sections.
### SQLite plugin
- **Agents:** LLM workflows can list registered databases and run SQL
(including multi-statement scripts) via new agent tools wired from
`useRozeniteSqlitePlugin`.
- **Web:** The SQLite plugin runtime is **not** loaded in browser builds
for now, because of upstream `expo-sqlite` issues on web. Documentation
states that SQLite in DevTools is for iOS and Android until upstream
stabilizes.
### Storage plugin
- **Web:** In development, Async Storage and Expo Secure Store adapters
work in the inspector on web; the MMKV adapter stays an empty inspector
on web because MMKV does not run in the browser.
### Playground (web)
- The webpack web entry no longer uses the JSONPlaceholder smoke test.
It lists supported plugins and wires the corresponding hooks (controls,
overlay, performance monitor, React Navigation, Redux, TanStack Query,
etc.). SQLite is shown as disabled on web only.
- Metro config adds WASM asset resolution and COEP/COOP headers where
needed for web SQLite experiments elsewhere.
### Documentation
- Official plugin pages note Rozenite for Web where the plugin runs in
the browser in development.
- SQLite docs describe agent tools and the current web limitation.
## Test plan
- [x] `pnpm` typecheck / lint for touched packages as appropriate
- [x] Native playground: SQLite and Storage plugins behave as before
- [x] Web playground: plugin sections render; SQLite section explains
disabled state1 parent e1e5bd7 commit 0b373c7
20 files changed
Lines changed: 514 additions & 212 deletions
File tree
- .changeset
- apps/playground
- src/app
- packages
- sqlite-plugin
- src/react-native
- storage-plugin
- website/src/docs/official-plugins
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 14 | | |
58 | 15 | | |
59 | 16 | | |
60 | | - | |
61 | | - | |
| 17 | + | |
62 | 18 | | |
63 | | - | |
64 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
65 | 23 | | |
66 | 24 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
111 | 33 | | |
112 | 34 | | |
113 | 35 | | |
| |||
125 | 47 | | |
126 | 48 | | |
127 | 49 | | |
| 50 | + | |
128 | 51 | | |
129 | 52 | | |
130 | 53 | | |
| |||
133 | 56 | | |
134 | 57 | | |
135 | 58 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 59 | | |
142 | 60 | | |
143 | 61 | | |
144 | 62 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 63 | + | |
226 | 64 | | |
227 | 65 | | |
0 commit comments