@dudousxd/nestjs-agent 2.0.0 → 2.0.2

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
@@ -18728,7 +18728,7 @@ function resolveRolesPolicy(options, modules) {
18728
18728
  const external = externalWrapper(modules, import_nestjs_agent_core40.AGENT_ROLES_POLICY);
18729
18729
  if (options.rolesPolicy !== void 0) {
18730
18730
  if (external !== void 0) {
18731
- logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY (e.g. AgentAuthzModule) are configured \u2014 the `rolesPolicy` option wins.");
18731
+ logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY are configured \u2014 the `rolesPolicy` option wins. (For ability checks, use `@Can()` from @nestjs/authorization on the tool instead of a roles policy.)");
18732
18732
  }
18733
18733
  return options.rolesPolicy;
18734
18734
  }