Add .cursor/rules/echo_rules.mdc to echo-start templates#766
Open
Halo11112222 wants to merge 3 commits intoMerit-Systems:masterfrom
Open
Add .cursor/rules/echo_rules.mdc to echo-start templates#766Halo11112222 wants to merge 3 commits intoMerit-Systems:masterfrom
Halo11112222 wants to merge 3 commits intoMerit-Systems:masterfrom
Conversation
Added .cursor/rules/echo_rules.mdc with guidelines for using the Echo SDK in Next.js projects. Covers server/client setup, model provider usage, UI components, and API route configuration. Helps developers get started with Echo faster by providing tailored Cursor AI suggestions for the Next.js integration. Fixes Merit-Systems#636
Added .cursor/rules/echo_rules.mdc with guidelines for using the Echo SDK in React (Vite) projects. Covers provider setup, model provider hooks, and UI components. Fixes Merit-Systems#636
Added .cursor/rules/echo_rules.mdc with guidelines for building CLI tools with Echo. Covers authentication flow, wallet management, and interactive prompt patterns. Fixes Merit-Systems#636
Contributor
|
@Halo11112222 is attempting to deploy a commit to the Merit Systems Team on Vercel. A member of the Team first needs to authorize it. |
| Use Echo's auth functions for CLI login flow: | ||
|
|
||
| ```typescript | ||
| import { loginWithEcho, logout, isAuthenticated } from '@/auth'; |
Contributor
There was a problem hiding this comment.
Comment on lines
+32
to
+34
| import { | ||
| initLocalWallet, | ||
| loginWithWallet, |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey! Saw the issue about adding Cursor rules to the templates — figured I'd put together something useful.
I added
.cursor/rules/echo_rules.mdcfiles to the three main template types:templates/next/) — covers server/client setup, model provider usage, EchoProvider wrapping, and the API route patterntemplates/react/) — covers Vite-specific setup, theuseEchoModelProvidershook, and EchoTokens componenttemplates/echo-cli/) — covers auth flow, wallet management, and prompt patternsEach file is tailored to its framework so Cursor will give relevant suggestions based on the template you're working in. The rules follow the same format as the Convex example in the issue.
Would love feedback on the approach! Happy to adjust if you'd prefer a different structure or want to cover more of the templates.
Fixes #636