@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.
@@ -1923,9 +1923,21 @@ var AiToolDiscoveryService = class _AiToolDiscoveryService {
1923
1923
  } : {},
1924
1924
  ...meta.ability !== void 0 ? {
1925
1925
  ability: meta.ability
1926
+ } : {},
1927
+ ...meta.enabled !== void 0 ? {
1928
+ enabled: meta.enabled
1926
1929
  } : {}
1927
1930
  }, {
1928
- execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute")
1931
+ execute: /* @__PURE__ */ __name((input, ctx) => instance.execute(input, ctx), "execute"),
1932
+ // Forwarded, not copied: the registry holds this wrapper rather than the provider, so an
1933
+ // `isEnabled()`/`canUse()` left behind here would be a gate that silently never applies.
1934
+ // Called through `instance` so each keeps its `this` (and its injected deps).
1935
+ ...typeof handler.isEnabled === "function" ? {
1936
+ isEnabled: /* @__PURE__ */ __name(() => instance.isEnabled(), "isEnabled")
1937
+ } : {},
1938
+ ...typeof handler.canUse === "function" ? {
1939
+ canUse: /* @__PURE__ */ __name((actor) => instance.canUse(actor), "canUse")
1940
+ } : {}
1929
1941
  });
1930
1942
  count += 1;
1931
1943
  }