Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

本仓库的显著变更按版本倒序记录。验证结果以对应 PR 和发布回执为准。

## 1.1.2 — 2026-12-04

- Studio 安装器从空 MCP 注册表创建连接,回读并验证实际登记的 Node 与脚本路径。已安装副本使用绝对路径,启动不依赖 Studio 的工作目录。
- 下载页与安装包明确提示先导入,再退出 Studio 运行安装器。需要沿用 Studio 登录时可显式选择登录继承。
- 下载页只提供 Studio 通用包,发布流程支持仅发布通用包。基础包与 Apple 芯片专用包自本版起不再更新,已有下载地址继续指向 1.1.1。

## 1.1.1 — 2026-12-04

- OriginMan Workshop 直接打开「数据与仿真」,提示与「快检跟跳 · 8,192 步」按钮一致。旧地址保留算力参数与实验记录深链,由服务端重定向。
Expand Down
2 changes: 1 addition & 1 deletion docs/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.1.0
info:
title: RDK Robot Learning Platform API
version: 1.1.1
version: 1.1.2
description: >-
Versioned control-plane contract for the standalone MicroDuck/RDK Duck
Sim2Real workflow. The legacy /api/sim2real paths are aliases.
Expand Down
2 changes: 1 addition & 1 deletion docs/studio-plugin-runtime-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm run package:plugin -- --out-dir <制品目录> --studio-universal-runtime-di
npm run package:plugin -- --out-dir <制品目录> --studio-target darwin-arm64 --studio-runtime <Node归档>
```

解压后,在 Studio 扩展中心导入并启用插件目录。通用包的默认命令会启动当前系统的随包 Node。首次连接按页面提示登录。若旧安装留下的 MCP 连接仍指向之前的运行时路径,重新运行解压目录中的兼容安装器。Windows 用 `setup-studio-windows.cmd`,macOS 用 `setup-studio-macos.command`。安装器核对导入副本,并更新已有连接的路径。基础插件 ZIP 和 Qoder 安装流程沿用各自的 setup。
解压后,在 Studio 扩展中心导入并启用插件目录。完全退出 Studio,再运行解压目录中的安装器。Windows 用 `setup-studio-windows.cmd`,macOS 用 `setup-studio-macos.command`。安装器核对导入副本,在 Studio 的 MCP 注册表里创建或更新连接,然后验证连接指向已安装的运行时和脚本。重新打开 Studio 后,在 MCP 设置中测试连接并新开一个对话。首次连接按页面提示登录。需要沿用 Studio 登录的用户可显式传入 `--studio-login inherit`。基础插件 ZIP 和 Qoder 安装流程沿用各自的 setup。

发布前在空白的正式版 Studio 配置中完成导入和安装,然后移走解压来源。在 PATH 不含 Node 的条件下核对 Studio 只创建一个机器人学习 MCP 连接,启动文件来自导入副本,工具可用,首次认证状态正确。按实际验收过的系统和架构记录结果。

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@d-robotics/robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"private": false,
"description": "RDK-X5 × MicroDuck robot learning platform for browser simulation, RL training, model artifacts, Sim2Real evaluation, and deployment.",
"homepage": "https://github.com/D-Robotics/robot-learning-platform#readme",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdk-robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"description": "通用机器人学习插件,支持按机型和任务进入仿真与录制、强化学习与模仿学习、Sim2Real 评测与回放、制品管理和受控部署。OriginMan Workshop 提供预置舞蹈、动作组自由编排和舞蹈仿真回放。",
"displayName": "RDK Robot Learning Platform",
"mcpServers": "./.mcp.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdk-robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"description": "通用机器人学习插件,支持按机型和任务进入仿真与录制、强化学习与模仿学习、Sim2Real 评测与回放、制品管理和受控部署。OriginMan Workshop 提供预置舞蹈、动作组自由编排和舞蹈仿真回放。",
"displayName": "RDK Robot Learning Platform",
"mcpServers": "./.mcp.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rdk-robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"description": "通用机器人学习插件,支持按机型和任务进入仿真与录制、强化学习与模仿学习、Sim2Real 评测与回放、制品管理和受控部署。OriginMan Workshop 提供预置舞蹈、动作组自由编排和舞蹈仿真回放。",
"displayName": "RDK Robot Learning Platform",
"mcpServers": "./.mcp.json",
Expand Down
14 changes: 7 additions & 7 deletions plugins/rdk-robot-learning-platform/FILES.sha256
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
d511bc9dcdf2d23f77bd83af862d9a9ea8665f2d0825e7eeea13aa7c9ae70d40 .codex-plugin/plugin.json
1cc424c4dc5a06a6210330d71a1225030bb4d6df8a01db856de0ab5cc5a63f61 .codex-plugin/plugin.json
d8e397af03b5b032f21d0aa967086f0c78b33c87b76f2e9898ae0a144df7de02 .mcp.json
da2c2d8660b24491d2a105baa7334a7c57608a620c40d3f5c3efa3cfccaa1b8e .qoder-plugin/plugin.json
d511bc9dcdf2d23f77bd83af862d9a9ea8665f2d0825e7eeea13aa7c9ae70d40 .rdstudio-plugin/plugin.json
3aba8d70cb2391a040cfccab1aa7a7e9281f4394b32e071ca523180587380f13 .qoder-plugin/plugin.json
1cc424c4dc5a06a6210330d71a1225030bb4d6df8a01db856de0ab5cc5a63f61 .rdstudio-plugin/plugin.json
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
ea323272fdbe4cfeb3318f13e2a0ee7b983ecd4435776fc4218ee4d6e41faba4 README.md
7e287215ca220ed27ebe3e5d740d3ab54367f5ec26bb4c388e29e682b61d214a README.md
bd7b84d85126d8186e7d690159ee038dfb6b8bb609d988ea9e189b821add5cb8 THIRD_PARTY_NOTICES.md
8ffe83addbd05a4626bfe247e1870542651d763c5b580b6e17909a83843029d1 configure.mjs
741f623f21840d24212f9e7d39088d37fe3983377eb107f94d031ec71111575e experience-extension.json
Expand All @@ -16,8 +16,8 @@ bd7b84d85126d8186e7d690159ee038dfb6b8bb609d988ea9e189b821add5cb8 THIRD_PARTY_NO
512c385b487a2e2baef3cb9b0a690b9b4ee7c2521984dd876309beff16da606c mcp/bundle.mjs
ccd805b7927d7bd8a1e67dd4f8c42fe826ccb7e39e12c8c14046ff105b2a62c1 mcp/retained-core.mjs
90083a11362304cab596b10d3432bb587f7939db1e0961e5c44d4ec5e4f66d31 mcp/source-checkout.example.json
62e1a989af8962f906a3c1ad3cb0959ccf2fddeb412a0dce05114e5f5b1b1ba5 plugin.json
d1fc37130bbe2b03febfe0fbebc3062d2778b45c40e9275dd480fdf371f82e0f provenance.json
6695e5e46209ff264bc5ec484ee0293ea97ed81ce69011f3ee0497f5a69c67e3 plugin.json
fb47c3f1dbd20faf9cfcd53eaf664152dd5c6d347ce59d6651c2f6f6bf139a62 provenance.json
69180fff7f969d9997e8f9d57f102b89e8dd64bf79a58971684fd9f42ff8973b references/api-workflows.md
556766514a5d70c22cea788fade80d77b31d0d78398a5e352795a908159ec069 references/classroom-guardrails.md
a770c873487ab28d632b0db684c8a26b77ae4d3633ffa3f362d3f78d0d0f00ec references/cli-capabilities.md
Expand Down Expand Up @@ -74,7 +74,7 @@ f36be13a2c881fc3b313b436497df489707759da3874e1b0ace96b6d36876d46 scripts/experi
cc66d31e44f4fb09286e840896288d7225afbe0c41b6a2b71c97d219cef08e8f scripts/experience.mjs
59bd3dc740d3229c6c8a1567f3275bc8bfa1a9af8b40a616a7fc1027bd25ce87 scripts/experiment-context.mjs
7e1b24835432f0986d256beaa3e4f81efd9d887eb417f6518a741fe78bb36eef scripts/guided-input.mjs
38962a0bb14ae1310e136df4a90c47b30c5fd6b804440093ea6bd1ea8de130bc scripts/install-host.mjs
e979cff213f0366efc7f553d4f3188856f99461460ed0bc614b844199c1298b3 scripts/install-host.mjs
a1f9433dedc7dddd783534a021bb413201a2fe2bbfa80141dcbfd0b321632868 scripts/mcp-app-resource.mjs
6566534557dc88e635cc378ada52d3426cfbbf1e762b52baf28155b05c8bb85c scripts/originman-dance-config.mjs
defb12bb687e2f8278e4d00e9f51cf2bae65294bb35ad94c09d792b8f618be5c scripts/originman-motion.mjs
Expand Down
2 changes: 2 additions & 0 deletions plugins/rdk-robot-learning-platform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

自建算力请看 [Worker 接入协议](references/runner-contract.md),包括 `GET /healthz` 和 `POST /train`。

1.1.2 修复 Studio 插件导入后 MCP 未登记的恢复路径。导入后请退出 Studio 并运行通用包安装器,重新打开 Studio 后测试连接。

1.1.1 让 OriginMan Workshop 直接打开「数据与仿真」,并同步快检按钮提示和插件的板端运行登记工具目录。

1.1.0 五个工具改为短名,使其在 RDK Studio 中可被调用:`rdk_x5_bundle_export`(原 `rdk_originman_cpu_bundle_export`)、`rdk_x5_cpu_rehearse`(原 `rdk_originman_dance_cpu_rehearse`)、`rdk_x5_closed_loop`(原 `rdk_originman_board_closed_loop`)、`rdk_dance_replay_read`(原 `rdk_originman_dance_replay_read`)、`rdk_record_board_run`(原 `rdk_deployment_record_board_run`)。Studio 1.7.0 会把超过 64 字符的调用名折叠成带哈希的别名,而其派发表无法解析该别名,这五个工具此前在清单中可见、调用却返回 Unknown tool。旧名不再提供;平台接口与插件内置核心仍使用 `rdk_deployment_record_board_run`。另新增门禁:所有可暴露工具的 Studio 调用名不得超过 64 字符。
Expand Down
2 changes: 1 addition & 1 deletion plugins/rdk-robot-learning-platform/plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rdk-robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"description": "通用机器人学习插件,支持按机型和任务进入仿真与录制、强化学习与模仿学习、Sim2Real 评测与回放、制品管理和受控部署。OriginMan Workshop 提供预置舞蹈、动作组自由编排和舞蹈仿真回放。"
}
4 changes: 2 additions & 2 deletions plugins/rdk-robot-learning-platform/provenance.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"name": "rdk-robot-learning-platform",
"version": "1.1.1",
"version": "1.1.2",
"description": "通用机器人学习插件,支持按机型和任务进入仿真与录制、强化学习与模仿学习、Sim2Real 评测与回放、制品管理和受控部署。OriginMan Workshop 提供预置舞蹈、动作组自由编排和舞蹈仿真回放。",
"composition": "retained-core-with-host-neutral-workflow-extension",
"coreBundleSha256": "ccd805b7927d7bd8a1e67dd4f8c42fe826ccb7e39e12c8c14046ff105b2a62c1",
Expand Down Expand Up @@ -39,7 +39,7 @@
"scripts/plugin-errors.mjs": "2d89f3b61d8de24c3fb2936141266985d4416d9087b8b642951424c2062d14dd",
"scripts/course-setup.mjs": "5b3606ed3d38c930213260a0103a3fd76db680af435fb96f735f3bee32014fb9",
"scripts/submission-journal.mjs": "3a860e2075ced99dca2cf95a2bd7bcab17248b14ddf264b942cb8342fcbc044f",
"scripts/install-host.mjs": "38962a0bb14ae1310e136df4a90c47b30c5fd6b804440093ea6bd1ea8de130bc",
"scripts/install-host.mjs": "e979cff213f0366efc7f553d4f3188856f99461460ed0bc614b844199c1298b3",
"scripts/studio-login-patch.mjs": "7067513a5ed6c69f9a011c17494d0918aec9793d1f1868f359965cd70de50ce8",
"windows-binding.mjs": "2bd5a6f09a491d5d2c3caaffb64dd56a18c2ce7f699bd4c77360d0300d5d4eb5",
"setup-windows.cmd": "52c01cf497c9af316c69330d38f711d89e45872156df208332c2e1379835cf78",
Expand Down
32 changes: 20 additions & 12 deletions plugins/rdk-robot-learning-platform/scripts/install-host.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function replaceFileSync(temp, target) {
}
}

function syncPreservedConfigToPluginManifest(pluginRoot, mergedConnection) {
function syncPreservedConfigToPluginManifest(pluginRoot, mergedConnection, installedCopy) {
if (!pluginRoot || !mergedConnection || typeof mergedConnection !== 'object') return false;
const manifestFile = path.join(pluginRoot, '.mcp.json');
if (!fs.existsSync(manifestFile)) return false;
Expand All @@ -265,6 +265,10 @@ function syncPreservedConfigToPluginManifest(pluginRoot, mergedConnection) {
if (!entry || typeof entry !== 'object' || Array.isArray(entry)) return false;
const nextEntry = {
...entry,
...(installedCopy && {
command: mergedConnection.command,
args: mergedConnection.args,
}),
...(mergedConnection.env && typeof mergedConnection.env === 'object'
? { env: { ...entry.env, ...mergedConnection.env } }
: {}),
Expand Down Expand Up @@ -375,6 +379,7 @@ export function installStudioConnection(
)
throw Error('Studio数据目录必须是明确的常规目录。');
const registry = path.join(resolvedDirectory, 'plugins-registry.json');
let installedCopy = false;
if (pluginRoot && fs.existsSync(registry)) {
const stat = fs.lstatSync(registry);
if (stat.isSymbolicLink() || !stat.isFile() || stat.size > 2 * 1024 * 1024)
Expand All @@ -383,16 +388,19 @@ export function installStudioConnection(
if (
record?.enabled === true &&
typeof record.installPath === 'string' &&
fs.existsSync(record.installPath) &&
normalizeComparablePath(record.installPath) !== normalizeComparablePath(pluginRoot)
)
return {
installed: false,
needsHostImport: true,
importDirectory: path.resolve(pluginRoot),
reason:
'本次只完成了新版配置。请在 Studio 插件中心更新 RDK Robot Learning Platform,选择本次解压后的完整插件目录。若当前 Studio 只提供「导入本地插件」,先移除插件中心的旧条目,再导入这个目录。完成后新建对话,用 rdk_plugin_status 核对运行版本。',
};
fs.existsSync(record.installPath)
) {
installedCopy =
normalizeComparablePath(record.installPath) === normalizeComparablePath(pluginRoot);
if (!installedCopy)
return {
installed: false,
needsHostImport: true,
importDirectory: path.resolve(pluginRoot),
reason:
'本次只完成了新版配置。请在 Studio 插件中心更新 RDK Robot Learning Platform,选择本次解压后的完整插件目录。若当前 Studio 只提供「导入本地插件」,先移除插件中心的旧条目,再导入这个目录。完成后新建对话,用 rdk_plugin_status 核对运行版本。',
};
}
}
const target = path.join(resolvedDirectory, 'mcp.json');
let existing = null,
Expand Down Expand Up @@ -431,7 +439,7 @@ export function installStudioConnection(
}
const mergedEntry = result.configuration.mcpServers[result.name];
const pluginManifestSynced = pluginRoot
? syncPreservedConfigToPluginManifest(pluginRoot, mergedEntry)
? syncPreservedConfigToPluginManifest(pluginRoot, mergedEntry, installedCopy)
: false;
const registrySync = pluginRoot
? syncStudioPluginRegistryVersion({ directory: resolvedDirectory, pluginRoot, pluginVersion })
Expand Down
7 changes: 4 additions & 3 deletions scripts/package-platform-plugin.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def write_studio_entries(add, studio):
},
}}}), 0o100644)
if studio['universal']:
platform = '此包适用于 Windows x64 和 Apple 芯片 Mac(已内置对应 Node.js 运行时,导入即用);Intel Mac 与 Windows ARM64 双击下方安装器也会自动拉取校验版运行时。'
platform = '此包适用于 Windows x64 和 Apple 芯片 Mac(已内置对应 Node.js 运行时);Intel Mac 与 Windows ARM64 双击下方安装器也会自动拉取校验版运行时。'
launcher = 'Windows 双击 setup-studio-windows.cmd,macOS 双击 setup-studio-macos.command。安装器会选择或准备本机架构的运行时。'
else:
target = studio['runtimes'][0]['target']
Expand All @@ -363,8 +363,9 @@ def write_studio_entries(add, studio):
+ platform + '\n\n'
'1. 解压 ZIP,打开 Studio。\n'
'2. 在扩展中心选择「添加 → 从目录导入插件」,选中解压后的插件目录。升级时选择覆盖安装。\n'
'3. 在扩展中心的 MCP 页测试 rdk-robot-learning-platform 的连接,成功后新建对话说「开始 OriginMan Workshop」。首次访问账号数据按页面提示登录。\n\n'
'只有早期 Studio 无法启动 MCP 或需要额外架构运行时时,才运行兼容安装器。' + launcher + '兼容安装器会核对 Studio 已导入的副本与连接。\n\n'
'3. 完全退出 Studio,运行解压目录中的安装器。' + launcher + '\n'
'4. 重新打开 Studio,在扩展中心的 MCP 页测试 rdk-robot-learning-platform 的连接,成功后新建对话说「开始 OriginMan Workshop」。首次访问账号数据按页面提示登录。\n\n'
'安装器会核对 Studio 已导入的副本,登记学习平台 MCP 连接。\n\n'
'安装完成后,启动文件位于 Studio 的插件安装目录。解压来源可移走。'
'如需停用此插件,也在 Studio 的 MCP 设置中停用机器人学习连接。\n'
).encode(), 0o100644)
Expand Down
33 changes: 28 additions & 5 deletions scripts/portable-studio-setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const allowed = new Set([
'--studio-data-dir',
'--connection-name',
'--resource-id',
'--studio-login',
]);

function readFile(file) {
Expand Down Expand Up @@ -87,11 +88,21 @@ async function verifyImportedFiles(installed) {
}
}

async function verifyWorkshopTools(installed, binary, version) {
const config = JSON.parse(readFile(path.join(installed, '.mcp.json'))).mcpServers[name];
async function verifyWorkshopTools(installed, binary, version, dataDirectory, connectionName) {
const registry = JSON.parse(readFile(path.join(dataDirectory, 'mcp.json')));
const config = registry.mcpServers?.[connectionName];
const entryPoint = path.join(installed, 'scripts', 'experience-mcp.mjs');
if (
config?.command !== binary ||
config.args?.length !== 1 ||
config.args[0] !== entryPoint ||
registry.disabled?.includes(connectionName)
) {
throw Error('Studio MCP 注册未保存。请退出 Studio 后重新运行安装器。');
}
const client = connectMcp({
command: binary,
args: [path.join(installed, 'scripts', 'experience-mcp.mjs')],
command: config.command,
args: config.args,
env: { ...process.env, ...config.env },
timeoutMs: 15_000,
});
Expand Down Expand Up @@ -199,7 +210,19 @@ try {
);
if (child.error) throw child.error;
if (child.status === 0 && child.stdout.includes('"installationState":"installed"')) {
await verifyWorkshopTools(installed, binary, manifest.version);
const receipt = child.stdout
.split(/\r?\n/)
.filter((line) => line.startsWith('{'))
.map((line) => JSON.parse(line))
.find((value) => value.installationState === 'installed');
if (!receipt?.name) throw Error('安装器未报告 Studio MCP 连接名。');
await verifyWorkshopTools(
installed,
binary,
manifest.version,
matchedDataDirectory,
receipt.name,
);
console.log('Workshop 工具连接检查通过。');
}
process.stdout.write(child.stdout ?? '');
Expand Down
Loading
Loading