Skip to content

czdev:元数据本地预检 + 更新合并保留已发布字段 + share_code 透传 - #20

Merged
eggfly merged 1 commit into
mainfrom
feat/czdev-store-meta-policy
Aug 24, 2026
Merged

czdev:元数据本地预检 + 更新合并保留已发布字段 + share_code 透传#20
eggfly merged 1 commit into
mainfrom
feat/czdev-store-meta-policy

Conversation

@eggfly

@eggfly eggfly commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

概要

配合 packages 仓库的元数据规范统一(CardputerZero/packages#129、#130):

  • 更新即合并czdev publish 生成 meta.json 时,先拉取线上已发布的 meta.json 作为底,store 段字段覆盖其上——registry 固化的 uuid、回填分配的 share_code 等 store 段没写的字段不再被整写冲掉
  • 本地预检:上传任何东西之前,用 packages@main 上 CI 同一个 store_meta_policy.py 脚本对合并后的元数据跑校验,失败直接终止(文案与 PR 评论一致);离线拉不到脚本则跳过,由 CI 兜底
  • store.share_code 透传到 meta.json
  • 新包首发提示:发布时提醒需在 PR 发真机演示视频,维护者人工合并
  • APP_BUILDER_JSON.md 更新为强制 schema(必填项、13 分类枚举、7 项权限布尔、share_code 规则)

已用线上真实数据冒烟验证:fontpreview 的 uuid/share_code 在合并后保留,summary/icon/截图路径被正确覆盖和重写;缺字段的元数据被预检拒绝且文案正确。

Made with Cursor

…ssthrough

- publish now builds meta.json by merging the store section INTO the
  already-published metadata (fetched from the packages repo), so fields
  the manifest does not carry — the registry-pinned uuid, a backfilled
  share_code — survive updates instead of being wiped
- pass store.share_code through to meta.json
- pre-check the merged metadata locally with the exact policy script CI
  runs (fetched from packages@main) before uploading anything; failures
  print the same wording the PR would get and nothing is uploaded
- warn about the first-release human review (demo video) up front
- document the enforced store schema in APP_BUILDER_JSON.md

Co-authored-by: Cursor <cursoragent@cursor.com>
@eggfly
eggfly merged commit 6edd685 into main Aug 24, 2026
3 checks passed
@eggfly
eggfly deleted the feat/czdev-store-meta-policy branch August 24, 2026 03:13
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