-
Notifications
You must be signed in to change notification settings - Fork 56
Features/add js interpreter #355
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement
Description
Add JavaScript interpreter for executing code in chat messages
Create new rich content component for JS code rendering
Integrate JS interpreter with existing message display system
Refactor rich content structure for better organization
Changes diagram
Changes walkthrough 📝
enums.js
Add JS code rich type enum
src/lib/helpers/enums.js
JsCode
enum value torichType
objectrc-js-interpreter.svelte
Create JavaScript interpreter component
src/routes/chat/[agentId]/[conversationId]/rich-content/rc-js-interpreter.svelte
marked
libraryeval()
for chart renderingrc-message.svelte
Integrate JS interpreter into message display
src/routes/chat/[agentId]/[conversationId]/rich-content/rc-message.svelte
rich-content.svelte
Refactor rich content conditional rendering
src/routes/chat/[agentId]/[conversationId]/rich-content/rich-content.svelte
{:else}
syntax