Files
MonkeyCode/desktop/bundle.linux.conf.json
xiaomakuaiz 9cf8ca88e1 feat(desktop): 技能系统——官方技能库随包分发、自定义技能管理、按会话启用
引擎(ohmyagent)没有任何技能协议入口,只在 session/create 时扫描磁盘目录,
壳因此走「技能库权威 + 按会话物化」:

- 内置技能 = 仓库根 plugins/ submodule(MonkeyCodeOfficialPlugins)的
  skills/,经 bundle.resources 目标名 "skills" 随更新分发(三平台打包
  配置 + check_bundle_configs 不变量 + Makefile 守卫 + CI 一并 init);
- 自定义技能 = app_config_dir/skills/,设置页「技能」分区增改删,同名
  覆盖内置(「编辑副本」),skills_* 命令即时落盘不重启引擎;
- 按会话启用 = driver 在每次引擎 session/create 前把启用集重写到
  <engine_dir>/skills/(skills_gate 串行成对),快照落 sidecar;中途改
  选择走 session_call session_set_skills(destroy+resume 重建,历史保留);
- 默认启用 = 出厂规则(云端四件套 + publish-website + 全部自定义)⊕
  skills-defaults.json 显式开关,解析单点在壳,skills_list 以
  default_enabled 下发;
- composer 技能多选菜单(来源 tab + 过滤,行尾对勾),已启用技能进斜杠
  面板(引擎原生 /技能名 展开);
- 顺修:Tauri 解绑已失效监听句柄的良性报错被全局陷阱画成「启动异常」,
  ipc.ts 解绑路径统一兜底。
2026-08-12 19:22:41 +08:00

55 lines
1.1 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"bundle": {
"active": true,
"targets": [
"deb",
"rpm",
"appimage"
],
"externalBin": [
"binaries/ohmyagent"
],
"resources": {
"../browser-extension/dist": "browser-extension",
"../plugins/skills": "skills"
},
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.png"
],
"linux": {
"deb": {
"recommends": [
"gstreamer1.0-plugins-good",
"gstreamer1.0-libav"
],
"section": "devel"
},
"rpm": {
"depends": [
"webkit2gtk4.1",
"gtk3"
],
"recommends": [
"libappindicator-gtk3",
"gstreamer1-plugins-good",
"gstreamer1-libav"
]
},
"appimage": {
"bundleMediaFramework": true
}
}
},
"plugins": {
"updater": {
"endpoints": [
"https://release.monkeycode-ai.com/public/desktop/latest-linux.json"
]
}
}
}