Skip to content

Alex v0.0.6

Choose a tag to compare

@github-actions github-actions released this 21 Nov 14:46
· 17 commits to main since this release

What's New in Alex v0.0.6

中文更新亮点

  • 双向 MCP 原型创作引擎(--mode readwrite):
    • @protoflow-ai/mcp 扩展为 18 个契约受控工具 + 6 个引导式 Prompts + 4 个规格/操作手册资源,同时提供独立的 alex-protoflow-designer Agent Skill(含 4 份场景指南)。
    • 外部 AI 客户端(Codex、Google Antigravity、Claude Desktop、Claude Code)可直接新建 .pflow 工程、编排导航目录、设计共享物理 ER 表(外键与联合唯一约束强校验)、灌入自洽样例数据、整页生成或按 pfId 无损局部修改桌面(<Page>)与移动端(<MobilePage>)页面、挂载需求便签、编写 Markdown 文档与 Mermaid 流程图,并通过 protoflow_audit_project 完成闭环巡检。
  • 桌面端实时画布桥接(--desktop-bridge)与多步撤销:
    • 在桌面端打开工程后开启 「MCP 接入 → 本地 → 双向设计」,即可通过本机鉴权桥接将当前工程 revision、activePageId 与画布选中的组件 selectedPfId 实时暴露给外部 Agent。
    • 外部修改直接进入桌面自动保存队列实时上屏落盘,内置 expectedRevision 乐观锁与 Hermes 任务互斥保护;支持顶部修改提示条及焦点感知的 Cmd/Ctrl+Z 逐步撤销(焦点位于输入框时保留原生文本撤销)。
  • 确定性离屏画布截图复核(protoflow_capture_preview):
    • 隔离沙箱窗口支持按页面或手机视口(scope: "viewport" | "canvas")截取高清 PNG,支持 fullPage: true 长页展开(最高 2160 CSS 像素并返回 truncated 标记)及最低 1280 CSS 像素桌面视口保证,不打断当前画布选中态、滚动位置与撤销栈。
    • 默认自动等待 ECharts 图表无动画同步刷帧与 Freeform 沙箱 iframe 首帧绘制完成,并在截图前后二次核验工程版本。
  • 客户端一键安装与可分发扩展包:
    • 面板支持一键 安装 Antigravity 插件、导出 Claude Desktop .mcpb 扩展,以及 Codex(支持 $CODEX_HOME/skills)/ Antigravity / Claude Code 设计 Skill 安装;内置 .alex-install.json SHA-256 清单校验,跨版本平滑升级的同时严格保护用户自定义修改。
    • 发行附件新增可分发的 alex-protoflow-designer-antigravity.zip 与 alex-protoflow-designer.mcpb。

Highlights (English)

  • Bidirectional MCP Prototype Authoring (--mode readwrite):
    • Expanded @protoflow-ai/mcp to 18 contract-enforced tools, 6 prompts, and 4 resources, paired with the alex-protoflow-designer Agent Skill pack.
    • Codex, Google Antigravity, Claude Desktop, and Claude Code can now create .pflow projects, organize sitemaps, model shared physical ER tables with FK & composite-unique validation, seed coherent preview rows, write or losslessly patch desktop (<Page>) and mobile (<MobilePage>) pages, attach sticky-note specs, author PRD notes & Mermaid diagrams, and run protoflow_audit_project closed-loop audits.
  • Live Desktop Canvas Bridge (--desktop-bridge) & Multi-Step Undo:
    • Enable MCP → Local → Bidirectional design in Alex Desktop to share live revision, activePageId, and canvas-selected selectedPfId over an authenticated loopback bridge.
    • Edits stream directly onto the live canvas via the desktop autosave queue with optimistic expectedRevision checks, Hermes task locking, top-bar undo notices, and focus-aware Cmd/Ctrl+Z multi-step undo.
  • Deterministic Visual Preview Capture (protoflow_capture_preview):
    • Sandboxed offscreen capture returns high-DPI PNGs of desktop surfaces (minimum 1280 CSS px width) or mobile screens (viewport / canvas), supporting fullPage: true up to 2160 CSS px with truncated reporting while preserving editor selection and undo history.
    • Automatically waits for zero-animation ECharts flushes and Freeform iframe first paint before capturing.
  • One-Click Client Integrations & Distributable Bundles:
    • One-click Antigravity plugin installer, Claude Desktop .mcpb exporter, and standalone Codex / Antigravity / Claude Code skill installers ($CODEX_HOME/skills & ~/.agents/skills) with .alex-install.json SHA-256 receipt verification for safe in-place upgrades.
    • Distributable alex-protoflow-designer-antigravity.zip and alex-protoflow-designer.mcpb bundles are now attached directly to GitHub Releases.

Full Changelog: v0.0.5...v0.0.6