forked from promptfoo/promptfoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
146 lines (146 loc) · 4.43 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "promptfoo",
"description": "LLM eval & testing toolkit",
"author": "Ian Webster",
"version": "0.65.1",
"license": "MIT",
"type": "commonjs",
"repository": "promptfoo/promptfoo",
"main": "dist/src/index.js",
"exports": {
".": {
"import": "./dist/src/index.js",
"require": "./dist/src/index.js"
}
},
"workspaces": [
"src/web/nextui",
"site"
],
"types": "dist/src/index.d.ts",
"typings": "dist/src/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=18"
},
"bin": {
"promptfoo": "dist/src/main.js"
},
"scripts": {
"bin": "dist/src/main.js",
"tsc": "tsc",
"lint": "eslint . --max-warnings=0",
"local": "ts-node --cwdMode --transpileOnly src/main.ts",
"local:web": "npm run dev --prefix src/web/nextui",
"install:nextui": "npm install --prefix src/web/nextui",
"build:clean": "shx rm -rf dist",
"build:nextui": "sh src/web/nextui/build.sh",
"build:watch": "tsc --watch",
"build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:nextui && shx chmod +x dist/src/main.js",
"test": "jest",
"test:watch": "jest --watch",
"format": "prettier -w .",
"format:check": "prettier --check .",
"db:migrate": "npx tsx src/migrate.ts",
"db:generate": "npx drizzle-kit generate:sqlite",
"audit:fix": "npm audit fix && npm audit fix --prefix src/web/nextui && npm audit fix --prefix site",
"prepublishOnly": "npm run build:clean && npm run build"
},
"peerDependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.458.0",
"@azure/identity": "^4.0.0",
"@azure/openai-assistants": "^1.0.0-beta.5",
"@ibm-generative-ai/node-sdk": "^2.0.6",
"google-auth-library": "^9.7.0",
"googleapis": "^134.0.0",
"langfuse": "^3.7.0",
"node-sql-parser": "^5.2.0"
},
"devDependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.598.0",
"@azure/identity": "^4.2.1",
"@eslint/js": "^9.5.0",
"@swc/cli": "^0.3.12",
"@swc/core": "^1.6.1",
"@swc/jest": "^0.2.36",
"@types/async": "^3.2.24",
"@types/better-sqlite3": "^7.6.10",
"@types/cache-manager": "^4.0.6",
"@types/cache-manager-fs-hash": "^0.0.4",
"@types/cli-progress": "^3.11.5",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/debounce": "^1.2.4",
"@types/eslint__js": "^8.42.3",
"@types/express": "^4.17.21",
"@types/glob": "^8.1.0",
"@types/inquirer": "^9.0.7",
"@types/jest": "^29.5.12",
"@types/js-yaml": "^4.0.9",
"@types/node-fetch": "^2.6.11",
"@types/nunjucks": "^3.2.6",
"@types/opener": "^1.4.3",
"@types/semver": "^7.5.8",
"@types/uuid": "^9.0.8",
"check-dependency-version-consistency": "^4.1.0",
"cloudflare": "^3.2.0",
"drizzle-kit": "^0.20.13",
"eslint": "^8.57.0",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-unused-imports": "^3.2.0",
"jest": "^29.7.0",
"jest-watch-typeahead": "^2.2.2",
"next": "13.4.13",
"prettier": "^3.3.2",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.13.1"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.23.0",
"@apidevtools/json-schema-ref-parser": "^11.6.4",
"ajv": "^8.16.0",
"ajv-formats": "^2.1.1",
"async": "^3.2.5",
"better-sqlite3": "^11.0.0",
"cache-manager": "^4.1.0",
"cache-manager-fs-hash": "^1.0.0",
"chalk": "^4.1.2",
"chokidar": "^3.6.0",
"cli-progress": "^3.12.0",
"cli-table3": "^0.6.5",
"commander": "^12.1.0",
"compression": "^1.7.4",
"cors": "^2.8.5",
"csv-parse": "^5.5.6",
"csv-stringify": "^6.5.0",
"debounce": "^1.2.1",
"dedent": "^1.5.3",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.29.3",
"express": "^4.19.2",
"fast-deep-equal": "^3.1.3",
"fastest-levenshtein": "^1.0.16",
"glob": "^10.4.1",
"inquirer": "^8.2.6",
"js-yaml": "^4.1.0",
"mathjs": "^13.0.0",
"node-fetch": "^2.6.7",
"nunjucks": "^3.2.4",
"openai": "^4.51.0",
"opener": "^1.5.2",
"proxy-agent": "^6.4.0",
"python-shell": "^5.0.0",
"replicate": "^0.30.2",
"rfdc": "^1.4.1",
"rouge": "git+https://github.com/kenlimmj/rouge.git#f35111b599aca55f1d4dc1d4a3d15e28e7f7c55f",
"semver": "^7.6.2",
"socket.io": "^4.7.5",
"tiny-invariant": "^1.3.3",
"uuid": "^10.0.0",
"winston": "^3.13.0"
}
}