promptfoo 0.100.2 → 0.100.4
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/dist/package.json +20 -19
- package/dist/src/app/assets/{index-k6IdvGxu.js → index-BQ5_IXki.js} +249 -246
- package/dist/src/app/assets/{index.es-CWXsRi6X.js → index.es-D5Pwj_C4.js} +1 -1
- package/dist/src/app/assets/{sync-B2sX5xmB.js → sync-OQfXnPYr.js} +1 -1
- package/dist/src/app/index.html +1 -1
- package/dist/src/commands/eval.d.ts.map +1 -1
- package/dist/src/commands/eval.js +2 -1
- package/dist/src/commands/eval.js.map +1 -1
- package/dist/src/commands/generate/dataset.d.ts.map +1 -1
- package/dist/src/commands/generate/dataset.js +2 -1
- package/dist/src/commands/generate/dataset.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +1 -3
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/onboarding.d.ts.map +1 -1
- package/dist/src/onboarding.js +3 -3
- package/dist/src/onboarding.js.map +1 -1
- package/dist/src/providers/azure.d.ts +13 -0
- package/dist/src/providers/azure.d.ts.map +1 -1
- package/dist/src/providers/azure.js +55 -34
- package/dist/src/providers/azure.js.map +1 -1
- package/dist/src/providers/promptfoo.d.ts.map +1 -1
- package/dist/src/providers/promptfoo.js +7 -8
- package/dist/src/providers/promptfoo.js.map +1 -1
- package/dist/src/redteam/commands/generate.d.ts.map +1 -1
- package/dist/src/redteam/commands/generate.js +8 -5
- package/dist/src/redteam/commands/generate.js.map +1 -1
- package/dist/src/redteam/commands/init.js +3 -3
- package/dist/src/redteam/commands/init.js.map +1 -1
- package/dist/src/redteam/commands/run.d.ts.map +1 -1
- package/dist/src/redteam/commands/run.js +2 -1
- package/dist/src/redteam/commands/run.js.map +1 -1
- package/dist/src/redteam/constants.d.ts +2 -0
- package/dist/src/redteam/constants.d.ts.map +1 -1
- package/dist/src/redteam/constants.js +2 -1
- package/dist/src/redteam/constants.js.map +1 -1
- package/dist/src/redteam/extraction/entities.d.ts.map +1 -1
- package/dist/src/redteam/extraction/entities.js +16 -9
- package/dist/src/redteam/extraction/entities.js.map +1 -1
- package/dist/src/redteam/plugins/intent.d.ts.map +1 -1
- package/dist/src/redteam/plugins/intent.js +2 -1
- package/dist/src/redteam/plugins/intent.js.map +1 -1
- package/dist/src/redteam/remoteGeneration.d.ts +1 -0
- package/dist/src/redteam/remoteGeneration.d.ts.map +1 -1
- package/dist/src/redteam/remoteGeneration.js +15 -0
- package/dist/src/redteam/remoteGeneration.js.map +1 -1
- package/dist/src/util/index.d.ts +1 -0
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/index.js +6 -0
- package/dist/src/util/index.js.map +1 -1
- package/dist/test/onboarding.test.js +7 -0
- package/dist/test/onboarding.test.js.map +1 -1
- package/dist/test/providers/azure.test.js +374 -23
- package/dist/test/providers/azure.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -19
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "promptfoo",
|
|
3
3
|
"description": "LLM eval & testing toolkit",
|
|
4
4
|
"author": "Ian Webster",
|
|
5
|
-
"version": "0.100.
|
|
5
|
+
"version": "0.100.4",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"repository": {
|
|
@@ -33,33 +33,34 @@
|
|
|
33
33
|
"pf": "dist/src/main.js"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
+
"audit:fix": "npm audit fix && npm audit fix --prefix src/app && npm audit fix --prefix site",
|
|
36
37
|
"bin": "dist/src/main.js",
|
|
37
|
-
"tsc": "tsc",
|
|
38
|
-
"l": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|ts|tsx)$' | xargs eslint --max-warnings=0 --fix",
|
|
39
|
-
"f": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|jsx|mjs|cjs|ts|tsx|json|css|scss|html|md|mdx|yaml|yml)$' | xargs prettier --write",
|
|
40
|
-
"lint": "eslint . --max-warnings=0",
|
|
41
|
-
"local": "ts-node --cwdMode --transpileOnly src/main.ts",
|
|
42
|
-
"local:web": "npm run dev --prefix src/app",
|
|
43
|
-
"build:clean": "shx rm -rf dist",
|
|
44
38
|
"build:app": "npm run build --prefix src/app",
|
|
39
|
+
"build:clean": "shx rm -rf dist",
|
|
45
40
|
"build:watch": "tsc --watch",
|
|
46
41
|
"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",
|
|
47
42
|
"citation:generate": "ts-node scripts/generateCitation.ts",
|
|
48
|
-
"test": "jest",
|
|
49
|
-
"test:integration": "jest --config jest.integration.config.ts integration",
|
|
50
|
-
"test:watch": "jest --watch",
|
|
51
|
-
"test:app": "npm run test --prefix src/app",
|
|
52
|
-
"format": "prettier -w .",
|
|
53
|
-
"format:check": "prettier --check .",
|
|
54
|
-
"db:migrate": "npx tsx src/migrate.ts",
|
|
55
43
|
"db:generate": "npx drizzle-kit generate",
|
|
44
|
+
"db:migrate": "npx tsx src/migrate.ts",
|
|
56
45
|
"db:studio": "npx drizzle-kit studio",
|
|
46
|
+
"dev:app": "npm run dev --prefix src/app",
|
|
47
|
+
"dev:server": "nodemon src/server/index.ts",
|
|
48
|
+
"dev": "concurrently \"npm run dev:server\" \"npm run dev:app\"",
|
|
49
|
+
"f": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|jsx|mjs|cjs|ts|tsx|json|css|scss|html|md|mdx|yaml|yml)$' | xargs prettier --write",
|
|
50
|
+
"format:check": "prettier --check .",
|
|
51
|
+
"format": "prettier -w .",
|
|
57
52
|
"jsonSchema:generate": "npx -y tsx scripts/generateJsonSchema.ts > site/static/config-schema.json | npx prettier --write site/static/config-schema.json",
|
|
58
|
-
"
|
|
53
|
+
"l": "git diff --name-only --diff-filter=ACMRTUXB origin/main | grep -E '\\.(js|ts|tsx)$' | xargs eslint --max-warnings=0 --fix",
|
|
54
|
+
"lint": "eslint . --max-warnings=0",
|
|
55
|
+
"local:web": "npm run dev --prefix src/app",
|
|
56
|
+
"local": "ts-node --cwdMode --transpileOnly src/main.ts",
|
|
57
|
+
"postversion": "npm run citation:generate && git add CITATION.cff && git commit --amend --no-edit",
|
|
59
58
|
"prepublishOnly": "npm run build:clean && npm run build",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
59
|
+
"test:app": "npm run test --prefix src/app",
|
|
60
|
+
"test:integration": "jest --config jest.integration.config.ts integration",
|
|
61
|
+
"test:watch": "jest --watch",
|
|
62
|
+
"test": "jest",
|
|
63
|
+
"tsc": "tsc"
|
|
63
64
|
},
|
|
64
65
|
"overrides": {
|
|
65
66
|
"uri-js": "npm:uri-js-replace"
|