(planContent)
| 439 | |
| 440 | // ---- Plan card ---- |
| 441 | export function renderPlanCard(planContent) { |
| 442 | if ($msgs.querySelector('.plan-inline-card')) return; |
| 443 | closeGroup(); |
| 444 | const el = document.createElement('div'); |
| 445 | el.className = 'plan-inline-card'; |
| 446 | el.innerHTML = ` |
| 447 | <div class="plan-inline-header"> |
| 448 | <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2"/><rect x="9" y="3" width="6" height="4" rx="1"/><path d="M9 12l2 2 4-4"/></svg> |
| 449 | <span>执行计划</span> |
| 450 | </div> |
| 451 | <div class="plan-inline-body">${renderMd(planContent)}</div> |
| 452 | `; |
| 453 | $msgs.appendChild(el); |
| 454 | } |
| 455 | |
| 456 | export function consumePendingPlanCard() { |
| 457 | const plan = normalizePlanContent(S.pendingPlanContent); |
no test coverage detected