added support for Crush agent

This commit is contained in:
Fabrice Aneche
2026-09-11 21:56:22 -04:00
parent 66c42e48b7
commit c2d2db2cfc
14 changed files with 386 additions and 15 deletions
+1
View File
@@ -63,6 +63,7 @@ fn agent_icon(path: &str) -> Option<&'static [u8]> {
"icons/agents/qwen.svg" => include_bytes!("../../assets/icons/agents/qwen.svg"),
"icons/agents/kimi.svg" => include_bytes!("../../assets/icons/agents/kimi.svg"),
"icons/agents/qodercli.svg" => include_bytes!("../../assets/icons/agents/qodercli.svg"),
"icons/agents/crush.svg" => include_bytes!("../../assets/icons/agents/crush.svg"),
_ => return None,
};
Some(bytes)
+2
View File
@@ -761,6 +761,7 @@ pub fn translate_en(key: L10nKey) -> &'static str {
L10nKey::SettingsAgentGoose => "Goose",
L10nKey::SettingsAgentKimiCode => "Kimi Code",
L10nKey::SettingsAgentQoderCLI => "Qoder CLI",
L10nKey::SettingsAgentCrush => "Crush",
L10nKey::SettingsSearchAboutKeywords => "version license credits build update check github",
L10nKey::SettingsSearchAppHttpProxyKeywords => {
"proxy http https socks socks5 clash v2ray network download update"
@@ -857,6 +858,7 @@ pub fn translate_en(key: L10nKey) -> &'static str {
"agent integration hooks install kimi code kimi-code moonshot"
}
L10nKey::SettingsSearchQoderCLIKeywords => "agent integration hooks install qoder qodercli",
L10nKey::SettingsSearchCrushKeywords => "agent integration hooks install crush",
L10nKey::SettingsSearchPiKeywords => "agent integration extension install pi",
L10nKey::SettingsSearchPortForwardingKeywords => {
"ssh tunnel local remote dynamic socks forward rule"
+4
View File
@@ -770,6 +770,7 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> {
L10nKey::SettingsAgentGoose => "Goose",
L10nKey::SettingsAgentKimiCode => "Kimi Code",
L10nKey::SettingsAgentQoderCLI => "Qoder CLI",
L10nKey::SettingsAgentCrush => "Crush",
L10nKey::SettingsSearchAboutKeywords => {
"バージョン ライセンス クレジット ビルド 更新 確認 github about version license credits update check"
}
@@ -910,6 +911,9 @@ pub fn translate_ja(key: L10nKey) -> Option<&'static str> {
L10nKey::SettingsSearchQoderCLIKeywords => {
"エージェント 統合 フック インストール qoder qodercli agent integration hooks install"
}
L10nKey::SettingsSearchCrushKeywords => {
"エージェント 統合 フック インストール crush agent integration hooks install"
}
L10nKey::SettingsSearchPiKeywords => {
"エージェント 統合 拡張 インストール pi agent integration extension install"
}
+3
View File
@@ -587,6 +587,7 @@ l10n_keys! {
SettingsAgentGoose,
SettingsAgentKimiCode,
SettingsAgentQoderCLI,
SettingsAgentCrush,
SettingsSearchAppHttpProxyKeywords,
SettingsSearchAboutKeywords,
SettingsSearchAutoDownloadKeywords,
@@ -642,6 +643,7 @@ l10n_keys! {
SettingsSearchProgramKeywords,
SettingsSearchQwenCodeKeywords,
SettingsSearchQoderCLIKeywords,
SettingsSearchCrushKeywords,
SettingsSearchRememberWindowSizeKeywords,
SettingsSearchReportMouseToAppsKeywords,
SettingsSearchRestoreLastLayoutKeywords,
@@ -1568,6 +1570,7 @@ mod tests {
L10nKey::SettingsAgentPi,
L10nKey::SettingsAgentQwenCode,
L10nKey::SettingsAgentQoderCLI,
L10nKey::SettingsAgentCrush,
// Windows names its backdrop materials, and Japanese Windows keeps
// those names in Latin script — so does this list. Chinese does
// translate them (云母 / 亚克力), which is what Microsoft's own
+2
View File
@@ -677,6 +677,7 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> {
L10nKey::SettingsAgentGoose => "Goose",
L10nKey::SettingsAgentKimiCode => "Kimi Code",
L10nKey::SettingsAgentQoderCLI => "Qoder CLI",
L10nKey::SettingsAgentCrush => "Crush",
L10nKey::SettingsSearchAboutKeywords => {
"关于 版本 许可证 致谢 构建 更新 检查 github about version license credits update"
}
@@ -813,6 +814,7 @@ pub fn translate_zh(key: L10nKey) -> Option<&'static str> {
"Kimi Code 月之暗面 agent 集成 钩子 安装 kimi code moonshot agent integration hooks install"
}
L10nKey::SettingsSearchQoderCLIKeywords => "Qoder CLI agent 集成 钩子 安装 qoder qodercli",
L10nKey::SettingsSearchCrushKeywords => "Crush agent 集成 钩子 安装 crush",
L10nKey::SettingsSearchPiKeywords => {
"Pi agent 集成 扩展 安装 pi agent integration extension install"
}
+5
View File
@@ -661,6 +661,11 @@ fn settings_search_entries() -> &'static [SearchEntry] {
title: SettingsAgentQoderCLI,
keywords: SettingsSearchQoderCLIKeywords,
},
SearchEntry {
section: Agents,
title: SettingsAgentCrush,
keywords: SettingsSearchCrushKeywords,
},
SearchEntry {
section: WindowTabs,
title: SettingsStartupWindow,