Skip to content

refactor(cindy-ping): 统一插件名称与标识 - #198

Merged
GaoWeiLiuXD merged 1 commit into
makecindy:mainfrom
GaoWeiLiuXD:feature/cindy-ping-identity
Oct 23, 2026
Merged

GaoWeiLiuXD merged 1 commit into
makecindy:mainfrom
GaoWeiLiuXD:feature/cindy-ping-identity

Conversation

@GaoWeiLiuXD

@GaoWeiLiuXD GaoWeiLiuXD commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

将 Cindy Ping 的插件身份从 desktop-emotes 统一为 cindy-ping,展示名称保持 Cindy Ping,版本提升至 0.3.8。

范围仅为旧/新插件目录、对应 .tests 文件、根双语 README 和 provisioning.json:同步目录、manifest ID、npm 包名、原生 App/可执行文件名称、构建与运行路径、设置页通信标识。完成标准是引用一致、可构建打包及原功能回归通过。不改客户端、服务端、仓库校验规则、权限或功能行为,不加入旧身份迁移。

What changed / 改了什么

  • desktop-emotes/ → cindy-ping/;四语言展示名均为 Cindy Ping。
  • 原生程序改为 Cindy Ping.app/Contents/MacOS/Cindy Ping,同步 bundle ID、调用路径并重建 arm64/x86_64 程序。
  • 测试、构建、文档及空 audience 注册随目录改名。图片和原生功能源码保持相同字节。

Why / 为什么

延续 #196,让目录、插件标识、包名与 Cindy Ping 品牌一致。旧 ID 的版本未获批上线,本次按新身份处理;已有旧 ID 本地安装不会自动迁移。

Checklist

  • Reviewed the complete diff — 无凭证、真实用户数据、无关生成文件或 node_modules。
  • ghost.json 只声明实际使用的能力;本次不新增能力。
  • 外发失败三态处理保持原实现,本次未修改。
  • 工具声明、设置页与实际行为一致,本次未修改工具语义。
  • 插件版本由 0.3.7 提升为 0.3.8。
  • Cindy device verification / Cindy 实机验证 — 本次新 ID 的 0.3.8 包尚未重新安装实机验证;不以 0.3.7 的验收代替。
  • minCindyVersion 保持 0.1.114,未降低或移除。
  • 原插件身份改名,audience 保持 { "emails": [] },不自动分发。
  • 本地化检查通过,四语言名称一致。
  • 原生 helper 已从未改动的 Swift 源码重新编译及签名;无 TypeScript/src 生成物变更。
  • 未新增或升级第三方依赖,无许可证增量。
  • 提交带 DCO Signed-off-by。

Tool declaration changes / 工具声明改动

无。

Verification / 验证

  • 插件定向回归:20/20 通过;JavaScript 语法、manifest 校验通过。
  • Swift macOS 14+ arm64/x86_64 构建通过,codesign --verify --strict 通过。
  • 源码二进制总额检查、官方脚本打包和 Forge 打包通过;包内名称、原生执行权限和旧标识残留检查通过。
  • 仓库契约:23/24 通过,唯一失败来自 .tests/plugin-contract.test.mjs:476 的禁止删除/改名断言:desktop-emotes: deleting or renaming an official plugin requires an explicit Server migration。此 PR 保留该规则,预计 Repository-wide gates 因本次有意改名失败,需维护者决定是否接受该例外。
  • 本地化、audience、二进制依赖及发布工作流组合:18/21 通过;3 项发布工作流测试在 macOS Bash 3.2 因 ${login,,} / ${author,,} 不支持而失败,Linux CI 核验。
  • 按主干发布 workflow 的调用方式(不传 BASE_SHA/HEAD_SHA)核对当前包契约通过;该流程不执行上述跨版本改名断言。未触发发布。
  • 当前提交与预检暂存树一致。正式脚本产物:42 文件、10,082,580 字节;buildCommit 92dfc903319b472a827ff158f2dfa458171e0dcd,SHA-256 eb5f1da25794456766ee932008c0766a9a3921fa288159f70a25bbbe17db0641。这是本地产物,CI 产物以对应 run 为准。

Sensitive changes / 敏感变更

插件 ID/目录改名、原生 App 标识及可执行资源重建,需要维护者人工 review。子进程仍通过固定绝对路径和空参数数组启动,不经 shell,无新增参数注入面。既有旧身份本地配置不会自动转入新身份;不修改鉴权、网络、任务能力、最低版本、audience 或审核/发布规则。

Signed-off-by: liugaowei <liugaowei@xd.com>
@github-actions

Copy link
Copy Markdown

🤖 Contributor checklist / 贡献检查清单

✅ No missing items detected by this bot. Remaining checks (version bump, tests, packaging) are reported by Verify pull request; maintainers will review. / 本机器人未发现缺失项;版本号、测试、打包由 Verify pull request 报告,维护者会继续 review。

Updated automatically for 92dfc90 (author association: COLLABORATOR). See CONTRIBUTING.md / CONTRIBUTING.zh-CN.md. 本评论自动更新。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T09:56:08.799856Z 92dfc90 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

zqchris commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

看过 92dfc90 的改动:纯改名(目录、ID、包名、原生 App 名和 bundle ID、BroadcastChannel、provisioning),没有新增能力、外联或权限,功能代码不变,这部分没问题。

两件事:

  1. 请在新 ID 的 0.3.8 包上做完实机验收,勾上 checklist 那一项。
  2. Repository-wide gates 红是改名断言触发的,符合预期。我查了运营平台,旧 ID desktop-emotes 只有一个 0.3.7 版本、状态是驳回/下架、下载 0 次,没有用户受影响。这个例外我这边去确认,你不用改测试。

@greptile-apps

greptile-apps Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] 未发现新增代码缺陷,但仍需维护者人工审查、决定改名检查例外,并完成新版包的实机验证。

Summary

敏感变更,需要维护者人工 review。风险等级:high。未经实机验证。

本次将插件目录、ID、npm 包名、原生程序及设置页通信名称统一为 cindy-ping,版本升至 0.3.8。未发现新增的代码缺陷。

  • Cindy Ping uses one new identity across its plugin and native helper.

Reviews (1) · Last reviewed commit: "refactor(cindy-ping): 统一插件名称与标识" · Reviewed by Greptile

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92dfc90331

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread cindy-ping/ghost.json
"schemaVersion": 3,
"minCindyVersion": "0.1.114",
"id": "desktop-emotes",
"id": "cindy-ping",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 提供插件 ID 改名所需的 Server migration

当这个改名经 .github/workflows/pr-verify.yml 的 Validate official plugin publish contract 步骤检查时,workflow 会设置 BASE_SHA,而 .tests/plugin-contract.test.mjs:469-479 明确要求基线中的 desktop-emotes 目录及其 ID 继续存在;我按该步骤用本提交的父/目标 SHA 运行测试,稳定得到 desktop-emotes: deleting or renaming an official plugin requires an explicit Server migration。因此当前变更的必需发布契约检查必定失败;应先提供可由 gate 验证的显式 Server migration,而不是只新增此 ID。

AGENTS.md reference: AGENTS.md:L66-L67

Useful? React with 👍 / 👎.

Comment thread cindy-ping/scripts/build.mjs
@GaoWeiLiuXD
GaoWeiLiuXD merged commit fa698ac into makecindy:main Oct 23, 2026
6 of 8 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.

2 participants