Skip to content

Fix openhuman convert - #931

Merged
tastelikefeet merged 7 commits into
modelscope:mainfrom
tastelikefeet:fix/0731-1
Aug 10, 2026
Merged

Fix openhuman convert#931
tastelikefeet merged 7 commits into
modelscope:mainfrom
tastelikefeet:fix/0731-1

Conversation

@tastelikefeet

@tastelikefeet tastelikefeet commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

接口字段迁移(agent 创建/列表接口)

  • 建仓请求改发布尔 private(注意反语义:private=false 才是公开),不再发已废弃的 visibility 字符串——旧写法会被服务端打回 400,漏传还会默默变成公开
  • 三处 CLI 列表命令改用统一的字段读取逻辑,兼容 Private/private 两种拼写及老服务端的 visibility 字符串(含大小写、空格、数字编码);对外的 visibility="public"/"private" 参数保持不变

openhuman 本地文件识别不到

  • 数据目录原来写死成 ~/.openhuman,但真实文件在 ~/.openhuman/users/<设备id>/workspace/(设备 id 每台机器不同),导致 upload/watch/convert 采集到 0 个文件。改为运行时探测该目录,不硬编码设备 id
  • personalities/<Profile>/ 下每个 Profile 认成独立子 agent,工作区根的 SOUL.md 作为 default 全局人设

qoder command 跨框架转 skill

  • qoder 的 commands/*.md 本质是 skill(host 通过 skill 框架以 /命令名 运行)。原来跨框架转换时按 commands/xxx.md 原样搬运,但目标框架采集规则里没有 commands/,文件落地后无法加载也扫不到——"导入了但用不了"。现改为跨框架时重写成目标框架认的 skills/<命令名>/SKILL.md(内容零转换、只改路径),同框架 qoder→qoder 保持原样

其他

  • setup.cfg 的 flake8 ignore 补上 E123:项目用 yapf 自动格式化且已忽略同族的 E125,漏配 E123 会让 yapf 排版触发 flake8 报错

文件变动:
ms_agent/agent_hub/_commands.py(+8/-…)— 列表命令改用 agent_visibility_label/agent_last_modified
ms_agent/agent_hub/_merge.py(+17)— qoder commands/*.md 跨框架转 skills//SKILL.md
ms_agent/agent_hub/frameworks/openhuman.py(+113)— 用户工作区路径运行时探测 + Profile 当子 agent
setup.cfg(+1/-1)— flake8 ignore 补 E123
tests/agent_hub/test_cli.py(+72)— visibility 读写、create_repo 布尔 private 等回归
tests/agent_hub/test_convert_targetname.py(+61)— qoder command 转 skill 回归
tests/agent_hub/test_workspace.py(+68)— openhuman 用户工作区 / Profile 回归

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@tastelikefeet
tastelikefeet merged commit a4f936c into modelscope:main Aug 10, 2026
1 check failed
@tastelikefeet
tastelikefeet deleted the fix/0731-1 branch August 10, 2026 02:41
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.

2 participants