fix(安全): 修复HTML导出中的XSS漏洞并清理调试日志
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

refactor(日志): 替换console.log为tracing日志系统
style(代码): 移除未使用的代码和依赖项

feat(测试): 添加端到端测试文档和CI工作流
docs(变更日志): 更新CHANGELOG.md记录0.1.0版本变更

perf(构建): 更新依赖版本并优化CI流程
This commit is contained in:
iven
2026-03-26 19:49:03 +08:00
parent b8d565a9eb
commit 978dc5cdd8
79 changed files with 3953 additions and 5724 deletions

View File

@@ -1327,7 +1327,13 @@ pub fn run() {
}
// Initialize Viking storage (async, in background)
let runtime = tokio::runtime::Runtime::new().expect("Failed to create tokio runtime");
let runtime = match tokio::runtime::Runtime::new() {
Ok(rt) => rt,
Err(e) => {
tracing::error!("[VikingCommands] Failed to create tokio runtime: {}", e);
return;
}
};
runtime.block_on(async {
if let Err(e) = crate::viking_commands::init_storage().await {
tracing::error!("[VikingCommands] Failed to initialize storage: {}", e);
@@ -1433,6 +1439,8 @@ pub fn run() {
memory::context_builder::estimate_content_tokens,
// LLM commands (for extraction)
llm::llm_complete,
llm::embedding_create,
llm::embedding_providers,
// Browser automation commands (Fantoccini-based Browser Hand)
browser::commands::browser_create_session,
browser::commands::browser_close_session,