@dudousxd/nestjs-agent 2.0.0 → 2.0.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.
@@ -19675,7 +19675,7 @@ function resolveRolesPolicy(options, modules) {
19675
19675
  const external = externalWrapper(modules, import_nestjs_agent_core47.AGENT_ROLES_POLICY);
19676
19676
  if (options.rolesPolicy !== void 0) {
19677
19677
  if (external !== void 0) {
19678
- logger4.warn("Both a `rolesPolicy` option and a module binding AGENT_ROLES_POLICY (e.g. AgentAuthzModule) are configured \u2014 the `rolesPolicy` option wins.");
19678
+ 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.)");
19679
19679
  }
19680
19680
  return options.rolesPolicy;
19681
19681
  }