-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Update mermaid-to-image extension #18975
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
base: main
Are you sure you want to change the base?
Conversation
- Enhance AI tool for generating Mermaid diagrams: added detailed instructions, example prompts, and improved clipboard image copying functionality. - Fix return message for clipboard copy confirmation in generateMermaidImageTool - Add AI tool for generating Mermaid diagrams and copying images to clipboard - Initial commit
Thank you for the update! 🎉 You can expect an initial review within five business days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR adds AI capabilities to the Mermaid to Image extension, enabling users to generate diagrams through natural language prompts and automatically copy the resulting images to the clipboard.
- Added
generateMermaidImageTool
in/extensions/mermaid-to-image/src/tools/generate-mermaid-diagram-with-ai.ts
with proper error handling and cleanup - Implemented comprehensive AI evals in
package.json
covering various diagram types and error scenarios - Added detailed AI instructions and examples in
package.json
to guide accurate diagram generation - Added new changelog entry following correct format with
{PR_MERGE_DATE}
template - Properly configured tool with
no-view
command for background AI execution
The implementation follows Raycast's guidelines for AI tools and includes proper error handling using showFailureToast
. The changes are well-documented and include appropriate test cases.
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
extensions/mermaid-to-image/src/tools/generate-mermaid-diagram-with-ai.ts
Outdated
Show resolved
Hide resolved
…ges for diagram generation and clipboard copying process
Thanks @chihkang! |
Hey @chihkang 👋 Great to see more AI tools being added for extensions! Are you able to run the evals locally? Could you send me the output if they're passing for you too please? |
… generation: unify mock responses and streamline expected results.
Hey @andreaselia 👋 I fixed the evals issue. |
Description
[Mermaid to Image] AI extension addition #18965
Screencast
clipboard

Checklist
npm run build
and tested this distribution build in Raycastassets
folder are used by the extension itselfREADME
are placed outside of themetadata
folder