Repository navigation
feat: update setup guide #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| node_modules | ||
| # Cursor rule files. Prettier has no parser for this extension. | ||
| *.mdc | ||
| .claude | ||
| dist | ||
| pnpm-lock.yaml | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| name: langfuse-setup | ||
| description: Create ~/.cursor/langfuse.json so Langfuse tracing can start | ||
| --- | ||
|
|
||
| The user wants Langfuse tracing turned on. Do these steps in order. | ||
|
|
||
| 1. Create `~/.cursor/langfuse.json` with mode 600 when the file is missing. Leave the fields empty so tracing stays off until the user sets the keys and the host for their region: | ||
|
|
||
| ```bash | ||
| mkdir -p ~/.cursor | ||
| cat > ~/.cursor/langfuse.json <<'EOF' | ||
| { | ||
| "publicKey": "", | ||
| "secretKey": "", | ||
| "baseUrl": "" | ||
| } | ||
| EOF | ||
| chmod 600 ~/.cursor/langfuse.json | ||
| ``` | ||
|
|
||
| The file is done when it exists and its mode is 600. Do not overwrite a file that already has keys. | ||
|
|
||
| 2. Tell the user, briefly: | ||
|
|
||
| Create a project at https://langfuse.com/cloud if you don't have one. In the project, open Settings → API Keys and copy the public key, secret key, and base URL for your region. | ||
|
|
||
| Self-hosted: follow https://langfuse.com/self-hosting (Langfuse v4) and use your instance URL as the base URL. | ||
|
|
||
| Give them a clickable link to the absolute path of `~/.cursor/langfuse.json` and ask them to paste the three values there. Leave the secret key out of the chat. | ||
|
|
||
| This step is done when the user has been told to edit that file. | ||
|
|
||
| 3. When the public key, secret key, and base URL are all set, find `dist/index.mjs` under `~/.cursor/plugins/cache/cursor-public/langfuse-observability/` or `~/.cursor/plugins/local/langfuse-observability/` and run `node <that file> status`. Report the project name from that output. Do not print the keys. | ||
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
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
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
4 changes: 2 additions & 2 deletions
4
dist/getMachineId-bsd-C3dmanle.mjs → dist/getMachineId-bsd-DsxAPNIB.mjs
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
4 changes: 2 additions & 2 deletions
4
dist/getMachineId-darwin-BZ56p4cI.mjs → dist/getMachineId-darwin-C1_rrTYb.mjs
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
2 changes: 1 addition & 1 deletion
2
dist/getMachineId-linux-EU52PRcu.mjs → dist/getMachineId-linux-Bq-nvZqe.mjs
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
2 changes: 1 addition & 1 deletion
2
dist/getMachineId-unsupported-Dsuikc_w.mjs → dist/getMachineId-unsupported-D33tvGXg.mjs
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
4 changes: 2 additions & 2 deletions
4
dist/getMachineId-win-dSHQa_GJ.mjs → dist/getMachineId-win-DMVzbVRQ.mjs
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| description: Tell the user how to save Langfuse API keys when tracing is not configured | ||
| alwaysApply: true | ||
| --- | ||
|
|
||
| When the session context contains the sentence "Langfuse tracing is not configured.", start the first reply with the setup message from that context. Copy it as written, including the line breaks and the credentials file link. Do not add setup steps. Then do the user's task. | ||
|
|
||
| When that sentence is absent, do the user's task. Setup instructions stay out of the reply. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.