import{o as a}from"./rolldown-runtime-iuO8RvI4.js";import{L_ as e,Ll as t,Vm as r}from"./shared-0-C4kdVF7Y.js";import{Mi as i}from"./vendor-frame-CwiylG4Y.js";var o=a(i());function s(){return e("claude_code_skills_dashboard_enabled")}function n(){return e("claude_code_skills_tab_live_data")}var _=(a,e,i=!0)=>{const{activeOrganization:s}=t(),n=(0,o.useMemo)(()=>s?.uuid?`/api/claude_code/skills?${new URLSearchParams({start_date:a,end_date:e,organization_uuid:s.uuid}).toString()}`:null,[s?.uuid,a,e]);return r(n,{queryKey:["claude_code_skills",s?.uuid,{startDate:a,endDate:e}],staleTime:3e5,enabled:i&&!!s&&!!n})},d=(a,e)=>{const{activeOrganization:r}=t();return(0,o.useMemo)(()=>r?.uuid?`/api/claude_code/skills/export?${new URLSearchParams({start_date:a,end_date:e,organization_uuid:r.uuid}).toString()}`:null,[r?.uuid,a,e])},u={organization_id:"demo",period:{start_date:"2026-04-01",end_date:"2026-04-30"},summary:{total_skills:8,total_invocations:21900,total_distinct_users:162,good_count:5,warn_count:2,poor_count:1},skills:[{skill_name:"commit",dau:41.2,distinct_users:84,invocations:5200,error_rate:.04,dau_trend:.18,health:"good",avg_invocations_per_user:61.9},{skill_name:"review",dau:33.5,distinct_users:62,invocations:3800,error_rate:.06,dau_trend:.05,health:"good",avg_invocations_per_user:61.3},{skill_name:"test",dau:28.9,distinct_users:55,invocations:3100,error_rate:.09,dau_trend:-.03,health:"good",avg_invocations_per_user:56.4},{skill_name:"fix",dau:19.4,distinct_users:41,invocations:2400,error_rate:.13,dau_trend:.11,health:"warn",avg_invocations_per_user:58.5},{skill_name:"deploy",dau:14.1,distinct_users:32,invocations:1900,error_rate:.07,dau_trend:.42,health:"good",avg_invocations_per_user:59.4},{skill_name:"refactor",dau:11.6,distinct_users:28,invocations:1600,error_rate:.05,dau_trend:-.02,health:"good",avg_invocations_per_user:57.1},{skill_name:"migrate-db",dau:6.8,distinct_users:18,invocations:2100,error_rate:.21,dau_trend:-.28,health:"warn",avg_invocations_per_user:116.7},{skill_name:"release-notes",dau:3.2,distinct_users:9,invocations:1800,error_rate:.34,dau_trend:-.61,health:"poor",avg_invocations_per_user:200}]};export{n as a,d as i,_ as n,s as r,u as t};