import{b as o}from"./vendor-lit-BtHfzs80.js";import{au as v,aw as l}from"./index-rvuS68Al.js";import{ae as c}from"./vendor-lucide-DBEJLfdn.js";import"./vendor-mini-lit-Cx886NBU.js";import"./vendor-marked-_iteVaMm.js";import"./vendor-sortable-B1o3v0Qs.js";class A{render(s,e,m){const r=v(e,m),a=s?.name?.trim(),n=s?.args?.trim(),t=e?.details?.skillExpansion;if(!t){const p=a?`Activating /${a}${n?` ${n}`:""}…`:"Activating skill…";if(e?.isError){const f=e.content?.filter(i=>i.type==="text").map(i=>i.text).join(`
`)||"Failed to activate skill";return{content:o`
						<div class="space-y-2">
							${l(r,c,a?`/${a}`:"activate_skill")}
							<div class="text-sm text-destructive">${f}</div>
						</div>
					`,isCustom:!1}}return{content:l(r,c,p),isCustom:!1}}const d={name:t.name,args:t.args,source:t.source,filePath:t.filePath,expanded:t.expanded};return{content:o`<skill-chip .data=${d} .block=${!0}></skill-chip>`,isCustom:!1}}}export{A as ActivateSkillRenderer};
