@dudousxd/nestjs-agent 1.18.0 → 1.19.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.
package/dist/index.cjs CHANGED
@@ -5033,7 +5033,7 @@ function sharedProviders(durable) {
5033
5033
  },
5034
5034
  {
5035
5035
  provide: import_nestjs_agent_core27.AGENT_ROLES_POLICY,
5036
- useFactory: /* @__PURE__ */ __name((options) => options.rolesPolicy ?? new import_nestjs_agent_core27.DefaultRolesPolicy(options.defaultRoles), "useFactory"),
5036
+ useFactory: /* @__PURE__ */ __name((options) => options.rolesPolicy ?? (options.emptyRoles === "deny" ? new import_nestjs_agent_core27.ClosedRolesPolicy(options.defaultRoles) : new import_nestjs_agent_core27.DefaultRolesPolicy(options.defaultRoles)), "useFactory"),
5037
5037
  inject: [
5038
5038
  import_nestjs_agent_core27.AGENT_OPTIONS
5039
5039
  ]