agentgui 1.0.91 → 1.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prd +0 -40
- package/package.json +1 -1
package/.prd
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# AgentGUI HTML Rendering Implementation - IN PROGRESS
|
|
2
|
-
|
|
3
|
-
## Task
|
|
4
|
-
Implement markdown code block parsing within text blocks to enable HTML rendering in conversation messages.
|
|
5
|
-
|
|
6
|
-
## Work Items
|
|
7
|
-
|
|
8
|
-
### 1. Implement parseMarkdownCodeBlocks() in client.js
|
|
9
|
-
- Parse ```language\ncode``` patterns from text blocks
|
|
10
|
-
- Use regex: /```(\w*)\n([\s\S]*?)```/g
|
|
11
|
-
- Return array of parts with type ('text' or 'code') and content/language/code
|
|
12
|
-
- Handle text before, after, and between code blocks
|
|
13
|
-
|
|
14
|
-
### 2. Update renderMessageContent() in client.js
|
|
15
|
-
- For text blocks, check if they contain markdown code blocks
|
|
16
|
-
- If markdown blocks found, parse and render each part
|
|
17
|
-
- For code blocks with language='html', render with innerHTML
|
|
18
|
-
- For other code blocks, render as escaped text with monospace font
|
|
19
|
-
- Apply "Rendered HTML" badge styling for HTML blocks
|
|
20
|
-
|
|
21
|
-
### 3. Add CSS styling for rendered HTML blocks
|
|
22
|
-
- .html-rendered-label: blue background, white text, small font, padding
|
|
23
|
-
- .html-content: white background, border, padding, overflow handling
|
|
24
|
-
- Support both light and dark modes with CSS variables
|
|
25
|
-
|
|
26
|
-
### 4. Test HTML rendering
|
|
27
|
-
- Open "HTML Test" conversation in agent-browser
|
|
28
|
-
- Verify HTML table renders as actual table element
|
|
29
|
-
- Verify "Rendered HTML" badge appears
|
|
30
|
-
- Verify no escaped HTML entities visible
|
|
31
|
-
- Verify no markdown delimiters visible
|
|
32
|
-
- Verify CSS styling applies correctly
|
|
33
|
-
|
|
34
|
-
## Files to Modify
|
|
35
|
-
- /config/workspace/agentgui/static/js/client.js
|
|
36
|
-
- Add parseMarkdownCodeBlocks() method
|
|
37
|
-
- Update renderMessageContent() to use parser for text blocks
|
|
38
|
-
|
|
39
|
-
## Status
|
|
40
|
-
PENDING: Implementation not yet complete
|