Skip to content

feat(registry): 完善 Web 并迁移至 CPython 与 Neon - #33

Merged
xiaoland merged 16 commits into
mainfrom
feat/registry-web-lovable
Sep 13, 2026
Merged

feat(registry): 完善 Web 并迁移至 CPython 与 Neon#33
xiaoland merged 16 commits into
mainfrom
feat/registry-web-lovable

Conversation

@xiaoland

@xiaoland xiaoland commented Sep 6, 2026

Copy link
Copy Markdown
Member

Registry 的目录、扩展详情与 Publisher 对齐 client-web,并复用 design 的公共 Sass 包。Web、API、静态资源及 Python / Module Federation 分发由一个 CPython 容器交付,持久化迁至 Registry 专属 Neon PostgreSQL,继续使用私有 R2。

  • FastAPI / Jinja、Tortoise ORM / asyncpg 与 boto3 替代 Worker / D1 适配;业务和凭据维护使用 ORM,角色授权使用原生 PostgreSQL DDL。
  • 仅向前的迁移、模型漂移和历史检查纳入 CI;普通 registry_app 读写业务表,owner 仅用于交付迁移。D1 导入在同一事务核验所有逻辑字段,保留原有身份、状态和 R2 key。
  • 文件先检查 release 可读性,再处理 ETag 重验证;blocked 不会被 304 或长期 immutable 缓存绕过。GET / HEAD 保持流式分发及原生协议。
  • 每 PR 独立 Heroku Eco app、Neon 分支和 R2 桶,更新保留数据,部署不生成 demo。运行服务不含 owner 或云平台控制凭据。
  • 浏览器操作等待事件处理器就绪;凭据没有原生表单字段名,避免脚本加载延迟时进入 URL。已轮换验收用过的 PR 凭据。

打开真实 PR 预览,当前为 2a06155d062d4cc655ef52e46b4f5763bd07066f,实际配置 Eco × 1。共享预览保持空目录,只登记 reviewer 凭据。Web 详情与双版本 Publisher 的验收截图及记录来自已删除的临时环境。

最终提交 CI 验证完整仓库检查、PostgreSQL 17、镜像和 HTTP 启动。真实 Eco / Neon / R2 验收覆盖双类型上传、发布、并发与幂等、权限、ETag / blocked;Chromium 覆盖双版本详情、复制、主题、移动端、撤回恢复和搜索,无页面异常或 HTTP 5xx。重新部署完整保留版本记录与文件身份。临时 app、数据库分支、桶及对象凭据已删除并复核,共享 PR 没有扩展或文件。

可信自动预览控制器需进入默认分支后接管;本次通过本机运行同一 Dockerfile 与控制器完成 pre-merge 验收。配套交付约定:InKCre/.github#32

生产 D1 / R2 / Worker 与公开域名尚未改变,也未合并 PR。生产切换须另行授权,按 docs/40-deployment/production-registry.md 暂停旧写入、保全最终快照、导入核验并切流;新库接收写入后不能直接退回旧 D1。父任务入口为 tasks/registry-web-lovable/packet.md,保留至生产和最终验收完成。

@xiaoland
xiaoland marked this pull request as ready for review September 6, 2026 12:48
@xiaoland xiaoland changed the title feat(web): 改进 Registry 发现体验并加入发布者工作台 feat(web): 完善 Registry 详情与发布体验,提供完整 Worker 预览 Sep 6, 2026
@xiaoland xiaoland changed the title feat(web): 完善 Registry 详情与发布体验,提供完整 Worker 预览 feat(registry): 完善 Web 与发布体验,统一 SQLAlchemy 数据访问 Sep 13, 2026
@xiaoland xiaoland changed the title feat(registry): 完善 Web 与发布体验,统一 SQLAlchemy 数据访问 feat(registry): 完善 Web 并迁移至 CPython 与 Neon Sep 13, 2026
@xiaoland
xiaoland merged commit c77300e into main Sep 13, 2026
2 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