var{defineProperty:w,getOwnPropertyNames:B,getOwnPropertyDescriptor:C}=Object,D=Object.prototype.hasOwnProperty;function E(b){return this[b]}var K=(b)=>{var g=(x??=new WeakMap).get(b),j;if(g)return g;if(g=w({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var q of B(b))if(!D.call(g,q))w(g,q,{get:E.bind(b,q),enumerable:!(j=C(b,q))||j.enumerable})}return x.set(b,g),g},x;var F=(b)=>b;function I(b,g){this[b]=F.bind(null,g)}var O=(b,g)=>{for(var j in g)w(b,j,{get:g[j],enumerable:!0,configurable:!0,set:I.bind(g,j)})};var P=(b,g)=>()=>(b&&(g=b(b=0)),g);import A from"zod";function T(b){return{input:b.io.input?A.toJSONSchema(b.io.input.getZod()):null,output:b.io.output?A.toJSONSchema(b.io.output.getZod()):null,meta:{name:b.meta.key,version:b.meta.version,kind:b.meta.kind,description:b.meta.description,tags:b.meta.tags??[],stability:b.meta.stability??"stable"}}}function U(b,g){return`/${b.replace(/\./g,"/")}/v${g}`}function J(b){return b.replace(/\./g,"_").slice(0,64)}function W(b,g){let j=b.replace(/\./g,"_"),q=g.replace(/\./g,"_");return`${j}-v${q}`}function X(b){return J(b)}function Y(b,g){return`${b.replace(/\./g,"_")}_v${g}`}export{J as sanitizeMcpName,T as jsonSchemaForSpec,U as defaultRestPath,W as defaultMcpTool,X as defaultMcpPrompt,Y as defaultGqlField};
