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