초기 커밋 — 협상 AI 에이전트 정본: 엔진·데모 콘솔·측정 인프라·증빙
- server/: FastAPI 협상 엔진 (5라운드, Q-Table/UCB, 페르소나 계측, :53117) - frontend/: 데모 콘솔 (React+Tailwind → nginx, /api 프록시) - eval/·testdata/: 지표 8종 측정 하네스 + 재현 가능 테스트셋 - results/: 측정 증빙 (지표별 result+provenance, raw 원본 동결+SHA256) ① 86.0 · ② 76.0 · ③ 5.99% · ⑥ p95 3.61ms · ⑦ 611만/년 · ⑧ 91/100 · ⑨ 99.71 · ⑩ 97.99 - docker-compose.yml + run.sh: backend+frontend 일괄 기동 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0112XUWF4bc3gGrEt8vsYCzy
This commit is contained in:
commit
dfb9ad6e66
268 files changed
+164241
No files matched your search
@@ -0,0 +1,62 @@
|
||||
import { DIST_LABEL, type DemoCase } from '../content/cases'
|
||||
|
||||
export function CasePanel({
|
||||
cases, selected, started, busy, onStart,
|
||||
}: {
|
||||
cases: DemoCase[]
|
||||
selected: DemoCase
|
||||
started: boolean
|
||||
busy: boolean
|
||||
onStart: (c: DemoCase) => void
|
||||
}) {
|
||||
return (
|
||||
<aside className="flex flex-col gap-3 min-[960px]:min-h-0 min-[960px]:overflow-y-auto">
|
||||
<section className="rounded-xl border border-line bg-panel p-4">
|
||||
<h2 className="text-xs font-semibold uppercase tracking-wider text-muted">협상 케이스</h2>
|
||||
<ul className="mt-3 flex flex-col gap-2">
|
||||
{cases.map((c) => {
|
||||
const active = started && c.id === selected.id
|
||||
return (
|
||||
<li key={c.id}>
|
||||
<button
|
||||
type="button"
|
||||
disabled={busy}
|
||||
onClick={() => onStart(c)}
|
||||
className={`w-full rounded-lg border px-3 py-2.5 text-left transition-colors focus-visible:ring-2 focus-visible:ring-blue focus-visible:outline-none ${
|
||||
active
|
||||
? 'border-blue bg-blue-soft'
|
||||
: 'border-line bg-panel hover:border-muted'
|
||||
} ${busy ? 'opacity-60' : ''}`}
|
||||
>
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
<span className="text-sm font-semibold">{c.item_name}</span>
|
||||
<span className="shrink-0 rounded bg-paper px-1.5 py-0.5 text-[11px] text-muted">{c.label}</span>
|
||||
</div>
|
||||
<div className="mt-1 font-mono text-xs text-muted">
|
||||
기존 공급가 {c.item_price.toLocaleString()}원
|
||||
</div>
|
||||
{active && (
|
||||
<dl className="mt-2 grid grid-cols-2 gap-x-2 gap-y-1 border-t border-line pt-2 text-[11px]">
|
||||
<dt className="text-muted">공급 유형</dt>
|
||||
<dd className="text-right">{DIST_LABEL[c.dist]} · {c.partners_yn}</dd>
|
||||
<dt className="text-muted">거래 기간</dt>
|
||||
<dd className="text-right font-mono">{c.card_data.trading_period}년</dd>
|
||||
<dt className="text-muted">응답률 / VOC</dt>
|
||||
<dd className="text-right font-mono">{c.card_data.response_rate}% / {c.card_data.voc_count}건</dd>
|
||||
</dl>
|
||||
)}
|
||||
</button>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
{!started && (
|
||||
<p className="mt-3 text-xs leading-relaxed text-muted">
|
||||
케이스를 선택하면 협상이 시작됩니다. 챗봇은 구매 담당자(MD) 역할이고,
|
||||
당신은 공급사로서 가격 제안에 응답합니다.
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
</aside>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user