mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-30 02:14:43 +08:00
feat(skills): add install from ZIP file feature
- Add open_zip_file_dialog command for selecting ZIP files
- Add install_from_zip service method with recursive skill scanning
- Add install_skills_from_zip Tauri command
- Add frontend API methods and useInstallSkillsFromZip hook
- Add "Install from ZIP" button in Skills management page
- Support local skill ID format: local:{directory}
- Add i18n translations for new feature and error messages
This commit is contained in:
@@ -1054,6 +1054,7 @@
|
||||
"http429": "Too many requests, please wait and retry",
|
||||
"parseMetadataFailed": "Failed to parse skill metadata",
|
||||
"getHomeDirFailed": "Unable to get user home directory",
|
||||
"noSkillsInZip": "No skills found in ZIP file (requires SKILL.md file)",
|
||||
"networkError": "Network error",
|
||||
"fsError": "File system error",
|
||||
"unknownError": "Unknown error",
|
||||
@@ -1064,7 +1065,8 @@
|
||||
"checkRepoUrl": "Please check repository URL and branch name",
|
||||
"checkDiskSpace": "Please check disk space",
|
||||
"checkPermission": "Please check directory permissions",
|
||||
"uninstallFirst": "Please uninstall the existing skill with the same name first"
|
||||
"uninstallFirst": "Please uninstall the existing skill with the same name first",
|
||||
"checkZipContent": "Please verify the ZIP file contains valid skill directories (with SKILL.md files)"
|
||||
}
|
||||
},
|
||||
"repo": {
|
||||
@@ -1113,6 +1115,13 @@
|
||||
"codex": "Codex",
|
||||
"gemini": "Gemini",
|
||||
"opencode": "OpenCode"
|
||||
},
|
||||
"installFromZip": {
|
||||
"button": "Install from ZIP",
|
||||
"installing": "Installing...",
|
||||
"successSingle": "Skill {{name}} installed",
|
||||
"successMultiple": "Successfully installed {{count}} skills",
|
||||
"noSkillsFound": "No skills found in ZIP file (requires SKILL.md file)"
|
||||
}
|
||||
},
|
||||
"deeplink": {
|
||||
|
||||
@@ -1054,6 +1054,7 @@
|
||||
"http429": "请求过于频繁,请等待后重试",
|
||||
"parseMetadataFailed": "解析技能元数据失败",
|
||||
"getHomeDirFailed": "无法获取用户主目录",
|
||||
"noSkillsInZip": "ZIP 文件中未找到技能(需包含 SKILL.md 文件)",
|
||||
"networkError": "网络错误",
|
||||
"fsError": "文件系统错误",
|
||||
"unknownError": "未知错误",
|
||||
@@ -1064,7 +1065,8 @@
|
||||
"checkRepoUrl": "请检查仓库地址和分支名称",
|
||||
"checkDiskSpace": "请检查磁盘空间",
|
||||
"checkPermission": "请检查目录权限",
|
||||
"uninstallFirst": "请先卸载已安装的同名技能"
|
||||
"uninstallFirst": "请先卸载已安装的同名技能",
|
||||
"checkZipContent": "请确认 ZIP 文件包含有效的技能目录(含 SKILL.md 文件)"
|
||||
}
|
||||
},
|
||||
"repo": {
|
||||
@@ -1113,6 +1115,13 @@
|
||||
"codex": "Codex",
|
||||
"gemini": "Gemini",
|
||||
"opencode": "OpenCode"
|
||||
},
|
||||
"installFromZip": {
|
||||
"button": "从 ZIP 安装",
|
||||
"installing": "安装中...",
|
||||
"successSingle": "技能 {{name}} 已安装",
|
||||
"successMultiple": "成功安装 {{count}} 个技能",
|
||||
"noSkillsFound": "ZIP 文件中未找到技能(需包含 SKILL.md 文件)"
|
||||
}
|
||||
},
|
||||
"deeplink": {
|
||||
|
||||
Reference in New Issue
Block a user