Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(license): include packages/shared/src/server/ee in the enterprise license (#17877)

Steffen Reuther0266b8e962ec
diff --git a/.agents/skills/langfuse-codebase-navigator/references/repository-map.md b/.agents/skills/langfuse-codebase-navigator/references/repository-map.md
index 486c49188e..e67d3c45a7 100644
--- a/.agents/skills/langfuse-codebase-navigator/references/repository-map.md
+++ b/.agents/skills/langfuse-codebase-navigator/references/repository-map.md
@@ -82,7 +82,7 @@ Important areas:
- `worker/src/queues/**`: queue definitions and processors.
- `fern/apis/server/definition/**`: server/public API definitions.
- `fern/apis/client/definition/**`: generated client API definitions.
-- `ee/src/**` and `web/src/ee/**`: enterprise-specific code.
+- `ee/src/**`, `web/src/ee/**`, `worker/src/ee/**`, and `packages/shared/src/server/ee/**`: enterprise-specific code under the Enterprise License (root `LICENSE`).
Repo-local skills in `langfuse/.agents/skills`:
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index acb06c026a..1c534677a8 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -647,7 +647,7 @@ pnpm dlx [email protected] generate --api server
## License
-Langfuse is MIT licensed, except for `ee/` folder. See [LICENSE](LICENSE) and [docs](https://langfuse.com/docs/open-source) for more details.
+Langfuse is MIT licensed, except for the `ee` folders. See [LICENSE](LICENSE) and [docs](https://langfuse.com/docs/open-source) for more details.
When contributing to the Langfuse codebase, you need to agree to the [Contributor License Agreement](https://cla-assistant.io/langfuse/langfuse). You only need to do this once and the CLA bot will remind you if you haven't signed it yet.
diff --git a/LICENSE b/LICENSE
index cf2d4abed1..eaa2e5e444 100644
--- a/LICENSE
+++ b/LICENSE
@@ -2,7 +2,7 @@ Copyright (c) 2023-2026 ClickHouse, Inc.
Portions of this software are licensed as follows:
-- All content that resides under the "ee/", "web/src/ee/", and/or "worker/src/ee/" directories of this repository, if these directories exist, is licensed under the license defined in "ee/LICENSE".
+- All content that resides under the "ee/", "web/src/ee/", "worker/src/ee/", and/or "packages/shared/src/server/ee/" directories of this repository, if these directories exist, is licensed under the license defined in "ee/LICENSE".
- All third party components incorporated into the Langfuse Software are licensed under the original license provided by the owner of the applicable component.
- Content outside of the above mentioned directories or restrictions above is available under the "MIT Expat" license as defined below.
diff --git a/ee/AGENTS.md b/ee/AGENTS.md
index 8ed25c0cd2..5932479ca0 100644
--- a/ee/AGENTS.md
+++ b/ee/AGENTS.md
@@ -29,6 +29,9 @@
- `ee` depends on `@langfuse/shared`; coordinate shared type changes carefully.
- Validate downstream usage in `../web/src/ee/*` and `../worker/src/ee/*` when EE
exports change.
+- EE logic that `worker` must import lives in
+ `../packages/shared/src/server/ee/*` (also under the Enterprise License);
+ `worker` does not depend on `@langfuse/ee`.
## Package-Specific Rules
diff --git a/packages/shared/AGENTS.md b/packages/shared/AGENTS.md
index e4d5d878f8..844b18b9c2 100644
--- a/packages/shared/AGENTS.md
+++ b/packages/shared/AGENTS.md
@@ -346,6 +346,9 @@ the same PR.
cron pattern, append the old pattern to `previousPatterns` so the legacy
md5-keyed schedule is cleaned up on boot.
- Do not hand-edit generated artifacts under `prisma/generated/*` or `dist/*`.
+- `src/server/ee/*` is under the Enterprise License (root `LICENSE`), not MIT.
+ Put EE logic there when both `web` and `worker` must import it; keep OSS
+ code paths out of it.
- Avoid exposing server-only modules through `src/index.ts` if they must remain
frontend-safe.
- Adding vocabulary here — a field on a shared schema, an option on a shared