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
a1fdc6c93d
feat: v0.5.2 - daily trend refactor + provider/model two-level drill-down
...
- Dashboard: 用量趋势卡片改为外层 tab 容器(下划线 tab),移除卡片标题与内部 pill 切换器
- 用量趋势: 新增 供应商模型用量趋势 tab,与 模型用量趋势 并列
- 供应商 tab 弹窗: 每日用量详情改为两级(供应商 → 模型)分组
- 后端: DailyRow 新增 by_provider_model 嵌套聚合
- 前端: DailyBars 通用化(dimension/colorMap),DailyDetailModal 按 tab 维度渲染
- i18n: 新增 providerDistribution(中/英)
- 版本: 0.5.1 → 0.5.2(tauri.conf / Cargo.toml / package.json / README)
2026-07-29 13:41:04 +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
32de98bff5
feat: v0.3.0 re-release - add dashboard & sessions, hide pi option
...
- Usage dashboard: KPIs, model split, daily bars, year heatmap, recent requests
- Sessions management: list/preview/archive/delete with streaming preview
- Double-click daily bar opens per-model breakdown modal
- Paginated recent requests (30/page)
- Hide pi option from nav (kept code, just removed from UI)
- Timezone fixes: today/day_key/heatmap now use local calendar day
- Streaming preview with 20MB byte cap + 500-char frontend clip
- README attribution to kimicode-dashboard (MIT, JochenYang)
2026-07-28 09:16:21 +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
35b6a9af4c
types: add AgentSettings and related Kimi Code config types
2026-07-09 00:57:33 +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
af991a7bda
feat: implement Pi Switch i18n UI and agent config switch
2026-07-08 08:53:26 +08:00