create-velox-app 0.6.54 → 0.6.56
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 +12 -0
- package/package.json +1 -1
- package/src/templates/source/root/CLAUDE.auth.md +2 -2
- package/src/templates/source/root/CLAUDE.default.md +2 -2
- package/src/templates/source/rsc/CLAUDE.md +2 -2
- package/src/templates/source/rsc/app/pages/users/[id]/posts/index.tsx +3 -1
- package/src/templates/source/rsc/app/pages/users.tsx +3 -1
- package/src/templates/source/rsc/src/api/database.ts +2 -2
- package/src/templates/source/rsc-auth/CLAUDE.md +2 -2
- package/src/templates/source/rsc-auth/src/api/database.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# create-velox-app
|
|
2
2
|
|
|
3
|
+
## 0.6.56
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(create): resolve TypeScript errors in RSC templates
|
|
8
|
+
|
|
9
|
+
## 0.6.55
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- feat(mcp): add static TypeScript analyzer for procedure discovery
|
|
14
|
+
|
|
3
15
|
## 0.6.54
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -433,10 +433,10 @@ The MCP server auto-discovers VeloxTS projects:
|
|
|
433
433
|
|
|
434
434
|
```bash
|
|
435
435
|
# Start the MCP server
|
|
436
|
-
npx
|
|
436
|
+
npx @veloxts/mcp
|
|
437
437
|
|
|
438
438
|
# Or with debug logging
|
|
439
|
-
npx
|
|
439
|
+
npx @veloxts/mcp --debug
|
|
440
440
|
```
|
|
441
441
|
|
|
442
442
|
### Setup for Claude Desktop
|
|
@@ -334,10 +334,10 @@ The MCP server auto-discovers VeloxTS projects:
|
|
|
334
334
|
|
|
335
335
|
```bash
|
|
336
336
|
# Start the MCP server
|
|
337
|
-
npx
|
|
337
|
+
npx @veloxts/mcp
|
|
338
338
|
|
|
339
339
|
# Or with debug logging
|
|
340
|
-
npx
|
|
340
|
+
npx @veloxts/mcp --debug
|
|
341
341
|
```
|
|
342
342
|
|
|
343
343
|
### Setup for Claude Desktop
|
|
@@ -173,10 +173,10 @@ The MCP server auto-discovers VeloxTS projects:
|
|
|
173
173
|
|
|
174
174
|
```bash
|
|
175
175
|
# Start the MCP server
|
|
176
|
-
npx
|
|
176
|
+
npx @veloxts/mcp
|
|
177
177
|
|
|
178
178
|
# Or with debug logging
|
|
179
|
-
npx
|
|
179
|
+
npx @veloxts/mcp --debug
|
|
180
180
|
```
|
|
181
181
|
|
|
182
182
|
### Setup for Claude Desktop
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Demonstrates multi-level nested dynamic routes: /users/:id/posts
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import type { Post } from '@prisma/client';
|
|
9
|
+
|
|
8
10
|
import { db } from '../../../../../src/api/database.js';
|
|
9
11
|
|
|
10
12
|
interface PageProps {
|
|
@@ -54,7 +56,7 @@ export default async function UserPostsPage({ params }: PageProps) {
|
|
|
54
56
|
<p className="empty-state">No posts yet. Create the first one!</p>
|
|
55
57
|
) : (
|
|
56
58
|
<ul className="posts-list">
|
|
57
|
-
{user.posts.map((post) => (
|
|
59
|
+
{user.posts.map((post: Post) => (
|
|
58
60
|
<li key={post.id} className="post-item">
|
|
59
61
|
<a href={`/users/${userId}/posts/${post.id}`}>
|
|
60
62
|
<h2>{post.title}</h2>
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* Demonstrates direct database access from RSC.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import type { User } from '@prisma/client';
|
|
9
|
+
|
|
8
10
|
import { db } from '../../src/api/database.js';
|
|
9
11
|
|
|
10
12
|
export default async function UsersPage() {
|
|
@@ -23,7 +25,7 @@ export default async function UsersPage() {
|
|
|
23
25
|
</p>
|
|
24
26
|
) : (
|
|
25
27
|
<ul className="user-list">
|
|
26
|
-
{users.map((user) => (
|
|
28
|
+
{users.map((user: User) => (
|
|
27
29
|
<li key={user.id} className="user-card">
|
|
28
30
|
<a href={`/users/${user.id}`} className="user-link">
|
|
29
31
|
<span className="user-name">{user.name}</span>
|
|
@@ -51,7 +51,7 @@ dotenv.config({ path: resolve(projectRoot, '.env') });
|
|
|
51
51
|
declare global {
|
|
52
52
|
// Allow global `var` declarations for hot reload in development
|
|
53
53
|
// eslint-disable-next-line no-var
|
|
54
|
-
var __db:
|
|
54
|
+
var __db: PrismaClientType | undefined;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/* @if sqlite */
|
|
@@ -63,7 +63,7 @@ declare global {
|
|
|
63
63
|
* - Must use driver adapters for direct database connections
|
|
64
64
|
* - Validates that DATABASE_URL is set before creating the client
|
|
65
65
|
*/
|
|
66
|
-
function createPrismaClient():
|
|
66
|
+
function createPrismaClient(): PrismaClientType {
|
|
67
67
|
const databaseUrl = process.env.DATABASE_URL;
|
|
68
68
|
|
|
69
69
|
if (!databaseUrl) {
|
|
@@ -245,10 +245,10 @@ The MCP server auto-discovers VeloxTS projects:
|
|
|
245
245
|
|
|
246
246
|
```bash
|
|
247
247
|
# Start the MCP server
|
|
248
|
-
npx
|
|
248
|
+
npx @veloxts/mcp
|
|
249
249
|
|
|
250
250
|
# Or with debug logging
|
|
251
|
-
npx
|
|
251
|
+
npx @veloxts/mcp --debug
|
|
252
252
|
```
|
|
253
253
|
|
|
254
254
|
### Setup for Claude Desktop
|
|
@@ -51,7 +51,7 @@ dotenv.config({ path: resolve(projectRoot, '.env') });
|
|
|
51
51
|
declare global {
|
|
52
52
|
// Allow global `var` declarations for hot reload in development
|
|
53
53
|
// eslint-disable-next-line no-var
|
|
54
|
-
var __db:
|
|
54
|
+
var __db: PrismaClientType | undefined;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/* @if sqlite */
|
|
@@ -63,7 +63,7 @@ declare global {
|
|
|
63
63
|
* - Must use driver adapters for direct database connections
|
|
64
64
|
* - Validates that DATABASE_URL is set before creating the client
|
|
65
65
|
*/
|
|
66
|
-
function createPrismaClient():
|
|
66
|
+
function createPrismaClient(): PrismaClientType {
|
|
67
67
|
const databaseUrl = process.env.DATABASE_URL;
|
|
68
68
|
|
|
69
69
|
if (!databaseUrl) {
|