Compare commits
3
Commits
75e48bc4c6
..
v0.7.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc09a29b9f | ||
|
|
24d37fbbf4 | ||
|
|
54110316b4 |
No files matched your search
@@ -82,10 +82,33 @@ jobs:
|
|||||||
### Downloads by platform
|
### Downloads by platform
|
||||||
|
|
||||||
- **Windows**: `.msi` installer
|
- **Windows**: `.msi` installer
|
||||||
- **macOS**: `.dmg` (unsigned — first launch needs right-click → Open) + `.app`
|
- **macOS**: `.dmg` + `.app`(未签名,仅 Apple Silicon / M 系列芯片)
|
||||||
- **Linux**: `.deb` / `.AppImage` / `.rpm`
|
- **Linux**: `.deb` / `.AppImage` / `.rpm`
|
||||||
|
|
||||||
|
### macOS 安装说明(无开发者账号签名,需一次手动绕过)
|
||||||
|
|
||||||
|
1. 下载 `KimiSwitch_*.dmg`,双击挂载后把 `Kimi Switch.app` 拖入「应用程序」文件夹
|
||||||
|
2. 下载本 Release 附带的 `install-macos.sh`,在终端运行:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash install-macos.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
脚本会自动清除「下载隔离」属性并启动应用,之后可正常使用。
|
||||||
|
3. 手动替代方案:右键 `Kimi Switch.app` → 打开 → 弹窗中点「打开」(或 系统设置 → 隐私与安全性 → 仍要打开)
|
||||||
|
|
||||||
Full changelog: see commit history.
|
Full changelog: see commit history.
|
||||||
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }}
|
prerelease: ${{ contains(github.ref_name, '-rc') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-alpha') }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
args: ${{ matrix.args }}
|
args: ${{ matrix.args }}
|
||||||
|
|
||||||
|
upload-macos-script:
|
||||||
|
name: Attach macOS install script
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Upload install-macos.sh to release
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release upload "${{ github.ref_name }}" scripts/install-macos.sh --clobber
|
||||||
@@ -55,7 +55,13 @@
|
|||||||
## 下载
|
## 下载
|
||||||
|
|
||||||
- **Windows**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.msi`
|
- **Windows**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.msi`
|
||||||
- **macOS**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.dmg`(**未签名** —— 首次启动请右键 → 打开绕过 Gatekeeper)
|
- **macOS**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.dmg`(**未签名**,仅 Apple Silicon / M 系列芯片)。安装请下载 Release 附带的 `install-macos.sh` 一键处理:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash install-macos.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
或手动:把 `Kimi Switch.app` 拖入「应用程序」→ 右键 → 打开 → 点「打开」绕过 Gatekeeper。
|
||||||
- **Linux**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.deb` / `.AppImage` / `.rpm`
|
- **Linux**: [GitHub Releases](https://github.com/billowliu2/KimiSwitch/releases/latest) → `.deb` / `.AppImage` / `.rpm`
|
||||||
|
|
||||||
历史版本(v0.5.x 及之前)请前往 [git.codingplan.site 仓库](https://git.codingplan.site/admin/KimiCodeSwitch/releases)。
|
历史版本(v0.5.x 及之前)请前往 [git.codingplan.site 仓库](https://git.codingplan.site/admin/KimiCodeSwitch/releases)。
|
||||||
|
|||||||
+3
-1
@@ -26,7 +26,9 @@ npm run tauri build -- --bundles app,dmg
|
|||||||
|
|
||||||
Output: `src-tauri/target/release/bundle/{macos,dmg}/`.
|
Output: `src-tauri/target/release/bundle/{macos,dmg}/`.
|
||||||
|
|
||||||
Unsigned: first launch requires right-click → Open to bypass Gatekeeper.
|
Unsigned (no Developer ID account): downloaded copies are blocked by Gatekeeper.
|
||||||
|
For end users, attach `install-macos.sh` (auto-uploaded to each Release) or instruct:
|
||||||
|
right-click → Open, or `xattr -cr "/Applications/Kimi Switch.app"`.
|
||||||
|
|
||||||
### Linux (native)
|
### Linux (native)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "kimiswitch",
|
"name": "kimiswitch",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.1",
|
"version": "0.7.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
## v0.7.2
|
||||||
|
|
||||||
|
### 子代理模型指定(实验功能)
|
||||||
|
|
||||||
|
- 新增「子代理模型(次主力模型)」指定:在实验功能设置中为子代理选择次主力模型后,子代理默认绑定该模型,不再继承主模型
|
||||||
|
- 实验开关改为滑动开关,修复开启态因样式缺失而不可见的问题
|
||||||
|
- 仅保存模型引用,子代理直接继承所选模型的上下文长度与思考模式
|
||||||
|
|
||||||
|
### 模型数据与发布
|
||||||
|
|
||||||
|
- models.dev 模型列表与价格数据同步更新
|
||||||
|
- 官网企业版视觉升级;出品公司标识统一为 codingplan.site
|
||||||
|
- macOS 发布优化:Release 附带 `install-macos.sh` 一键安装脚本(见下方说明)
|
||||||
|
|
||||||
|
### Downloads by platform
|
||||||
|
|
||||||
|
- **Windows**: `.msi` installer
|
||||||
|
- **macOS**: `.dmg` + `.app`(未签名,仅 Apple Silicon / M 系列芯片)
|
||||||
|
- **Linux**: `.deb` / `.AppImage` / `.rpm`
|
||||||
|
|
||||||
|
### macOS 安装说明(无开发者账号签名,需一次手动绕过)
|
||||||
|
|
||||||
|
> 原因:macOS 包未做 Developer ID 签名与公证(无 Apple 开发者账号),系统会拦截从网络下载的未签名应用(Gatekeeper)。`install-macos.sh` 通过清除「下载隔离」属性绕过该拦截,不影响功能与安全。
|
||||||
|
|
||||||
|
1. 下载 `Kimi.Switch_0.7.2_aarch64.dmg`,双击挂载后把 `Kimi Switch.app` 拖入「应用程序」文件夹
|
||||||
|
2. 下载本 Release 附带的 `install-macos.sh`,在终端运行:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
bash install-macos.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
脚本会自动清除下载隔离属性并启动应用,只需执行一次,之后正常使用。
|
||||||
|
3. 手动替代方案:右键 `Kimi Switch.app` → 打开 → 弹窗点「打开」;或 系统设置 → 隐私与安全性 → 仍要打开
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# install-macos.sh — Kimi Switch macOS 一键安装辅助脚本
|
||||||
|
#
|
||||||
|
# 背景:macOS 包未做 Developer ID 签名(无开发者账号),从网络下载后会被
|
||||||
|
# Gatekeeper 的「下载隔离(quarantine)」属性拦截。本脚本清除该属性后启动应用。
|
||||||
|
#
|
||||||
|
# 用法(把 Kimi Switch.app 拖入「应用程序」文件夹后执行):
|
||||||
|
# bash install-macos.sh
|
||||||
|
#
|
||||||
|
# 若脚本提示找不到应用,请先手动把 Kimi Switch.app 拖到 /Applications 再运行。
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
APP_NAME="Kimi Switch"
|
||||||
|
APP_PATH="/Applications/${APP_NAME}.app"
|
||||||
|
DOWNLOADED_DMG_NAME="KimiSwitch.dmg"
|
||||||
|
|
||||||
|
if [ ! -d "$APP_PATH" ]; then
|
||||||
|
echo "❌ 未找到 ${APP_PATH}"
|
||||||
|
echo ""
|
||||||
|
echo "请先把「${APP_NAME}.app」拖到「应用程序」文件夹,再重新运行本脚本:"
|
||||||
|
echo " 1. 双击下载的 ${DOWNLOADED_DMG_NAME}(磁盘映像会自动挂载)"
|
||||||
|
echo " 2. 把其中的 Kimi Switch.app 拖入「应用程序」文件夹"
|
||||||
|
echo " 3. 回到终端重新运行:bash install-macos.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "① 清除「下载隔离」属性(Gatekeeper 拦截的来源)..."
|
||||||
|
xattr -cr "$APP_PATH" 2>/dev/null || true
|
||||||
|
echo " 完成"
|
||||||
|
|
||||||
|
echo "② 验证代码签名状态:"
|
||||||
|
if codesign -dv "$APP_PATH" 2>&1 | grep -q "Signature=adhoc"; then
|
||||||
|
echo " Signature=adhoc(正常,ad-hoc 签名,右键打开即可运行)"
|
||||||
|
else
|
||||||
|
echo " (未检测到签名信息,属正常,不影响本脚本的运行方式)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "③ 正在启动「${APP_NAME}」..."
|
||||||
|
open "$APP_PATH"
|
||||||
|
echo ""
|
||||||
|
echo "✅ 启动完成。"
|
||||||
|
echo ""
|
||||||
|
echo "如果仍提示「无法验证开发者」,请按下面任一种方式再试:"
|
||||||
|
echo " a) 右键 ${APP_NAME}.app → 打开 → 在弹出的提示中点「打开」"
|
||||||
|
echo " b) 系统设置 → 隐私与安全性 → 滚动到「安全性」→ 点「仍要打开」"
|
||||||
|
echo ""
|
||||||
|
echo "首次启动后应用即可正常使用,之后无需重复本操作。"
|
||||||
Generated
+1
-1
@@ -1958,7 +1958,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kimiswitch"
|
name = "kimiswitch"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "kimiswitch"
|
name = "kimiswitch"
|
||||||
version = "0.7.1"
|
version = "0.7.2"
|
||||||
description = "Kimi Switch - model config manager"
|
description = "Kimi Switch - model config manager"
|
||||||
authors = ["you"]
|
authors = ["codingplan.site"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
|
|||||||
@@ -949,6 +949,32 @@ pub fn open_installer(app: tauri::AppHandle, path: String) -> Result<(), String>
|
|||||||
.open_path(&path, None::<&str>)
|
.open_path(&path, None::<&str>)
|
||||||
.map_err(|e| e.to_string())
|
.map_err(|e| e.to_string())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Launch `kimi web` — starts the local Kimi Code Web UI server and opens it
|
||||||
|
/// in the default browser (the code-app web bundle built into kimi-code 0.33+).
|
||||||
|
/// The kimi CLI must be on PATH; the spawned process is detached so the server
|
||||||
|
/// keeps running while Kimi Switch stays open.
|
||||||
|
#[tauri::command]
|
||||||
|
pub fn open_kimi_web() -> Result<(), String> {
|
||||||
|
use std::process::Command;
|
||||||
|
let mut cmd = Command::new("kimi");
|
||||||
|
cmd.arg("web");
|
||||||
|
#[cfg(windows)]
|
||||||
|
{
|
||||||
|
use std::os::windows::process::CommandExt;
|
||||||
|
// CREATE_NO_WINDOW: avoid a console window flashing next to the GUI.
|
||||||
|
cmd.creation_flags(0x08000000);
|
||||||
|
}
|
||||||
|
cmd.spawn()
|
||||||
|
.map(|_| ())
|
||||||
|
.map_err(|e| {
|
||||||
|
if e.kind() == std::io::ErrorKind::NotFound {
|
||||||
|
"kimi executable not found on PATH — install Kimi Code CLI first".to_string()
|
||||||
|
} else {
|
||||||
|
format!("failed to start `kimi web`: {e}")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
/// Preference for Linux is AppImage (portable, no install). If the preferred
|
/// Preference for Linux is AppImage (portable, no install). If the preferred
|
||||||
/// extension is not present, returns None so the UI can fall back to
|
/// extension is not present, returns None so the UI can fall back to
|
||||||
/// "open release page" instead of guessing a less-preferred format.
|
/// "open release page" instead of guessing a less-preferred format.
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ pub fn run() {
|
|||||||
commands::download_update,
|
commands::download_update,
|
||||||
commands::open_installer,
|
commands::open_installer,
|
||||||
commands::open_external_url,
|
commands::open_external_url,
|
||||||
|
commands::open_kimi_web,
|
||||||
commands::kimi_oauth_start,
|
commands::kimi_oauth_start,
|
||||||
commands::kimi_oauth_poll,
|
commands::kimi_oauth_poll,
|
||||||
commands::get_experimental_env_status,
|
commands::get_experimental_env_status,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "Kimi Switch",
|
"productName": "Kimi Switch",
|
||||||
"version": "0.7.1",
|
"version": "0.7.2",
|
||||||
"identifier": "com.kimiswitch.app",
|
"identifier": "com.kimiswitch.app",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
@@ -37,6 +37,7 @@
|
|||||||
"icons/icon.ico",
|
"icons/icon.ico",
|
||||||
"icons/icon.icns"
|
"icons/icon.icns"
|
||||||
],
|
],
|
||||||
|
"publisher": "codingplan.site",
|
||||||
"windows": {
|
"windows": {
|
||||||
"webviewInstallMode": {
|
"webviewInstallMode": {
|
||||||
"type": "downloadBootstrapper"
|
"type": "downloadBootstrapper"
|
||||||
|
|||||||
@@ -24,7 +24,18 @@ const PERMISSION_LABELS: Record<(typeof PERMISSION_DECISIONS)[number], Translati
|
|||||||
ask: "permissionAsk",
|
ask: "permissionAsk",
|
||||||
};
|
};
|
||||||
|
|
||||||
const COMMON_EVENTS = ["PreToolUse", "PostToolUse"] as const;
|
// kimi-code 0.33+ added TurnStarted / UserPromptQueued / TaskStarted /
|
||||||
|
// SessionHeartbeat hook events (plus SessionStart / SessionEnd).
|
||||||
|
const COMMON_EVENTS = [
|
||||||
|
"PreToolUse",
|
||||||
|
"PostToolUse",
|
||||||
|
"TurnStarted",
|
||||||
|
"UserPromptQueued",
|
||||||
|
"TaskStarted",
|
||||||
|
"SessionHeartbeat",
|
||||||
|
"SessionStart",
|
||||||
|
"SessionEnd",
|
||||||
|
] as const;
|
||||||
|
|
||||||
export function AgentSettingsPanel({ rawOther, onChange }: AgentSettingsPanelProps) {
|
export function AgentSettingsPanel({ rawOther, onChange }: AgentSettingsPanelProps) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -91,9 +102,18 @@ export function AgentSettingsPanel({ rawOther, onChange }: AgentSettingsPanelPro
|
|||||||
|
|
||||||
<Card title={t("loopControlSettings")}>
|
<Card title={t("loopControlSettings")}>
|
||||||
<NumberField
|
<NumberField
|
||||||
label={t("maxRetriesPerStep")}
|
label={t("maxAttemptsPerStep")}
|
||||||
value={settings.loop_control?.max_retries_per_step ?? 3}
|
value={
|
||||||
onChange={(v) => updateLoopControl({ max_retries_per_step: v })}
|
settings.loop_control?.max_attempts_per_step ??
|
||||||
|
settings.loop_control?.max_retries_per_step ??
|
||||||
|
3
|
||||||
|
}
|
||||||
|
onChange={(v) =>
|
||||||
|
updateLoopControl({
|
||||||
|
max_attempts_per_step: v,
|
||||||
|
max_retries_per_step: v,
|
||||||
|
})
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
<NumberField
|
<NumberField
|
||||||
label={t("reservedContextSize")}
|
label={t("reservedContextSize")}
|
||||||
|
|||||||
@@ -161,6 +161,24 @@ export function SubagentSettingsPage({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* Kimi Code WebUI quick open */}
|
||||||
|
<Card title={t("webuiSection")}>
|
||||||
|
<p className="text-xs text-content-muted">{t("webuiDesc")}</p>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onClick={async () => {
|
||||||
|
try {
|
||||||
|
await invoke("open_kimi_web");
|
||||||
|
} catch (err) {
|
||||||
|
alert(err instanceof Error ? err.message : String(err));
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
className="mt-3 px-3 py-1.5 text-sm rounded bg-blue-600 text-white hover:bg-blue-500 focus:ring-2 focus:ring-blue-500 focus:outline-none"
|
||||||
|
>
|
||||||
|
{t("openWebUI")}
|
||||||
|
</button>
|
||||||
|
</Card>
|
||||||
|
|
||||||
{/* Subagent: secondary model picker + inherited settings */}
|
{/* Subagent: secondary model picker + inherited settings */}
|
||||||
<Card title={t("secondaryModelSection")}>
|
<Card title={t("secondaryModelSection")}>
|
||||||
<label className="flex items-center gap-3 text-sm text-content-primary">
|
<label className="flex items-center gap-3 text-sm text-content-primary">
|
||||||
|
|||||||
+9
-3
@@ -136,7 +136,7 @@ export const enTranslations: Record<TranslationKey, string> = {
|
|||||||
thinkingMax: "Max",
|
thinkingMax: "Max",
|
||||||
thinkingContextHint: "Thinking uses more context. Ensure the model context length and reserved size are sufficient.",
|
thinkingContextHint: "Thinking uses more context. Ensure the model context length and reserved size are sufficient.",
|
||||||
loopControlSettings: "Loop Control",
|
loopControlSettings: "Loop Control",
|
||||||
maxRetriesPerStep: "Max retries per step",
|
maxAttemptsPerStep: "Max attempts per step",
|
||||||
reservedContextSize: "Reserved context size",
|
reservedContextSize: "Reserved context size",
|
||||||
backgroundSettings: "Background Tasks",
|
backgroundSettings: "Background Tasks",
|
||||||
maxRunningTasks: "Max running tasks",
|
maxRunningTasks: "Max running tasks",
|
||||||
@@ -449,8 +449,8 @@ export const enTranslations: Record<TranslationKey, string> = {
|
|||||||
trendLineTooltip: "{date}\nTokens: {tokens}\nCache hit: {cache}\nRequests: {req}",
|
trendLineTooltip: "{date}\nTokens: {tokens}\nCache hit: {cache}\nRequests: {req}",
|
||||||
trendLineNoData: "No data",
|
trendLineNoData: "No data",
|
||||||
|
|
||||||
// Subagent settings page (experimental flags + secondary model)
|
// Advanced settings page (WebUI quick open + experimental flags + secondary model)
|
||||||
subagentSettings: "Subagent Settings",
|
subagentSettings: "Advanced Settings",
|
||||||
experimentalFlags: "Experimental Features",
|
experimentalFlags: "Experimental Features",
|
||||||
otherExperimentalFlags: "Other Experimental Features",
|
otherExperimentalFlags: "Other Experimental Features",
|
||||||
experimentalFlagsHint:
|
experimentalFlagsHint:
|
||||||
@@ -478,4 +478,10 @@ export const enTranslations: Record<TranslationKey, string> = {
|
|||||||
"Second model config bound to subagents by default; when unset, subagents inherit the primary model. Only the model reference is stored; subagents inherit all of that model's settings",
|
"Second model config bound to subagents by default; when unset, subagents inherit the primary model. Only the model reference is stored; subagents inherit all of that model's settings",
|
||||||
secondaryModelPriorityHint:
|
secondaryModelPriorityHint:
|
||||||
"Priority: explicit tool model param > profile model_preference > this config > inherit primary model",
|
"Priority: explicit tool model param > profile model_preference > this config > inherit primary model",
|
||||||
|
|
||||||
|
// Kimi Code WebUI quick open
|
||||||
|
webuiSection: "Kimi Code WebUI",
|
||||||
|
webuiDesc:
|
||||||
|
"Launch `kimi web` to open the new Web UI in your browser (built into kimi-code 0.33+). Requires the kimi CLI on PATH.",
|
||||||
|
openWebUI: "Open WebUI",
|
||||||
};
|
};
|
||||||
+9
-3
@@ -134,7 +134,7 @@ export const zhTranslations = {
|
|||||||
thinkingMax: "最大",
|
thinkingMax: "最大",
|
||||||
thinkingContextHint: "启用思考会占用更多上下文,请确保模型上下文长度和预留空间足够。",
|
thinkingContextHint: "启用思考会占用更多上下文,请确保模型上下文长度和预留空间足够。",
|
||||||
loopControlSettings: "循环控制",
|
loopControlSettings: "循环控制",
|
||||||
maxRetriesPerStep: "单步重试次数",
|
maxAttemptsPerStep: "单步最大尝试次数",
|
||||||
reservedContextSize: "上下文预留大小",
|
reservedContextSize: "上下文预留大小",
|
||||||
backgroundSettings: "后台任务",
|
backgroundSettings: "后台任务",
|
||||||
maxRunningTasks: "最大并发数",
|
maxRunningTasks: "最大并发数",
|
||||||
@@ -444,8 +444,8 @@ export const zhTranslations = {
|
|||||||
trendLineTooltip: "{date}\nToken: {tokens}\n命中率: {cache}\n请求: {req}",
|
trendLineTooltip: "{date}\nToken: {tokens}\n命中率: {cache}\n请求: {req}",
|
||||||
trendLineNoData: "暂无数据",
|
trendLineNoData: "暂无数据",
|
||||||
|
|
||||||
// Subagent settings page (experimental flags + secondary model)
|
// Advanced settings page (WebUI quick open + experimental flags + secondary model)
|
||||||
subagentSettings: "子代理设置",
|
subagentSettings: "高级设置",
|
||||||
experimentalFlags: "实验功能开关",
|
experimentalFlags: "实验功能开关",
|
||||||
otherExperimentalFlags: "其他实验功能",
|
otherExperimentalFlags: "其他实验功能",
|
||||||
experimentalFlagsHint:
|
experimentalFlagsHint:
|
||||||
@@ -473,6 +473,12 @@ export const zhTranslations = {
|
|||||||
"子代理默认绑定的第二份模型配置;未配置时子代理继承主模型;仅保存模型引用,子代理继承该模型的全部设置",
|
"子代理默认绑定的第二份模型配置;未配置时子代理继承主模型;仅保存模型引用,子代理继承该模型的全部设置",
|
||||||
secondaryModelPriorityHint:
|
secondaryModelPriorityHint:
|
||||||
"优先级:工具显式 model 参数 > 子代理 profile 的 model_preference > 本配置 > 继承主模型",
|
"优先级:工具显式 model 参数 > 子代理 profile 的 model_preference > 本配置 > 继承主模型",
|
||||||
|
|
||||||
|
// Kimi Code WebUI quick open
|
||||||
|
webuiSection: "Kimi Code WebUI",
|
||||||
|
webuiDesc:
|
||||||
|
"启动 kimi web,在浏览器中打开新版 Web 界面(kimi-code 0.33+ 内置 code-app)。需要 kimi 命令在 PATH 中。",
|
||||||
|
openWebUI: "打开 WebUI",
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type TranslationKey = keyof typeof zhTranslations;
|
export type TranslationKey = keyof typeof zhTranslations;
|
||||||
@@ -7,7 +7,7 @@ const DEFAULT_SETTINGS: AgentSettings = {
|
|||||||
keep: "all",
|
keep: "all",
|
||||||
},
|
},
|
||||||
loop_control: {
|
loop_control: {
|
||||||
max_retries_per_step: 3,
|
max_attempts_per_step: 3,
|
||||||
reserved_context_size: 50000,
|
reserved_context_size: 50000,
|
||||||
},
|
},
|
||||||
background: {
|
background: {
|
||||||
@@ -32,15 +32,29 @@ function getSection<T>(rawOther: unknown, key: string): T | undefined {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getAgentSettings(rawOther: unknown): AgentSettings {
|
export function getAgentSettings(rawOther: unknown): AgentSettings {
|
||||||
|
const sectionLoop = getSection<AgentSettings["loop_control"]>(
|
||||||
|
rawOther,
|
||||||
|
"loop_control"
|
||||||
|
);
|
||||||
|
const loop: AgentSettings["loop_control"] = {
|
||||||
|
...DEFAULT_SETTINGS.loop_control,
|
||||||
|
...sectionLoop,
|
||||||
|
};
|
||||||
|
// kimi-code 0.33+ (v2 engine) renamed max_retries_per_step →
|
||||||
|
// max_attempts_per_step; migrate legacy values so they still show and edit.
|
||||||
|
if (
|
||||||
|
sectionLoop &&
|
||||||
|
sectionLoop.max_attempts_per_step === undefined &&
|
||||||
|
sectionLoop.max_retries_per_step !== undefined
|
||||||
|
) {
|
||||||
|
loop.max_attempts_per_step = sectionLoop.max_retries_per_step;
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
thinking: {
|
thinking: {
|
||||||
...DEFAULT_SETTINGS.thinking,
|
...DEFAULT_SETTINGS.thinking,
|
||||||
...getSection<AgentSettings["thinking"]>(rawOther, "thinking"),
|
...getSection<AgentSettings["thinking"]>(rawOther, "thinking"),
|
||||||
},
|
},
|
||||||
loop_control: {
|
loop_control: loop,
|
||||||
...DEFAULT_SETTINGS.loop_control,
|
|
||||||
...getSection<AgentSettings["loop_control"]>(rawOther, "loop_control"),
|
|
||||||
},
|
|
||||||
background: {
|
background: {
|
||||||
...DEFAULT_SETTINGS.background,
|
...DEFAULT_SETTINGS.background,
|
||||||
...getSection<AgentSettings["background"]>(rawOther, "background"),
|
...getSection<AgentSettings["background"]>(rawOther, "background"),
|
||||||
|
|||||||
+846
-238
File diff suppressed because it is too large.
Load diff
+719
-204
File diff suppressed because it is too large.
Load diff
@@ -97,6 +97,11 @@ export interface ThinkingConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface LoopControlConfig {
|
export interface LoopControlConfig {
|
||||||
|
/** v2 engine key (kimi-code 0.33+): `max_retries_per_step` was renamed. */
|
||||||
|
max_attempts_per_step?: number;
|
||||||
|
/** v2 engine key (kimi-code 0.33+): `max_steps_per_run` was renamed. */
|
||||||
|
max_steps_per_turn?: number;
|
||||||
|
/** Legacy v1 key — written in sync so KIMI_CODE_LEGACY_FLAG=1 still works. */
|
||||||
max_retries_per_step?: number;
|
max_retries_per_step?: number;
|
||||||
reserved_context_size?: number;
|
reserved_context_size?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
+48
-8
@@ -16,10 +16,10 @@ const zh = {
|
|||||||
performance: "性能",
|
performance: "性能",
|
||||||
changelog: "更新日志",
|
changelog: "更新日志",
|
||||||
download: "下载",
|
download: "下载",
|
||||||
downloadBtn: "下载 v0.7.0",
|
downloadBtn: "下载 v0.7.2",
|
||||||
},
|
},
|
||||||
hero: {
|
hero: {
|
||||||
badge: "v0.7.0 · 开源 MIT · Windows / macOS / Linux",
|
badge: "v0.7.2 · 开源 MIT · Windows / macOS / Linux",
|
||||||
titleBefore: "统一管理你的",
|
titleBefore: "统一管理你的",
|
||||||
titleAccent: "AI 供应商",
|
titleAccent: "AI 供应商",
|
||||||
titleAfter: "",
|
titleAfter: "",
|
||||||
@@ -140,6 +140,26 @@ const zh = {
|
|||||||
syncedNote: "数据已同步 GitHub Releases",
|
syncedNote: "数据已同步 GitHub Releases",
|
||||||
fallbackNote: "内置版本记录",
|
fallbackNote: "内置版本记录",
|
||||||
entries: [
|
entries: [
|
||||||
|
{
|
||||||
|
version: "v0.7.2",
|
||||||
|
date: "2026-08-07",
|
||||||
|
items: [
|
||||||
|
"子代理模型指定(实验功能):设置中为子代理选择次主力模型,子代理不再默认继承主模型",
|
||||||
|
"实验开关改为滑动开关,修复开启态因样式缺失而不可见的问题",
|
||||||
|
"models.dev 模型列表与价格数据同步更新",
|
||||||
|
"官网企业版视觉升级;出品公司标识统一为 codingplan.site",
|
||||||
|
"macOS 安装优化:Release 附带 install-macos.sh 一键脚本,自动清除下载隔离,免去手动右键打开",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
version: "v0.7.1",
|
||||||
|
date: "2026-08-05",
|
||||||
|
items: [
|
||||||
|
"实验功能设置新增「子代理模型(次主力模型)」配置:选择后子代理绑定该模型,不再继承主模型",
|
||||||
|
"仪表盘用量统计识别子代理请求(__secondary__)独立展示,并缓存次主力模型定价",
|
||||||
|
"自定义网关模型按官方同名模型跨 provider 匹配价格,不再落入兜底估算",
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
version: "v0.7.0",
|
version: "v0.7.0",
|
||||||
date: "2026-08-02",
|
date: "2026-08-02",
|
||||||
@@ -269,7 +289,7 @@ const zh = {
|
|||||||
},
|
},
|
||||||
download: {
|
download: {
|
||||||
title: "下载 Kimi Switch",
|
title: "下载 Kimi Switch",
|
||||||
subtitle: "当前版本 v0.7.0 · Windows / macOS / Linux 三平台已发布",
|
subtitle: "当前版本 v0.7.2 · Windows / macOS / Linux 三平台已发布",
|
||||||
autoUpdate: "应用内置自动检测更新,新版本发布后在设置页一键升级。",
|
autoUpdate: "应用内置自动检测更新,新版本发布后在设置页一键升级。",
|
||||||
ready: "已发布",
|
ready: "已发布",
|
||||||
wip: "开发中",
|
wip: "开发中",
|
||||||
@@ -277,7 +297,7 @@ const zh = {
|
|||||||
mirrorBtn: "镜像下载",
|
mirrorBtn: "镜像下载",
|
||||||
items: [
|
items: [
|
||||||
{ id: "windows", name: "Windows", ready: true, note: ".msi 安装包,系统托盘常驻" },
|
{ id: "windows", name: "Windows", ready: true, note: ".msi 安装包,系统托盘常驻" },
|
||||||
{ id: "macos", name: "macOS", ready: true, note: ".dmg 安装包(Apple Silicon),未签名需右键打开" },
|
{ id: "macos", name: "macOS", ready: true, note: ".dmg 安装包(Apple Silicon),未签名:下载 install-macos.sh 后运行 bash install-macos.sh 一键安装" },
|
||||||
{ id: "linux", name: "Linux", ready: true, note: ".deb / .AppImage / .rpm 三格式" },
|
{ id: "linux", name: "Linux", ready: true, note: ".deb / .AppImage / .rpm 三格式" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -337,10 +357,10 @@ const en: Dict = {
|
|||||||
performance: "Performance",
|
performance: "Performance",
|
||||||
changelog: "Changelog",
|
changelog: "Changelog",
|
||||||
download: "Download",
|
download: "Download",
|
||||||
downloadBtn: "Download v0.7.0",
|
downloadBtn: "Download v0.7.2",
|
||||||
},
|
},
|
||||||
hero: {
|
hero: {
|
||||||
badge: "v0.7.0 · Open source MIT · Windows / macOS / Linux",
|
badge: "v0.7.2 · Open source MIT · Windows / macOS / Linux",
|
||||||
titleBefore: "One app for all your ",
|
titleBefore: "One app for all your ",
|
||||||
titleAccent: "AI providers",
|
titleAccent: "AI providers",
|
||||||
titleAfter: "",
|
titleAfter: "",
|
||||||
@@ -461,6 +481,26 @@ const en: Dict = {
|
|||||||
syncedNote: "Synced from GitHub Releases",
|
syncedNote: "Synced from GitHub Releases",
|
||||||
fallbackNote: "Built-in release notes",
|
fallbackNote: "Built-in release notes",
|
||||||
entries: [
|
entries: [
|
||||||
|
{
|
||||||
|
version: "v0.7.2",
|
||||||
|
date: "2026-08-07",
|
||||||
|
items: [
|
||||||
|
"Subagent model assignment (experimental): pick a secondary model for subagents so they no longer inherit the main model by default",
|
||||||
|
"Experiment toggle converted to a sliding switch, fixing the invisible enabled state",
|
||||||
|
"models.dev model list and pricing snapshot synced",
|
||||||
|
"Enterprise-style website refresh; publisher identity unified as codingplan.site",
|
||||||
|
"macOS install polish: releases now ship install-macos.sh, a one-click script that clears the download quarantine",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
version: "v0.7.1",
|
||||||
|
date: "2026-08-05",
|
||||||
|
items: [
|
||||||
|
"Experimental settings gain a secondary-model picker for subagents, decoupling them from the main model",
|
||||||
|
"Dashboard usage stats identify subagent requests (__secondary__) and show them separately with cached secondary-model pricing",
|
||||||
|
"Custom gateway models match prices against the same-named official model across providers",
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
version: "v0.7.0",
|
version: "v0.7.0",
|
||||||
date: "2026-08-02",
|
date: "2026-08-02",
|
||||||
@@ -589,7 +629,7 @@ const en: Dict = {
|
|||||||
},
|
},
|
||||||
download: {
|
download: {
|
||||||
title: "Download Kimi Switch",
|
title: "Download Kimi Switch",
|
||||||
subtitle: "Current version v0.7.0 · Windows, macOS and Linux now released",
|
subtitle: "Current version v0.7.2 · Windows, macOS and Linux now released",
|
||||||
autoUpdate: "Built-in update detection: upgrade in one click from Settings when a new version ships.",
|
autoUpdate: "Built-in update detection: upgrade in one click from Settings when a new version ships.",
|
||||||
ready: "Available",
|
ready: "Available",
|
||||||
wip: "In development",
|
wip: "In development",
|
||||||
@@ -597,7 +637,7 @@ const en: Dict = {
|
|||||||
mirrorBtn: "China mirror",
|
mirrorBtn: "China mirror",
|
||||||
items: [
|
items: [
|
||||||
{ id: "windows", name: "Windows", ready: true, note: ".msi installer, lives in the system tray" },
|
{ id: "windows", name: "Windows", ready: true, note: ".msi installer, lives in the system tray" },
|
||||||
{ id: "macos", name: "macOS", ready: true, note: ".dmg installer (Apple Silicon), unsigned - right-click to open" },
|
{ id: "macos", name: "macOS", ready: true, note: ".dmg installer (Apple Silicon), unsigned: download install-macos.sh and run bash install-macos.sh for one-click install" },
|
||||||
{ id: "linux", name: "Linux", ready: true, note: ".deb / .AppImage / .rpm" },
|
{ id: "linux", name: "Linux", ready: true, note: ".deb / .AppImage / .rpm" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,25 +8,27 @@ const icons: Record<string, Icon> = {
|
|||||||
linux: LinuxLogo,
|
linux: LinuxLogo,
|
||||||
};
|
};
|
||||||
|
|
||||||
const VERSION = "0.7.0";
|
const VERSION = "0.7.2";
|
||||||
const GITHUB = "https://github.com/billowliu2/KimiSwitch";
|
const GITHUB = "https://github.com/billowliu2/KimiSwitch";
|
||||||
const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releases";
|
const MIRROR_RELEASES = "https://git.codingplan.site/admin/KimiCodeSwitch/releases";
|
||||||
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
|
const dl = (file: string) => `${GITHUB}/releases/download/v${VERSION}/${file}`;
|
||||||
|
|
||||||
/** Per-platform download assets for the current release (names match the CI
|
/** Per-platform download assets for the current release (names match the CI
|
||||||
* release workflow, e.g. Kimi.Switch_0.7.0_x64_en-US.msi). */
|
* release workflow. NOTE: tauri-bundler keeps the productName verbatim, so the
|
||||||
|
* real asset is "Kimi Switch_0.7.2_…" (space), URL-encoded as %20. */
|
||||||
const assets: Record<string, { label: string; href: string }[]> = {
|
const assets: Record<string, { label: string; href: string }[]> = {
|
||||||
windows: [
|
windows: [
|
||||||
{ label: "MSI", href: dl("Kimi.Switch_0.7.0_x64_en-US.msi") },
|
{ label: "MSI", href: dl("Kimi%20Switch_0.7.2_x64_en-US.msi") },
|
||||||
{ label: "镜像", href: MIRROR_RELEASES },
|
{ label: "镜像", href: MIRROR_RELEASES },
|
||||||
],
|
],
|
||||||
macos: [
|
macos: [
|
||||||
{ label: "Apple Silicon (.dmg)", href: dl("Kimi.Switch_0.7.0_aarch64.dmg") },
|
{ label: "Apple Silicon (.dmg)", href: dl("Kimi%20Switch_0.7.2_aarch64.dmg") },
|
||||||
|
{ label: "安装脚本", href: dl("install-macos.sh") },
|
||||||
],
|
],
|
||||||
linux: [
|
linux: [
|
||||||
{ label: ".deb", href: dl("Kimi.Switch_0.7.0_amd64.deb") },
|
{ label: ".deb", href: dl("Kimi%20Switch_0.7.2_amd64.deb") },
|
||||||
{ label: ".AppImage", href: dl("Kimi.Switch_0.7.0_amd64.AppImage") },
|
{ label: ".AppImage", href: dl("Kimi%20Switch_0.7.2_amd64.AppImage") },
|
||||||
{ label: ".rpm", href: dl("Kimi.Switch-0.7.0-1.x86_64.rpm") },
|
{ label: ".rpm", href: dl("Kimi%20Switch-0.7.2-1.x86_64.rpm") },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user