evalution 1.0.8 → 2.0.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.
Files changed (30) hide show
  1. package/LICENSING.md +26 -44
  2. package/README.md +11 -11
  3. package/dist/{check-CR4fU1S5.d.ts → check-BKU5_IhU.d.ts} +18 -868
  4. package/dist/checks/index.d.ts +2 -1
  5. package/dist/cli/index.js +809 -372
  6. package/dist/client/assets/{DatasetView-BqSWI_pm.js → DatasetView-DZ2uLHKV.js} +12 -10
  7. package/dist/client/assets/{EvalRunView-CR6ZksSu.js → EvalRunView-T610dLVw.js} +1 -1
  8. package/dist/client/assets/{EvalView-JPEM5IY8.js → EvalView-Cae68vPB.js} +1 -1
  9. package/dist/client/assets/{data-grid-overlay-editor-B_nPhXKR.js → data-grid-overlay-editor-PtH7A6E4.js} +1 -1
  10. package/dist/client/assets/{highlighted-body-KPVGNVTW-dPpneB8R.js → highlighted-body-KPVGNVTW-CPtwvSJb.js} +1 -1
  11. package/dist/client/assets/{index-CwjMcK6S.js → index-BFH07Ynk.js} +147 -147
  12. package/dist/client/assets/index-KCv8AeiY.css +32 -0
  13. package/dist/client/assets/{number-overlay-editor-CRWFlaQs.js → number-overlay-editor-BbQhagHP.js} +1 -1
  14. package/dist/client/index.html +2 -2
  15. package/dist/cost-fetching-trace-sink-Dz8gniQ6.js +262 -0
  16. package/dist/{dataset-types-Dqi5vVg-.d.ts → dataset-types-D-Fsbg8B.d.ts} +7 -247
  17. package/dist/index.d.ts +844 -1426
  18. package/dist/index.js +151 -480
  19. package/dist/ingest.d.ts +119 -0
  20. package/dist/ingest.js +3 -0
  21. package/dist/{trace-event-ingestor-BghQcCHe.js → local-database-trace-provider-87-WGqfS.js} +1976 -7362
  22. package/dist/{trace-DGj5oW7z.d.ts → trace-BLjFYF9G.d.ts} +2 -1
  23. package/dist/trace-event-ingestor-B1DYEg2H.js +798 -0
  24. package/dist/trace-event-ingestor-JNpe-OrX.d.ts +109 -0
  25. package/dist/views/datasets/index.d.ts +1 -1
  26. package/dist/views/index.d.ts +3 -2
  27. package/dist/views/index.js +0 -4
  28. package/dist/views/react/index.d.ts +1 -1
  29. package/package.json +32 -30
  30. package/dist/client/assets/index-BGcZZetP.css +0 -32
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
 
package/README.md CHANGED
@@ -4,7 +4,7 @@ Evalution is a local-first development tool. Maintain your prompts directly in y
4
4
  use the web playground to edit parameters, switch models, and see results in real
5
5
  time, so what you test is exactly what ships.
6
6
 
7
- 📖 **Documentation: [evalut.io/n/docs](https://evalut.io/n/docs)**
7
+ 📖 **Documentation: [evalut.io/n/docs](https://l.evalut.io/s/docs)**
8
8
 
9
9
  ## Features
10
10
 
@@ -26,25 +26,25 @@ npx evalution
26
26
 
27
27
  Requires Node.js 22.18.0 or higher.
28
28
 
29
- See the [documentation](https://evalut.io/n/docs) for more detailed guidance.
29
+ See the [documentation](https://l.evalut.io/s/docs) for more detailed guidance.
30
30
 
31
31
  ## Development
32
32
 
33
- 1. Install dependencies: `npm install`
34
- 2. Run server and client against the evalution check out: `npm run dev`
33
+ 1. Install dependencies: `pnpm install`
34
+ 2. Run server and client against the evalution check out: `pnpm run dev`
35
35
  3. Run against a different path:
36
36
 
37
37
  ```sh
38
- npm run dev:server -- ui <path>
39
- npm run dev:client
38
+ pnpm run dev:server ui <path>
39
+ pnpm run dev:client
40
40
  ```
41
41
  Other useful commands:
42
42
 
43
- - `npm test` — run unit tests (`npm run test:coverage` for coverage)
44
- - `npm run test:ui` — run Playwright component tests
45
- - `npm run typecheck` — type-check the project
46
- - `npm run docs` — regenerate the API reference
47
- - `npm run build` — build the server and client
43
+ - `pnpm test` — run unit tests (`pnpm run test:coverage` for coverage)
44
+ - `pnpm run test:ui` — run Playwright component tests
45
+ - `pnpm run typecheck` — type-check the project
46
+ - `pnpm run docs` — regenerate the API reference
47
+ - `pnpm run build` — build the server and client
48
48
 
49
49
  ## License
50
50