Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
224 commits
Select commit Hold shift + click to select a range
e4ce3bd
Merge pull request #1 from AntonioErdeljac/02-database
AntonioErdeljac Jun 20, 2025
18dc8c3
03: trpc-setup
AntonioErdeljac Jun 20, 2025
717a388
Merge pull request #2 from AntonioErdeljac/03-trpc-setup
AntonioErdeljac Jun 20, 2025
da7018e
04: background jobs
AntonioErdeljac Jun 22, 2025
d3dcd51
Merge pull request #3 from AntonioErdeljac/04-background-jobs
AntonioErdeljac Jun 22, 2025
0c1d3ce
05: ai jobs
AntonioErdeljac Jun 22, 2025
bc98fa4
Merge pull request #4 from AntonioErdeljac/05-ai-jobs
AntonioErdeljac Jun 22, 2025
3f7948e
06: e2b sandboxes
AntonioErdeljac Jun 23, 2025
da874d1
Merge pull request #5 from AntonioErdeljac/06-e2b-sandboxes
AntonioErdeljac Jun 23, 2025
a71e034
07: agent tools
AntonioErdeljac Jun 23, 2025
cdf4ca2
Merge pull request #6 from AntonioErdeljac/07-agent-tools
AntonioErdeljac Jun 23, 2025
6b9b581
08: messages
AntonioErdeljac Jun 23, 2025
200801c
Merge pull request #7 from AntonioErdeljac/08-messages
AntonioErdeljac Jun 23, 2025
b015351
09: projects
AntonioErdeljac Jun 23, 2025
5e370fc
Merge pull request #8 from AntonioErdeljac/09-projects
AntonioErdeljac Jun 23, 2025
e58aca1
10: messages ui
AntonioErdeljac Jun 23, 2025
7d5a6e3
Merge pull request #9 from AntonioErdeljac/10-messages-ui
AntonioErdeljac Jun 24, 2025
3102798
11: project header
AntonioErdeljac Jun 24, 2025
4ceeda3
Merge pull request #10 from AntonioErdeljac/11-project-header
AntonioErdeljac Jun 24, 2025
aa48233
12: fragment view
AntonioErdeljac Jun 24, 2025
da13d89
Merge pull request #11 from AntonioErdeljac/12-fragment-view
AntonioErdeljac Jun 24, 2025
2e1f35e
13: code view
AntonioErdeljac Jun 24, 2025
10158e6
Merge pull request #12 from AntonioErdeljac/13-code-view
AntonioErdeljac Jun 24, 2025
f8f7bc0
14: home page
AntonioErdeljac Jun 24, 2025
0df1ed7
Merge pull request #13 from AntonioErdeljac/14-home-page
AntonioErdeljac Jun 24, 2025
035002b
15: theme
AntonioErdeljac Jun 24, 2025
7733e05
Merge pull request #14 from AntonioErdeljac/15-theme
AntonioErdeljac Jun 24, 2025
4288651
16: authentication
AntonioErdeljac Jun 24, 2025
ecb506b
Merge pull request #15 from AntonioErdeljac/16-authentication
AntonioErdeljac Jun 24, 2025
f6a2c0d
17: billing
AntonioErdeljac Jun 24, 2025
84a8ef1
Merge pull request #16 from AntonioErdeljac/17-billing
AntonioErdeljac Jun 24, 2025
aa4e70b
18: agent memory
AntonioErdeljac Jun 25, 2025
4dd2748
Merge pull request #17 from AntonioErdeljac/18-agent-memory
AntonioErdeljac Jun 25, 2025
e93b152
19: bug fixes
AntonioErdeljac Jun 25, 2025
c8b5909
Merge pull request #18 from AntonioErdeljac/19-bug-fixes
AntonioErdeljac Jun 25, 2025
fdeb3fc
20: deployment
AntonioErdeljac Jun 25, 2025
128324a
21: README
AntonioErdeljac Jun 26, 2025
f75425b
22: README improvements
AntonioErdeljac Jun 30, 2025
2118b9b
Fix AI code generation pipeline
Jackson57279 Oct 7, 2025
22903dc
Configure Inngest Cloud for Vercel deployment
Jackson57279 Oct 7, 2025
7e2085f
We made some effiecent changes
Jackson57279 Oct 8, 2025
4b7f90b
Remove .inngest/ from tracking and add to gitignore
Jackson57279 Oct 8, 2025
76e8fb1
Implmented Sentry DSN
Jackson57279 Oct 8, 2025
2e164d6
ugeoigeio
Jackson57279 Oct 8, 2025
34e85a9
dih
Jackson57279 Oct 8, 2025
22276cc
feat: enhance fragment API and update UI components
Jackson57279 Oct 8, 2025
7a74d58
Merge pull request #108 from otdoges/feature/api-and-ui-enhancements
Jackson57279 Oct 10, 2025
e13b28a
This is going to be not fun
Jackson57279 Oct 10, 2025
857923a
Implmented Sentry DSN
Jackson57279 Oct 10, 2025
113a6d7
Refactor Svelte and Vue Dockerfiles to enhance setup and configuration
Jackson57279 Oct 10, 2025
6f0eafc
dih
Jackson57279 Oct 10, 2025
07941ca
Implement error handling improvements with Sentry integration and UI …
Jackson57279 Oct 10, 2025
e53eaa1
Refactor error handling in ErrorPage and GlobalError components to im…
Jackson57279 Oct 10, 2025
8433e5c
Refactor 404 page to use Next.js Link component for navigation, enhan…
Jackson57279 Oct 10, 2025
e5b759a
Update usage constants for points and duration; modify 404 page to us…
Jackson57279 Oct 10, 2025
d28e46c
dih
Jackson57279 Oct 11, 2025
475aa1c
Integrate Firecrawl context scraping for agent
Jackson57279 Oct 11, 2025
9705382
Merge pull request #109 from otdoges/feat/adding-new-frameworks
Jackson57279 Oct 11, 2025
c523b4a
merge conflcits
Jackson57279 Oct 11, 2025
63931fb
firecrawl
Jackson57279 Oct 11, 2025
d132498
REVERT ONCE DONE
Jackson57279 Oct 11, 2025
5adb930
reverting the shit ui changing
Jackson57279 Oct 11, 2025
1d56aa3
revert cause me poor
Jackson57279 Oct 11, 2025
66ecf60
Merge pull request #110 from otdoges/chore/firecrawl-integration
Jackson57279 Oct 11, 2025
f0472a9
Update AI model in codeAgentFunction from "zai/glm-4.6" to "moonshota…
Jackson57279 Oct 12, 2025
651d918
I am retarded. I just reset tables because I could
Jackson57279 Oct 13, 2025
7e2f731
fixing error
Jackson57279 Oct 13, 2025
8dee774
fixing errors
Jackson57279 Oct 13, 2025
65bcf52
Fix Prisma relation field name casing
Jackson57279 Oct 13, 2025
b8b9489
Update Firecrawl from scrape to crawl with screenshot support and imp…
Jackson57279 Oct 15, 2025
98f4bca
claude decided to not commit these files
Jackson57279 Oct 15, 2025
9acc622
streamline while code is being made
Jackson57279 Oct 16, 2025
b5ec114
Fix critical performance issues and resolve TRACING_ALREADY_STARTED e…
Jackson57279 Oct 16, 2025
415e370
feat: Enhance Next.js config and add new features
cursoragent Oct 16, 2025
c4ad2c4
Merge pull request #117 from otdoges/cursor/optimize-codebase-for-seo…
Jackson57279 Oct 16, 2025
80883c6
I lwky forgot to download packages
Jackson57279 Oct 16, 2025
e77bb9f
Merge remote-tracking branch 'origin/master' into master
Jackson57279 Oct 16, 2025
b54ea1c
Resolve merge conflicts in next.config.ts
Jackson57279 Oct 16, 2025
ddb1203
fixed error
Jackson57279 Oct 16, 2025
9d8f3c2
fixing errors
Jackson57279 Oct 17, 2025
a0c90fe
SEO and speed changes.
Jackson57279 Oct 18, 2025
4049817
fix
Jackson57279 Oct 18, 2025
e22d7a4
fixing
Jackson57279 Oct 19, 2025
311da15
Add metadata field to Fragment model and implement error-fixing funct…
Jackson57279 Oct 19, 2025
15170fd
Merge branch 'master' of https://github.com/otdoges/zapdev
Jackson57279 Oct 19, 2025
0865752
Refactor build check function to remove unnecessary framework parameter
Jackson57279 Oct 19, 2025
425538e
Fix casing issues in API response handling and improve metadata extra…
Jackson57279 Oct 19, 2025
0c141bb
Optimize Vercel AI Gateway and Inngest Agent for performance
Jackson57279 Oct 19, 2025
e46aab9
Enhance Inngest functions and API for sandbox management
Jackson57279 Oct 21, 2025
af5c237
Update Inngest functions for sandbox management and API enhancements
Jackson57279 Oct 21, 2025
251ca54
Add .claude and .npm to .gitignore; update bun.lock with new OpenTele…
Jackson57279 Oct 22, 2025
53b606b
Enhance Inngest functions for improved sandbox URL handling and metad…
Jackson57279 Oct 22, 2025
6d1ee8b
Setup multiple agents (#126)
Jackson57279 Oct 25, 2025
45e4ef2
Merge branch 'master' of https://github.com/otdoges/zapdev
Jackson57279 Oct 25, 2025
5fe5421
Refactor multi-agent system for improved code generation and error ha…
Jackson57279 Oct 27, 2025
b678a85
Add dynamic export to multiple pages and refactor attachment handling…
Jackson57279 Oct 28, 2025
9790442
I have adih
Jackson57279 Oct 29, 2025
0aebdff
Enhance Inngest functions with summary extraction and retry logic
Jackson57279 Oct 29, 2025
78b51a5
Improve sandbox resuming logic in FragmentWeb component
Jackson57279 Oct 29, 2025
8f6794f
Implement Shadcn UI component checks in Inngest functions
Jackson57279 Oct 29, 2025
8271499
changes
Jackson57279 Oct 31, 2025
c0eff65
Changing back model, minimax 2 doesn't have agent model or something
Jackson57279 Oct 31, 2025
2997537
idk
Jackson57279 Oct 31, 2025
e29ae1f
Update AI model in codeAgentFunction from Alibaba to Anthropic Claude…
Jackson57279 Oct 31, 2025
78feee8
Refactor FragmentWeb component to remove error fixing logic and imple…
Jackson57279 Oct 31, 2025
203b47e
Add JSZip for file download functionality in FragmentWeb component
Jackson57279 Oct 31, 2025
966850a
Update dependencies and enhance sandbox file handling in functions.ts…
Jackson57279 Oct 31, 2025
7004249
Erm
Jackson57279 Nov 1, 2025
3cff055
I understand your needs uhhh
Jackson57279 Nov 1, 2025
1958011
Blah blah blah blau
Jackson57279 Nov 1, 2025
9c5995a
Blah blah blah blau
Jackson57279 Nov 1, 2025
20fd3cb
Remove sanitizeTextForDatabase calls to allow NULL bytes in database
Jackson57279 Nov 1, 2025
b7d223f
Fix PostgreSQL null byte error by properly sanitizing text
Jackson57279 Nov 1, 2025
bfcbebc
Merge pull request #129 from otdoges/fix/postgresql-null-byte-error
Jackson57279 Nov 1, 2025
d2f6663
Enhance JSON sanitization to prevent PostgreSQL null byte errors
Jackson57279 Nov 2, 2025
c6335d0
Refactor Prisma client to enhance JSON sanitization during database o…
Jackson57279 Nov 2, 2025
d1992b0
Update TypeScript configuration and enhance Prisma client data saniti…
Jackson57279 Nov 2, 2025
87ba05d
feat: Add Figma and GitHub import functionality
Jackson57279 Nov 2, 2025
bc6b35d
changes
Jackson57279 Nov 2, 2025
0d97d7b
Merge master into feat/figma-github-imports - resolve conflicts by ke…
Jackson57279 Nov 2, 2025
4f08197
Merge pull request #130 from otdoges/feat/figma-github-imports
Jackson57279 Nov 3, 2025
a174863
Update dependencies, enhance TypeScript configuration, and remove obs…
Jackson57279 Nov 4, 2025
559508c
Update then fixing errors in inngest
Jackson57279 Nov 4, 2025
f4ad092
changes
Jackson57279 Nov 4, 2025
e411ace
Fix TypeScript error: properly type messageId when creating fragment
Jackson57279 Nov 4, 2025
0c56763
Improve CLAUDE.md with comprehensive development guidance
Jackson57279 Nov 4, 2025
1f6d4cb
ghwipoehgpiwe
Jackson57279 Nov 4, 2025
65acf54
Filter E2B sandbox files from export and code display, update Next.js…
Jackson57279 Nov 4, 2025
24d0f05
Potential fix for code scanning alert no. 1301: Workflow does not con…
Jackson57279 Nov 5, 2025
9e0e5e0
nextjs16
Jackson57279 Nov 5, 2025
adafdb3
git Merge branch 'master' of https://github.com/otdoges/zapdev
Jackson57279 Nov 5, 2025
a00dcc5
Fix Vercel internal server error by correcting middleware configuration
Jackson57279 Nov 5, 2025
b876593
idek this change
Jackson57279 Nov 5, 2025
93b7204
Refactor project listing to improve user authentication handling
Jackson57279 Nov 5, 2025
e648ee1
Add showcase project query and integrate into API and showcase page
Jackson57279 Nov 5, 2025
3e03a9c
Add multi-model AI support with intelligent auto-selection
Jackson57279 Nov 6, 2025
3ed3886
changes
Jackson57279 Nov 7, 2025
8373a19
Merge pull request #131 from otdoges/feature/multi-model-ai-support
Jackson57279 Nov 7, 2025
736a312
changes
Jackson57279 Nov 7, 2025
5fe3915
Merge pull request #132 from otdoges/fixing-inngest-error
Jackson57279 Nov 7, 2025
307fad7
changing
Jackson57279 Nov 9, 2025
d336270
I think I added tests
Jackson57279 Nov 10, 2025
e16d3f6
changes
Jackson57279 Nov 12, 2025
2d6daf1
fixing CORS errors
Jackson57279 Nov 12, 2025
82c239a
fixing CORS errors
Jackson57279 Nov 12, 2025
1d1cb0c
Update dependencies and implement rate limiting features
Jackson57279 Nov 12, 2025
09069a3
Remove permanent redirect setting from Vercel configuration
Jackson57279 Nov 12, 2025
13905fe
Update dependencies and fix type definitions
Jackson57279 Nov 12, 2025
8625ba6
Update @inngest/agent-kit and @inngest/ai dependencies
Jackson57279 Nov 12, 2025
e04eeaa
changes
Jackson57279 Nov 12, 2025
d5f1cb1
Changes
Jackson57279 Nov 12, 2025
9fe3594
Complete migration from Clerk to Better Auth
Jackson57279 Nov 12, 2025
a97c15a
fixing error
Jackson57279 Nov 12, 2025
fd70301
Fix Better Auth implementation per official Convex guide
Jackson57279 Nov 13, 2025
22aa75b
adding rules
Jackson57279 Nov 13, 2025
47071d0
stack auth over better auth
Jackson57279 Nov 13, 2025
b5e650c
changes
Jackson57279 Nov 13, 2025
1fbfb00
moving files
Jackson57279 Nov 13, 2025
c0e27bc
changes
Jackson57279 Nov 13, 2025
e507759
changes
Jackson57279 Nov 13, 2025
c8934fa
JWKS
Jackson57279 Nov 13, 2025
03eb9a6
Fix Stack Auth authentication by removing conflicting Clerk env varia…
Jackson57279 Nov 13, 2025
658bcfb
Add comprehensive test suite covering auth, frameworks, utils, and cr…
Jackson57279 Nov 13, 2025
772a4c4
Polar.sh and stack-auth
Jackson57279 Nov 13, 2025
786e58e
adding support button
Jackson57279 Nov 13, 2025
c392478
changes
Jackson57279 Nov 13, 2025
5d835a7
Fix Stack Auth + Convex authentication with proper JWT configuration
Jackson57279 Nov 13, 2025
bbc9673
'any' broke the agent system:
Jackson57279 Nov 13, 2025
3bb7f6a
changes
Jackson57279 Nov 13, 2025
e9f27ca
update zod
Jackson57279 Nov 14, 2025
5347d95
random change
Jackson57279 Nov 14, 2025
479508b
changes
Jackson57279 Nov 14, 2025
d1ab54d
fixing download
Jackson57279 Nov 15, 2025
9cfed5d
feat: implement E2B sandbox persistence with auto-pause and resume
Jackson57279 Nov 15, 2025
ea6c4de
docs: add deployment and implementation guides for sandbox persistence
Jackson57279 Nov 15, 2025
f8585b1
fix: migrate UploadThing from Clerk to Stack Auth
Jackson57279 Nov 15, 2025
0dcb6dd
fix: resolve Polar checkout 401 token error with enhanced validation …
Jackson57279 Nov 15, 2025
bccf3d6
fixing build errors
Jackson57279 Nov 15, 2025
572b66a
fix: make Polar.sh integration optional to prevent build failures
Jackson57279 Nov 15, 2025
9526100
polarsh
Jackson57279 Nov 15, 2025
8701755
changes
Jackson57279 Nov 15, 2025
5fae9b9
changes
Jackson57279 Nov 15, 2025
7aad302
changes
Jackson57279 Nov 15, 2025
36b760a
changes
Jackson57279 Nov 15, 2025
f9ad6db
e2b fixing
Jackson57279 Nov 15, 2025
0a07386
things
Jackson57279 Nov 15, 2025
3561212
changes
Jackson57279 Nov 15, 2025
d7039c7
Task summary fix
Jackson57279 Nov 16, 2025
3da227a
Expensive model
Jackson57279 Nov 16, 2025
93e5664
fixing build error
Jackson57279 Nov 16, 2025
16b7c7d
internal server error fix hopefully
Jackson57279 Nov 16, 2025
685b02c
changes
Jackson57279 Nov 16, 2025
df97555
hopefully fixes this
Jackson57279 Nov 16, 2025
1fe6a2b
changes
Jackson57279 Nov 16, 2025
7fae75f
Fix code tab display, download functionality, and AI agent page.tsx e…
Jackson57279 Nov 16, 2025
54e44ff
images fixin
Jackson57279 Nov 16, 2025
248b18e
Fix fragment display issue - capitalize Fragment and Attachment prope…
Jackson57279 Nov 16, 2025
266f56a
moving files
Jackson57279 Nov 18, 2025
7e96f08
fix:polar.sh 500 error
Jackson57279 Nov 18, 2025
480d38e
refactor: update model selection and usage checks
Jackson57279 Nov 18, 2025
8a9acbc
feat: validate Polar product ID format
Jackson57279 Nov 18, 2025
7080e91
feat: enhance Polar product ID validation
Jackson57279 Nov 18, 2025
e84d1b4
feat: implement environment-based product ID validation and error han…
Jackson57279 Nov 18, 2025
57ae62b
feat: allow sandbox IDs in production for testing purposes
Jackson57279 Nov 18, 2025
ddc546f
feat: refactor Polar client initialization for explicit environment h…
Jackson57279 Nov 18, 2025
f40067f
feat: update POLAR_ACCESS_TOKEN validation for production environments
Jackson57279 Nov 18, 2025
f2a330a
feat: update dependencies and enhance subscription access checks
Jackson57279 Nov 18, 2025
7168c87
feat: enhance hasProAccess function and usage checks
Jackson57279 Nov 18, 2025
a5d645d
feat: temporarily remove Pro plan restrictions for Gemini model
Jackson57279 Nov 19, 2025
c35c136
feat: refactor authentication and error handling in project queries
Jackson57279 Nov 19, 2025
d8752aa
fix: remove unsupported frequency_penalty parameter for Gemini model
Jackson57279 Nov 19, 2025
6537f8f
feat: Update code viewer to use `useRef` for targeted highlighting an…
Jackson57279 Nov 19, 2025
2dac755
feat: migrate from stack-auth to better-auth with polar integration
Jackson57279 Nov 19, 2025
f74a3e3
feat: update authentication flow and improve API integration
Jackson57279 Nov 19, 2025
a935e52
feat: integrate @inboundemail/sdk for enhanced email verification and…
Jackson57279 Nov 19, 2025
c8cc045
feat: refactor authentication and improve error handling
Jackson57279 Nov 19, 2025
49eb63e
feat: update authentication and configuration for Better Auth integra…
Jackson57279 Nov 19, 2025
a532254
feat: enhance authentication flow with email verification and error h…
Jackson57279 Nov 19, 2025
521730d
feat: Implement forgot password, reset password, and email verificati…
Jackson57279 Nov 20, 2025
3ff40ab
changes
Jackson57279 Nov 20, 2025
dda0fed
feat: add ReadonlyURLSearchParams type import from next/navigation
Jackson57279 Nov 20, 2025
38a997f
changes
Jackson57279 Nov 20, 2025
9870b22
Merge pull request #140 from otdoges/feat/better-auth-migration
Jackson57279 Nov 20, 2025
3b56ae9
fix: resolve build errors and conduct comprehensive security review
claude Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file.
Empty file.
189 changes: 189 additions & 0 deletions .cursor/CURSOR_RULES_USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
# Cursor Rules Usage Guide

This directory contains Cursor IDE rules for the ZapDev project. These rules help Cursor understand your codebase architecture and provide better code completion, analysis, and suggestions.

## Files in This Directory

### `convex_rules.mdc`
**Purpose**: Guide Cursor when working with Convex backend code
**Applies to**: All files matching `convex/**/*.ts`
**Content**: 1000 lines of ZapDev-specific Convex patterns and best practices

**Key sections**:
- ZapDev project context and architecture
- Authentication and authorization patterns
- Database schema and enum definitions
- Mutation and action patterns
- Real-world code examples

**How it helps**:
- Code completion suggests patterns aligned with ZapDev
- Analysis catches missing `requireAuth()` or authorization checks
- Hover hints show context from these rules
- Refactoring suggestions respect these patterns

## How Cursor Uses These Rules

### 1. Code Completion
When you start typing in a `convex/` file:
```typescript
export const my = mut[CTRL+SPACE]
```
Cursor suggests completions that match the patterns in `convex_rules.mdc`

### 2. Code Analysis
Cursor analyzes your code and highlights issues:
- Missing `requireAuth(ctx)` calls
- Missing authorization checks
- Incorrect enum values
- Improper use of queries vs indexes

### 3. Hover Information
Hover over functions or patterns to see context:
```typescript
const userId = await requireAuth(ctx) // Cursor shows: "Gets authenticated Clerk user ID"
```

### 4. Quick Fixes
Right-click on code and select "Fix..." to get suggestions:
```typescript
// Before: User data not verified
return await ctx.db.get(args.projectId);

// After (suggested):
const userId = await requireAuth(ctx);
const project = await ctx.db.get(args.projectId);
if (!project || project.userId !== userId) {
throw new Error("Unauthorized");
}
```

## Configuration

### Using These Rules

These rules are automatically used by Cursor if:
1. `.cursor/rules/` directory exists (✓ it does)
2. `.mdc` files are present (✓ they are)
3. The glob patterns match your files (✓ `convex/**/*.ts`)

### Creating Additional Rules

To add more rules for other parts of ZapDev:

1. Create a new `.mdc` file in `.cursor/rules/`
```bash
touch .cursor/rules/nextjs_rules.mdc
```

2. Add frontmatter with glob pattern:
```yaml
---
description: Next.js and React patterns for ZapDev frontend
globs: src/**/*.tsx,src/**/*.ts
---
```

3. Add guidelines and examples

4. Save and commit to git

## Best Practices

### ✅ Do
- Follow the patterns outlined in `convex_rules.mdc`
- Use this file as reference when writing Convex code
- Update this file when you establish new patterns
- Share this with your team
- Review this file when onboarding new developers

### ❌ Don't
- Ignore Cursor suggestions about authentication
- Skip authorization checks "just this time"
- Deviate from patterns without documenting why
- Let outdated rules sit in the repo

## Keeping Rules Up-to-Date

When you:
- Add new database tables → Update schema section
- Change authentication → Update auth patterns section
- Establish new best practices → Add to patterns section
- Find a useful pattern → Add to examples section

## Integration with Your Workflow

### In VS Code with Cursor Extension
1. Cursor reads `.cursor/rules/` automatically
2. Applies rules to matching files
3. Provides enhanced suggestions and analysis

### In Cursor IDE
1. All rules automatically apply
2. Context from rules available in chat
3. Can reference rules in conversations

## Testing Rules

To verify Cursor is using these rules:

1. Open a file matching the glob pattern (`convex/projects.ts`)
2. Start typing a mutation
3. Cursor should suggest patterns from `convex_rules.mdc`
4. Type invalid code (e.g., skip `requireAuth()`)
5. Cursor should flag as issue

## Sharing with Team

When sharing this project with team members:

1. **Include in onboarding**:
```bash
cat .cursor/rules/convex_rules.mdc | head -50
```

2. **Reference in code reviews**:
> "This doesn't follow the pattern in `.cursor/rules/convex_rules.mdc` line 56"

3. **Update team documentation**:
- Link to `CONVEX_RULES_GUIDE.md`
- Reference key patterns
- Include examples

## Troubleshooting

### Cursor not showing suggestions
- Verify file matches glob pattern (`convex/**/*.ts`)
- Check that file has correct extension (`.ts`)
- Reload Cursor or VS Code

### Rules seem out of date
- Check when rules were last updated
- Compare with actual schema.ts and helpers.ts
- Update rules if patterns have changed

### Want to change a rule
- Edit `.cursor/rules/convex_rules.mdc`
- Test your changes
- Commit to git with explanation
- Notify team of changes

## Related Files

- **CONVEX_RULES_REWRITE_SUMMARY.md** — What changed in the rewrite
- **CONVEX_RULES_GUIDE.md** — Quick reference guide
- **CLAUDE.md** — Full project architecture
- **convex/schema.ts** — Source of truth for database schema
- **convex/helpers.ts** — Authentication utilities

## Version History

| Date | Version | Changes |
|------|---------|---------|
| 2025-11-13 | 1.0 | Initial ZapDev-specific rules created |

---

**Last Updated**: 2025-11-13
**Maintainer**: Development Team
**Status**: Active & In Use
Loading
Loading