czdev:元数据本地预检 + 更新合并保留已发布字段 + share_code 透传 - #20
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
配合 packages 仓库的元数据规范统一(CardputerZero/packages#129、#130):
czdev publish生成 meta.json 时,先拉取线上已发布的 meta.json 作为底,store 段字段覆盖其上——registry 固化的uuid、回填分配的share_code等 store 段没写的字段不再被整写冲掉store_meta_policy.py脚本对合并后的元数据跑校验,失败直接终止(文案与 PR 评论一致);离线拉不到脚本则跳过,由 CI 兜底store.share_code透传到 meta.jsonAPP_BUILDER_JSON.md更新为强制 schema(必填项、13 分类枚举、7 项权限布尔、share_code 规则)已用线上真实数据冒烟验证:fontpreview 的 uuid/share_code 在合并后保留,summary/icon/截图路径被正确覆盖和重写;缺字段的元数据被预检拒绝且文案正确。
Made with Cursor