@dudousxd/nestjs-agent 0.10.0 → 0.11.0

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.
@@ -1894,9 +1894,21 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
1894
1894
  } : {},
1895
1895
  ...meta.ability !== void 0 ? {
1896
1896
  ability: meta.ability
1897
+ } : {},
1898
+ ...meta.enabled !== void 0 ? {
1899
+ enabled: meta.enabled
1897
1900
  } : {}
1898
1901
  }, {
1899
- execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute")
1902
+ execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute"),
1903
+ // Forwarded, not copied: the registry holds this wrapper rather than the provider, so an
1904
+ // `isEnabled()`/`canUse()` left behind here would be a gate that silently never applies.
1905
+ // Called through `instance` so each keeps its `this` (and its injected deps).
1906
+ ...typeof handler.isEnabled === "function" ? {
1907
+ isEnabled: /* @__PURE__ */ __name(() => instance.isEnabled(), "isEnabled")
1908
+ } : {},
1909
+ ...typeof handler.canUse === "function" ? {
1910
+ canUse: /* @__PURE__ */ __name((actor) => instance.canUse(actor), "canUse")
1911
+ } : {}
1900
1912
  });
1901
1913
  count += 1;
1902
1914
  }