container-skill-manifest.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "$comment": "容器技能下发清单(2026-12-03 v2)。provision.sh 开通时下发;scripts/refresh-container-skills.mjs 刷新存量容器。v2 起支持远程仓库:source.type=repo 表示从 skills-storage 仓库拉取,容器内可直接 git clone 更新。新增/替换技能只改这里。",
  3. "version": 2,
  4. "repos": {
  5. "skills-storage": {
  6. "url": "https://git.fmode.cn/nkkj/skills-storage.git",
  7. "public": true,
  8. "comment": "公开只读。容器内可直接 git clone(2026-12-03 实测容器可访问 git.fmode.cn,不可访问 github.com)。",
  9. "containerPath": "/opt/data/skills/custom",
  10. "repoSubdir": "custom"
  11. }
  12. },
  13. "skills": [
  14. {
  15. "name": "container-wecom-setup",
  16. "scope": "custom",
  17. "source": {
  18. "type": "repo",
  19. "repo": "skills-storage",
  20. "path": "custom/container-wecom-setup",
  21. "fallback": "cloud/skills/container-wecom-setup"
  22. },
  23. "files": ["SKILL.md", "wecom_setup.py"],
  24. "executable": ["wecom_setup.py"],
  25. "owner": "hermes:hermes",
  26. "required": true,
  27. "reason": "容器内接通企微渠道。缺它时容器会误走企微云端微服务路径、向用户索取 Fmode 登录态(2026-12-03 实测)。"
  28. }
  29. ],
  30. "excluded": [
  31. {
  32. "name": "container-provision-job",
  33. "reason": "开通执行器,宿主机侧以 root 运行,绝不能进容器(容器内不应具备创建其他容器的权限)。"
  34. },
  35. {
  36. "name": "container-stop-remove",
  37. "reason": "停止/删除容器(影响 R730 全局),属宿主侧运维技能,只在宿主机用。装进用户容器等于给用户一个能停别人服务的工具。"
  38. }
  39. ],
  40. "notes": {
  41. "updateFlow": "改技能 → 推 skills-storage 仓库 → 容器执行 refresh 脚本(或重开容器)。宿主机侧不下发内容,只下发拉取指令。",
  42. "offlineFallback": "容器拉不到仓库时用宿主机侧 fallback 目录(cloud/skills/)兜底,保证开通不被外网依赖卡住。"
  43. }
  44. }