evalution 1.0.7 → 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.
Files changed (26) hide show
  1. package/LICENSING.md +26 -44
  2. package/dist/{check-BTg6THHB.d.ts → check-ci7RhMcB.d.ts} +21 -848
  3. package/dist/checks/index.d.ts +2 -1
  4. package/dist/cli/index.js +257 -77
  5. package/dist/client/assets/DatasetView-BqSWI_pm.js +15 -0
  6. package/dist/client/assets/EvalRunView-CR6ZksSu.js +2 -0
  7. package/dist/client/assets/EvalView-JPEM5IY8.js +1 -0
  8. package/dist/client/assets/{data-grid-overlay-editor-CBVV2omk.js → data-grid-overlay-editor-B_nPhXKR.js} +1 -1
  9. package/dist/client/assets/{highlighted-body-KPVGNVTW-BqsjUFPI.js → highlighted-body-KPVGNVTW-dPpneB8R.js} +1 -1
  10. package/dist/client/assets/{index-B7OFMd2c.css → index-BGcZZetP.css} +1 -1
  11. package/dist/client/assets/{index-DOmAST6D.js → index-CwjMcK6S.js} +137 -137
  12. package/dist/client/assets/{number-overlay-editor-DhCVhD05.js → number-overlay-editor-CRWFlaQs.js} +1 -1
  13. package/dist/client/index.html +2 -2
  14. package/dist/{dataset-types-CSjbM_Vz.d.ts → dataset-types-8cDpOFYi.d.ts} +6 -236
  15. package/dist/index.d.ts +302 -1279
  16. package/dist/index.js +148 -485
  17. package/dist/{trace-Dn6Pfcc5.d.ts → trace-BlnjMp7o.d.ts} +2 -1
  18. package/dist/{trace-event-ingestor-DI-HkA4Q.js → trace-event-ingestor-DwI1hxGX.js} +2471 -8458
  19. package/dist/views/datasets/index.d.ts +1 -1
  20. package/dist/views/index.d.ts +3 -2
  21. package/dist/views/index.js +0 -4
  22. package/dist/views/react/index.d.ts +1 -1
  23. package/package.json +19 -16
  24. package/dist/client/assets/DatasetView-CWw3B_XI.js +0 -15
  25. package/dist/client/assets/EvalRunView-DJNSAydj.js +0 -2
  26. package/dist/client/assets/EvalView-R0Nkikzs.js +0 -1
@@ -1,4 +1,4 @@
1
- import { _ as ResourceInstanceInput, a as ColumnPath, c as PathRow, d as childInputs, f as fieldPath, g as ExecutionInput, h as resolveColumnPath, l as PathValue, m as readColumnPath, n as DatasetRow, o as InstanceArgument, p as instancePath, r as DatasetRowUpdate, s as MAX_REFERENCE_HOPS, u as ResolvedPath } from "../../dataset-types-CSjbM_Vz.js";
1
+ import { _ as ResourceInstanceInput, a as ColumnPath, c as PathRow, d as childInputs, f as fieldPath, g as ExecutionInput, h as resolveColumnPath, l as PathValue, m as readColumnPath, n as DatasetRow, o as InstanceArgument, p as instancePath, r as DatasetRowUpdate, s as MAX_REFERENCE_HOPS, u as ResolvedPath } from "../../dataset-types-8cDpOFYi.js";
2
2
 
3
3
  //#region src/views/datasets/index.d.ts
4
4
  /** Where an instance reference sits in a row. */
@@ -1,5 +1,6 @@
1
- import { _ as ResourceInstanceInput, b as Trace, g as ExecutionInput, i as DatasetRowsOverview, n as DatasetRow, r as DatasetRowUpdate, t as Dataset, v as RunResources, x as TraceWithSpans, y as Span } from "../dataset-types-CSjbM_Vz.js";
2
- import { _ as VIEW_TAG, a as DatasetViewContext, b as ViewProps, c as DatasetViewSubject, d as ActionEffect, f as SendAction, g as MountedView, h as SurfaceState, i as traceView, l as SelectedRow, m as SurfaceAction, n as TraceViewDefinition, o as DatasetViewDefinition, p as Surface, r as TraceViewProps, s as DatasetViewProps, t as TraceViewContext, u as datasetView, v as View, x as isView, y as ViewDefinition } from "../trace-Dn6Pfcc5.js";
1
+ import { _ as ResourceInstanceInput, g as ExecutionInput, i as DatasetRowsOverview, n as DatasetRow, r as DatasetRowUpdate, t as Dataset, v as RunResources } from "../dataset-types-8cDpOFYi.js";
2
+ import { _ as VIEW_TAG, a as DatasetViewContext, b as ViewProps, c as DatasetViewSubject, d as ActionEffect, f as SendAction, g as MountedView, h as SurfaceState, i as traceView, l as SelectedRow, m as SurfaceAction, n as TraceViewDefinition, o as DatasetViewDefinition, p as Surface, r as TraceViewProps, s as DatasetViewProps, t as TraceViewContext, u as datasetView, v as View, x as isView, y as ViewDefinition } from "../trace-BlnjMp7o.js";
3
+ import { Span, Trace, TraceWithSpans } from "@evalution/sdk";
3
4
 
4
5
  //#region src/views/protocol.d.ts
5
6
  /**
@@ -110,10 +110,6 @@ function applyStreamEvent(prev, event) {
110
110
  }
111
111
  //#endregion
112
112
  //#region src/views/surfaces/trace.ts
113
- /**
114
- * The trace surface: views shown as tabs beside the trace view's
115
- * Conversation and Spans. See `specs/trace-visualizers.md` §A.1.
116
- */
117
113
  /** The trace surface's descriptor. */
