MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / renderPlanCard

Function renderPlanCard

app/src/modules/renderer.js:441–454  ·  view source on GitHub ↗
(planContent)

Source from the content-addressed store, hash-verified

439
440// ---- Plan card ----
441export 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
456export function consumePendingPlanCard() {
457 const plan = normalizePlanContent(S.pendingPlanContent);

Callers 3

consumePendingPlanCardFunction · 0.70
processEventFunction · 0.70

Calls 2

closeGroupFunction · 0.70
renderMdFunction · 0.70

Tested by

no test coverage detected