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.
- package/LICENSING.md +26 -44
- package/README.md +11 -11
- package/dist/{check-CR4fU1S5.d.ts → check-BKU5_IhU.d.ts} +18 -868
- package/dist/checks/index.d.ts +2 -1
- package/dist/cli/index.js +809 -372
- package/dist/client/assets/{DatasetView-BqSWI_pm.js → DatasetView-DZ2uLHKV.js} +12 -10
- package/dist/client/assets/{EvalRunView-CR6ZksSu.js → EvalRunView-T610dLVw.js} +1 -1
- package/dist/client/assets/{EvalView-JPEM5IY8.js → EvalView-Cae68vPB.js} +1 -1
- package/dist/client/assets/{data-grid-overlay-editor-B_nPhXKR.js → data-grid-overlay-editor-PtH7A6E4.js} +1 -1
- package/dist/client/assets/{highlighted-body-KPVGNVTW-dPpneB8R.js → highlighted-body-KPVGNVTW-CPtwvSJb.js} +1 -1
- package/dist/client/assets/{index-CwjMcK6S.js → index-BFH07Ynk.js} +147 -147
- package/dist/client/assets/index-KCv8AeiY.css +32 -0
- package/dist/client/assets/{number-overlay-editor-CRWFlaQs.js → number-overlay-editor-BbQhagHP.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/cost-fetching-trace-sink-Dz8gniQ6.js +262 -0
- package/dist/{dataset-types-Dqi5vVg-.d.ts → dataset-types-D-Fsbg8B.d.ts} +7 -247
- package/dist/index.d.ts +844 -1426
- package/dist/index.js +151 -480
- package/dist/ingest.d.ts +119 -0
- package/dist/ingest.js +3 -0
- package/dist/{trace-event-ingestor-BghQcCHe.js → local-database-trace-provider-87-WGqfS.js} +1976 -7362
- package/dist/{trace-DGj5oW7z.d.ts → trace-BLjFYF9G.d.ts} +2 -1
- package/dist/trace-event-ingestor-B1DYEg2H.js +798 -0
- package/dist/trace-event-ingestor-JNpe-OrX.d.ts +109 -0
- package/dist/views/datasets/index.d.ts +1 -1
- package/dist/views/index.d.ts +3 -2
- package/dist/views/index.js +0 -4
- package/dist/views/react/index.d.ts +1 -1
- package/package.json +32 -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
|
|
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
|
|
46
|
-
|
|
47
|
-
[`packages
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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/
|
|
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/
|
|
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: `
|
|
34
|
-
2. Run server and client against the evalution check out: `
|
|
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
|
-
|
|
39
|
-
|
|
38
|
+
pnpm run dev:server ui <path>
|
|
39
|
+
pnpm run dev:client
|
|
40
40
|
```
|
|
41
41
|
Other useful commands:
|
|
42
42
|
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
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
|
|