forked from promptfoo/promptfoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
162 lines (162 loc) · 5.17 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
{
"name": "promptfoo",
"description": "LLM eval & testing toolkit",
"author": "Ian Webster",
"version": "0.73.4",
"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/web/nextui",
"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"
},
"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 | xargs prettier --write",
"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",
"test:webui": "npm run test --prefix src/web/nextui",
"format": "prettier -w .",
"format:check": "prettier --check .",
"db:migrate": "npx tsx src/migrate.ts",
"db:generate": "npx drizzle-kit generate:sqlite",
"jsonSchema:generate": "npx -y tsx scripts/generateJsonSchema.ts > site/static/config-schema.json",
"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.602.0",
"@azure/identity": "^4.0.0",
"@azure/openai-assistants": "^1.0.0-beta.5",
"@ibm-generative-ai/node-sdk": "^2.0.6",
"@smithy/node-http-handler": "^3.1.1",
"google-auth-library": "^9.7.0",
"langfuse": "^3.7.0",
"node-sql-parser": "^5.2.0"
},
"devDependencies": {
"@aws-sdk/client-bedrock-runtime": "^3.616.0",
"@azure/identity": "^4.4.0",
"@eslint/js": "^9.7.0",
"@libsql/client": "^0.7.0",
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.0",
"@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": "^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": "^10.0.0",
"check-dependency-version-consistency": "^4.1.0",
"cloudflare": "^3.4.0",
"drizzle-kit": "^0.23.0",
"esbuild": "^0.23.0",
"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",
"madge": "^7.0.0",
"next": "13.4.13",
"nock": "^13.5.4",
"prettier": "^3.3.3",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"typescript-eslint": "^7.17.0",
"zod-to-json-schema": "^3.23.1"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.24.3",
"@apidevtools/json-schema-ref-parser": "^11.6.4",
"@googleapis/sheets": "^9.0.0",
"ajv": "^8.17.1",
"ajv-formats": "^2.1.1",
"async": "^3.2.5",
"better-sqlite3": "^11.1.2",
"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.32.0",
"express": "^4.19.2",
"fast-deep-equal": "^3.1.3",
"fast-xml-parser": "^4.4.0",
"fastest-levenshtein": "^1.0.16",
"glob": "^10.4.3",
"inquirer": "^10.1.2",
"js-yaml": "^4.1.0",
"mathjs": "^13.0.3",
"node-fetch": "^2.6.7",
"nunjucks": "^3.2.4",
"openai": "^4.53.0",
"opener": "^1.5.2",
"proxy-agent": "^6.4.0",
"python-shell": "^5.0.0",
"replicate": "^0.31.1",
"rfdc": "^1.4.1",
"rouge": "git+https://github.com/kenlimmj/rouge.git#f35111b599aca55f1d4dc1d4a3d15e28e7f7c55f",
"semver": "^7.6.3",
"socket.io": "^4.7.5",
"tiny-invariant": "^1.3.3",
"uuid": "^10.0.0",
"winston": "^3.13.1",
"zod": "^3.23.8"
}
}