mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
* feat: add get_shape_library tool for AI icon discovery - Add server-side tool that returns shape library documentation - AI can fetch icon/shape names on-demand before generating diagrams - Includes path traversal protection and input sanitization - Library index embedded in tool description for discoverability - Supports 33 libraries: AWS, Azure, GCP, Kubernetes, Cisco, etc. * fix: improve get_shape_library error handling and imports - Move fs/path imports to top of file (avoid dynamic imports per call) - Distinguish file-not-found vs other errors in catch block - Include invalid input in validation error message - Log unexpected errors for debugging * docs: add get_shape_library to system prompt tool list - Add Tool4 (get_shape_library) to available tools section - Add usage guidance in 'Choose the right tool' section - Update AWS icons note to reference get_shape_library for icon discovery * fix: display get_shape_library tool output in chat UI * fix: correct state check for get_shape_library output display * fix: make get_shape_library output respect fold state * style: auto-format with Biome --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1.5 KiB
1.5 KiB
cabinets
Type: mxgraph shapes
Prefix: mxgraph.cabinets
Usage
<mxCell value="label" style="shape=mxgraph.cabinets.{shape};" vertex="1" parent="1">
<mxGeometry x="0" y="0" width="60" height="60" as="geometry" />
</mxCell>
Shapes (54)
auxiliary_contact_contactor_1_32aauxiliary_contact_contactor_32_125acb_1pcb_1p_x10cb_2pcb_2p_x10cb_3pcb_3p_x5cb_4pcb_4p_x5cb_auxiliary_contactcontactor_125_400acontactor_1_32acontactor_32_125adin_raildistribution_block_4p_125a_11_connectionsdistribution_block_4p_125a_11_connections_2mccb_25_63a_3pmccb_25_63a_4pmccb_63_250a_3pmccb_63_250a_4pmotor_cb_125_400amotor_cb_1_32amotor_cb_32_125amotor_protection_cbmotor_starter_125_400amotor_starter_1_32amotor_starter_32_125amotorized_switch_3pmotorized_switch_4pmxgraph.cabinetsovercurrent_relay_125_400aovercurrent_relay_1_32aovercurrent_relay_32_125aplugin_relay_1plugin_relay_2residual_current_device_2presidual_current_device_4psurge_protection_1psurge_protection_2psurge_protection_3psurge_protection_4pterminal_40mm2terminal_40mm2_x10terminal_4_6mm2terminal_4_6mm2_x10terminal_4mm2terminal_4mm2_x10terminal_50mm2terminal_50mm2_x10terminal_6_25mm2terminal_6_25mm2_x10terminal_75mm2terminal_75mm2_x10