118
114
  const traceSurface = {
119
115
  name: "traces",
@@ -1,4 +1,4 @@
1
- import { b as ViewProps, g as MountedView, l as SelectedRow, r as TraceViewProps, s as DatasetViewProps } from "../../trace-Dn6Pfcc5.js";
1
+ import { b as ViewProps, g as MountedView, l as SelectedRow, r as TraceViewProps, s as DatasetViewProps } from "../../trace-BlnjMp7o.js";
2
2
  import { ComponentType, ReactNode } from "react";
3
3
 
4
4
  //#region src/views/react/index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evalution",
3
- "version": "1.0.7",
3
+ "version": "2.0.0",
4
4
  "description": "TypeScript AI Prompt Playground - Edit and execute AI prompts with live preview",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,23 +36,25 @@
36
36
  "LICENSING.md"
37
37
  ],
38
38
  "workspaces": [
39
+ "packages/sdk",
39
40
  "packages/vercel-ai-sdk",
40
- "packages/typesafe-sdk"
41
+ "packages/typesafe-sdk",
42
+ "packages/gemini-interactions-sdk"
41
43
  ],
42
44
  "engines": {
43
45
  "node": ">=22.18.0"
44
46
  },
45
47
  "scripts": {
46
48
  "prepublishOnly": "npm run build",
47
- "version": "npm version $npm_package_version --no-git-tag-version --workspaces && git add .",
49
+ "version": "npm version $npm_package_version --no-git-tag-version --workspaces && node scripts/pin-workspace-deps.ts && npm install --package-lock-only && git add .",
48
50
  "build": "npm run build:cli && npm run build:client",
49
51
  "build:cli": "tsdown",
50
52
  "build:client": "vite build",
51
53
  "dev": "concurrently 'npm run dev:server' 'npm run dev:client'",
52
- "dev:server": "node src/cli/index.ts",
53
- "dev:server:debug": "node --inspect src/cli/index.ts",
54
+ "dev:server": "node --conditions=evalution-source src/cli/index.ts",
55
+ "dev:server:debug": "node --inspect --conditions=evalution-source src/cli/index.ts",
54
56
  "dev:client": "vite --mode development",
55
- "typecheck": "concurrently 'tsc --noEmit' 'tsc --noEmit -p tsconfig.client.json' 'tsc --noEmit -p packages/vercel-ai-sdk' 'tsc --noEmit -p packages/typesafe-sdk'",
57
+ "typecheck": "concurrently 'tsc --noEmit' 'tsc --noEmit -p tsconfig.client.json' 'tsc --noEmit -p packages/sdk' 'tsc --noEmit -p packages/vercel-ai-sdk' 'tsc --noEmit -p packages/typesafe-sdk' 'tsc --noEmit -p packages/gemini-interactions-sdk'",
56
58
  "lint": "biome check .",
57
59
  "format": "biome check --write .",
58
60
  "test": "vitest run",
@@ -64,6 +66,7 @@
64
66
  "db:bundle": "node scripts/generate-migration-bundle.ts src/trace/db/migrations && node scripts/generate-migration-bundle.ts src/dataset/db/migrations && node scripts/generate-migration-bundle.ts src/prompt/variations/db/migrations && node scripts/generate-migration-bundle.ts src/eval/db/migrations"
65
67
  },
66
68
  "dependencies": {
69
+ "@evalution/sdk": "2.0.0",
67
70
  "@hono/node-server": "^2.0.4",
68
71
  "@lydell/node-pty": "^1.2.0-beta.12",
69
72
  "@modelcontextprotocol/client": "^2.2.0",
@@ -82,32 +85,32 @@
82
85
  "minimatch": "^10.2.4",
83
86
  "protobufjs": "^7.5.3",
84
87
  "remark-breaks": "^4.0.0",
85
- "ts-proppy": "0.3.1",
88
+ "ts-proppy": "0.3.3",
86
89
  "ws": "^8.21.0",
87
90
  "zod": "^4.6.5"
88
91
  },
89
92
  "peerDependencies": {
90
- "@google/genai": ">=2.0.0-0",
91
- "@typesafe-ai/sdk": ">=0.6.0-0",
92
- "ai": ">=3.4.0-0",
93
93
  "typescript": ">=5.3.3-0 <7.0.0-0",
94
94
  "react": ">=18.0.0",
95
- "react-dom": ">=18.0.0"
95
+ "react-dom": ">=18.0.0",
96
+ "@evalution/vercel-ai-sdk": "^2.0.0",
97
+ "@evalution/typesafe-sdk": "^2.0.0",
98
+ "@evalution/gemini-interactions-sdk": "^2.0.0"
96
99
  },
97
100
  "peerDependenciesMeta": {
98
- "ai": {
101
+ "react": {
99
102
  "optional": true
100
103
  },
101
- "@google/genai": {
104
+ "react-dom": {
102
105
  "optional": true
103
106
  },
104
- "@typesafe-ai/sdk": {
107
+ "@evalution/vercel-ai-sdk": {
105
108
  "optional": true
106
109
  },
107
- "react": {
110
+ "@evalution/typesafe-sdk": {
108
111
  "optional": true
109
112
  },
110
- "react-dom": {
113
+ "@evalution/gemini-interactions-sdk": {
111
114
  "optional": true
112
115
  }
113
116
  },