Skip to content

refactor(ee): move every enterprise feature's server code under ee/<feature>/lib - #7574

Closed
waleedlatif1 wants to merge 1 commit into
stagingfrom
refactor/ee-enterprise-server-code
Closed

refactor(ee): move every enterprise feature's server code under ee/<feature>/lib#7574
waleedlatif1 wants to merge 1 commit into
stagingfrom
refactor/ee-enterprise-server-code

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Everything the enterprise feature flags turn on now lives with its UI under apps/sim/ee/<feature>/, following the layout workspace forking already used (ee/workspace-forking/lib). This is a pure move: git renames plus import rewrites. No logic changed.

Feature From To
Access control lib/permission-groups ee/access-control/lib
Audit logs lib/audit-logs ee/audit-logs/lib
Data drains lib/data-drains ee/data-drains/lib
Data retention lib/billing/retention.ts ee/data-retention/lib/retention.ts
Session policies lib/auth/session-policy.ts ee/session-policy/lib/session-policy.ts
SSO lib/auth/sso ee/sso/lib
Custom blocks lib/workflows/custom-blocks ee/custom-blocks/lib
Usage monitoring lib/billing/application/organization-usage ee/organization-usage/lib

Contracts stay in lib/api/contracts and routes under app/api, so ee/ is imported by the rest of the app rather than importing it. The ee/README.md now lists every feature and documents the lib / hooks / components layout.

Not moved, deliberately: lib/execution/sandbox (the function runtime is core; the sandboxes flag gates a product surface, not this code), lib/branding (the open-source default branding that whitelabeling overrides), lib/credential-groups (not an enterprise-flagged feature), and the inbox and organizations flags, which gate core code.

Path pins updated

scripts/check-application-graph.ts (+ test), scripts/check-capability-subject.ts (+ test), scripts/check-permission-group-enforcement.ts, scripts/generate-block-successors.ts, scripts/check-tool-registry-boundary.baseline.json, packages/testing/src/mocks/permission-group-scope.mock.ts.

Verification

  • bunx turbo run type-check — all 26 workspaces
  • full app suite — 3037 test files pass
  • bun run check:audits — all 45 pass (graph, capability-subject, enforcement, and registry-boundary checks re-pointed)
  • bun run docs-manifest:check — pass

Sequencing

#7567 (SCIM) edits two files this PR moves (lib/auth/sso/application/admit-sso-user.ts, lib/billing/organizations/membership.ts) and adds one under a moved directory (lib/permission-groups/application/group-membership.ts). Merge #7567 first, then this branch gets a mechanical rebase (rerun of the same rename and import rewrite) before merging.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DGXcwsHzYGp6pUDWRtJKpz

…eature>/lib

Everything the enterprise feature flags turn on now lives with its UI in
apps/sim/ee, following the layout workspace forking already used:

- access control     lib/permission-groups              → ee/access-control/lib
- audit logs         lib/audit-logs                     → ee/audit-logs/lib
- data drains        lib/data-drains                    → ee/data-drains/lib
- data retention     lib/billing/retention              → ee/data-retention/lib
- session policies   lib/auth/session-policy            → ee/session-policy/lib
- SSO                lib/auth/sso                       → ee/sso/lib
- custom blocks      lib/workflows/custom-blocks        → ee/custom-blocks/lib
- usage monitoring   lib/billing/application/organization-usage → ee/organization-usage/lib

Pure move: git renames plus import rewrites, with the graph, capability,
enforcement, and registry-boundary checks repointed. Contracts stay in
lib/api/contracts and routes under app/api; the README documents the layout.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DGXcwsHzYGp6pUDWRtJKpz
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 8, 2026 12:05am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review (334 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant