@dudousxd/nestjs-agent 0.10.1 → 0.11.1

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.cjs CHANGED
@@ -1501,9 +1501,21 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
1501
1501
  } : {},
1502
1502
  ...meta.ability !== void 0 ? {
1503
1503
  ability: meta.ability
1504
+ } : {},
1505
+ ...meta.enabled !== void 0 ? {
1506
+ enabled: meta.enabled
1504
1507
  } : {}
1505
1508
  }, {
1506
- execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute")
1509
+ execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute"),
1510
+ // Forwarded, not copied: the registry holds this wrapper rather than the provider, so an
1511
+ // `isEnabled()`/`canUse()` left behind here would be a gate that silently never applies.
1512
+ // Called through `instance` so each keeps its `this` (and its injected deps).
1513
+ ...typeof handler.isEnabled === "function" ? {
1514
+ isEnabled: /* @__PURE__ */ __name(() => instance.isEnabled(), "isEnabled")
1515
+ } : {},
1516
+ ...typeof handler.canUse === "function" ? {
1517
+ canUse: /* @__PURE__ */ __name((actor) => instance.canUse(actor), "canUse")
1518
+ } : {}
1507
1519
  });
1508
1520
  count += 1;
1509
1521
  }