Skip to content

feat: 支持 Cursor IDE 宿主适配 - #71

Merged
Li-Sanze merged 5 commits into
mainfrom
feat/cursor-support
Aug 22, 2026
Merged

feat: 支持 Cursor IDE 宿主适配#71
Li-Sanze merged 5 commits into
mainfrom
feat/cursor-support

Conversation

@Li-Sanze

@Li-Sanze Li-Sanze commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

背景

让 Sopify 支持本地 Cursor IDE,同时保留多宿主内核,不创建 Cursor 专用 fork。

本次实现

  • 新增 Cursor host adapter、安装器、Doctor 检查和回归测试
  • 通过用户级本地 Plugin Rule 提供 Cursor IDE 入口
  • 安装 analyze、design、develop、kb、templates 五项 Skills
  • 安装 payload、sopify_writer 和用户级 Hooks
  • Hooks 阻止明显绕过 writer 直接修改 state、handoff 和 receipt
  • README、宿主文档与 GitHub Pages 同步展示 Cursor 支持
  • 发布脚本统一更新通用 Rule 与 Cursor Rule 的版本

工作方式

  • Plugin Rule 负责意图分类、协议入口和阶段路由
  • Skills 负责各阶段流程
  • Hooks 保护 Sopify machine truth
  • sopify_writer 是协议状态的正式写入路径
  • 当前 Cursor Agent 提供 AskQuestion 时优先使用;不可用时回退为简短文本追问

验证

  • 311 passed
  • 78 subtests passed
  • 版本一致性、Shell 脚本语法和 Python 语法检查通过
  • Cursor IDE 可观察证据覆盖:
    • Plugin Rule 显示为 Always
    • Analyze 执行评分门
    • Analyze 与 Design 在产品代码修改前创建 light plan
    • Develop 在确认后执行,并通过 writer 写 receipt
    • Hook 拒绝直接修改受保护 state
    • 已测试模型可展示 Cursor 原生 AskQuestion
  • 独立最终审计:通过,无 P0/P1

边界

  • 支持档位保持 BASELINE_SUPPORTED,不宣称 PROTOCOL_VERIFIED
  • 不要求每个项目安装 .mdc
  • 不新增 runtime、MCP 写接口或 writer CLI
  • Cursor Agent CLI 不自动加载 IDE Plugin Rule
  • Cloud Agent、Plugin Marketplace 发布和显式 finalize 不在本次范围
  • 独立 sessionStart 行为仍未验证,不阻塞本次 baseline

发布

本分支已完成版本 2026-08-22.134737 的发布同步。PR 合并后创建正式 GitHub Release,并用 stable 安装链路复验 Cursor。

@Li-Sanze Li-Sanze changed the title Feat/cursor support feat: 支持 Cursor IDE 宿主适配 Aug 22, 2026
@Li-Sanze
Li-Sanze merged commit 1a386ff into main Aug 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant