"use strict";exports.id=3013,exports.ids=[3013],exports.modules={38056:(e,n,r)=>{r.d(n,{M6:()=>l,Nw:()=>a,Xr:()=>o});var t=r(35835);let i=["planning","development","review","documentation","workflow","skill","standard-session","standard-config","standard-monitor","standard-git","standard-util"];function o(e){if(0===e.length)return[];let n=new Map;for(let r of e){let e=n.get(r.category)||[];e.push(r),n.set(r.category,e)}let r=[];for(let e of i){let i=n.get(e);i&&i.length>0&&r.push({category:e,label:t.H[e],commands:i})}for(let[e,o]of n)!i.includes(e)&&o.length>0&&r.push({category:e,label:t.H[e]||e,commands:o});return r}function a(e,n){let r=new Map;for(let n of e)for(let e of n.commands)r.set(e.name,{...e,source:e.source||"standard"});for(let e of n)for(let n of e.commands)r.set(n.name,{...n,source:n.source||"worktree"});return o(Array.from(r.values()))}function l(e,n){return e.map(e=>({...e,commands:e.commands.filter(e=>e.cliTools?e.cliTools.includes(n):"claude"===n)})).filter(e=>e.commands.length>0)}},53013:(e,n,r)=>{r.d(n,{HL:()=>w});var t=r(92048),i=r(55315),o=r(3673),a=r.n(o),l=r(35835),s=r(38056),c=r(40644);let d=null,u=null;function f(e){return a()(e,{engines:{js:{parse:()=>{throw Error("JavaScript engine is disabled for security")},stringify:()=>{throw Error("JavaScript engine is disabled for security")}},javascript:{parse:()=>{throw Error("JavaScript engine is disabled for security")},stringify:()=>{throw Error("JavaScript engine is disabled for security")}}}})}async function m(e){let n=function(e){let n=e||process.cwd();return i.join(n,".claude","commands")}(e);if(!t.existsSync(n))return console.warn(`Commands directory not found: ${n}`),[];let r=t.readdirSync(n).filter(e=>e.endsWith(".md")),o=[];for(let e of r){let r=function(e){try{let n=t.readFileSync(e,"utf-8"),{data:r}=f(n),o=i.basename(e,".md"),a=l.c[o]||"workflow";return{name:o,description:r.description||"",category:a,model:r.model,filePath:i.relative(process.cwd(),e)}}catch(n){return console.error(`Error parsing command file ${e}:`,n),null}}(i.join(n,e));r&&o.push(r)}return o.sort((e,n)=>e.name.localeCompare(n.name)),d=o,o}async function p(e){let n=function(e){let n=e||process.cwd();return i.join(n,".claude","skills")}(e);if(!t.existsSync(n))return[];let r=t.readdirSync(n,{withFileTypes:!0}),o=[];for(let e of r){if(o.length>=100){console.warn("Skills count limit reached (100). Remaining entries skipped.");break}if(!e.isDirectory()||e.name.includes(".."))continue;let r=i.resolve(n,e.name);if(!r.startsWith(i.resolve(n)+i.sep))continue;let a=function(e,n){let r=i.join(e,"SKILL.md");try{let e=t.statSync(r);if(e.size>65536)return console.warn(`Skipping oversized skill file (${e.size} bytes): ${r}`),null;let o=t.readFileSync(r,"utf-8"),a=n,l="";try{let{data:e}=f(o);a=e.name||n,l=e.description||""}catch{let e=function(e){let n=e.match(/^---\r?\n([\s\S]*?)\r?\n---/);if(!n)return{name:"",description:""};let r=n[1],t=r.match(/^name:\s*(.+)$/m),i=r.match(/^description:\s*(.+)$/m);return{name:t?t[1].trim():"",description:i?i[1].trim():""}}(o);a=e.name||n,l=e.description||""}return{name:(0,c.aS)(a,100),description:(0,c.aS)(l,500),category:"skill",source:"skill",filePath:i.relative(process.cwd(),r)}}catch(e){return console.error(`Error parsing skill file ${r}:`,e),null}}(r,e.name);a&&o.push(a)}return o.sort((e,n)=>e.name.localeCompare(n.name)),o}function g(e,n){let r=new Map;for(let n of e)r.set(n.name,n);for(let e of n)r.set(e.name,e);return Array.from(r.values())}async function w(e){if(e){let n=await m(e),r=g(await p(e),n);return(0,s.Xr)(r)}null===d&&(d=await m()),null===u&&(u=await p().catch(()=>[]));let n=g(u,d);return(0,s.Xr)(n)}},40644:(e,n,r)=>{function t(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e,n=30){return e.length<=n?e:`${e.substring(0,n-3)}...`}r.d(n,{aS:()=>i,hr:()=>t})},35835:(e,n,r)=>{r.d(n,{H:()=>t,c:()=>i});let t={planning:"Planning",development:"Development",review:"Review",documentation:"Documentation",workflow:"Workflow",skill:"Skills","standard-session":"Standard (Session)","standard-config":"Standard (Config)","standard-monitor":"Standard (Monitor)","standard-git":"Standard (Git)","standard-util":"Standard (Utility)"},i={"work-plan":"planning","issue-create":"planning","issue-split":"planning","design-policy":"planning","tdd-impl":"development","bug-fix":"development",refactoring:"development","architecture-review":"review","acceptance-test":"review","progress-report":"documentation","create-pr":"workflow","pm-auto-dev":"workflow"}}};