forked from promptfoo/promptfoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
205 lines (205 loc) · 6.5 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"name": "promptfoo",
"description": "LLM eval & testing toolkit",
"author": "Ian Webster",
"version": "0.93.3",
"license": "MIT",
"type": "commonjs",
"repository": {
"type": "git",
"url": "git+https://github.com/promptfoo/promptfoo.git"
},
"main": "dist/src/index.js",
"exports": {
".": {
"import": "./dist/src/index.js",
"require": "./dist/src/index.js"
}
},
"workspaces": [
"src/app",
"site"
],
"types": "dist/src/index.d.ts",
"typings": "dist/src/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=18.0.0"
},
"bin": {
"promptfoo": "dist/src/main.js",
"pf": "dist/src/main.js"
},
"scripts": {
"bin": "dist/src/main.js",
"tsc": "tsc",
"l": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|ts|tsx)$' | xargs eslint --max-warnings=0 --fix",
"f": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|jsx|mjs|cjs|ts|tsx|json|css|scss|html|md|yaml|yml)$' | xargs prettier --write",
"lint": "eslint . --max-warnings=0",
"local": "ts-node --cwdMode --transpileOnly src/main.ts",
"local:web": "npm run dev --prefix src/app",
"build:clean": "shx rm -rf dist",
"build:app": "npm run build --prefix src/app",
"build:watch": "tsc --watch",
"build": "tsc && shx cp src/*.html dist/src && shx cp src/python/wrapper.py dist/src/python && shx mkdir -p dist/src/golang && shx cp src/golang/wrapper.go dist/src/golang && shx rm -rf dist/drizzle && shx cp -r drizzle dist/drizzle && npm run build:app && shx chmod +x dist/src/main.js",
"test": "jest",
"test:integration": "jest --config jest.integration.config.ts integration",
"test:watch": "jest --watch",
"test:app": "npm run test --prefix src/app",
"format": "prettier -w .",
"format:check": "prettier --check .",
"db:migrate": "npx tsx src/migrate.ts",
"citation:generate": "ts-node scripts/generateCitation.ts",
"db:generate": "npx drizzle-kit generate",
"jsonSchema:generate": "npx -y tsx scripts/generateJsonSchema.ts > site/static/config-schema.json",
"audit:fix": "npm audit fix && npm audit fix --prefix src/app && npm audit fix --prefix site",
"prepublishOnly": "npm run build:clean && npm run build",
"dev:server": "nodemon src/server/index.ts",
"dev:app": "npm run dev --prefix src/app",
"dev": "concurrently \"npm run dev:server\" \"npm run dev:app\""
},
"overrides": {
"uri-js": "npm:uri-js-replace",
"node-fetch": {
"whatwg-url": "14.x"
}
},
"peerDependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.602.0",
"@azure/identity": "^4.0.0",
"@azure/openai-assistants": "^1.0.0-beta.5",
"@fal-ai/serverless-client": "^0.14.3",
"@ibm-cloud/watsonx-ai": "^1.1.0",
"@ibm-generative-ai/node-sdk": "^2.0.6",
"@playwright/browser-chromium": "^1.47.2",
"@smithy/node-http-handler": "^3.1.1",
"google-auth-library": "^9.7.0",
"ibm-cloud-sdk-core": "^5.0.2",
"langfuse": "^3.7.0",
"node-sql-parser": "^5.2.0",
"playwright": "^1.47.2",
"playwright-extra": "^4.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2"
},
"devDependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.670.0",
"@azure/identity": "^4.5.0",
"@eslint/js": "^9.12.0",
"@libsql/client": "^0.14.0",
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.36",
"@swc/jest": "^0.2.36",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/async": "^3.2.24",
"@types/better-sqlite3": "^7.6.11",
"@types/cache-manager": "^4.0.6",
"@types/cache-manager-fs-hash": "^0.0.4",
"@types/cli-progress": "^3.11.6",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/debounce": "^1.2.4",
"@types/eslint__js": "^8.42.3",
"@types/express": "^5.0.0",
"@types/glob": "^8.1.0",
"@types/inquirer": "^9.0.7",
"@types/jest": "^29.5.13",
"@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/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"check-dependency-version-consistency": "^4.1.0",
"cloudflare": "3.4.0",
"concurrently": "^9.0.1",
"drizzle-kit": "^0.26.2",
"esbuild": "^0.24.0",
"eslint": "^9.12.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.13",
"eslint-plugin-unicorn": "^56.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"jest": "^29.7.0",
"jest-watch-typeahead": "^2.2.2",
"madge": "^8.0.0",
"nock": "^13.5.5",
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
"shx": "^0.3.4",
"supertest": "^7.0.0",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0",
"zod-to-json-schema": "^3.23.3"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.29.2",
"@apidevtools/json-schema-ref-parser": "^11.7.2",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@googleapis/sheets": "^9.3.1",
"@mui/material": "^6.1.4",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"async": "^3.2.6",
"better-sqlite3": "^11.4.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.1",
"debounce": "^1.2.1",
"dedent": "^1.5.3",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.35.1",
"express": "^4.21.1",
"fast-deep-equal": "^3.1.3",
"fast-xml-parser": "^4.5.0",
"fastest-levenshtein": "^1.0.16",
"glob": "^10.4.3",
"groq-sdk": "^0.7.0",
"http-z": "^7.1.1",
"inquirer": "^11.1.0",
"js-rouge": "3.0.0",
"js-yaml": "^4.1.0",
"mathjs": "^13.2.0",
"node-cache": "^5.1.2",
"node-fetch": "^2.6.7",
"nunjucks": "^3.2.4",
"openai": "^4.68.0",
"opener": "^1.5.2",
"proxy-agent": "^6.4.0",
"python-shell": "^5.0.0",
"replicate": "^0.34.1",
"rfdc": "^1.4.1",
"semver": "^7.6.3",
"socket.io": "^4.8.0",
"tiny-invariant": "^1.3.3",
"uuid": "^10.0.0",
"winston": "^3.15.0",
"ws": "^8.18.0",
"zod": "^3.23.8",
"zod-validation-error": "^3.4.0"
},
"madge": {
"detectiveOptions": {
"ts": {
"skipAsyncImports": true
},
"tsx": {
"skipAsyncImports": true
}
}
}
}