feat: v2.2.3 - Stability, Self-Reflector & Intent Alignment
- 버전 2.2.3 상향 및 PATCHNOTES.md 업데이트 - [신규] src/features/selfReflector/ - 성찰 실행/검증/프롬프트 모듈 추가 - [신규] intentAlignment.ts, intentClassifier.ts - 의도 정렬 시스템 추가 - [신규] pixelOfficeState.ts - 픽셀 오피스 상태 관리 추가 - sidebarProvider, dispatcher, chatHandlers 핵심 로직 최적화 - astra-2.2.3.vsix 패키지 생성 완료 (298 tests PASS)
This commit is contained in:
@@ -919,6 +919,382 @@
|
||||
}
|
||||
.company-phase-card.approval button:disabled { opacity: 0.55; cursor: default; }
|
||||
|
||||
/* 3-way 합의 검수 사이클 카드. review-start이 컨테이너를 만들고
|
||||
review-round 이벤트가 .rev-rounds 안에 라운드 한 줄씩 누적. */
|
||||
.company-phase-card.review {
|
||||
border-color: var(--accent-glow, rgba(99,102,241,0.4));
|
||||
}
|
||||
.company-phase-card.review .rev-rounds {
|
||||
display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
|
||||
}
|
||||
.company-phase-card.review .rev-round {
|
||||
border-left: 2px solid var(--border);
|
||||
padding: 4px 8px;
|
||||
background: rgba(99,102,241,0.04);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.company-phase-card.review .rev-round-head {
|
||||
font-size: 10.5px; color: var(--text-bright); font-weight: 600; margin-bottom: 4px;
|
||||
}
|
||||
.company-phase-card.review .rev-line {
|
||||
display: flex; gap: 6px; align-items: flex-start; margin-top: 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
.company-phase-card.review .rev-actor {
|
||||
flex-shrink: 0; min-width: 64px;
|
||||
color: var(--text-dim); font-weight: 600;
|
||||
}
|
||||
.company-phase-card.review .rev-body { flex: 1; min-width: 0; }
|
||||
.company-phase-card.review .rev-body p { margin: 0 0 4px 0; }
|
||||
.company-phase-card.review .rev-end {
|
||||
margin-top: 8px; padding: 4px 8px;
|
||||
font-size: 11px; font-weight: 600;
|
||||
color: var(--text-bright);
|
||||
border-top: 1px dashed var(--border);
|
||||
}
|
||||
|
||||
/* Intent Alignment 카드 — new_task 요청 직후 C-G-C-F 분석 결과를 보여주고
|
||||
질문 / 확인 버튼을 띄움. 다른 phase 카드보다 살짝 무게감을 주려고
|
||||
accent 테두리. */
|
||||
.company-alignment-card {
|
||||
border: 1px solid var(--accent);
|
||||
background: var(--surface);
|
||||
border-radius: 10px;
|
||||
padding: 10px 12px;
|
||||
margin: 6px 0;
|
||||
font-size: 11.5px;
|
||||
}
|
||||
.company-alignment-card.cancelled {
|
||||
border-color: var(--border);
|
||||
opacity: 0.7;
|
||||
}
|
||||
.company-alignment-card .cph-head {
|
||||
color: var(--text-bright); margin-bottom: 6px;
|
||||
}
|
||||
.company-alignment-card .cal-summary {
|
||||
display: grid; grid-template-columns: auto 1fr; gap: 4px 10px;
|
||||
margin: 6px 0; padding: 6px 8px;
|
||||
background: rgba(99,102,241,0.05);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.company-alignment-card .cal-row {
|
||||
display: contents;
|
||||
}
|
||||
.company-alignment-card .cal-key {
|
||||
font-weight: 700; color: var(--text-bright);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.company-alignment-card .cal-val {
|
||||
color: var(--text-primary); word-break: break-word;
|
||||
}
|
||||
.company-alignment-card .cal-val em { color: var(--text-dim); font-style: italic; }
|
||||
.company-alignment-card .cal-questions {
|
||||
margin-top: 6px; padding: 6px 8px;
|
||||
border-left: 2px solid var(--accent);
|
||||
background: rgba(99,102,241,0.04);
|
||||
}
|
||||
.company-alignment-card .cal-q-head {
|
||||
font-weight: 600; color: var(--text-bright); margin-bottom: 4px;
|
||||
}
|
||||
.company-alignment-card .cal-questions ul {
|
||||
margin: 4px 0 4px 16px; padding: 0;
|
||||
}
|
||||
.company-alignment-card .cal-questions li {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.company-alignment-card .cal-hint {
|
||||
margin-top: 4px; font-size: 10.5px;
|
||||
color: var(--text-dim); font-style: italic;
|
||||
}
|
||||
.company-alignment-card .cal-conf {
|
||||
margin-top: 6px; font-size: 10.5px; font-weight: 600;
|
||||
}
|
||||
.company-alignment-card .cal-conf-high { color: #10B981; }
|
||||
.company-alignment-card .cal-conf-medium { color: #F5C518; }
|
||||
.company-alignment-card .cal-conf-low { color: var(--error); }
|
||||
.company-alignment-card .cal-actions {
|
||||
display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap;
|
||||
}
|
||||
.company-alignment-card .cal-actions button {
|
||||
font-size: 11px; padding: 4px 10px; border-radius: 5px; cursor: pointer;
|
||||
}
|
||||
.company-alignment-card .cal-actions button:disabled {
|
||||
opacity: 0.55; cursor: default;
|
||||
}
|
||||
|
||||
/* 고급: 작업 흐름 편집 영역. 기본 접힘 — 일반 사용자는 만질 일 X. */
|
||||
details.pipeline-advanced {
|
||||
border-style: dashed;
|
||||
opacity: 0.85;
|
||||
}
|
||||
details.pipeline-advanced:not([open]) { padding: 8px 12px; }
|
||||
details.pipeline-advanced summary.pipeline-advanced-summary {
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
user-select: none;
|
||||
outline: none;
|
||||
}
|
||||
details.pipeline-advanced summary::-webkit-details-marker { display: none; }
|
||||
details.pipeline-advanced summary .pa-icon { font-size: 13px; }
|
||||
details.pipeline-advanced summary .pa-title {
|
||||
font-size: 11px; font-weight: 700; color: var(--text-bright);
|
||||
}
|
||||
details.pipeline-advanced summary .pa-hint {
|
||||
font-size: 10px; color: var(--text-dim); flex: 1;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
}
|
||||
details.pipeline-advanced[open] summary { margin-bottom: 4px; }
|
||||
details.pipeline-advanced[open] {
|
||||
opacity: 1;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
/* ─────────────── Pixel Office ─────────────── */
|
||||
.pixel-office {
|
||||
display: none;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
margin: 0 12px 6px 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.pixel-office[data-enabled="true"] { display: block; }
|
||||
.pixel-office[data-collapsed="true"] .po-body { display: none; }
|
||||
.po-head {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 6px 10px;
|
||||
background: rgba(99,102,241,0.08);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.pixel-office[data-collapsed="true"] .po-head { border-bottom: none; }
|
||||
.po-head-left { display: flex; align-items: center; gap: 8px; }
|
||||
.po-title { font-size: 11px; font-weight: 700; color: var(--text-bright); }
|
||||
.po-status-label {
|
||||
font-size: 10px; padding: 2px 8px; border-radius: 9999px;
|
||||
background: var(--bg); color: var(--text-dim);
|
||||
font-weight: 600; letter-spacing: 0.02em;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
/* 상태별 색상 강조 — webview JS가 po-status-{status} 클래스를 셋팅. */
|
||||
.po-status-label.po-status-idle { color: var(--text-dim); }
|
||||
.po-status-label.po-status-intake { color: #60A5FA; border-color: #60A5FA; }
|
||||
.po-status-label.po-status-analyzing { color: #A78BFA; border-color: #A78BFA; }
|
||||
.po-status-label.po-status-need_clarification { color: #F5C518; border-color: #F5C518; }
|
||||
.po-status-label.po-status-contract_ready { color: #10B981; border-color: #10B981; }
|
||||
.po-status-label.po-status-planning { color: #22D3EE; border-color: #22D3EE; }
|
||||
.po-status-label.po-status-executing { color: var(--accent); border-color: var(--accent); }
|
||||
.po-status-label.po-status-reviewing { color: #FB923C; border-color: #FB923C; }
|
||||
.po-status-label.po-status-waiting_approval { color: #F472B6; border-color: #F472B6; }
|
||||
.po-status-label.po-status-error { color: var(--error); border-color: var(--error); }
|
||||
.po-status-label.po-status-done { color: #10B981; border-color: #10B981; }
|
||||
|
||||
.po-head-actions { display: flex; gap: 4px; align-items: center; }
|
||||
.po-collapse, .po-expand {
|
||||
background: transparent; border: none; cursor: pointer;
|
||||
color: var(--text-dim); font-size: 12px; line-height: 1;
|
||||
padding: 2px 6px; border-radius: 4px;
|
||||
}
|
||||
.po-collapse:hover, .po-expand:hover {
|
||||
color: var(--accent); background: rgba(99,102,241,0.1);
|
||||
}
|
||||
.pixel-office[data-collapsed="true"] .po-collapse { transform: rotate(-90deg); }
|
||||
|
||||
.po-body {
|
||||
display: grid; grid-template-columns: minmax(140px, 180px) 1fr;
|
||||
gap: 8px; padding: 8px 10px;
|
||||
}
|
||||
@media (max-width: 540px) {
|
||||
.po-body { grid-template-columns: 1fr; }
|
||||
}
|
||||
/* 좌측 — 픽셀 오피스 씬 (캐릭터 + 책상 + 진행률) */
|
||||
.po-scene {
|
||||
display: flex; flex-direction: column; gap: 4px;
|
||||
align-items: center;
|
||||
}
|
||||
.po-char-wrap {
|
||||
position: relative;
|
||||
width: 100%; min-height: 90px;
|
||||
display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
|
||||
padding: 4px 0;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(180deg, rgba(99,102,241,0.05) 0%, rgba(99,102,241,0.0) 70%);
|
||||
}
|
||||
.po-char {
|
||||
position: relative;
|
||||
width: 48px; height: 48px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: var(--bg);
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 8px;
|
||||
transition: transform 0.18s, border-color 0.18s;
|
||||
}
|
||||
.po-char-emoji {
|
||||
font-size: 28px; line-height: 1;
|
||||
}
|
||||
/* 상태에 따른 캐릭터 동작 */
|
||||
.pixel-office[data-status="executing"] .po-char { animation: po-bob 1.6s ease-in-out infinite; }
|
||||
.pixel-office[data-status="analyzing"] .po-char { animation: po-tilt 2.4s ease-in-out infinite; }
|
||||
.pixel-office[data-status="reviewing"] .po-char { animation: po-tilt 1.8s ease-in-out infinite; }
|
||||
.pixel-office[data-status="need_clarification"] .po-char { border-color: #F5C518; }
|
||||
.pixel-office[data-status="waiting_approval"] .po-char { border-color: #F472B6; }
|
||||
.pixel-office[data-status="error"] .po-char {
|
||||
border-color: var(--error);
|
||||
animation: po-shake 0.4s ease-in-out infinite;
|
||||
}
|
||||
.pixel-office[data-status="done"] .po-char { border-color: #10B981; }
|
||||
@keyframes po-bob {
|
||||
0%,100% { transform: translateY(0); }
|
||||
50% { transform: translateY(-3px); }
|
||||
}
|
||||
@keyframes po-tilt {
|
||||
0%,100% { transform: rotate(0deg); }
|
||||
50% { transform: rotate(-4deg); }
|
||||
}
|
||||
@keyframes po-shake {
|
||||
0%,100% { transform: translateX(0); }
|
||||
25% { transform: translateX(-2px); }
|
||||
75% { transform: translateX(2px); }
|
||||
}
|
||||
|
||||
/* 캐릭터 옆 소품 — 상태에 따라 작은 이모지 (돋보기·체크리스트·코드 등) */
|
||||
.po-char-prop {
|
||||
position: absolute;
|
||||
right: -22px; top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 16px;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.po-desk {
|
||||
width: 100%;
|
||||
height: 8px;
|
||||
margin-top: -4px;
|
||||
background: linear-gradient(180deg, var(--border) 0%, var(--bg) 100%);
|
||||
border-radius: 0 0 6px 6px;
|
||||
}
|
||||
.po-progress {
|
||||
width: 100%; height: 4px;
|
||||
background: var(--border);
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.po-progress-bar {
|
||||
height: 100%; background: var(--accent);
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
/* 말풍선 영역 */
|
||||
.po-bubbles {
|
||||
position: absolute;
|
||||
left: 50%; transform: translateX(-50%);
|
||||
bottom: 56px;
|
||||
display: flex; flex-direction: column; align-items: center; gap: 4px;
|
||||
pointer-events: none;
|
||||
width: max-content; max-width: 220px;
|
||||
}
|
||||
.po-bubble {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
font-size: 10.5px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.15);
|
||||
position: relative;
|
||||
animation: po-bubble-in 0.25s ease-out;
|
||||
max-width: 220px;
|
||||
line-height: 1.35;
|
||||
text-align: center;
|
||||
}
|
||||
.po-bubble::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%; bottom: -4px;
|
||||
transform: translateX(-50%) rotate(45deg);
|
||||
width: 6px; height: 6px;
|
||||
background: var(--bg);
|
||||
border-right: 1px solid var(--border);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.po-bubble.po-bubble-warning { border-color: #F5C518; color: #F5C518; }
|
||||
.po-bubble.po-bubble-warning::after { border-color: #F5C518; }
|
||||
.po-bubble.po-bubble-error { border-color: var(--error); color: var(--error); }
|
||||
.po-bubble.po-bubble-error::after { border-color: var(--error); }
|
||||
.po-bubble.po-bubble-success { border-color: #10B981; color: #10B981; }
|
||||
.po-bubble.po-bubble-success::after { border-color: #10B981; }
|
||||
.po-bubble.po-bubble-fading { animation: po-bubble-out 0.3s ease-in forwards; }
|
||||
@keyframes po-bubble-in {
|
||||
from { opacity: 0; transform: translateY(4px) scale(0.92); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
@keyframes po-bubble-out {
|
||||
to { opacity: 0; transform: translateY(-4px) scale(0.92); }
|
||||
}
|
||||
|
||||
/* 우측 — 정보 패널 */
|
||||
.po-panel {
|
||||
display: flex; flex-direction: column; gap: 4px;
|
||||
font-size: 10.5px;
|
||||
min-width: 0;
|
||||
}
|
||||
.po-row {
|
||||
display: grid; grid-template-columns: 60px 1fr;
|
||||
gap: 6px; align-items: baseline;
|
||||
}
|
||||
.po-key {
|
||||
color: var(--text-dim); font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.po-val {
|
||||
color: var(--text-primary);
|
||||
word-break: break-word;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.po-val-status { font-weight: 700; text-transform: lowercase; }
|
||||
.po-section {
|
||||
margin-top: 4px; padding-top: 4px;
|
||||
border-top: 1px dashed var(--border);
|
||||
}
|
||||
.po-section-head {
|
||||
font-size: 10px; font-weight: 700; color: var(--text-bright);
|
||||
margin-bottom: 3px;
|
||||
text-transform: uppercase; letter-spacing: 0.04em;
|
||||
}
|
||||
.po-need-input { margin: 0 0 0 14px; padding: 0; color: var(--text-primary); }
|
||||
.po-need-input li { margin-bottom: 2px; }
|
||||
.po-approval {
|
||||
color: #F472B6; font-style: italic;
|
||||
}
|
||||
.po-contract {
|
||||
display: grid; grid-template-columns: 40px 1fr;
|
||||
gap: 2px 6px;
|
||||
font-size: 10px;
|
||||
}
|
||||
.po-contract-key { color: var(--text-dim); font-weight: 600; }
|
||||
.po-contract-val { color: var(--text-primary); word-break: break-word; }
|
||||
.po-logs {
|
||||
font-size: 9.5px; line-height: 1.4;
|
||||
color: var(--text-dim);
|
||||
max-height: 90px; overflow-y: auto;
|
||||
font-family: var(--font-mono, ui-monospace, monospace);
|
||||
}
|
||||
.po-logs div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
|
||||
/* 의도 분류기가 chat/followup 으로 판정했을 때 채팅에 끼우는 작은 라벨.
|
||||
파이프라인 카드는 절대 만들지 않고 한 줄짜리 메타 텍스트만 — 사용자가
|
||||
"왜 파이프라인이 안 돌았지?" 의문을 즉시 해소할 수 있게 한다. */
|
||||
.company-intent-note {
|
||||
font-size: 10.5px; color: var(--text-dim);
|
||||
padding: 4px 8px; margin: 4px 0;
|
||||
border-left: 2px solid var(--border);
|
||||
}
|
||||
.company-intent-note .cin-label {
|
||||
color: var(--text-bright); font-weight: 600; margin-right: 6px;
|
||||
}
|
||||
.company-intent-note .cin-reason { font-style: italic; }
|
||||
|
||||
/* Project Architecture chip — three-state surface above the input. */
|
||||
.arch-chip {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user