evalution 1.0.8 → 2.0.0

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/LICENSING.md CHANGED
@@ -14,8 +14,7 @@ those files win.
14
14
  | Distribute a modified evalution | AGPL-3.0: ship your source under the AGPL. |
15
15
  | **Host** evalution as a network service (SaaS) | AGPL-3.0 §13: offer the full source — **including any providers loaded through its config** — to your users. |
16
16
  | Write a provider/extension and distribute it separately | Free. License it however you like (see below). |
17
- | Use `@evalution/vercel-ai-sdk` in your own project | MIT. Use it anywhere, including closed-source. |
18
- | Use `@evalution/typesafe-sdk` in your own project | MIT. Use it anywhere, including closed-source. |
17
+ | Use any `@evalution/*` package in your own project | MIT. Use it anywhere, including closed-source. |
19
18
 
20
19
  ## The core: AGPL-3.0-only + a section 7 addendum
21
20
 
@@ -42,48 +41,31 @@ The net effect, by design: provider authors stay free; people self-hosting for
42
41
  themselves stay free; only operators turning evalution + providers into a
43
42
  network service take on the source-sharing obligation.
44
43
 
45
- ## The Vercel AI SDK adapter: MIT
46
-
47
- [`packages/vercel-ai-sdk`](./packages/vercel-ai-sdk) (`@evalution/vercel-ai-sdk`)
48
- is **MIT** ([`LICENSE`](./packages/vercel-ai-sdk/LICENSE)) so it can be imported
49
- into any project, including closed-source ones, without AGPL obligations.
50
-
51
- For that promise to be real, the package's published `dist` must contain only
52
- permissively licensed code:
53
-
54
- - The package takes **no runtime dependency** on the AGPL core — only
55
- `peerDependencies` on `ai` and the `@ai-sdk/*` packages.
56
- - It does bundle a handful of files from the core, via the build:
57
- [`src/trace/prompt-tracer.ts`](./src/trace/prompt-tracer.ts),
58
- [`src/trace/trace-types.ts`](./src/trace/trace-types.ts),
59
- [`src/trace/trace-sink.ts`](./src/trace/trace-sink.ts),
60
- [`src/trace/trace-ingestor.ts`](./src/trace/trace-ingestor.ts),
61
- [`src/trace/http-trace-sink.ts`](./src/trace/http-trace-sink.ts),
62
- [`src/trace/evaluation-answers.ts`](./src/trace/evaluation-answers.ts), and
63
- [`src/sdk/vercel-ai-sdk/telemetry.ts`](./src/sdk/vercel-ai-sdk/telemetry.ts).
64
- Each is **dual-licensed `MIT OR AGPL-3.0-only`** (see its SPDX header),
65
- so the bytes that land in the MIT package are genuinely MIT.
66
- - Those files must stay **self-contained** — only `@opentelemetry/api`, a
67
- type-only `ai` import, and each other. If any of them ever imports from
68
- elsewhere in the core, the bundler would pull AGPL-only code into the MIT
69
- artifact and break this guarantee. (The AGPL-only `BaseTraceProvider`,
70
- `OTelTraceIngestor`, `MemoryTraceProvider`, and `span-merge.ts` stay on the
71
- core side of that boundary, even though `BaseTraceProvider` lives in the
72
- same dual-licensed `trace-sink.ts` file as the `TraceSink` interface — it
73
- has no AGPL-only dependencies of its own, so this holds without further
74
- bookkeeping.)
75
-
76
- ## The TypeSafe adapter: MIT
77
-
78
- [`packages/typesafe-sdk`](./packages/typesafe-sdk) (`@evalution/typesafe-sdk`)
79
- is **MIT** ([`LICENSE`](./packages/typesafe-sdk/LICENSE)) on the same terms as
80
- the Vercel AI SDK adapter above: no runtime dependency on the core
81
- (`peerDependencies` on `@typesafe-ai/sdk` and `@opentelemetry/api` only), and
82
- the only core files it bundles —
83
- [`src/trace/prompt-tracer.ts`](./src/trace/prompt-tracer.ts) and
84
- [`src/sdk/typesafe-sdk/telemetry.ts`](./src/sdk/typesafe-sdk/telemetry.ts),
85
- with the dual-licensed `src/trace/` files the latter imports — are
86
- **dual-licensed `MIT OR AGPL-3.0-only`** and self-contained.
44
+ ## The SDK packages: MIT
45
+
46
+ Everything under [`packages/`](./packages) is **MIT**, so it can be imported into
47
+ any project, including closed-source ones, without AGPL obligations:
48
+
49
+ - [`@evalution/sdk`](./packages/sdk), the base the others build on: the trace
50
+ model, the sinks and ingestors, and the contract an SDK adapter implements.
51
+ - [`@evalution/vercel-ai-sdk`](./packages/vercel-ai-sdk),
52
+ [`@evalution/typesafe-sdk`](./packages/typesafe-sdk) and
53
+ [`@evalution/gemini-interactions-sdk`](./packages/gemini-interactions-sdk), the
54
+ integrations with each AI SDK.
55
+
56
+ For that promise to be real, the published packages must contain only permissively
57
+ licensed code, so **nothing under `packages/` may import the AGPL core**. The core
58
+ depends on the SDK packages, never the reverse, and `src/license-boundary.test.ts`
59
+ enforces it. (Test files are exempt: they aren't published.) Where an adapter needs
60
+ something only the core can do, the core passes it in at run time.
61
+
62
+ ## Files derived from MIT-licensed code
63
+
64
+ A few files in the core derive from third-party MIT-licensed code and carry that
65
+ code's notice, so they are **dual-licensed `MIT OR AGPL-3.0-only`**:
66
+ [`src/trace/otlp/otlp-protobuf.ts`](./src/trace/otlp/otlp-protobuf.ts) and, under
67
+ `src/client/components/trace/`, `imageSrc.ts`, `JsonView.tsx` and
68
+ `AnnotationChip.tsx`.
87
69
 
88
70
  ## Contributing
89
71