Refactor project analysis phases: remove diagram generation phase, enhance report generation with detailed structure and quality checks, and introduce consolidation agent for cross-module analysis. Update CLI commands to support final output options and improve history management with copy functionality.

This commit is contained in:
catlog22
2025-12-26 12:13:27 +08:00
parent 89f6ac6804
commit 0c0301d811
15 changed files with 2037 additions and 639 deletions

View File

@@ -69,8 +69,10 @@ async function renderCliHistoryView() {
'</div>'
: '';
// Normalize sourceDir: convert backslashes to forward slashes for safe onclick handling
var normalizedSourceDir = (exec.sourceDir || '').replace(/\\/g, '/');
historyHtml += '<div class="history-item' + (isSelected ? ' history-item-selected' : '') + '" ' +
'onclick="' + (isMultiSelectMode ? 'toggleExecutionSelection(\'' + exec.id + '\')' : 'showExecutionDetail(\'' + exec.id + '\', \'' + (exec.sourceDir || '').replace(/\'/g, "\\'") + '\')') + '">' +
'onclick="' + (isMultiSelectMode ? 'toggleExecutionSelection(\'' + exec.id + '\')' : 'showExecutionDetail(\'' + exec.id + '\', \'' + normalizedSourceDir.replace(/'/g, "\\'") + '\')') + '">' +
checkboxHtml +
'<div class="history-item-main">' +
'<div class="history-item-header">' +
@@ -182,6 +184,16 @@ async function renderCliHistoryView() {
}
// ========== Actions ==========
async function copyExecutionId(executionId) {
try {
await navigator.clipboard.writeText(executionId);
showRefreshToast('ID copied: ' + executionId, 'success');
} catch (err) {
console.error('Failed to copy ID:', err);
showRefreshToast('Failed to copy ID', 'error');
}
}
async function filterCliHistoryView(tool) {
cliHistoryFilter = tool || null;
await loadCliHistory();