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