import{b as n}from"./vendor-lit-B2r-dKc0.js";import{aC as v,aE as l}from"./app-session-runtime-CeFJDILJ.js";import{af as c}from"./vendor-lucide-B9Yl1Gez.js";import"./vendor-mini-lit-CpUQub-j.js";import"./vendor-marked-_iteVaMm.js";import"./app-review-C3CmcSYC.js";import"./app-panel-workspace-C3XDRCgE.js";import"./app-routing-C_r2pdnC.js";import"./app-message-reducer-wATqnZGf.js";import"./vendor-sortable-B1o3v0Qs.js";import"./app-inbox-CaZD85aD.js";import"./app-pr-walkthrough-WipZACSB.js";class T{render(r,e,m){const s=v(e,m),i=r?.name?.trim(),o=r?.args?.trim(),t=e?.details?.skillExpansion;if(!t){const d=i?`Activating /${i}${o?` ${o}`:""}…`:"Activating skill…";if(e?.isError){const f=e.content?.filter(a=>a.type==="text").map(a=>a.text).join(`
`)||"Failed to activate skill";return{content:n`
						<div class="space-y-2">
							${l(s,c,i?`/${i}`:"activate_skill")}
							<div class="text-sm text-destructive">${f}</div>
						</div>
					`,isCustom:!1}}return{content:l(s,c,d),isCustom:!1}}const p={name:t.name,args:t.args,source:t.source,filePath:t.filePath,expanded:t.expanded};return{content:n`<skill-chip .data=${p} .block=${!0}></skill-chip>`,isCustom:!1}}}export{T as ActivateSkillRenderer};
