@dudousxd/nestjs-agent 0.10.1 → 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.
- package/dist/durable/index.cjs +13 -1
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.js +13 -1
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/durable/index.cjs
CHANGED
|
@@ -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
|
}
|