mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-08 00:59:57 +08:00
feat: v0.9.0 — Usage analytics, Communication config, 晴辰云 branding, multi-agent channels, 7 bug fixes
This commit is contained in:
@@ -34,7 +34,8 @@ async fn agent_workspace(agent_id: &str) -> Result<PathBuf, String> {
|
||||
|
||||
let stdout = String::from_utf8_lossy(&output.stdout);
|
||||
let agents: serde_json::Value =
|
||||
serde_json::from_str(&stdout).map_err(|e| format!("解析 JSON 失败: {e}"))?;
|
||||
crate::commands::skills::extract_json_pub(&stdout)
|
||||
.ok_or_else(|| "解析 JSON 失败: 输出中未找到有效 JSON".to_string())?;
|
||||
|
||||
if let Some(arr) = agents.as_array() {
|
||||
for a in arr {
|
||||
|
||||
Reference in New Issue
Block a user