KimiSwitch Dev
2614f80d0f
v0.6.0: 预设供应商 + 供应商账单查询
...
## 新增
- 15 条主流供应商预设(Kimi Coding / Moonshot / Anthropic /
DeepSeek / 智谱 GLM / z.ai / 阿里百炼 / MiniMax / StepFun /
SiliconFlow / Novita / OpenRouter / OpenAI / Google AI Studio /
火山方舟),通过 PresetPickerModal 一键填表
- 供应商余额/套餐查询(卡片底部 UsageFooter):余额类
(DeepSeek / SiliconFlow / OpenRouter / StepFun / Novita) +
套餐类(Kimi For Coding / 智谱 GLM / MiniMax),5min stale TTL +
force_refresh + 并发 ≤3
- Rust 端 services/ 模块(balance / coding_plan / usage_types),
参考 cc-switch(MIT,© Jason Young)实现
- query_provider_usage 命令:Rust 端从 config 加载 key,
不经 IPC 序列化 API key
- usageKinds 持久化到 SQLite settings(JSON 数组),
load 时合并回 config,导出 config.toml 时不写
- detect_provider 启发式:旧用户升级后自动获得账单支持
- save-time 校验:未完成供应商(缺 api_key / base_url / 模型)
保存时弹 confirm 列出原因;新增未提交 back 时静默 drop
- docs/PROPOSAL-presets-and-usage.md(v0.4-draft 实施档)
- docs/VERIFICATION-CHECKLIST.md(70+ 项手动验证清单)
## 修复
- handleDuplicateProvider 的 alias.slice 漏洞:老数据
非规范 alias 复制不再错位
- handleSelectPreset 不再 auto-save,半成品不会落盘
- handleSwitchProvider 校验取消时自动 refresh 回滚,
不会出现内存改 / 盘没动的脏态
## 文档
- README / README_EN 致谢段补 cc-switch(预设 + 账单)
- README 已知限制与后续建议段(/reload 上游限制调研结论)
- i18n 补 5 条校验 key + 11 条预设 UI key + 12 条账单 key
详见 docs/PROPOSAL-presets-and-usage.md 与
docs/VERIFICATION-CHECKLIST.md
2026-07-29 20:59:53 +08:00
KimiSwitch Dev
b1d137f072
feat: v0.5.0 - provider icon actions, duplicate & connectivity test, dashboard chart fixes
...
- ProviderList: icon buttons (edit/copy/test/delete) via lucide-react, speed-test badge before enable/switch button
- Duplicate provider: deep-copy provider + models as xxx-copy
- test_connectivity command (cc-switch semantics: GET base_url, any HTTP response = reachable), latency badge green/orange/red, auto-dismiss 6s
- Dashboard: daily bars anchored to panel bottom, Card flex height fix (heatmap stays content-height)
2026-07-28 21:04:47 +08:00
KimiSwitch Dev
ebf2dd28d5
feat: v0.4.0 - provider icon system, settings modal & polish
...
- Add provider icon system with extracted icon library (cc-switch based)
- Persist icon and icon_color in SQLite and config.toml
- Add Settings modal (theme / language / update check / silent download)
- Add useTheme and useUpdateCheck hooks
- Add provider icon picker (IconPicker) with search and grid
- Fix icon frame 2-layer color difference in ProviderEdit
- Dashboard heatmap and daily usage improvements
- Sessions page polish and adaptive layout
- Bump version to 0.4.0
2026-07-28 16:01:11 +08:00
KimiSwitch Dev
948e96352e
feat: v0.2.0 - add system tray, clean up unused role field
...
- Replace text '+' icon with centered SVG plus icon for the add-provider button
- Add system tray: minimize-to-tray and quit-from-tray menu (minimize hides window, close exits app)
- Remove unused model role field (no functional effect, only stored/displayed)
- Fix multiple providers showing as active in Kimi Code mode: only the default_model's provider is marked active
- Copy /reload to clipboard after provider switch as a convenience hint
- Bump version to 0.2.0
2026-07-25 16:39:20 +08:00
KimiSwitch Dev
211986a1e5
feat: update provider/model config handling
2026-07-15 19:15:04 +08:00
KimiSwitch Dev
b01a5661b4
feat: unify provider active logic and add env field support for kimi_code_io
2026-07-09 08:44:11 +08:00
KimiSwitch Dev
43b7ad18d0
feat: show /reload hint next to switch provider button in Kimi Code tab
2026-07-09 00:06:03 +08:00
KimiSwitch Dev
155efdf9f3
feat: keep provider records on switch, only mark active; filter on save
2026-07-08 14:25:05 +08:00
KimiSwitch Dev
8c515f42dc
feat: switch provider cleans other custom providers and sets default model
2026-07-08 14:02:09 +08:00
KimiSwitch Dev
af991a7bda
feat: implement Pi Switch i18n UI and agent config switch
2026-07-08 08:53:26 +08:00