import { resolveBusinessRuleDiscoveryCache } from "@open-mercato/core/modules/business_rules/lib/rule-engine";
import { seedExampleWorkflows } from "./lib/seeds.js";
const setup = {
  seedDefaults: async (ctx) => {
    const scope = { tenantId: ctx.tenantId, organizationId: ctx.organizationId };
    const cache = resolveBusinessRuleDiscoveryCache(ctx.container.resolve.bind(ctx.container));
    await seedExampleWorkflows(ctx.em, scope, { cache });
  },
  defaultRoleFeatures: {
    admin: ["workflows.*"]
  }
};
var setup_default = setup;
export {
  setup_default as default,
  setup
};
//# sourceMappingURL=setup.js.map
