// @bun
var D=Object.defineProperty;var E=(j)=>j;function F(j,q){this[j]=E.bind(null,q)}var K=(j,q)=>{for(var z in q)D(j,z,{get:q[z],enumerable:!0,configurable:!0,set:F.bind(q,z)})};var L=(j,q)=>()=>(j&&(q=j(j=0)),q);var M=import.meta.require;function I(j){return{traceId:j.metadata?.traceId,organizationId:j.tenantId??null,userId:j.actorId??null,actor:j.actorId?"user":"anonymous",channel:"agent",roles:[]}}function P(j,q){return async(z,A)=>{let B=I(A);return await j.execute(q.key,q.version,z??{},B)}}export{P as createOperationToolHandler};
