tidewave 0.5.0 → 0.5.2

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,55 +1,14 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ## [0.5.2] - 2025-11-12
4
4
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
+ * Make sure chalk and commander are added as dependencies
6
+ * Serve /tidewave and /tidewave/config routes from Vite
7
7
 
8
- ## [0.1.0] - 2024-08-29
8
+ ## [0.5.1] - 2025-11-11
9
9
 
10
- ### Added
10
+ * Add `npx tidewave install` and trim down dependency list.
11
11
 
12
- #### Core Features
13
- - **MCP Server Support**: STDIO-based Model Context Protocol server for integration with AI coding assistants
14
- - **Documentation Extraction**: Extract TypeScript/JavaScript documentation and type information for symbols, classes, functions, and methods
15
- - **Source Location Resolution**: Get source file paths for modules, symbols, and members
16
- - **Multi-format Support**: Support for local files, npm dependencies, and Node.js builtin modules
12
+ ## [0.5.0] - 2025-11-10
17
13
 
18
- #### Module Reference Formats
19
- - `module:symbol` - Extract documentation for top-level symbols
20
- - `module:Class#method` - Extract documentation for instance methods
21
- - `module:Class.method` - Extract documentation for static methods
22
- - `node:Class#method` - Extract documentation for Node.js builtin instance methods
23
- - `node:Class.method` - Extract documentation for Node.js builtin static methods
24
-
25
- #### CLI Commands
26
- - `tidewave mcp` - Start the MCP server via STDIO
27
- - `tidewave docs <module-path>` - Extract documentation for a symbol
28
- - `tidewave source <module>` - Get the source file path for a module
29
-
30
- #### Runtime Support
31
- - Full support for Node.js with npm/npx
32
- - Native support for Bun with bunx
33
- - Support for Deno via npm: protocol
34
-
35
- ### Fixed
36
- - Handle source location of symbols and members correctly (#7)
37
- - Handle prefix option only on CLI layer, not in core extraction (#6)
38
- - Correctly extract JavaScript/TypeScript symbols, instances, and methods
39
- - Show interface types correctly
40
- - Handle falsy values and improve error handling (#1)
41
-
42
- ### Changed
43
- - Refactored codebase into modular structure for better maintainability
44
- - Simplified module resolution and extraction logic
45
- - Improved TypeScript and Node.js module resolution
46
- - Changed config flag for project path handling (#3)
47
-
48
- ### Technical Details
49
- - Built with TypeScript for type safety
50
- - Uses TypeScript Compiler API for accurate code analysis
51
- - Supports ESM modules
52
- - Includes comprehensive error handling and user-friendly error messages
53
- - Optimized for use with AI coding assistants through MCP protocol
54
-
55
- [0.1.0]: https://github.com/dashbit/tidewave_javascript/releases/tag/v0.1.0
14
+ * Initial release.
package/README.md CHANGED
@@ -1,13 +1,16 @@
1
1
  # Tidewave
2
2
 
3
- > Tidewave Web for Next.js and React+Vite is currently in alpha testing!
3
+ Tidewave is the coding agent for full-stack web app development. Integrate
4
+ Claude Code, OpenAI Codex, and other agents with your web app and web framework
5
+ at every layer, from UI to database. [See our website](https://tidewave.ai) for
6
+ more information.
4
7
 
5
- Tidewave is the coding agent for full-stack web app development.
6
- [See our website](https://tidewave.ai) for more information.
8
+ This project supports:
7
9
 
8
- If you are using Next.js or you have a React + Vite frontend, talking either to
9
- a backend as a service (such as Supabase) or a third-party framework, you are in
10
- the right place!
10
+ - Next.js 15/16
11
+
12
+ - React + Vite frontends, with either a backend as a service (such as Supabase)
13
+ or a third-party framework
11
14
 
12
15
  If you are using React with Django, FastAPI, Flask, Phoenix, or Rails,
13
16
  [follow the steps here instead](http://hexdocs.pm/tidewave/react.html).
@@ -21,6 +24,28 @@ Protocol (MCP) server for your editors.
21
24
 
22
25
  If you are using Next.js, install Tidewave with:
23
26
 
27
+ ```sh
28
+ $ npx tidewave install
29
+ # or
30
+ $ yarn dlx tidewave install
31
+ # or
32
+ $ pnpm dlx tidewave install
33
+ # or
34
+ $ bunx tidewave install
35
+ ```
36
+
37
+ And you are almost there! Now make sure
38
+ [Tidewave is installed](https://hexdocs.pm/tidewave/installation.html) and you
39
+ are ready to connect Tidewave to your app.
40
+
41
+ In case the command abovees do not work, you can toggle the manual installation
42
+ instructions below
43
+
44
+ <details>
45
+ <summary>Show manual installation steps</summary><br />
46
+
47
+ **1. Add Tidewave as a dependency**
48
+
24
49
  ```sh
25
50
  $ npm install -D tidewave
26
51
  # or
@@ -31,6 +56,8 @@ $ pnpm add --save-dev tidewave
31
56
  $ bun add --dev tidewave
32
57
  ```
33
58
 
59
+ **2. Create `pages/api/tidewave.ts`**
60
+
34
61
  Then create `pages/api/tidewave.ts` with:
35
62
 
36
63
  ```typescript
@@ -57,8 +84,7 @@ export const config = {
57
84
  };
58
85
  ```
59
86
 
60
- _Note: this uses the **Pages Router**, however it works regardless of the router
61
- type you use in your application._
87
+ **3. Create the proxy.ts or middleware.ts**
62
88
 
63
89
  If you are using Next.js 16+, then create (or modify) `proxy.ts` with:
64
90
 
@@ -94,11 +120,14 @@ export const config = {
94
120
  };
95
121
  ```
96
122
 
123
+ **4. Create instrumentation.ts**
124
+
97
125
  Finally, we expose your application's spans, events, and logs to Tidewave MCP.
98
126
  First install the NodeSDK:
99
127
 
100
128
  ```sh
101
129
  npm install @opentelemetry/sdk-node
130
+ npm install -D @opentelemetry/sdk-trace-base @opentelemetry/sdk-logs
102
131
  ```
103
132
 
104
133
  And then create (or modify) a custom `instrumentation.ts` file in the root
@@ -138,9 +167,7 @@ export async function register() {
138
167
  }
139
168
  ```
140
169
 
141
- Now make sure
142
- [Tidewave is installed](https://hexdocs.pm/tidewave/installation.html) and you
143
- are ready to connect Tidewave to your app.
170
+ </details>
144
171
 
145
172
  ### React + Vite
146
173
 
@@ -187,8 +214,9 @@ database calls, etc) won't be available.
187
214
  Next.js' `tidewaveHandler` and Vite's `tidewave` accept the configuration
188
215
  options below:
189
216
 
190
- - `allow_remote_access:` allow remote connections when true (default false)
191
- - `allowed_origins:` defaults to the current host/port
217
+ - `allow_remote_access:` allow remote connections when true (default false).
218
+ Enable this only if you trust your network and you want Tidewave MCP to be
219
+ accessed from another trusted machine
192
220
  - `team`: enable Tidewave Web for teams
193
221
 
194
222
  ## CLI