@exulu/backend 1.27.2 → 1.28.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@exulu/backend",
3
3
  "author": "Qventu Bv.",
4
- "version": "1.27.2",
4
+ "version": "1.28.1",
5
5
  "main": "./dist/index.js",
6
6
  "private": false,
7
7
  "publishConfig": {
@@ -11,14 +11,14 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "homepage": "https://exulu.com",
13
13
  "engines": {
14
- "node": "22.17.1"
14
+ "node": "22.18.0"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "https://github.com/Qventu/exulu-backend"
19
19
  },
20
20
  "scripts": {
21
- "preinstall": "node -e \"if (process.version !== 'v22.17.1') { console.error('❌ Wrong Node.js version. Expected v22.17.1, got ' + process.version); process.exit(1); }\"",
21
+ "preinstall": "node -e \"if (process.version !== 'v22.18.0') { console.error('❌ Wrong Node.js version. Expected v22.18.0, got ' + process.version); process.exit(1); }\"",
22
22
  "build": "tsup",
23
23
  "dev": "npm link && tsup --watch",
24
24
  "prepare": "husky",
@@ -0,0 +1,37 @@
1
+ export type ScoringMethod = "median" | "sum" | "average"
2
+
3
+ export interface EvalRun {
4
+ id: string
5
+ name: string
6
+ eval_set_id: string
7
+ agent_id: string
8
+ timeout_in_seconds: number
9
+ eval_functions: {
10
+ id: string
11
+ config: Record<string, any>
12
+ }[]
13
+ config?: Record<string, any> // Optional config for eval functions
14
+ scoring_method: ScoringMethod
15
+ pass_threshold: number // 0-100 percentage
16
+ test_case_ids: string[] // Subset of test cases from the eval set
17
+ rights_mode: "private" | "users" | "roles" | "projects" | "public"
18
+ RBAC?: {
19
+ type?: string
20
+ users?: Array<{ id: number; rights: "read" | "write" }>
21
+ roles?: Array<{ id: string; rights: "read" | "write" }>
22
+ projects?: Array<{ id: string; rights: "read" | "write" }>
23
+ }
24
+ createdAt: string
25
+ updatedAt: string
26
+ }
27
+
28
+ export interface EvalRunPagination {
29
+ pageInfo: {
30
+ pageCount: number
31
+ itemCount: number
32
+ currentPage: number
33
+ hasPreviousPage: boolean
34
+ hasNextPage: boolean
35
+ }
36
+ items: EvalRun[]
37
+ }
@@ -0,0 +1,25 @@
1
+ import { type UIMessage } from "ai"
2
+
3
+ export interface TestCase {
4
+ id: string
5
+ name: string
6
+ description?: string
7
+ inputs: UIMessage[]
8
+ expected_output: string
9
+ expected_tools?: string[]
10
+ expected_knowledge_sources?: string[]
11
+ expected_agent_tools?: string[]
12
+ createdAt: string
13
+ updatedAt: string
14
+ }
15
+
16
+ export interface TestCasePagination {
17
+ pageInfo: {
18
+ pageCount: number
19
+ itemCount: number
20
+ currentPage: number
21
+ hasPreviousPage: boolean
22
+ hasNextPage: boolean
23
+ }
24
+ items: TestCase[]
25
+ }