var a=new Map;function f(n){return a.get(n)||null}var p={};function g(n,t){if(Array.isArray(t))return u(t);let o=p[n];return!o||o.length===0?null:u(o)}function u(n){if(!Array.isArray(n)||n.length===0)return null;let t=[],o={},s=[];for(let i of n){let e=f(i);if(!e){console.warn(`[ToolResolver] Unknown skill "${i}" \u2014 skipping`);continue}s.push(i);for(let r of e.tools||[])t.push({name:r.name,description:r.description,input_schema:r.input_schema||{type:"object",properties:{}}});if(!o[e.serverName])if(typeof e.resolve=="function"){let r=e.resolve();r&&(o[e.serverName]={...r,toolPrefix:i})}else{let r={};for(let l of e.envKeys||[]){let c=process.env[l];c&&(r[l]=c)}o[e.serverName]={command:e.command,args:[...e.args||[]],env:r,toolPrefix:i}}}return s.length===0?null:{toolIds:s,claudeTools:t,mcpServers:o}}export{p as NODE_DEFAULT_TOOLS,u as getResolvedToolDefinitions,g as resolveNodeTools};
