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 +11 -0
- package/README.md +86 -23
- package/dist/cli/index.js +306 -106
- package/dist/core.d.ts +15 -6
- package/dist/http/handlers/config.d.ts +3 -2
- package/dist/http/index.d.ts +7 -3
- package/dist/http/security.d.ts +0 -8
- package/dist/logger/console-patch.d.ts +5 -0
- package/dist/logger/tidewave-log-record-processor.d.ts +1 -1
- package/dist/logger/tidewave-logger.d.ts +37 -0
- package/dist/logger/tidewave-span-processor.d.ts +2 -2
- package/dist/next-js/handler.d.ts +1 -0
- package/dist/next-js/handler.js +379 -456
- package/dist/next-js/instrumentation.d.ts +2 -7
- package/dist/next-js/instrumentation.js +138 -119
- package/dist/resolution/formatters.d.ts +2 -2
- package/dist/resolution/index.d.ts +1 -2
- package/dist/resolution/symbol-finder.d.ts +2 -2
- package/dist/resolution/utils.d.ts +1 -0
- package/dist/tanstack.d.ts +1 -0
- package/dist/tanstack.js +181 -0
- package/dist/vite-plugin.d.ts +0 -1
- package/dist/vite-plugin.js +368 -463
- package/package.json +13 -5
- package/dist/http/handlers/shell.d.ts +0 -6
- package/dist/logger/circular-buffer.d.ts +0 -54
- package/dist/logger/instrumentation.d.ts +0 -2
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
|
-
|
|
13
|
-
|
|
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
|
-
|
|
16
|
-
[
|
|
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
|
|
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
|
-
###
|
|
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
|
|
174
|
-
as Supabase, or a non-officially supported web framework, we
|
|
175
|
-
|
|
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
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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:`
|
|
217
|
-
|
|
218
|
-
|
|
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
|
|
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
|
|