tidewave 0.5.5 → 0.7.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.0] - 2026-06-14
4
+
5
+ * Support namespaces/files in `get_docs` tool and make it return a list of exports
6
+ * Support re-exports in `get_docs` lookups
7
+ * Improve out-of-the-box experience for remote access (which remains opt-in)
8
+
9
+ ## [0.6.0] - 2025-12-31
10
+
11
+ * Tanstack support
12
+ * Write logs and instrumentation to a file so it works across multiple runtimes
13
+
3
14
  ## [0.5.5] - 2025-11-25
4
15
 
5
16
  * Fix missing items element on `project_eval`
package/README.md CHANGED
@@ -8,15 +8,14 @@ more information.
8
8
  This project supports:
9
9
 
10
10
  - Next.js 15/16
11
+ - TanStack Start with React
12
+ - Vite with React/Vue (which includes Astro, VitePress, etc)
11
13
 
12
- - React + Vite frontends, with either a backend as a service (such as Supabase)
13
- or a third-party framework
14
+ If you are using React/Vue with Django, FastAPI, Flask, Phoenix, or Rails,
15
+ [follow the steps here instead](http://hexdocs.pm/tidewave/frontend.html).
14
16
 
15
- If you are using React with Django, FastAPI, Flask, Phoenix, or Rails,
16
- [follow the steps here instead](http://hexdocs.pm/tidewave/react.html).
17
-
18
- This project can also be used through the CLI or as a standalone Model Context
19
- Protocol (MCP) server for your editors.
17
+ This project can also be used through the CLI or as
18
+ [a standalone Model Context Protocol server](https://hexdocs.pm/tidewave/mcp.html).
20
19
 
21
20
  ## Installation
22
21
 
@@ -38,7 +37,7 @@ And you are almost there! Now make sure
38
37
  [Tidewave is installed](https://hexdocs.pm/tidewave/installation.html) and you
39
38
  are ready to connect Tidewave to your app.
40
39
 
41
- In case the command abovees do not work, you can toggle the manual installation
40
+ In case the command above do not work, you can toggle the manual installation
42
41
  instructions below
43
42
 
44
43
  <details>
@@ -168,11 +167,56 @@ export async function register() {
168
167
 
169
168
  </details>
170
169
 
171
- ### React + Vite
170
+ ### TanStack Start
171
+
172
+ If you are using TanStack Start with React, install Tidewave with:
173
+
174
+ ```sh
175
+ $ npm install -D tidewave
176
+ # or
177
+ $ yarn add -D tidewave
178
+ # or
179
+ $ pnpm add --save-dev tidewave
180
+ # or
181
+ $ bun add --dev tidewave
182
+ ```
183
+
184
+ Then configure your `vite.config.js` (also works for `.ts` and `.mjs`):
185
+
186
+ ```javascript
187
+ import { defineConfig } from 'vite';
188
+ import tidewave from 'tidewave/vite-plugin';
189
+
190
+ export default defineConfig({
191
+ plugins: [tidewave()],
192
+ });
193
+ ```
194
+
195
+ And finally create or modify `src/start.ts` file to import Tidewave in
196
+ development:
197
+
198
+ ```ts
199
+ import { createStart } from '@tanstack/react-start';
200
+
201
+ // Import Tidewave only in development.
202
+ if (process.env.NODE_ENV === 'development' && typeof window === 'undefined') {
203
+ import('tidewave/tanstack');
204
+ }
205
+
206
+ export const startInstance = createStart(() => {
207
+ return {};
208
+ });
209
+ ```
210
+
211
+ Now make sure
212
+ [Tidewave is installed](https://hexdocs.pm/tidewave/installation.html) and you
213
+ are ready to connect Tidewave to your app.
214
+
215
+ ### Vite
172
216
 
173
- If you are building a front-end application, using a backend as a service, such
174
- as Supabase, or a non-officially supported web framework, we recommend using our
175
- React + Vite integration.
217
+ If you are building a frontend application with React or Vue, using a backend as
218
+ a service, such as Supabase, or a non-officially supported web framework, we
219
+ recommend using our Vite integration.
176
220
 
177
221
  Install it with:
178
222
 
@@ -201,23 +245,41 @@ Now make sure
201
245
  [Tidewave is installed](https://hexdocs.pm/tidewave/installation.html) and you
202
246
  are ready to connect Tidewave to your app.
203
247
 
204
- If you are using Supabase or similar, you can prompt Tidewave to use the
205
- `supabase` CLI so it has complete access to your database. For non-officially
206
- supported web frameworks, our React + Vite integration allows Tidewave Web to
207
- perform changes on the front-end, and the agent will be able to modify your
208
- backend code as usual, but some functionality (such as accessing logs, doing
209
- database calls, etc) won't be available.
248
+ Our Vite integration for React and Vue allows Tidewave Web to perform changes on
249
+ the front-end, and the agent will be able to modify your backend code as usual,
250
+ but some functionality (such as accessing logs, doing database calls, etc) won't
251
+ be available. You can also use our
252
+ [Figma Dev Mode](https://hexdocs.pm/tidewave/figma.html) and
253
+ [Supabase](https://hexdocs.pm/tidewave/supabase.html) integration for additional
254
+ features.
210
255
 
211
256
  ### Configuration
212
257
 
213
258
  Next.js' `tidewaveHandler` and Vite's `tidewave` accept the configuration
214
259
  options below:
215
260
 
216
- - `allow_remote_access:` allow remote connections when true (default false).
217
- Enable this only if you trust your network and you want Tidewave MCP to be
218
- accessed from another trusted machine
261
+ - `allow_remote_access:` Tidewave only allows requests from localhost by
262
+ default, even if your server listens on other interfaces, for security
263
+ purposes. Read
264
+ [our security guidelines for more information and when to allow remote access](https://hexdocs.pm/tidewave/security.html)
265
+ (if you know what you are doing)
219
266
  - `team`: enable Tidewave Web for teams
220
267
 
268
+ ## Available tools
269
+
270
+ - `get_docs` - get the documentation for a given module/namespace or a
271
+ class/interface/enum/type in that namespace. It consults the exact versions
272
+ used by the project, ensuring you always get correct information
273
+
274
+ - `get_source_location` - get the source location for a given module/namespace
275
+ or a class/interface/enum/type in that namespace, so an agent can directly
276
+ read the source skipping search
277
+
278
+ - `get_logs` - reads console log written by the server
279
+
280
+ - `project_eval` - evaluates code within the runtime itself, giving the agent
281
+ access to dependencies, server code, and all in-memory data
282
+
221
283
  ## CLI
222
284
 
223
285
  Tidewave.js also comes with a CLI for developers who want to use it as a
@@ -257,6 +319,7 @@ Here are some examples:
257
319
 
258
320
  ```bash
259
321
  # Local TypeScript/JavaScript files
322
+ npx tidewave docs ./src/utils
260
323
  npx tidewave docs ./src/utils:formatDate
261
324
  npx tidewave docs ./components:Button#onClick
262
325
 
@@ -285,8 +348,8 @@ bun run clean # Clean dist directory
285
348
 
286
349
  ## Acknowledgements
287
350
 
288
- A thank you to [Zoey](https://github.com/zoedsoupe/) for implementing both Next.js and
289
- Vite integrations as well as the CLI interface.
351
+ A thank you to [Zoey](https://github.com/zoedsoupe/) for implementing both
352
+ Next.js and Vite integrations as well as the CLI interface.
290
353
 
291
354
  ## License
292
355