@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.
@@ -19662,7 +19662,7 @@ function resolveRolesPolicy(options, modules) {
19662
19662
  const external = externalWrapper(modules, AGENT_ROLES_POLICY2);
19663
19663
  if (options.rolesPolicy !== void 0) {
19664
19664
  if (external !== void 0) {
19665
- logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY (e.g. AgentAuthzModule) are configured \u2014 the `rolesPolicy` option wins.");
19665
+ 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.)");
19666
19666
  }
19667
19667
  return options.rolesPolicy;
19668
19668
  }