Repository navigation
feat(sim2real-web): add the RDK Camera AI card to the plugin download page - #110
Merged
Merged
Conversation
… 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.
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.
概要
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 位十六进制的条目。importdownloads-page.mjs:页面用带?v=的 URL 加载后者,裸路径 import 会实例化第二份并重复执行学习平台卡片的逻辑。ui-ia.spec.mjs增加结构断言:两张卡片互不指向对方,Camera AI 卡片不使用学习平台的data-package/data-copy控件。验证
npm run verify:ui(含新增的camera-ai-downloads.spec.mjs5 项与原有下载页 8 项)、npm run verify:layers、prettier、eslint、提交前快速门禁数据来源
https://rdkstudio.d-robotics.cc/ducklab-mcp/plugins/rdk-camera-ai-downloads.json(1.5.15,SHA-256e1f4ddb3…,与 GitHub Releasecamera-ai-v1.5.15的附件一致)。