@absolutejs/mcp 0.11.1 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -891,7 +891,8 @@ var runTool = async (config, caller, scopes, id, name, args, meta, tool, context
891
891
  });
892
892
  const amount = tool.authorization.spend ? valueAtPath(args, tool.authorization.spend.amountMinorField) : undefined;
893
893
  const currency = tool.authorization.spend ? valueAtPath(args, tool.authorization.spend.currencyField) : undefined;
894
- const idempotencyKey = tool.authorization.idempotencyKeyField ? valueAtPath(args, tool.authorization.idempotencyKeyField) : undefined;
894
+ const idempotencyBinding = tool.authorization.idempotency;
895
+ const idempotencyKey = idempotencyBinding?.mode === "field" ? valueAtPath(args, idempotencyBinding.field) : undefined;
895
896
  const requested = await agency.enforcement.request({
896
897
  ...actionInput,
897
898
  context: {