feat: upgrade core agent workflow and system utilities
This commit is contained in:
@@ -1728,45 +1728,6 @@ export class SidebarChatProvider implements vscode.WebviewViewProvider, BridgeIn
|
||||
.step.active .step-label { color: var(--accent); }
|
||||
.step.complete .step-label { color: var(--success); }
|
||||
|
||||
/* --- Rationale View (Thought Process) --- */
|
||||
.rationale-container {
|
||||
margin: 12px 0;
|
||||
padding: 16px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-left: 3px solid var(--accent);
|
||||
border-radius: 4px 12px 12px 4px;
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
animation: slideIn 0.3s ease-out;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.rationale-header {
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: var(--accent);
|
||||
margin-bottom: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.rationale-section {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.rationale-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-weight: 700;
|
||||
color: var(--text-bright);
|
||||
margin-bottom: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.rationale-content {
|
||||
color: var(--text-dim);
|
||||
padding-left: 20px;
|
||||
}
|
||||
@media (min-width: 360px) {
|
||||
.header-controls {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
@@ -2080,24 +2041,6 @@ export class SidebarChatProvider implements vscode.WebviewViewProvider, BridgeIn
|
||||
msgEl.className = 'msg ' + (isUser ? 'msg-user' : 'msg-ai');
|
||||
msgEl._raw = text;
|
||||
|
||||
// If rationale exists and it's an AI message, add the Rationale View
|
||||
if (!isUser && rationale && (rationale.problem || rationale.goal || rationale.reasoning)) {
|
||||
const ratDiv = document.createElement('div');
|
||||
ratDiv.className = 'rationale-container';
|
||||
let ratHtml = '<div class="rationale-header"><span>🧠</span> Thought Process</div>';
|
||||
if (rationale.problem) {
|
||||
ratHtml += '<div class="rationale-section"><div class="rationale-label"><span>⚠️</span> Problem</div><div class="rationale-content">' + rationale.problem + '</div></div>';
|
||||
}
|
||||
if (rationale.goal) {
|
||||
ratHtml += '<div class="rationale-section"><div class="rationale-label"><span>💡</span> Goal</div><div class="rationale-content">' + rationale.goal + '</div></div>';
|
||||
}
|
||||
if (rationale.reasoning) {
|
||||
ratHtml += '<div class="rationale-section"><div class="rationale-label"><span>✅</span> Rationale</div><div class="rationale-content">' + rationale.reasoning + '</div></div>';
|
||||
}
|
||||
ratDiv.innerHTML = ratHtml;
|
||||
chat.appendChild(ratDiv);
|
||||
}
|
||||
|
||||
const head = document.createElement('div');
|
||||
head.className = 'msg-head';
|
||||
head.innerHTML = isUser ? '<div class="av av-user">U</div> You' : '<div class="av av-ai">✦</div> G1nation';
|
||||
|
||||
Reference in New Issue
Block a user