fix: stabilize zhihu export and dashboard flow

This commit is contained in:
zhaoyilun
2026-04-10 17:09:19 +08:00
parent 4becf81066
commit 34035cdc9c
10 changed files with 955 additions and 276 deletions

View File

@@ -111,10 +111,15 @@ fn write_skill_script(skill_dir: &std::path::Path, relative_path: &str, body: &s
}
fn real_skill_lib_root() -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
let repo_parent = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
.join("skill_lib")
.to_path_buf();
let hyphenated = repo_parent.join("skill-lib");
if hyphenated.exists() {
return hyphenated;
}
repo_parent.join("skill_lib")
}
fn success_browser_response(seq: u64, data: Value) -> BrowserMessage {
@@ -2274,6 +2279,7 @@ fn handle_browser_message_chains_hotlist_skill_into_screen_export_tool() {
}
}),
),
success_browser_response(4, json!({ "navigated": true })),
]));
let browser_tool = BrowserPipeTool::new(
transport.clone(),