Skip to content

Releases: dsphper/lanhu-mcp

v1.7.0

Choose a tag to compare

@dsphper dsphper released this 10 Jun 06:01
2bcd77b

Release v1.7.0
🎉 亮点 / Highlights
本版本新增 Axure 原型标注自动提取 能力,AI 在分析蓝湖 Axure 文档时,可直接读取标注文本及其原生位置信息,不再只能依赖图片级数据。

This release adds automatic Axure annotation extraction. When analyzing Lanhu Axure documents, AI can now read annotation text and native position data directly — not just image-level information.

✨ 新增功能 / Added
Axure 标注提取(原生位置) — 从 Axure 原生 .annnote 节点提取标注位置,通过 page.annotations + objectPaths[ownerId].scriptId 映射获取标注内容

输出包含:标注标题、注释文本、标注位置(x/y/w/h)、目标控件位置、已定位/未定位统计

新增单元测试 tests/test_axure_annotations.py

Axure annotation extraction (native positions) — positions from native .annnote nodes; content mapped via page.annotations + objectPaths[ownerId].scriptId

Output includes: label, note text, annotation rect, target widget rect, located/unlocated stats

Added unit tests in tests/test_axure_annotations.py

🔗 关联 Issue / Related Issues
Related to #14 — 支持读取设计图中的标注信息(尺寸、位置、注释文本等),减少 AI 还原设计稿时「缺少颜色/字体/标注详情」的问题。

Related to #34 — 在结构化导出(store_schema_revise)暂不可用的情况下,提供 Axure 标注文本的替代提取路径,可直接获取原型中的交互说明与注释内容。

Related to #14 — Enables reading design annotation info (dimensions, positions, note text), reducing cases where AI reports missing color/font/annotation details when recreating designs.

Related to #34 — Provides an alternative path to extract Axure annotation text when structured export (store_schema_revise) is unavailable, so interaction notes and comments can be retrieved directly from prototypes.

v1.6.2

Choose a tag to compare

@dsphper dsphper released this 21 May 05:37
v1.6.2: MCP config hints respect SERVER_PORT in .env

v1.5.3

Choose a tag to compare

@dsphper dsphper released this 13 Apr 06:58

优化代码

v1.5.2

Choose a tag to compare

@dsphper dsphper released this 10 Apr 08:15

优化切图下载逻辑

v1.5.0

Choose a tag to compare

@dsphper dsphper released this 09 Apr 07:25

支持下载指定倍率切图

v1.4.0

Choose a tag to compare

@dsphper dsphper released this 26 Mar 02:48

v1.4.0

v1.3.0

Choose a tag to compare

@dsphper dsphper released this 17 Mar 07:19

新功能:代码生成后还原度核查(STEP 5)

在 lanhu_get_ai_analyze_design_result 工具中新增强制性的代码还原度核查步骤,确保 AI 在交付代码前逐属性验证设计还原质量。

变更内容

RULE 5(工具 docstring):平台无关的还原度核查规则,暴露给所有 MCP 客户端
STEP 5(运行时 prompt):每次调用时自动下发给 AI
核查覆盖 10 项,适用所有平台(HTML/Flutter/SwiftUI/Compose/Android): ① 尺寸约束(height vs min-height) ② 裁剪(overflow:hidden) ③ 颜色值精度(rgba 转换不得偏移) ④ 渐变不退化为纯色 ⑤ 绝对定位坐标原样映射 ⑥ 字体 family/weight/size 完整保留 ⑦ 间距各方向数值不得改动 ⑧ 图片资源不得被替换 ⑨ 元素不得遗漏 ⑩ 不得残留蓝湖 CDN 远程地址