Skip to content

feat(sim2real-web): add the RDK Camera AI card to the plugin download page - #110

Merged
lx-1997 merged 1 commit into
mainfrom
qoder/downloads-camera-ai
Dec 4, 2026
Merged

lx-1997 merged 1 commit into
mainfrom
qoder/downloads-camera-ai

Conversation

@lx-1997

@lx-1997 lx-1997 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

概要

  • 下载页新增 RDK Camera AI 独立卡片:它和学习平台的 RDK Robot Learning 是两个插件,各有自己的卡片、清单、安装步骤和失败提示。RDK Robot Learning 的卡片、清单与文案未改动。
  • 新增 public/camera-ai-downloads.mjs:读取 /ducklab-mcp/plugins/rdk-camera-ai-downloads.json 填充版本、大小、SHA-256 与下载链接;清单不可用时保留静态兜底链接 rdk-camera-ai-latest.zip 并单独提示。只接受同源 /ducklab-mcp/plugins/ 下的 .zip 且 SHA-256 为 64 位十六进制的条目。
  • 该模块不 import downloads-page.mjs:页面用带 ?v= 的 URL 加载后者,裸路径 import 会实例化第二份并重复执行学习平台卡片的逻辑。
  • ui-ia.spec.mjs 增加结构断言:两张卡片互不指向对方,Camera AI 卡片不使用学习平台的 data-package / data-copy 控件。

验证

  • npm run verify:ui(含新增的 camera-ai-downloads.spec.mjs 5 项与原有下载页 8 项)、npm run verify:layers、prettier、eslint、提交前快速门禁
  • 真实浏览器(Chrome,1280 与 390 两种宽度 × 清单正常/不可用两种状态):无横向溢出、卡片在视口内、两个模块各只请求一次清单、复制 SHA-256 可用、兜底链接正确
  • 部署后公网核对(合并后执行)

数据来源

  • 清单与包已就位:https://rdkstudio.d-robotics.cc/ducklab-mcp/plugins/rdk-camera-ai-downloads.json(1.5.15,SHA-256 e1f4ddb3…,与 GitHub Release camera-ai-v1.5.15 的附件一致)。

… page

The page only offered RDK Robot Learning. RDK Camera AI is a separate
plugin with its own manifest, card, install steps and failure status, so
the page gains a second section filled by its own module instead of a
second entry in the learning-platform manifest.

The new module never imports downloads-page.mjs: the page loads that
module under a versioned URL, so a bare import would instantiate it twice
and run the learning-platform card logic again. A Camera AI release is
shown only when its package sits on the public download host and carries
a valid SHA-256. Structure assertions keep the two cards from pointing at
each other.
@lx-1997
lx-1997 merged commit 66edef9 into main Dec 4, 2026
12 of 28 checks passed
@lx-1997
lx-1997 deleted the qoder/downloads-camera-ai branch December 4, 2026 08:35
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