You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(agent): layer mentions and hybrid DOM-native node support
- Clickable layer mention pills in AI chat composer and thread
- Human-readable layer mention labels with tag-derived colors
- AI response mention scanning with machine-readable prompts
- Cached tool-call labels and conversation mention registry
- Lossless HTML-node roundtrip (hybrid DOM-native nodes)
- Windows dev server port probing with cmd timeout fallback
Copy file name to clipboardExpand all lines: server/ai/tools/site/systemPrompt.ts
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,7 @@ Templates (CMS layouts):
69
69
70
70
Notes:
71
71
- Use real ids from the suffix or prior tool results — never invent ids. Class refs accept id OR name.
72
+
- When the user references a specific layer by ID (e.g. "Layer abc123" or "Layers abc123, def456"), extract those nodeIds and use them directly in your tool calls — do not ask the user to describe the element again.
72
73
- Browser write-tool success data uses explicit keys: cssRulesCreated/cssRulesUpdated/cssRulesDeleted/cssPropertiesRemoved for site_apply_css, pageId for site_add_page/site_duplicate_page, nodeId/nodeIds for site_duplicate_node, and nodeIds for HTML inserts.
73
74
- On tool error: read the message and retry with corrected input.
'Update a DOM-native node (a raw HTML element with no module — e.g. <figure>, <blockquote>, <li>, <mark>). Pass `tag` to change the element type, `attributes` to replace all HTML attributes (pass null to clear), or `textContent` to set/clear leaf text (pass null to clear). Use site_update_node_props for module-based nodes instead.',
0 commit comments