fix(desktop): 功能验证 6 项缺陷修复
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

- ISS-002: SkillInfoResponse 增加 source/path 字段,修复技能系统显示 0 个
- ISS-003: Sidebar 添加自动化/技能市场导航入口 + App 返回按钮
- ISS-004: SaaS fetchAvailableModels 添加 .catch() 防限流崩溃
- ISS-006: SaaSSettings/PricingPage 包裹 ErrorBoundary 防白屏
- ISS-008: listModels 加载 localStorage 自定义模型,修复仅显示 1 个模型
- configStore listSkills 映射添加 source/path 转发
This commit is contained in:
iven
2026-04-05 16:12:06 +08:00
parent 7e56b40972
commit 9ee89ff67c
7 changed files with 97 additions and 21 deletions

View File

@@ -30,6 +30,14 @@ pub struct SkillInfoResponse {
pub enabled: bool,
pub triggers: Vec<String>,
pub category: Option<String>,
#[serde(default = "default_source")]
pub source: String,
#[serde(default)]
pub path: Option<String>,
}
fn default_source() -> String {
"builtin".to_string()
}
impl From<zclaw_skills::SkillManifest> for SkillInfoResponse {
@@ -45,6 +53,8 @@ impl From<zclaw_skills::SkillManifest> for SkillInfoResponse {
enabled: manifest.enabled,
triggers: manifest.triggers,
category: manifest.category,
source: "builtin".to_string(),
path: None,
}
}
}