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
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:
@@ -269,28 +269,20 @@ export class PipelineClient {
|
||||
pollIntervalMs: number = 1000
|
||||
): Promise<PipelineRunResponse> {
|
||||
// Start the pipeline
|
||||
console.log('[DEBUG runAndWait] Starting pipeline:', request.pipelineId);
|
||||
const { runId } = await this.runPipeline(request);
|
||||
console.log('[DEBUG runAndWait] Got runId:', runId);
|
||||
|
||||
// Poll for progress until completion
|
||||
let result = await this.getProgress(runId);
|
||||
console.log('[DEBUG runAndWait] Initial progress:', result.status, result.message);
|
||||
|
||||
let pollCount = 0;
|
||||
while (result.status === 'running' || result.status === 'pending') {
|
||||
if (onProgress) {
|
||||
onProgress(result);
|
||||
}
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, pollIntervalMs));
|
||||
pollCount++;
|
||||
console.log(`[DEBUG runAndWait] Poll #${pollCount} for runId:`, runId);
|
||||
result = await this.getProgress(runId);
|
||||
console.log(`[DEBUG runAndWait] Progress:`, result.status, result.message);
|
||||
}
|
||||
|
||||
console.log('[DEBUG runAndWait] Final result:', result.status, result.error || 'no error');
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user